From 0f6ca15ed02eaeb7704d534b9bdd69d6aab3d2c8 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 28 Jun 2023 22:36:35 +0000 Subject: [PATCH 1/2] feat: Add HTML Navigation Instructions feature to ComputeRoutes feat: Add Waypoint Optimization feature to ComputeRoutes feat: Support Transit routes in ComputeRoutes and ComputeRouteMatrix feat: Add TrafficModel feature in ComputeRoutes and ComputeRouteMatrix feat: Support returning localized values in ComputeRoutes and ComputeRouteMatrix feat: Add more navigation instruction maneuvers feat: Add more toll pass values PiperOrigin-RevId: 544137630 Source-Link: https://github.com/googleapis/googleapis/commit/6e0f749ee337b9aa343d09db8f4e674298ff8e7f Source-Link: https://github.com/googleapis/googleapis-gen/commit/cb29cc19eb4fa96ecc75bc49511fe9eba325e297 Copy-Tag: eyJwIjoiamF2YS1tYXBzLXJvdXRpbmcvLk93bEJvdC55YW1sIiwiaCI6ImNiMjljYzE5ZWI0ZmE5NmVjYzc1YmM0OTUxMWZlOWViYTMyNWUyOTcifQ== --- .../maps/routing/v2/FallbackInfoProto.java | 74 - .../routing/v2/GeocodingResultsProto.java | 98 - .../google/maps/routing/v2/LocationProto.java | 75 - .../google/maps/routing/v2/ManeuverProto.java | 61 - .../v2/NavigationInstructionProto.java | 73 - .../google/maps/routing/v2/PolylineProto.java | 77 - .../com/google/maps/routing/v2/Route.java | 3630 ---------- .../maps/routing/v2/RouteLabelProto.java | 55 - .../com/google/maps/routing/v2/RouteLeg.java | 2755 -------- .../google/maps/routing/v2/RouteLegStep.java | 2178 ------ .../maps/routing/v2/RouteMatrixElement.java | 2392 ------- .../maps/routing/v2/RouteModifiersProto.java | 84 - .../google/maps/routing/v2/RouteProto.java | 219 - .../maps/routing/v2/RouteTravelModeProto.java | 55 - .../maps/routing/v2/RoutesServiceProto.java | 288 - .../routing/v2/RoutingPreferenceProto.java | 56 - .../routing/v2/SpeedReadingIntervalProto.java | 79 - .../google/maps/routing/v2/TollInfoProto.java | 71 - .../maps/routing/v2/TollPassesProto.java | 107 - .../google/maps/routing/v2/UnitsProto.java | 53 - .../routing/v2/VehicleEmissionTypeProto.java | 56 - .../maps/routing/v2/VehicleInfoProto.java | 73 - .../google/maps/routing/v2/WaypointProto.java | 81 - .../proto/google/maps/routing/v2/route.proto | 219 - .../google/maps/routing/v2/RoutesClient.java | 15 + .../maps/routing/v2/RoutesSettings.java | 1 + .../maps/routing/v2/gapic_metadata.json | 0 .../google/maps/routing/v2/package-info.java | 4 + .../v2/stub/GrpcRoutesCallableFactory.java | 0 .../maps/routing/v2/stub/GrpcRoutesStub.java | 0 .../stub/HttpJsonRoutesCallableFactory.java | 0 .../routing/v2/stub/HttpJsonRoutesStub.java | 0 .../maps/routing/v2/stub/RoutesStub.java | 0 .../routing/v2/stub/RoutesStubSettings.java | 0 .../google/maps/routing/v2/MockRoutes.java | 0 .../maps/routing/v2/MockRoutesImpl.java | 0 .../routing/v2/RoutesClientHttpJsonTest.java | 8 + .../maps/routing/v2/RoutesClientTest.java | 20 + .../google/maps/routing/v2/RoutesGrpc.java | 323 +- .../routing/v2/ComputeRouteMatrixRequest.java | 2315 +++--- .../ComputeRouteMatrixRequestOrBuilder.java | 331 +- .../maps/routing/v2/ComputeRoutesRequest.java | 3266 ++++----- .../v2/ComputeRoutesRequestOrBuilder.java | 461 +- .../routing/v2/ComputeRoutesResponse.java | 604 +- .../v2/ComputeRoutesResponseOrBuilder.java | 53 +- .../google/maps/routing/v2/FallbackInfo.java | 351 +- .../routing/v2/FallbackInfoOrBuilder.java | 30 +- .../maps/routing/v2/FallbackInfoProto.java | 61 + .../maps/routing/v2/FallbackReason.java | 82 +- .../maps/routing/v2/FallbackRoutingMode.java | 77 +- .../maps/routing/v2/GeocodedWaypoint.java | 585 +- .../routing/v2/GeocodedWaypointOrBuilder.java | 62 +- .../maps/routing/v2/GeocodingResults.java | 582 +- .../routing/v2/GeocodingResultsOrBuilder.java | 52 +- .../routing/v2/GeocodingResultsProto.java | 77 + .../google/maps/routing/v2/LocalizedTime.java | 820 +++ .../routing/v2/LocalizedTimeOrBuilder.java | 60 + .../maps/routing/v2/LocalizedTimeProto.java | 57 + .../com/google/maps/routing/v2/Location.java | 493 +- .../maps/routing/v2/LocationOrBuilder.java | 58 +- .../google/maps/routing/v2/LocationProto.java | 60 + .../com/google/maps/routing/v2/Maneuver.java | 226 +- .../google/maps/routing/v2/ManeuverProto.java | 51 + .../routing/v2/NavigationInstruction.java | 369 +- .../v2/NavigationInstructionOrBuilder.java | 33 +- .../v2/NavigationInstructionProto.java | 58 + .../com/google/maps/routing/v2/Polyline.java | 466 +- .../maps/routing/v2/PolylineEncoding.java | 82 +- .../maps/routing/v2/PolylineOrBuilder.java | 38 +- .../google/maps/routing/v2/PolylineProto.java | 62 + .../maps/routing/v2/PolylineQuality.java | 82 +- .../com/google/maps/routing/v2/Route.java | 5266 ++++++++++++++ .../google/maps/routing/v2/RouteLabel.java | 89 +- .../maps/routing/v2/RouteLabelProto.java | 44 + .../com/google/maps/routing/v2/RouteLeg.java | 6221 +++++++++++++++++ .../maps/routing/v2/RouteLegOrBuilder.java | 204 +- .../google/maps/routing/v2/RouteLegStep.java | 3432 +++++++++ .../routing/v2/RouteLegStepOrBuilder.java | 152 +- .../v2/RouteLegStepTransitDetails.java | 4170 +++++++++++ .../RouteLegStepTransitDetailsOrBuilder.java | 186 + .../v2/RouteLegStepTravelAdvisory.java | 467 +- .../RouteLegStepTravelAdvisoryOrBuilder.java | 33 +- .../routing/v2/RouteLegTravelAdvisory.java | 731 +- .../v2/RouteLegTravelAdvisoryOrBuilder.java | 84 +- .../routing/v2/RouteMatrixDestination.java | 384 +- .../v2/RouteMatrixDestinationOrBuilder.java | 35 +- .../maps/routing/v2/RouteMatrixElement.java | 3833 ++++++++++ .../v2/RouteMatrixElementCondition.java | 77 +- .../v2/RouteMatrixElementOrBuilder.java | 106 +- .../maps/routing/v2/RouteMatrixOrigin.java | 520 +- .../v2/RouteMatrixOriginOrBuilder.java | 55 +- .../maps/routing/v2/RouteModifiers.java | 678 +- .../routing/v2/RouteModifiersOrBuilder.java | 76 +- .../maps/routing/v2/RouteModifiersProto.java | 64 + .../maps/routing/v2/RouteOrBuilder.java | 270 +- .../google/maps/routing/v2/RouteProto.java | 339 + .../maps/routing/v2/RouteTravelAdvisory.java | 1044 +-- .../v2/RouteTravelAdvisoryOrBuilder.java | 120 +- .../maps/routing/v2/RouteTravelMode.java | 113 +- .../maps/routing/v2/RouteTravelModeProto.java | 44 + .../maps/routing/v2/RoutesServiceProto.java | 277 + .../maps/routing/v2/RoutingPreference.java | 87 +- .../routing/v2/RoutingPreferenceProto.java | 45 + .../maps/routing/v2/SpeedReadingInterval.java | 502 +- .../v2/SpeedReadingIntervalOrBuilder.java | 39 +- .../routing/v2/SpeedReadingIntervalProto.java | 61 + .../com/google/maps/routing/v2/TollInfo.java | 386 +- .../maps/routing/v2/TollInfoOrBuilder.java | 37 +- .../google/maps/routing/v2/TollInfoProto.java | 56 + .../com/google/maps/routing/v2/TollPass.java | 758 +- .../maps/routing/v2/TollPassesProto.java | 98 + .../google/maps/routing/v2/TrafficModel.java | 184 + .../maps/routing/v2/TrafficModelProto.java | 44 + .../google/maps/routing/v2/TransitAgency.java | 905 +++ .../routing/v2/TransitAgencyOrBuilder.java | 69 + .../google/maps/routing/v2/TransitLine.java | 2093 ++++++ .../maps/routing/v2/TransitLineOrBuilder.java | 206 + .../maps/routing/v2/TransitPreferences.java | 1238 ++++ .../v2/TransitPreferencesOrBuilder.java | 84 + .../routing/v2/TransitPreferencesProto.java | 64 + .../google/maps/routing/v2/TransitProto.java | 113 + .../google/maps/routing/v2/TransitStop.java | 806 +++ .../maps/routing/v2/TransitStopOrBuilder.java | 56 + .../maps/routing/v2/TransitVehicle.java | 1524 ++++ .../routing/v2/TransitVehicleOrBuilder.java | 97 + .../com/google/maps/routing/v2/Units.java | 82 +- .../google/maps/routing/v2/UnitsProto.java | 42 + .../maps/routing/v2/VehicleEmissionType.java | 95 +- .../routing/v2/VehicleEmissionTypeProto.java | 45 + .../google/maps/routing/v2/VehicleInfo.java | 318 +- .../maps/routing/v2/VehicleInfoOrBuilder.java | 30 +- .../maps/routing/v2/VehicleInfoProto.java | 58 + .../com/google/maps/routing/v2/Waypoint.java | 659 +- .../maps/routing/v2/WaypointOrBuilder.java | 59 +- .../google/maps/routing/v2/WaypointProto.java | 60 + .../maps/routing/v2/fallback_info.proto | 0 .../maps/routing/v2/geocoding_results.proto | 0 .../maps/routing/v2/localized_time.proto | 40 + .../google/maps/routing/v2/location.proto | 8 +- .../google/maps/routing/v2/maneuver.proto | 6 + .../routing/v2/navigation_instruction.proto | 0 .../google/maps/routing/v2/polyline.proto | 0 .../proto/google/maps/routing/v2/route.proto | 395 ++ .../google/maps/routing/v2/route_label.proto | 0 .../maps/routing/v2/route_modifiers.proto | 20 +- .../maps/routing/v2/route_travel_mode.proto | 3 + .../maps/routing/v2/routes_service.proto | 119 +- .../maps/routing/v2/routing_preference.proto | 0 .../routing/v2/speed_reading_interval.proto | 0 .../google/maps/routing/v2/toll_info.proto | 0 .../google/maps/routing/v2/toll_passes.proto | 12 +- .../maps/routing/v2/traffic_model.proto | 52 + .../google/maps/routing/v2/transit.proto | 161 + .../maps/routing/v2/transit_preferences.proto | 75 + .../proto/google/maps/routing/v2/units.proto | 0 .../routing/v2/vehicle_emission_type.proto | 0 .../google/maps/routing/v2/vehicle_info.proto | 6 +- .../google/maps/routing/v2/waypoint.proto | 0 .../AsyncComputeRouteMatrix.java | 5 + .../computeroutes/AsyncComputeRoutes.java | 6 + .../computeroutes/SyncComputeRoutes.java | 6 + .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../routes/create/SyncCreateSetEndpoint.java | 0 .../computeroutes/SyncComputeRoutes.java | 0 .../computeroutes/SyncComputeRoutes.java | 0 166 files changed, 42307 insertions(+), 24005 deletions(-) delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStep.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElement.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java delete mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java (95%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java (99%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/google-maps-routing/src/main/java/com/google/maps/routing/v2/gapic_metadata.json (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/google-maps-routing/src/main/java/com/google/maps/routing/v2/package-info.java (91%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesCallableFactory.java (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesStub.java (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesCallableFactory.java (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesStub.java (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStub.java (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutes.java (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutesImpl.java (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientHttpJsonTest.java (93%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientTest.java (89%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java (69%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java (57%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java (56%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java (56%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java (57%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponse.java (76%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponseOrBuilder.java (83%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfo.java (69%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoOrBuilder.java (72%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackReason.java (70%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackRoutingMode.java (71%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypoint.java (74%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypointOrBuilder.java (79%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResults.java (73%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsOrBuilder.java (79%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTime.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeOrBuilder.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Location.java (63%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationOrBuilder.java (53%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Maneuver.java (75%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstruction.java (70%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionOrBuilder.java (63%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Polyline.java (70%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineEncoding.java (69%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineOrBuilder.java (74%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineQuality.java (71%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java (72%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegOrBuilder.java (62%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStep.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepOrBuilder.java (65%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetails.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetailsOrBuilder.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisory.java (69%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisoryOrBuilder.java (68%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisory.java (67%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisoryOrBuilder.java (65%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestination.java (61%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestinationOrBuilder.java (52%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElement.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementCondition.java (71%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementOrBuilder.java (88%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOrigin.java (60%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOriginOrBuilder.java (54%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiers.java (71%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersOrBuilder.java (74%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java (66%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisory.java (59%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisoryOrBuilder.java (62%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java (71%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreference.java (78%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingInterval.java (73%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalOrBuilder.java (73%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfo.java (78%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoOrBuilder.java (77%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPass.java (79%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModel.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgency.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgencyOrBuilder.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLine.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLineOrBuilder.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferences.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesOrBuilder.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStop.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStopOrBuilder.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicle.java create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicleOrBuilder.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Units.java (66%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionType.java (70%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfo.java (63%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoOrBuilder.java (51%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Waypoint.java (75%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointOrBuilder.java (82%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/fallback_info.proto (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/geocoding_results.proto (100%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/localized_time.proto rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto (84%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto (95%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/navigation_instruction.proto (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline.proto (100%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_label.proto (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto (74%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto (96%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto (76%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routing_preference.proto (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/speed_reading_interval.proto (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_info.proto (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto (97%) create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/traffic_model.proto create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit.proto create mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit_preferences.proto rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/units.proto (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_emission_type.proto (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_info.proto (88%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/waypoint.proto (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutematrix/AsyncComputeRouteMatrix.java (90%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/AsyncComputeRoutes.java (90%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/SyncComputeRoutes.java (90%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetEndpoint.java (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/samples/snippets/generated/com/google/maps/routing/v2/routessettings/computeroutes/SyncComputeRoutes.java (100%) rename {java-maps-routing => owl-bot-staging/java-maps-routing/v2}/samples/snippets/generated/com/google/maps/routing/v2/stub/routesstubsettings/computeroutes/SyncComputeRoutes.java (100%) diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java deleted file mode 100644 index ca736e452f8e..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java +++ /dev/null @@ -1,74 +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/maps/routing/v2/fallback_info.proto - -package com.google.maps.routing.v2; - -public final class FallbackInfoProto { - private FallbackInfoProto() {} - - 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_maps_routing_v2_FallbackInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_FallbackInfo_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/maps/routing/v2/fallback_info.p" - + "roto\022\026google.maps.routing.v2\"\211\001\n\014Fallbac" - + "kInfo\022A\n\014routing_mode\030\001 \001(\0162+.google.map" - + "s.routing.v2.FallbackRoutingMode\0226\n\006reas" - + "on\030\002 \001(\0162&.google.maps.routing.v2.Fallba" - + "ckReason*Y\n\016FallbackReason\022\037\n\033FALLBACK_R" - + "EASON_UNSPECIFIED\020\000\022\020\n\014SERVER_ERROR\020\001\022\024\n" - + "\020LATENCY_EXCEEDED\020\002*v\n\023FallbackRoutingMo" - + "de\022%\n!FALLBACK_ROUTING_MODE_UNSPECIFIED\020" - + "\000\022\034\n\030FALLBACK_TRAFFIC_UNAWARE\020\001\022\032\n\026FALLB" - + "ACK_TRAFFIC_AWARE\020\002B\306\001\n\032com.google.maps." - + "routing.v2B\021FallbackInfoProtoP\001Z:cloud.g" - + "oogle.com/go/maps/routing/apiv2/routingp" - + "b;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Rou" - + "ting.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Googl" - + "e::Maps::Routing::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_maps_routing_v2_FallbackInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_FallbackInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_FallbackInfo_descriptor, - new java.lang.String[] { - "RoutingMode", "Reason", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java deleted file mode 100644 index 6a5f88709b6a..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java +++ /dev/null @@ -1,98 +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/maps/routing/v2/geocoding_results.proto - -package com.google.maps.routing.v2; - -public final class GeocodingResultsProto { - private GeocodingResultsProto() {} - - 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_maps_routing_v2_GeocodingResults_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_GeocodedWaypoint_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/maps/routing/v2/geocoding_resul" - + "ts.proto\022\026google.maps.routing.v2\032\027google" - + "/rpc/status.proto\"\314\001\n\020GeocodingResults\0228" - + "\n\006origin\030\001 \001(\0132(.google.maps.routing.v2." - + "GeocodedWaypoint\022=\n\013destination\030\002 \001(\0132(." - + "google.maps.routing.v2.GeocodedWaypoint\022" - + "?\n\rintermediates\030\003 \003(\0132(.google.maps.rou" - + "ting.v2.GeocodedWaypoint\"\320\001\n\020GeocodedWay" - + "point\022+\n\017geocoder_status\030\001 \001(\0132\022.google." - + "rpc.Status\0220\n#intermediate_waypoint_requ" - + "est_index\030\002 \001(\005H\000\210\001\001\022\014\n\004type\030\003 \003(\t\022\025\n\rpa" - + "rtial_match\030\004 \001(\010\022\020\n\010place_id\030\005 \001(\tB&\n$_" - + "intermediate_waypoint_request_indexB\312\001\n\032" - + "com.google.maps.routing.v2B\025GeocodingRes" - + "ultsProtoP\001Z:cloud.google.com/go/maps/ro" - + "uting/apiv2/routingpb;routingpb\370\001\001\242\002\005GMR" - + "V2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Map" - + "s\\Routing\\V2\352\002\031Google::Maps::Routing::V2" - + "b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_GeocodingResults_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_GeocodingResults_descriptor, - new java.lang.String[] { - "Origin", "Destination", "Intermediates", - }); - internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_maps_routing_v2_GeocodedWaypoint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor, - new java.lang.String[] { - "GeocoderStatus", - "IntermediateWaypointRequestIndex", - "Type", - "PartialMatch", - "PlaceId", - "IntermediateWaypointRequestIndex", - }); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java deleted file mode 100644 index 2152d9a5329e..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java +++ /dev/null @@ -1,75 +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/maps/routing/v2/location.proto - -package com.google.maps.routing.v2; - -public final class LocationProto { - private LocationProto() {} - - 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_maps_routing_v2_Location_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_Location_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/maps/routing/v2/location.proto\022" - + "\026google.maps.routing.v2\032\036google/protobuf" - + "/wrappers.proto\032\030google/type/latlng.prot" - + "o\"^\n\010Location\022$\n\007lat_lng\030\001 \001(\0132\023.google." - + "type.LatLng\022,\n\007heading\030\002 \001(\0132\033.google.pr" - + "otobuf.Int32ValueB\302\001\n\032com.google.maps.ro" - + "uting.v2B\rLocationProtoP\001Z:cloud.google." - + "com/go/maps/routing/apiv2/routingpb;rout" - + "ingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Routing.V" - + "2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Google::Map" - + "s::Routing::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.type.LatLngProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_Location_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_Location_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_Location_descriptor, - new java.lang.String[] { - "LatLng", "Heading", - }); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.type.LatLngProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java deleted file mode 100644 index 84ab1c508a07..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java +++ /dev/null @@ -1,61 +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/maps/routing/v2/maneuver.proto - -package com.google.maps.routing.v2; - -public final class ManeuverProto { - private ManeuverProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - 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/maps/routing/v2/maneuver.proto\022" - + "\026google.maps.routing.v2*\332\002\n\010Maneuver\022\030\n\024" - + "MANEUVER_UNSPECIFIED\020\000\022\024\n\020TURN_SLIGHT_LE" - + "FT\020\001\022\023\n\017TURN_SHARP_LEFT\020\002\022\016\n\nUTURN_LEFT\020" - + "\003\022\r\n\tTURN_LEFT\020\004\022\025\n\021TURN_SLIGHT_RIGHT\020\005\022" - + "\024\n\020TURN_SHARP_RIGHT\020\006\022\017\n\013UTURN_RIGHT\020\007\022\016" - + "\n\nTURN_RIGHT\020\010\022\014\n\010STRAIGHT\020\t\022\r\n\tRAMP_LEF" - + "T\020\n\022\016\n\nRAMP_RIGHT\020\013\022\t\n\005MERGE\020\014\022\r\n\tFORK_L" - + "EFT\020\r\022\016\n\nFORK_RIGHT\020\016\022\t\n\005FERRY\020\017\022\017\n\013FERR" - + "Y_TRAIN\020\020\022\023\n\017ROUNDABOUT_LEFT\020\021\022\024\n\020ROUNDA" - + "BOUT_RIGHT\020\022B\302\001\n\032com.google.maps.routing" - + ".v2B\rManeuverProtoP\001Z:cloud.google.com/g" - + "o/maps/routing/apiv2/routingpb;routingpb" - + "\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026G" - + "oogle\\Maps\\Routing\\V2\352\002\031Google::Maps::Ro" - + "uting::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java deleted file mode 100644 index f4ad1cc0155f..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java +++ /dev/null @@ -1,73 +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/maps/routing/v2/navigation_instruction.proto - -package com.google.maps.routing.v2; - -public final class NavigationInstructionProto { - private NavigationInstructionProto() {} - - 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_maps_routing_v2_NavigationInstruction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/maps/routing/v2/navigation_inst" - + "ruction.proto\022\026google.maps.routing.v2\032%g" - + "oogle/maps/routing/v2/maneuver.proto\"a\n\025" - + "NavigationInstruction\0222\n\010maneuver\030\001 \001(\0162" - + " .google.maps.routing.v2.Maneuver\022\024\n\014ins" - + "tructions\030\002 \001(\tB\317\001\n\032com.google.maps.rout" - + "ing.v2B\032NavigationInstructionProtoP\001Z:cl" - + "oud.google.com/go/maps/routing/apiv2/rou" - + "tingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Map" - + "s.Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031" - + "Google::Maps::Routing::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.maps.routing.v2.ManeuverProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_NavigationInstruction_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_NavigationInstruction_descriptor, - new java.lang.String[] { - "Maneuver", "Instructions", - }); - com.google.maps.routing.v2.ManeuverProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java deleted file mode 100644 index adeaa9dc4f5f..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java +++ /dev/null @@ -1,77 +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/maps/routing/v2/polyline.proto - -package com.google.maps.routing.v2; - -public final class PolylineProto { - private PolylineProto() {} - - 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_maps_routing_v2_Polyline_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_Polyline_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/maps/routing/v2/polyline.proto\022" - + "\026google.maps.routing.v2\032\034google/protobuf" - + "/struct.proto\"o\n\010Polyline\022\032\n\020encoded_pol" - + "yline\030\001 \001(\tH\000\0226\n\023geo_json_linestring\030\002 \001" - + "(\0132\027.google.protobuf.StructH\000B\017\n\rpolylin" - + "e_type*S\n\017PolylineQuality\022 \n\034POLYLINE_QU" - + "ALITY_UNSPECIFIED\020\000\022\020\n\014HIGH_QUALITY\020\001\022\014\n" - + "\010OVERVIEW\020\002*d\n\020PolylineEncoding\022!\n\035POLYL" - + "INE_ENCODING_UNSPECIFIED\020\000\022\024\n\020ENCODED_PO" - + "LYLINE\020\001\022\027\n\023GEO_JSON_LINESTRING\020\002B\302\001\n\032co" - + "m.google.maps.routing.v2B\rPolylineProtoP" - + "\001Z:cloud.google.com/go/maps/routing/apiv" - + "2/routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Googl" - + "e.Maps.Routing.V2\312\002\026Google\\Maps\\Routing\\" - + "V2\352\002\031Google::Maps::Routing::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.StructProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_Polyline_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_Polyline_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_Polyline_descriptor, - new java.lang.String[] { - "EncodedPolyline", "GeoJsonLinestring", "PolylineType", - }); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java deleted file mode 100644 index 745173d81497..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java +++ /dev/null @@ -1,3630 +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/maps/routing/v2/route.proto - -package com.google.maps.routing.v2; - -/** - * - * - *
- * Encapsulates a route, which consists of a series of connected road segments
- * that join beginning, ending, and intermediate waypoints.
- * 
- * - * Protobuf type {@code google.maps.routing.v2.Route} - */ -public final class Route extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.maps.routing.v2.Route) - RouteOrBuilder { - private static final long serialVersionUID = 0L; - // Use Route.newBuilder() to construct. - private Route(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Route() { - routeLabels_ = java.util.Collections.emptyList(); - legs_ = java.util.Collections.emptyList(); - description_ = ""; - warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); - routeToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Route(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_Route_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_Route_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.Route.class, com.google.maps.routing.v2.Route.Builder.class); - } - - public static final int ROUTE_LABELS_FIELD_NUMBER = 13; - - @SuppressWarnings("serial") - private java.util.List routeLabels_; - - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.maps.routing.v2.RouteLabel> - routeLabels_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.maps.routing.v2.RouteLabel>() { - public com.google.maps.routing.v2.RouteLabel convert(java.lang.Integer from) { - com.google.maps.routing.v2.RouteLabel result = - com.google.maps.routing.v2.RouteLabel.forNumber(from); - return result == null ? com.google.maps.routing.v2.RouteLabel.UNRECOGNIZED : result; - } - }; - /** - * - * - *
-   * Labels for the `Route` that are useful to identify specific properties
-   * of the route to compare against others.
-   * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @return A list containing the routeLabels. - */ - @java.lang.Override - public java.util.List getRouteLabelsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.RouteLabel>( - routeLabels_, routeLabels_converter_); - } - /** - * - * - *
-   * Labels for the `Route` that are useful to identify specific properties
-   * of the route to compare against others.
-   * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @return The count of routeLabels. - */ - @java.lang.Override - public int getRouteLabelsCount() { - return routeLabels_.size(); - } - /** - * - * - *
-   * Labels for the `Route` that are useful to identify specific properties
-   * of the route to compare against others.
-   * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @param index The index of the element to return. - * @return The routeLabels at the given index. - */ - @java.lang.Override - public com.google.maps.routing.v2.RouteLabel getRouteLabels(int index) { - return routeLabels_converter_.convert(routeLabels_.get(index)); - } - /** - * - * - *
-   * Labels for the `Route` that are useful to identify specific properties
-   * of the route to compare against others.
-   * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @return A list containing the enum numeric values on the wire for routeLabels. - */ - @java.lang.Override - public java.util.List getRouteLabelsValueList() { - return routeLabels_; - } - /** - * - * - *
-   * Labels for the `Route` that are useful to identify specific properties
-   * of the route to compare against others.
-   * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of routeLabels at the given index. - */ - @java.lang.Override - public int getRouteLabelsValue(int index) { - return routeLabels_.get(index); - } - - private int routeLabelsMemoizedSerializedSize; - - public static final int LEGS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List legs_; - /** - * - * - *
-   * A collection of legs (path segments between waypoints) that make-up the
-   * route. Each leg corresponds to the trip between two non-`via`
-   * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-   * intermediate waypoints has only one leg. A route that includes one
-   * non-`via` intermediate waypoint has two legs. A route that includes one
-   * `via` intermediate waypoint has one leg. The order of the legs matches the
-   * order of Waypoints from `origin` to `intermediates` to `destination`.
-   * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - @java.lang.Override - public java.util.List getLegsList() { - return legs_; - } - /** - * - * - *
-   * A collection of legs (path segments between waypoints) that make-up the
-   * route. Each leg corresponds to the trip between two non-`via`
-   * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-   * intermediate waypoints has only one leg. A route that includes one
-   * non-`via` intermediate waypoint has two legs. A route that includes one
-   * `via` intermediate waypoint has one leg. The order of the legs matches the
-   * order of Waypoints from `origin` to `intermediates` to `destination`.
-   * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - @java.lang.Override - public java.util.List - getLegsOrBuilderList() { - return legs_; - } - /** - * - * - *
-   * A collection of legs (path segments between waypoints) that make-up the
-   * route. Each leg corresponds to the trip between two non-`via`
-   * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-   * intermediate waypoints has only one leg. A route that includes one
-   * non-`via` intermediate waypoint has two legs. A route that includes one
-   * `via` intermediate waypoint has one leg. The order of the legs matches the
-   * order of Waypoints from `origin` to `intermediates` to `destination`.
-   * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - @java.lang.Override - public int getLegsCount() { - return legs_.size(); - } - /** - * - * - *
-   * A collection of legs (path segments between waypoints) that make-up the
-   * route. Each leg corresponds to the trip between two non-`via`
-   * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-   * intermediate waypoints has only one leg. A route that includes one
-   * non-`via` intermediate waypoint has two legs. A route that includes one
-   * `via` intermediate waypoint has one leg. The order of the legs matches the
-   * order of Waypoints from `origin` to `intermediates` to `destination`.
-   * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - @java.lang.Override - public com.google.maps.routing.v2.RouteLeg getLegs(int index) { - return legs_.get(index); - } - /** - * - * - *
-   * A collection of legs (path segments between waypoints) that make-up the
-   * route. Each leg corresponds to the trip between two non-`via`
-   * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-   * intermediate waypoints has only one leg. A route that includes one
-   * non-`via` intermediate waypoint has two legs. A route that includes one
-   * `via` intermediate waypoint has one leg. The order of the legs matches the
-   * order of Waypoints from `origin` to `intermediates` to `destination`.
-   * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - @java.lang.Override - public com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(int index) { - return legs_.get(index); - } - - public static final int DISTANCE_METERS_FIELD_NUMBER = 2; - private int distanceMeters_ = 0; - /** - * - * - *
-   * The travel distance of the route, in meters.
-   * 
- * - * int32 distance_meters = 2; - * - * @return The distanceMeters. - */ - @java.lang.Override - public int getDistanceMeters() { - return distanceMeters_; - } - - public static final int DURATION_FIELD_NUMBER = 3; - private com.google.protobuf.Duration duration_; - /** - * - * - *
-   * The length of time needed to navigate the route. If you set the
-   * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
-   * `static_duration`. If you set the `routing_preference` to either
-   * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
-   * taking traffic conditions into account.
-   * 
- * - * .google.protobuf.Duration duration = 3; - * - * @return Whether the duration field is set. - */ - @java.lang.Override - public boolean hasDuration() { - return duration_ != null; - } - /** - * - * - *
-   * The length of time needed to navigate the route. If you set the
-   * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
-   * `static_duration`. If you set the `routing_preference` to either
-   * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
-   * taking traffic conditions into account.
-   * 
- * - * .google.protobuf.Duration duration = 3; - * - * @return The duration. - */ - @java.lang.Override - public com.google.protobuf.Duration getDuration() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - /** - * - * - *
-   * The length of time needed to navigate the route. If you set the
-   * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
-   * `static_duration`. If you set the `routing_preference` to either
-   * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
-   * taking traffic conditions into account.
-   * 
- * - * .google.protobuf.Duration duration = 3; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - - public static final int STATIC_DURATION_FIELD_NUMBER = 4; - private com.google.protobuf.Duration staticDuration_; - /** - * - * - *
-   * The duration of traveling through the route without taking traffic
-   * conditions into consideration.
-   * 
- * - * .google.protobuf.Duration static_duration = 4; - * - * @return Whether the staticDuration field is set. - */ - @java.lang.Override - public boolean hasStaticDuration() { - return staticDuration_ != null; - } - /** - * - * - *
-   * The duration of traveling through the route without taking traffic
-   * conditions into consideration.
-   * 
- * - * .google.protobuf.Duration static_duration = 4; - * - * @return The staticDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getStaticDuration() { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } - /** - * - * - *
-   * The duration of traveling through the route without taking traffic
-   * conditions into consideration.
-   * 
- * - * .google.protobuf.Duration static_duration = 4; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } - - public static final int POLYLINE_FIELD_NUMBER = 5; - private com.google.maps.routing.v2.Polyline polyline_; - /** - * - * - *
-   * The overall route polyline. This polyline will be the combined polyline of
-   * all `legs`.
-   * 
- * - * .google.maps.routing.v2.Polyline polyline = 5; - * - * @return Whether the polyline field is set. - */ - @java.lang.Override - public boolean hasPolyline() { - return polyline_ != null; - } - /** - * - * - *
-   * The overall route polyline. This polyline will be the combined polyline of
-   * all `legs`.
-   * 
- * - * .google.maps.routing.v2.Polyline polyline = 5; - * - * @return The polyline. - */ - @java.lang.Override - public com.google.maps.routing.v2.Polyline getPolyline() { - return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; - } - /** - * - * - *
-   * The overall route polyline. This polyline will be the combined polyline of
-   * all `legs`.
-   * 
- * - * .google.maps.routing.v2.Polyline polyline = 5; - */ - @java.lang.Override - public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { - return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; - } - - public static final int DESCRIPTION_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - * - * - *
-   * A description of the route.
-   * 
- * - * string description = 6; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * A description of the route.
-   * 
- * - * string description = 6; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WARNINGS_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList warnings_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * An array of warnings to show when displaying the route.
-   * 
- * - * repeated string warnings = 7; - * - * @return A list containing the warnings. - */ - public com.google.protobuf.ProtocolStringList getWarningsList() { - return warnings_; - } - /** - * - * - *
-   * An array of warnings to show when displaying the route.
-   * 
- * - * repeated string warnings = 7; - * - * @return The count of warnings. - */ - public int getWarningsCount() { - return warnings_.size(); - } - /** - * - * - *
-   * An array of warnings to show when displaying the route.
-   * 
- * - * repeated string warnings = 7; - * - * @param index The index of the element to return. - * @return The warnings at the given index. - */ - public java.lang.String getWarnings(int index) { - return warnings_.get(index); - } - /** - * - * - *
-   * An array of warnings to show when displaying the route.
-   * 
- * - * repeated string warnings = 7; - * - * @param index The index of the value to return. - * @return The bytes of the warnings at the given index. - */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { - return warnings_.getByteString(index); - } - - public static final int VIEWPORT_FIELD_NUMBER = 8; - private com.google.geo.type.Viewport viewport_; - /** - * - * - *
-   * The viewport bounding box of the polyline.
-   * 
- * - * .google.geo.type.Viewport viewport = 8; - * - * @return Whether the viewport field is set. - */ - @java.lang.Override - public boolean hasViewport() { - return viewport_ != null; - } - /** - * - * - *
-   * The viewport bounding box of the polyline.
-   * 
- * - * .google.geo.type.Viewport viewport = 8; - * - * @return The viewport. - */ - @java.lang.Override - public com.google.geo.type.Viewport getViewport() { - return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; - } - /** - * - * - *
-   * The viewport bounding box of the polyline.
-   * 
- * - * .google.geo.type.Viewport viewport = 8; - */ - @java.lang.Override - public com.google.geo.type.ViewportOrBuilder getViewportOrBuilder() { - return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; - } - - public static final int TRAVEL_ADVISORY_FIELD_NUMBER = 9; - private com.google.maps.routing.v2.RouteTravelAdvisory travelAdvisory_; - /** - * - * - *
-   * Additional information about the route.
-   * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; - * - * @return Whether the travelAdvisory field is set. - */ - @java.lang.Override - public boolean hasTravelAdvisory() { - return travelAdvisory_ != null; - } - /** - * - * - *
-   * Additional information about the route.
-   * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; - * - * @return The travelAdvisory. - */ - @java.lang.Override - public com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory() { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } - /** - * - * - *
-   * Additional information about the route.
-   * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; - */ - @java.lang.Override - public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } - - public static final int ROUTE_TOKEN_FIELD_NUMBER = 12; - - @SuppressWarnings("serial") - private volatile java.lang.Object routeToken_ = ""; - /** - * - * - *
-   * Web-safe base64 encoded route token that can be passed to NavigationSDK,
-   * which allows the Navigation SDK to reconstruct the route during navigation,
-   * and in the event of rerouting honor the original intention when Routes
-   * ComputeRoutes is called. Customers should treat this token as an
-   * opaque blob.
-   * NOTE: `Route.route_token` is only available for requests that have set
-   * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
-   * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for
-   * requests that have Via waypoints.
-   * 
- * - * string route_token = 12; - * - * @return The routeToken. - */ - @java.lang.Override - public java.lang.String getRouteToken() { - java.lang.Object ref = routeToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - routeToken_ = s; - return s; - } - } - /** - * - * - *
-   * Web-safe base64 encoded route token that can be passed to NavigationSDK,
-   * which allows the Navigation SDK to reconstruct the route during navigation,
-   * and in the event of rerouting honor the original intention when Routes
-   * ComputeRoutes is called. Customers should treat this token as an
-   * opaque blob.
-   * NOTE: `Route.route_token` is only available for requests that have set
-   * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
-   * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for
-   * requests that have Via waypoints.
-   * 
- * - * string route_token = 12; - * - * @return The bytes for routeToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRouteTokenBytes() { - java.lang.Object ref = routeToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - routeToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - getSerializedSize(); - for (int i = 0; i < legs_.size(); i++) { - output.writeMessage(1, legs_.get(i)); - } - if (distanceMeters_ != 0) { - output.writeInt32(2, distanceMeters_); - } - if (duration_ != null) { - output.writeMessage(3, getDuration()); - } - if (staticDuration_ != null) { - output.writeMessage(4, getStaticDuration()); - } - if (polyline_ != null) { - output.writeMessage(5, getPolyline()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); - } - for (int i = 0; i < warnings_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, warnings_.getRaw(i)); - } - if (viewport_ != null) { - output.writeMessage(8, getViewport()); - } - if (travelAdvisory_ != null) { - output.writeMessage(9, getTravelAdvisory()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, routeToken_); - } - if (getRouteLabelsList().size() > 0) { - output.writeUInt32NoTag(106); - output.writeUInt32NoTag(routeLabelsMemoizedSerializedSize); - } - for (int i = 0; i < routeLabels_.size(); i++) { - output.writeEnumNoTag(routeLabels_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < legs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, legs_.get(i)); - } - if (distanceMeters_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, distanceMeters_); - } - if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDuration()); - } - if (staticDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStaticDuration()); - } - if (polyline_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPolyline()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); - } - { - int dataSize = 0; - for (int i = 0; i < warnings_.size(); i++) { - dataSize += computeStringSizeNoTag(warnings_.getRaw(i)); - } - size += dataSize; - size += 1 * getWarningsList().size(); - } - if (viewport_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getViewport()); - } - if (travelAdvisory_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getTravelAdvisory()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, routeToken_); - } - { - int dataSize = 0; - for (int i = 0; i < routeLabels_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(routeLabels_.get(i)); - } - size += dataSize; - if (!getRouteLabelsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - routeLabelsMemoizedSerializedSize = dataSize; - } - 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.maps.routing.v2.Route)) { - return super.equals(obj); - } - com.google.maps.routing.v2.Route other = (com.google.maps.routing.v2.Route) obj; - - if (!routeLabels_.equals(other.routeLabels_)) return false; - if (!getLegsList().equals(other.getLegsList())) return false; - if (getDistanceMeters() != other.getDistanceMeters()) return false; - if (hasDuration() != other.hasDuration()) return false; - if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; - } - if (hasStaticDuration() != other.hasStaticDuration()) return false; - if (hasStaticDuration()) { - if (!getStaticDuration().equals(other.getStaticDuration())) return false; - } - if (hasPolyline() != other.hasPolyline()) return false; - if (hasPolyline()) { - if (!getPolyline().equals(other.getPolyline())) return false; - } - if (!getDescription().equals(other.getDescription())) return false; - if (!getWarningsList().equals(other.getWarningsList())) return false; - if (hasViewport() != other.hasViewport()) return false; - if (hasViewport()) { - if (!getViewport().equals(other.getViewport())) return false; - } - if (hasTravelAdvisory() != other.hasTravelAdvisory()) return false; - if (hasTravelAdvisory()) { - if (!getTravelAdvisory().equals(other.getTravelAdvisory())) return false; - } - if (!getRouteToken().equals(other.getRouteToken())) 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(); - if (getRouteLabelsCount() > 0) { - hash = (37 * hash) + ROUTE_LABELS_FIELD_NUMBER; - hash = (53 * hash) + routeLabels_.hashCode(); - } - if (getLegsCount() > 0) { - hash = (37 * hash) + LEGS_FIELD_NUMBER; - hash = (53 * hash) + getLegsList().hashCode(); - } - hash = (37 * hash) + DISTANCE_METERS_FIELD_NUMBER; - hash = (53 * hash) + getDistanceMeters(); - if (hasDuration()) { - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().hashCode(); - } - if (hasStaticDuration()) { - hash = (37 * hash) + STATIC_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getStaticDuration().hashCode(); - } - if (hasPolyline()) { - hash = (37 * hash) + POLYLINE_FIELD_NUMBER; - hash = (53 * hash) + getPolyline().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (getWarningsCount() > 0) { - hash = (37 * hash) + WARNINGS_FIELD_NUMBER; - hash = (53 * hash) + getWarningsList().hashCode(); - } - if (hasViewport()) { - hash = (37 * hash) + VIEWPORT_FIELD_NUMBER; - hash = (53 * hash) + getViewport().hashCode(); - } - if (hasTravelAdvisory()) { - hash = (37 * hash) + TRAVEL_ADVISORY_FIELD_NUMBER; - hash = (53 * hash) + getTravelAdvisory().hashCode(); - } - hash = (37 * hash) + ROUTE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getRouteToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.maps.routing.v2.Route parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.maps.routing.v2.Route parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.maps.routing.v2.Route parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.maps.routing.v2.Route 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.maps.routing.v2.Route parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.maps.routing.v2.Route parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.maps.routing.v2.Route parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.maps.routing.v2.Route 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.maps.routing.v2.Route parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.maps.routing.v2.Route 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.maps.routing.v2.Route parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.maps.routing.v2.Route 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.maps.routing.v2.Route 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 route, which consists of a series of connected road segments
-   * that join beginning, ending, and intermediate waypoints.
-   * 
- * - * Protobuf type {@code google.maps.routing.v2.Route} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.Route) - com.google.maps.routing.v2.RouteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_Route_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_Route_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.Route.class, - com.google.maps.routing.v2.Route.Builder.class); - } - - // Construct using com.google.maps.routing.v2.Route.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - routeLabels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (legsBuilder_ == null) { - legs_ = java.util.Collections.emptyList(); - } else { - legs_ = null; - legsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - distanceMeters_ = 0; - duration_ = null; - if (durationBuilder_ != null) { - durationBuilder_.dispose(); - durationBuilder_ = null; - } - staticDuration_ = null; - if (staticDurationBuilder_ != null) { - staticDurationBuilder_.dispose(); - staticDurationBuilder_ = null; - } - polyline_ = null; - if (polylineBuilder_ != null) { - polylineBuilder_.dispose(); - polylineBuilder_ = null; - } - description_ = ""; - warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); - viewport_ = null; - if (viewportBuilder_ != null) { - viewportBuilder_.dispose(); - viewportBuilder_ = null; - } - travelAdvisory_ = null; - if (travelAdvisoryBuilder_ != null) { - travelAdvisoryBuilder_.dispose(); - travelAdvisoryBuilder_ = null; - } - routeToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_Route_descriptor; - } - - @java.lang.Override - public com.google.maps.routing.v2.Route getDefaultInstanceForType() { - return com.google.maps.routing.v2.Route.getDefaultInstance(); - } - - @java.lang.Override - public com.google.maps.routing.v2.Route build() { - com.google.maps.routing.v2.Route result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.maps.routing.v2.Route buildPartial() { - com.google.maps.routing.v2.Route result = new com.google.maps.routing.v2.Route(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.maps.routing.v2.Route result) { - if (((bitField0_ & 0x00000001) != 0)) { - routeLabels_ = java.util.Collections.unmodifiableList(routeLabels_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.routeLabels_ = routeLabels_; - if (legsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - legs_ = java.util.Collections.unmodifiableList(legs_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.legs_ = legs_; - } else { - result.legs_ = legsBuilder_.build(); - } - } - - private void buildPartial0(com.google.maps.routing.v2.Route result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.distanceMeters_ = distanceMeters_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.staticDuration_ = - staticDurationBuilder_ == null ? staticDuration_ : staticDurationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.polyline_ = polylineBuilder_ == null ? polyline_ : polylineBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - warnings_.makeImmutable(); - result.warnings_ = warnings_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.viewport_ = viewportBuilder_ == null ? viewport_ : viewportBuilder_.build(); - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.travelAdvisory_ = - travelAdvisoryBuilder_ == null ? travelAdvisory_ : travelAdvisoryBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.routeToken_ = routeToken_; - } - } - - @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.maps.routing.v2.Route) { - return mergeFrom((com.google.maps.routing.v2.Route) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.maps.routing.v2.Route other) { - if (other == com.google.maps.routing.v2.Route.getDefaultInstance()) return this; - if (!other.routeLabels_.isEmpty()) { - if (routeLabels_.isEmpty()) { - routeLabels_ = other.routeLabels_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRouteLabelsIsMutable(); - routeLabels_.addAll(other.routeLabels_); - } - onChanged(); - } - if (legsBuilder_ == null) { - if (!other.legs_.isEmpty()) { - if (legs_.isEmpty()) { - legs_ = other.legs_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureLegsIsMutable(); - legs_.addAll(other.legs_); - } - onChanged(); - } - } else { - if (!other.legs_.isEmpty()) { - if (legsBuilder_.isEmpty()) { - legsBuilder_.dispose(); - legsBuilder_ = null; - legs_ = other.legs_; - bitField0_ = (bitField0_ & ~0x00000002); - legsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLegsFieldBuilder() - : null; - } else { - legsBuilder_.addAllMessages(other.legs_); - } - } - } - if (other.getDistanceMeters() != 0) { - setDistanceMeters(other.getDistanceMeters()); - } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - if (other.hasStaticDuration()) { - mergeStaticDuration(other.getStaticDuration()); - } - if (other.hasPolyline()) { - mergePolyline(other.getPolyline()); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000040; - onChanged(); - } - if (!other.warnings_.isEmpty()) { - if (warnings_.isEmpty()) { - warnings_ = other.warnings_; - bitField0_ |= 0x00000080; - } else { - ensureWarningsIsMutable(); - warnings_.addAll(other.warnings_); - } - onChanged(); - } - if (other.hasViewport()) { - mergeViewport(other.getViewport()); - } - if (other.hasTravelAdvisory()) { - mergeTravelAdvisory(other.getTravelAdvisory()); - } - if (!other.getRouteToken().isEmpty()) { - routeToken_ = other.routeToken_; - bitField0_ |= 0x00000400; - onChanged(); - } - 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 10: - { - com.google.maps.routing.v2.RouteLeg m = - input.readMessage( - com.google.maps.routing.v2.RouteLeg.parser(), extensionRegistry); - if (legsBuilder_ == null) { - ensureLegsIsMutable(); - legs_.add(m); - } else { - legsBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - distanceMeters_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 26: - { - input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - input.readMessage(getStaticDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: - { - input.readMessage(getPolylineFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 50: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureWarningsIsMutable(); - warnings_.add(s); - break; - } // case 58 - case 66: - { - input.readMessage(getViewportFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 74: - { - input.readMessage(getTravelAdvisoryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 74 - case 98: - { - routeToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 98 - case 104: - { - int tmpRaw = input.readEnum(); - ensureRouteLabelsIsMutable(); - routeLabels_.add(tmpRaw); - break; - } // case 104 - case 106: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureRouteLabelsIsMutable(); - routeLabels_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 106 - 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 java.util.List routeLabels_ = java.util.Collections.emptyList(); - - private void ensureRouteLabelsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - routeLabels_ = new java.util.ArrayList(routeLabels_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Labels for the `Route` that are useful to identify specific properties
-     * of the route to compare against others.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @return A list containing the routeLabels. - */ - public java.util.List getRouteLabelsList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.RouteLabel>( - routeLabels_, routeLabels_converter_); - } - /** - * - * - *
-     * Labels for the `Route` that are useful to identify specific properties
-     * of the route to compare against others.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @return The count of routeLabels. - */ - public int getRouteLabelsCount() { - return routeLabels_.size(); - } - /** - * - * - *
-     * Labels for the `Route` that are useful to identify specific properties
-     * of the route to compare against others.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @param index The index of the element to return. - * @return The routeLabels at the given index. - */ - public com.google.maps.routing.v2.RouteLabel getRouteLabels(int index) { - return routeLabels_converter_.convert(routeLabels_.get(index)); - } - /** - * - * - *
-     * Labels for the `Route` that are useful to identify specific properties
-     * of the route to compare against others.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @param index The index to set the value at. - * @param value The routeLabels to set. - * @return This builder for chaining. - */ - public Builder setRouteLabels(int index, com.google.maps.routing.v2.RouteLabel value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRouteLabelsIsMutable(); - routeLabels_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Labels for the `Route` that are useful to identify specific properties
-     * of the route to compare against others.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @param value The routeLabels to add. - * @return This builder for chaining. - */ - public Builder addRouteLabels(com.google.maps.routing.v2.RouteLabel value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRouteLabelsIsMutable(); - routeLabels_.add(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
-     * Labels for the `Route` that are useful to identify specific properties
-     * of the route to compare against others.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @param values The routeLabels to add. - * @return This builder for chaining. - */ - public Builder addAllRouteLabels( - java.lang.Iterable values) { - ensureRouteLabelsIsMutable(); - for (com.google.maps.routing.v2.RouteLabel value : values) { - routeLabels_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - * - * - *
-     * Labels for the `Route` that are useful to identify specific properties
-     * of the route to compare against others.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @return This builder for chaining. - */ - public Builder clearRouteLabels() { - routeLabels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Labels for the `Route` that are useful to identify specific properties
-     * of the route to compare against others.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @return A list containing the enum numeric values on the wire for routeLabels. - */ - public java.util.List getRouteLabelsValueList() { - return java.util.Collections.unmodifiableList(routeLabels_); - } - /** - * - * - *
-     * Labels for the `Route` that are useful to identify specific properties
-     * of the route to compare against others.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of routeLabels at the given index. - */ - public int getRouteLabelsValue(int index) { - return routeLabels_.get(index); - } - /** - * - * - *
-     * Labels for the `Route` that are useful to identify specific properties
-     * of the route to compare against others.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for routeLabels to set. - * @return This builder for chaining. - */ - public Builder setRouteLabelsValue(int index, int value) { - ensureRouteLabelsIsMutable(); - routeLabels_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Labels for the `Route` that are useful to identify specific properties
-     * of the route to compare against others.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @param value The enum numeric value on the wire for routeLabels to add. - * @return This builder for chaining. - */ - public Builder addRouteLabelsValue(int value) { - ensureRouteLabelsIsMutable(); - routeLabels_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Labels for the `Route` that are useful to identify specific properties
-     * of the route to compare against others.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * - * @param values The enum numeric values on the wire for routeLabels to add. - * @return This builder for chaining. - */ - public Builder addAllRouteLabelsValue(java.lang.Iterable values) { - ensureRouteLabelsIsMutable(); - for (int value : values) { - routeLabels_.add(value); - } - onChanged(); - return this; - } - - private java.util.List legs_ = - java.util.Collections.emptyList(); - - private void ensureLegsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - legs_ = new java.util.ArrayList(legs_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteLeg, - com.google.maps.routing.v2.RouteLeg.Builder, - com.google.maps.routing.v2.RouteLegOrBuilder> - legsBuilder_; - - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public java.util.List getLegsList() { - if (legsBuilder_ == null) { - return java.util.Collections.unmodifiableList(legs_); - } else { - return legsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public int getLegsCount() { - if (legsBuilder_ == null) { - return legs_.size(); - } else { - return legsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public com.google.maps.routing.v2.RouteLeg getLegs(int index) { - if (legsBuilder_ == null) { - return legs_.get(index); - } else { - return legsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public Builder setLegs(int index, com.google.maps.routing.v2.RouteLeg value) { - if (legsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLegsIsMutable(); - legs_.set(index, value); - onChanged(); - } else { - legsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public Builder setLegs(int index, com.google.maps.routing.v2.RouteLeg.Builder builderForValue) { - if (legsBuilder_ == null) { - ensureLegsIsMutable(); - legs_.set(index, builderForValue.build()); - onChanged(); - } else { - legsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public Builder addLegs(com.google.maps.routing.v2.RouteLeg value) { - if (legsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLegsIsMutable(); - legs_.add(value); - onChanged(); - } else { - legsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public Builder addLegs(int index, com.google.maps.routing.v2.RouteLeg value) { - if (legsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLegsIsMutable(); - legs_.add(index, value); - onChanged(); - } else { - legsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public Builder addLegs(com.google.maps.routing.v2.RouteLeg.Builder builderForValue) { - if (legsBuilder_ == null) { - ensureLegsIsMutable(); - legs_.add(builderForValue.build()); - onChanged(); - } else { - legsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public Builder addLegs(int index, com.google.maps.routing.v2.RouteLeg.Builder builderForValue) { - if (legsBuilder_ == null) { - ensureLegsIsMutable(); - legs_.add(index, builderForValue.build()); - onChanged(); - } else { - legsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public Builder addAllLegs( - java.lang.Iterable values) { - if (legsBuilder_ == null) { - ensureLegsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, legs_); - onChanged(); - } else { - legsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public Builder clearLegs() { - if (legsBuilder_ == null) { - legs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - legsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public Builder removeLegs(int index) { - if (legsBuilder_ == null) { - ensureLegsIsMutable(); - legs_.remove(index); - onChanged(); - } else { - legsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public com.google.maps.routing.v2.RouteLeg.Builder getLegsBuilder(int index) { - return getLegsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(int index) { - if (legsBuilder_ == null) { - return legs_.get(index); - } else { - return legsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public java.util.List - getLegsOrBuilderList() { - if (legsBuilder_ != null) { - return legsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(legs_); - } - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public com.google.maps.routing.v2.RouteLeg.Builder addLegsBuilder() { - return getLegsFieldBuilder() - .addBuilder(com.google.maps.routing.v2.RouteLeg.getDefaultInstance()); - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public com.google.maps.routing.v2.RouteLeg.Builder addLegsBuilder(int index) { - return getLegsFieldBuilder() - .addBuilder(index, com.google.maps.routing.v2.RouteLeg.getDefaultInstance()); - } - /** - * - * - *
-     * A collection of legs (path segments between waypoints) that make-up the
-     * route. Each leg corresponds to the trip between two non-`via`
-     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
-     * intermediate waypoints has only one leg. A route that includes one
-     * non-`via` intermediate waypoint has two legs. A route that includes one
-     * `via` intermediate waypoint has one leg. The order of the legs matches the
-     * order of Waypoints from `origin` to `intermediates` to `destination`.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLeg legs = 1; - */ - public java.util.List getLegsBuilderList() { - return getLegsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteLeg, - com.google.maps.routing.v2.RouteLeg.Builder, - com.google.maps.routing.v2.RouteLegOrBuilder> - getLegsFieldBuilder() { - if (legsBuilder_ == null) { - legsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteLeg, - com.google.maps.routing.v2.RouteLeg.Builder, - com.google.maps.routing.v2.RouteLegOrBuilder>( - legs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - legs_ = null; - } - return legsBuilder_; - } - - private int distanceMeters_; - /** - * - * - *
-     * The travel distance of the route, in meters.
-     * 
- * - * int32 distance_meters = 2; - * - * @return The distanceMeters. - */ - @java.lang.Override - public int getDistanceMeters() { - return distanceMeters_; - } - /** - * - * - *
-     * The travel distance of the route, in meters.
-     * 
- * - * int32 distance_meters = 2; - * - * @param value The distanceMeters to set. - * @return This builder for chaining. - */ - public Builder setDistanceMeters(int value) { - - distanceMeters_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The travel distance of the route, in meters.
-     * 
- * - * int32 distance_meters = 2; - * - * @return This builder for chaining. - */ - public Builder clearDistanceMeters() { - bitField0_ = (bitField0_ & ~0x00000004); - distanceMeters_ = 0; - onChanged(); - return this; - } - - 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_; - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If you set the `routing_preference` to either
-     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
-     * taking traffic conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 3; - * - * @return Whether the duration field is set. - */ - public boolean hasDuration() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If you set the `routing_preference` to either
-     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
-     * taking traffic conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 3; - * - * @return The duration. - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } else { - return durationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If you set the `routing_preference` to either
-     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
-     * taking traffic conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 3; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - duration_ = value; - } else { - durationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If you set the `routing_preference` to either
-     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
-     * taking traffic conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 3; - */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If you set the `routing_preference` to either
-     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
-     * taking traffic conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 3; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && duration_ != null - && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { - getDurationBuilder().mergeFrom(value); - } else { - duration_ = value; - } - } else { - durationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If you set the `routing_preference` to either
-     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
-     * taking traffic conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 3; - */ - public Builder clearDuration() { - bitField0_ = (bitField0_ & ~0x00000008); - duration_ = null; - if (durationBuilder_ != null) { - durationBuilder_.dispose(); - durationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If you set the `routing_preference` to either
-     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
-     * taking traffic conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 3; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If you set the `routing_preference` to either
-     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
-     * taking traffic conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 3; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); - } else { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If you set the `routing_preference` to either
-     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
-     * taking traffic conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - 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()); - duration_ = null; - } - return durationBuilder_; - } - - private com.google.protobuf.Duration staticDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - staticDurationBuilder_; - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 4; - * - * @return Whether the staticDuration field is set. - */ - public boolean hasStaticDuration() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 4; - * - * @return The staticDuration. - */ - public com.google.protobuf.Duration getStaticDuration() { - if (staticDurationBuilder_ == null) { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } else { - return staticDurationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 4; - */ - public Builder setStaticDuration(com.google.protobuf.Duration value) { - if (staticDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - staticDuration_ = value; - } else { - staticDurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 4; - */ - public Builder setStaticDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (staticDurationBuilder_ == null) { - staticDuration_ = builderForValue.build(); - } else { - staticDurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 4; - */ - public Builder mergeStaticDuration(com.google.protobuf.Duration value) { - if (staticDurationBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && staticDuration_ != null - && staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { - getStaticDurationBuilder().mergeFrom(value); - } else { - staticDuration_ = value; - } - } else { - staticDurationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 4; - */ - public Builder clearStaticDuration() { - bitField0_ = (bitField0_ & ~0x00000010); - staticDuration_ = null; - if (staticDurationBuilder_ != null) { - staticDurationBuilder_.dispose(); - staticDurationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 4; - */ - public com.google.protobuf.Duration.Builder getStaticDurationBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getStaticDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 4; - */ - public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { - if (staticDurationBuilder_ != null) { - return staticDurationBuilder_.getMessageOrBuilder(); - } else { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getStaticDurationFieldBuilder() { - if (staticDurationBuilder_ == null) { - staticDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getStaticDuration(), getParentForChildren(), isClean()); - staticDuration_ = null; - } - return staticDurationBuilder_; - } - - private com.google.maps.routing.v2.Polyline polyline_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Polyline, - com.google.maps.routing.v2.Polyline.Builder, - com.google.maps.routing.v2.PolylineOrBuilder> - polylineBuilder_; - /** - * - * - *
-     * The overall route polyline. This polyline will be the combined polyline of
-     * all `legs`.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 5; - * - * @return Whether the polyline field is set. - */ - public boolean hasPolyline() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-     * The overall route polyline. This polyline will be the combined polyline of
-     * all `legs`.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 5; - * - * @return The polyline. - */ - public com.google.maps.routing.v2.Polyline getPolyline() { - if (polylineBuilder_ == null) { - return polyline_ == null - ? com.google.maps.routing.v2.Polyline.getDefaultInstance() - : polyline_; - } else { - return polylineBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The overall route polyline. This polyline will be the combined polyline of
-     * all `legs`.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 5; - */ - public Builder setPolyline(com.google.maps.routing.v2.Polyline value) { - if (polylineBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - polyline_ = value; - } else { - polylineBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The overall route polyline. This polyline will be the combined polyline of
-     * all `legs`.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 5; - */ - public Builder setPolyline(com.google.maps.routing.v2.Polyline.Builder builderForValue) { - if (polylineBuilder_ == null) { - polyline_ = builderForValue.build(); - } else { - polylineBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The overall route polyline. This polyline will be the combined polyline of
-     * all `legs`.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 5; - */ - public Builder mergePolyline(com.google.maps.routing.v2.Polyline value) { - if (polylineBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && polyline_ != null - && polyline_ != com.google.maps.routing.v2.Polyline.getDefaultInstance()) { - getPolylineBuilder().mergeFrom(value); - } else { - polyline_ = value; - } - } else { - polylineBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The overall route polyline. This polyline will be the combined polyline of
-     * all `legs`.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 5; - */ - public Builder clearPolyline() { - bitField0_ = (bitField0_ & ~0x00000020); - polyline_ = null; - if (polylineBuilder_ != null) { - polylineBuilder_.dispose(); - polylineBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The overall route polyline. This polyline will be the combined polyline of
-     * all `legs`.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 5; - */ - public com.google.maps.routing.v2.Polyline.Builder getPolylineBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getPolylineFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The overall route polyline. This polyline will be the combined polyline of
-     * all `legs`.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 5; - */ - public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { - if (polylineBuilder_ != null) { - return polylineBuilder_.getMessageOrBuilder(); - } else { - return polyline_ == null - ? com.google.maps.routing.v2.Polyline.getDefaultInstance() - : polyline_; - } - } - /** - * - * - *
-     * The overall route polyline. This polyline will be the combined polyline of
-     * all `legs`.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Polyline, - com.google.maps.routing.v2.Polyline.Builder, - com.google.maps.routing.v2.PolylineOrBuilder> - getPolylineFieldBuilder() { - if (polylineBuilder_ == null) { - polylineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Polyline, - com.google.maps.routing.v2.Polyline.Builder, - com.google.maps.routing.v2.PolylineOrBuilder>( - getPolyline(), getParentForChildren(), isClean()); - polyline_ = null; - } - return polylineBuilder_; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * A description of the route.
-     * 
- * - * string description = 6; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A description of the route.
-     * 
- * - * string description = 6; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A description of the route.
-     * 
- * - * string description = 6; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * A description of the route.
-     * 
- * - * string description = 6; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * - * - *
-     * A description of the route.
-     * 
- * - * string description = 6; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList warnings_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureWarningsIsMutable() { - if (!warnings_.isModifiable()) { - warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); - } - bitField0_ |= 0x00000080; - } - /** - * - * - *
-     * An array of warnings to show when displaying the route.
-     * 
- * - * repeated string warnings = 7; - * - * @return A list containing the warnings. - */ - public com.google.protobuf.ProtocolStringList getWarningsList() { - warnings_.makeImmutable(); - return warnings_; - } - /** - * - * - *
-     * An array of warnings to show when displaying the route.
-     * 
- * - * repeated string warnings = 7; - * - * @return The count of warnings. - */ - public int getWarningsCount() { - return warnings_.size(); - } - /** - * - * - *
-     * An array of warnings to show when displaying the route.
-     * 
- * - * repeated string warnings = 7; - * - * @param index The index of the element to return. - * @return The warnings at the given index. - */ - public java.lang.String getWarnings(int index) { - return warnings_.get(index); - } - /** - * - * - *
-     * An array of warnings to show when displaying the route.
-     * 
- * - * repeated string warnings = 7; - * - * @param index The index of the value to return. - * @return The bytes of the warnings at the given index. - */ - public com.google.protobuf.ByteString getWarningsBytes(int index) { - return warnings_.getByteString(index); - } - /** - * - * - *
-     * An array of warnings to show when displaying the route.
-     * 
- * - * repeated string warnings = 7; - * - * @param index The index to set the value at. - * @param value The warnings to set. - * @return This builder for chaining. - */ - public Builder setWarnings(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); - warnings_.set(index, value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * An array of warnings to show when displaying the route.
-     * 
- * - * repeated string warnings = 7; - * - * @param value The warnings to add. - * @return This builder for chaining. - */ - public Builder addWarnings(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureWarningsIsMutable(); - warnings_.add(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * An array of warnings to show when displaying the route.
-     * 
- * - * repeated string warnings = 7; - * - * @param values The warnings to add. - * @return This builder for chaining. - */ - public Builder addAllWarnings(java.lang.Iterable values) { - ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * An array of warnings to show when displaying the route.
-     * 
- * - * repeated string warnings = 7; - * - * @return This builder for chaining. - */ - public Builder clearWarnings() { - warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * An array of warnings to show when displaying the route.
-     * 
- * - * repeated string warnings = 7; - * - * @param value The bytes of the warnings to add. - * @return This builder for chaining. - */ - public Builder addWarningsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureWarningsIsMutable(); - warnings_.add(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private com.google.geo.type.Viewport viewport_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.geo.type.Viewport, - com.google.geo.type.Viewport.Builder, - com.google.geo.type.ViewportOrBuilder> - viewportBuilder_; - /** - * - * - *
-     * The viewport bounding box of the polyline.
-     * 
- * - * .google.geo.type.Viewport viewport = 8; - * - * @return Whether the viewport field is set. - */ - public boolean hasViewport() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-     * The viewport bounding box of the polyline.
-     * 
- * - * .google.geo.type.Viewport viewport = 8; - * - * @return The viewport. - */ - public com.google.geo.type.Viewport getViewport() { - if (viewportBuilder_ == null) { - return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; - } else { - return viewportBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The viewport bounding box of the polyline.
-     * 
- * - * .google.geo.type.Viewport viewport = 8; - */ - public Builder setViewport(com.google.geo.type.Viewport value) { - if (viewportBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - viewport_ = value; - } else { - viewportBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * The viewport bounding box of the polyline.
-     * 
- * - * .google.geo.type.Viewport viewport = 8; - */ - public Builder setViewport(com.google.geo.type.Viewport.Builder builderForValue) { - if (viewportBuilder_ == null) { - viewport_ = builderForValue.build(); - } else { - viewportBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * The viewport bounding box of the polyline.
-     * 
- * - * .google.geo.type.Viewport viewport = 8; - */ - public Builder mergeViewport(com.google.geo.type.Viewport value) { - if (viewportBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && viewport_ != null - && viewport_ != com.google.geo.type.Viewport.getDefaultInstance()) { - getViewportBuilder().mergeFrom(value); - } else { - viewport_ = value; - } - } else { - viewportBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * The viewport bounding box of the polyline.
-     * 
- * - * .google.geo.type.Viewport viewport = 8; - */ - public Builder clearViewport() { - bitField0_ = (bitField0_ & ~0x00000100); - viewport_ = null; - if (viewportBuilder_ != null) { - viewportBuilder_.dispose(); - viewportBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The viewport bounding box of the polyline.
-     * 
- * - * .google.geo.type.Viewport viewport = 8; - */ - public com.google.geo.type.Viewport.Builder getViewportBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getViewportFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The viewport bounding box of the polyline.
-     * 
- * - * .google.geo.type.Viewport viewport = 8; - */ - public com.google.geo.type.ViewportOrBuilder getViewportOrBuilder() { - if (viewportBuilder_ != null) { - return viewportBuilder_.getMessageOrBuilder(); - } else { - return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; - } - } - /** - * - * - *
-     * The viewport bounding box of the polyline.
-     * 
- * - * .google.geo.type.Viewport viewport = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.geo.type.Viewport, - com.google.geo.type.Viewport.Builder, - com.google.geo.type.ViewportOrBuilder> - getViewportFieldBuilder() { - if (viewportBuilder_ == null) { - viewportBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.geo.type.Viewport, - com.google.geo.type.Viewport.Builder, - com.google.geo.type.ViewportOrBuilder>( - getViewport(), getParentForChildren(), isClean()); - viewport_ = null; - } - return viewportBuilder_; - } - - private com.google.maps.routing.v2.RouteTravelAdvisory travelAdvisory_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteTravelAdvisory, - com.google.maps.routing.v2.RouteTravelAdvisory.Builder, - com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder> - travelAdvisoryBuilder_; - /** - * - * - *
-     * Additional information about the route.
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; - * - * @return Whether the travelAdvisory field is set. - */ - public boolean hasTravelAdvisory() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-     * Additional information about the route.
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; - * - * @return The travelAdvisory. - */ - public com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory() { - if (travelAdvisoryBuilder_ == null) { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } else { - return travelAdvisoryBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Additional information about the route.
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; - */ - public Builder setTravelAdvisory(com.google.maps.routing.v2.RouteTravelAdvisory value) { - if (travelAdvisoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - travelAdvisory_ = value; - } else { - travelAdvisoryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Additional information about the route.
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; - */ - public Builder setTravelAdvisory( - com.google.maps.routing.v2.RouteTravelAdvisory.Builder builderForValue) { - if (travelAdvisoryBuilder_ == null) { - travelAdvisory_ = builderForValue.build(); - } else { - travelAdvisoryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Additional information about the route.
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; - */ - public Builder mergeTravelAdvisory(com.google.maps.routing.v2.RouteTravelAdvisory value) { - if (travelAdvisoryBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && travelAdvisory_ != null - && travelAdvisory_ - != com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance()) { - getTravelAdvisoryBuilder().mergeFrom(value); - } else { - travelAdvisory_ = value; - } - } else { - travelAdvisoryBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Additional information about the route.
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; - */ - public Builder clearTravelAdvisory() { - bitField0_ = (bitField0_ & ~0x00000200); - travelAdvisory_ = null; - if (travelAdvisoryBuilder_ != null) { - travelAdvisoryBuilder_.dispose(); - travelAdvisoryBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Additional information about the route.
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; - */ - public com.google.maps.routing.v2.RouteTravelAdvisory.Builder getTravelAdvisoryBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getTravelAdvisoryFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Additional information about the route.
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; - */ - public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() { - if (travelAdvisoryBuilder_ != null) { - return travelAdvisoryBuilder_.getMessageOrBuilder(); - } else { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } - } - /** - * - * - *
-     * Additional information about the route.
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteTravelAdvisory, - com.google.maps.routing.v2.RouteTravelAdvisory.Builder, - com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder> - getTravelAdvisoryFieldBuilder() { - if (travelAdvisoryBuilder_ == null) { - travelAdvisoryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteTravelAdvisory, - com.google.maps.routing.v2.RouteTravelAdvisory.Builder, - com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder>( - getTravelAdvisory(), getParentForChildren(), isClean()); - travelAdvisory_ = null; - } - return travelAdvisoryBuilder_; - } - - private java.lang.Object routeToken_ = ""; - /** - * - * - *
-     * Web-safe base64 encoded route token that can be passed to NavigationSDK,
-     * which allows the Navigation SDK to reconstruct the route during navigation,
-     * and in the event of rerouting honor the original intention when Routes
-     * ComputeRoutes is called. Customers should treat this token as an
-     * opaque blob.
-     * NOTE: `Route.route_token` is only available for requests that have set
-     * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for
-     * requests that have Via waypoints.
-     * 
- * - * string route_token = 12; - * - * @return The routeToken. - */ - public java.lang.String getRouteToken() { - java.lang.Object ref = routeToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - routeToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Web-safe base64 encoded route token that can be passed to NavigationSDK,
-     * which allows the Navigation SDK to reconstruct the route during navigation,
-     * and in the event of rerouting honor the original intention when Routes
-     * ComputeRoutes is called. Customers should treat this token as an
-     * opaque blob.
-     * NOTE: `Route.route_token` is only available for requests that have set
-     * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for
-     * requests that have Via waypoints.
-     * 
- * - * string route_token = 12; - * - * @return The bytes for routeToken. - */ - public com.google.protobuf.ByteString getRouteTokenBytes() { - java.lang.Object ref = routeToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - routeToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Web-safe base64 encoded route token that can be passed to NavigationSDK,
-     * which allows the Navigation SDK to reconstruct the route during navigation,
-     * and in the event of rerouting honor the original intention when Routes
-     * ComputeRoutes is called. Customers should treat this token as an
-     * opaque blob.
-     * NOTE: `Route.route_token` is only available for requests that have set
-     * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for
-     * requests that have Via waypoints.
-     * 
- * - * string route_token = 12; - * - * @param value The routeToken to set. - * @return This builder for chaining. - */ - public Builder setRouteToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - routeToken_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - * - * - *
-     * Web-safe base64 encoded route token that can be passed to NavigationSDK,
-     * which allows the Navigation SDK to reconstruct the route during navigation,
-     * and in the event of rerouting honor the original intention when Routes
-     * ComputeRoutes is called. Customers should treat this token as an
-     * opaque blob.
-     * NOTE: `Route.route_token` is only available for requests that have set
-     * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for
-     * requests that have Via waypoints.
-     * 
- * - * string route_token = 12; - * - * @return This builder for chaining. - */ - public Builder clearRouteToken() { - routeToken_ = getDefaultInstance().getRouteToken(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - return this; - } - /** - * - * - *
-     * Web-safe base64 encoded route token that can be passed to NavigationSDK,
-     * which allows the Navigation SDK to reconstruct the route during navigation,
-     * and in the event of rerouting honor the original intention when Routes
-     * ComputeRoutes is called. Customers should treat this token as an
-     * opaque blob.
-     * NOTE: `Route.route_token` is only available for requests that have set
-     * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for
-     * requests that have Via waypoints.
-     * 
- * - * string route_token = 12; - * - * @param value The bytes for routeToken to set. - * @return This builder for chaining. - */ - public Builder setRouteTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - routeToken_ = value; - bitField0_ |= 0x00000400; - 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.maps.routing.v2.Route) - } - - // @@protoc_insertion_point(class_scope:google.maps.routing.v2.Route) - private static final com.google.maps.routing.v2.Route DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.maps.routing.v2.Route(); - } - - public static com.google.maps.routing.v2.Route getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Route 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.maps.routing.v2.Route getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java deleted file mode 100644 index 45fdb9617f17..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java +++ /dev/null @@ -1,55 +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/maps/routing/v2/route_label.proto - -package com.google.maps.routing.v2; - -public final class RouteLabelProto { - private RouteLabelProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - 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/maps/routing/v2/route_label.pro" - + "to\022\026google.maps.routing.v2*m\n\nRouteLabel" - + "\022\033\n\027ROUTE_LABEL_UNSPECIFIED\020\000\022\021\n\rDEFAULT" - + "_ROUTE\020\001\022\033\n\027DEFAULT_ROUTE_ALTERNATE\020\002\022\022\n" - + "\016FUEL_EFFICIENT\020\003B\304\001\n\032com.google.maps.ro" - + "uting.v2B\017RouteLabelProtoP\001Z:cloud.googl" - + "e.com/go/maps/routing/apiv2/routingpb;ro" - + "utingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Routing" - + ".V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Google::M" - + "aps::Routing::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java deleted file mode 100644 index b50de79aa9c4..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java +++ /dev/null @@ -1,2755 +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/maps/routing/v2/route.proto - -package com.google.maps.routing.v2; - -/** - * - * - *
- * Encapsulates a segment between non-`via` waypoints.
- * 
- * - * Protobuf type {@code google.maps.routing.v2.RouteLeg} - */ -public final class RouteLeg extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLeg) - RouteLegOrBuilder { - private static final long serialVersionUID = 0L; - // Use RouteLeg.newBuilder() to construct. - private RouteLeg(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RouteLeg() { - steps_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RouteLeg(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLeg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLeg.class, - com.google.maps.routing.v2.RouteLeg.Builder.class); - } - - public static final int DISTANCE_METERS_FIELD_NUMBER = 1; - private int distanceMeters_ = 0; - /** - * - * - *
-   * The travel distance of the route leg, in meters.
-   * 
- * - * int32 distance_meters = 1; - * - * @return The distanceMeters. - */ - @java.lang.Override - public int getDistanceMeters() { - return distanceMeters_; - } - - public static final int DURATION_FIELD_NUMBER = 2; - private com.google.protobuf.Duration duration_; - /** - * - * - *
-   * The length of time needed to navigate the leg. If the `route_preference`
-   * is set to `TRAFFIC_UNAWARE`, then this value is the same as
-   * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
-   * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-   * conditions into account.
-   * 
- * - * .google.protobuf.Duration duration = 2; - * - * @return Whether the duration field is set. - */ - @java.lang.Override - public boolean hasDuration() { - return duration_ != null; - } - /** - * - * - *
-   * The length of time needed to navigate the leg. If the `route_preference`
-   * is set to `TRAFFIC_UNAWARE`, then this value is the same as
-   * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
-   * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-   * conditions into account.
-   * 
- * - * .google.protobuf.Duration duration = 2; - * - * @return The duration. - */ - @java.lang.Override - public com.google.protobuf.Duration getDuration() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - /** - * - * - *
-   * The length of time needed to navigate the leg. If the `route_preference`
-   * is set to `TRAFFIC_UNAWARE`, then this value is the same as
-   * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
-   * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-   * conditions into account.
-   * 
- * - * .google.protobuf.Duration duration = 2; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - - public static final int STATIC_DURATION_FIELD_NUMBER = 3; - private com.google.protobuf.Duration staticDuration_; - /** - * - * - *
-   * The duration of traveling through the leg, calculated without taking
-   * traffic conditions into consideration.
-   * 
- * - * .google.protobuf.Duration static_duration = 3; - * - * @return Whether the staticDuration field is set. - */ - @java.lang.Override - public boolean hasStaticDuration() { - return staticDuration_ != null; - } - /** - * - * - *
-   * The duration of traveling through the leg, calculated without taking
-   * traffic conditions into consideration.
-   * 
- * - * .google.protobuf.Duration static_duration = 3; - * - * @return The staticDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getStaticDuration() { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } - /** - * - * - *
-   * The duration of traveling through the leg, calculated without taking
-   * traffic conditions into consideration.
-   * 
- * - * .google.protobuf.Duration static_duration = 3; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } - - public static final int POLYLINE_FIELD_NUMBER = 4; - private com.google.maps.routing.v2.Polyline polyline_; - /** - * - * - *
-   * The overall polyline for this leg. This includes that each `step`'s
-   * polyline.
-   * 
- * - * .google.maps.routing.v2.Polyline polyline = 4; - * - * @return Whether the polyline field is set. - */ - @java.lang.Override - public boolean hasPolyline() { - return polyline_ != null; - } - /** - * - * - *
-   * The overall polyline for this leg. This includes that each `step`'s
-   * polyline.
-   * 
- * - * .google.maps.routing.v2.Polyline polyline = 4; - * - * @return The polyline. - */ - @java.lang.Override - public com.google.maps.routing.v2.Polyline getPolyline() { - return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; - } - /** - * - * - *
-   * The overall polyline for this leg. This includes that each `step`'s
-   * polyline.
-   * 
- * - * .google.maps.routing.v2.Polyline polyline = 4; - */ - @java.lang.Override - public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { - return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; - } - - public static final int START_LOCATION_FIELD_NUMBER = 5; - private com.google.maps.routing.v2.Location startLocation_; - /** - * - * - *
-   * The start location of this leg. This might be different from the provided
-   * `origin`. For example, when the provided `origin` is not near a road, this
-   * is a point on the road.
-   * 
- * - * .google.maps.routing.v2.Location start_location = 5; - * - * @return Whether the startLocation field is set. - */ - @java.lang.Override - public boolean hasStartLocation() { - return startLocation_ != null; - } - /** - * - * - *
-   * The start location of this leg. This might be different from the provided
-   * `origin`. For example, when the provided `origin` is not near a road, this
-   * is a point on the road.
-   * 
- * - * .google.maps.routing.v2.Location start_location = 5; - * - * @return The startLocation. - */ - @java.lang.Override - public com.google.maps.routing.v2.Location getStartLocation() { - return startLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : startLocation_; - } - /** - * - * - *
-   * The start location of this leg. This might be different from the provided
-   * `origin`. For example, when the provided `origin` is not near a road, this
-   * is a point on the road.
-   * 
- * - * .google.maps.routing.v2.Location start_location = 5; - */ - @java.lang.Override - public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder() { - return startLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : startLocation_; - } - - public static final int END_LOCATION_FIELD_NUMBER = 6; - private com.google.maps.routing.v2.Location endLocation_; - /** - * - * - *
-   * The end location of this leg. This might be different from the provided
-   * `destination`. For example, when the provided `destination` is not near a
-   * road, this is a point on the road.
-   * 
- * - * .google.maps.routing.v2.Location end_location = 6; - * - * @return Whether the endLocation field is set. - */ - @java.lang.Override - public boolean hasEndLocation() { - return endLocation_ != null; - } - /** - * - * - *
-   * The end location of this leg. This might be different from the provided
-   * `destination`. For example, when the provided `destination` is not near a
-   * road, this is a point on the road.
-   * 
- * - * .google.maps.routing.v2.Location end_location = 6; - * - * @return The endLocation. - */ - @java.lang.Override - public com.google.maps.routing.v2.Location getEndLocation() { - return endLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : endLocation_; - } - /** - * - * - *
-   * The end location of this leg. This might be different from the provided
-   * `destination`. For example, when the provided `destination` is not near a
-   * road, this is a point on the road.
-   * 
- * - * .google.maps.routing.v2.Location end_location = 6; - */ - @java.lang.Override - public com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder() { - return endLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : endLocation_; - } - - public static final int STEPS_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private java.util.List steps_; - /** - * - * - *
-   * An array of steps denoting segments within this leg. Each step represents
-   * one navigation instruction.
-   * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - @java.lang.Override - public java.util.List getStepsList() { - return steps_; - } - /** - * - * - *
-   * An array of steps denoting segments within this leg. Each step represents
-   * one navigation instruction.
-   * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - @java.lang.Override - public java.util.List - getStepsOrBuilderList() { - return steps_; - } - /** - * - * - *
-   * An array of steps denoting segments within this leg. Each step represents
-   * one navigation instruction.
-   * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - @java.lang.Override - public int getStepsCount() { - return steps_.size(); - } - /** - * - * - *
-   * An array of steps denoting segments within this leg. Each step represents
-   * one navigation instruction.
-   * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - @java.lang.Override - public com.google.maps.routing.v2.RouteLegStep getSteps(int index) { - return steps_.get(index); - } - /** - * - * - *
-   * An array of steps denoting segments within this leg. Each step represents
-   * one navigation instruction.
-   * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - @java.lang.Override - public com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder(int index) { - return steps_.get(index); - } - - public static final int TRAVEL_ADVISORY_FIELD_NUMBER = 8; - private com.google.maps.routing.v2.RouteLegTravelAdvisory travelAdvisory_; - /** - * - * - *
-   * Encapsulates the additional information that the user should be informed
-   * about, such as possible traffic zone restriction etc. on a route leg.
-   * 
- * - * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; - * - * @return Whether the travelAdvisory field is set. - */ - @java.lang.Override - public boolean hasTravelAdvisory() { - return travelAdvisory_ != null; - } - /** - * - * - *
-   * Encapsulates the additional information that the user should be informed
-   * about, such as possible traffic zone restriction etc. on a route leg.
-   * 
- * - * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; - * - * @return The travelAdvisory. - */ - @java.lang.Override - public com.google.maps.routing.v2.RouteLegTravelAdvisory getTravelAdvisory() { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } - /** - * - * - *
-   * Encapsulates the additional information that the user should be informed
-   * about, such as possible traffic zone restriction etc. on a route leg.
-   * 
- * - * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; - */ - @java.lang.Override - public com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } - - 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 (distanceMeters_ != 0) { - output.writeInt32(1, distanceMeters_); - } - if (duration_ != null) { - output.writeMessage(2, getDuration()); - } - if (staticDuration_ != null) { - output.writeMessage(3, getStaticDuration()); - } - if (polyline_ != null) { - output.writeMessage(4, getPolyline()); - } - if (startLocation_ != null) { - output.writeMessage(5, getStartLocation()); - } - if (endLocation_ != null) { - output.writeMessage(6, getEndLocation()); - } - for (int i = 0; i < steps_.size(); i++) { - output.writeMessage(7, steps_.get(i)); - } - if (travelAdvisory_ != null) { - output.writeMessage(8, getTravelAdvisory()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (distanceMeters_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, distanceMeters_); - } - if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); - } - if (staticDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStaticDuration()); - } - if (polyline_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPolyline()); - } - if (startLocation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStartLocation()); - } - if (endLocation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEndLocation()); - } - for (int i = 0; i < steps_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, steps_.get(i)); - } - if (travelAdvisory_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTravelAdvisory()); - } - 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.maps.routing.v2.RouteLeg)) { - return super.equals(obj); - } - com.google.maps.routing.v2.RouteLeg other = (com.google.maps.routing.v2.RouteLeg) obj; - - if (getDistanceMeters() != other.getDistanceMeters()) return false; - if (hasDuration() != other.hasDuration()) return false; - if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; - } - if (hasStaticDuration() != other.hasStaticDuration()) return false; - if (hasStaticDuration()) { - if (!getStaticDuration().equals(other.getStaticDuration())) return false; - } - if (hasPolyline() != other.hasPolyline()) return false; - if (hasPolyline()) { - if (!getPolyline().equals(other.getPolyline())) return false; - } - if (hasStartLocation() != other.hasStartLocation()) return false; - if (hasStartLocation()) { - if (!getStartLocation().equals(other.getStartLocation())) return false; - } - if (hasEndLocation() != other.hasEndLocation()) return false; - if (hasEndLocation()) { - if (!getEndLocation().equals(other.getEndLocation())) return false; - } - if (!getStepsList().equals(other.getStepsList())) return false; - if (hasTravelAdvisory() != other.hasTravelAdvisory()) return false; - if (hasTravelAdvisory()) { - if (!getTravelAdvisory().equals(other.getTravelAdvisory())) 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) + DISTANCE_METERS_FIELD_NUMBER; - hash = (53 * hash) + getDistanceMeters(); - if (hasDuration()) { - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().hashCode(); - } - if (hasStaticDuration()) { - hash = (37 * hash) + STATIC_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getStaticDuration().hashCode(); - } - if (hasPolyline()) { - hash = (37 * hash) + POLYLINE_FIELD_NUMBER; - hash = (53 * hash) + getPolyline().hashCode(); - } - if (hasStartLocation()) { - hash = (37 * hash) + START_LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getStartLocation().hashCode(); - } - if (hasEndLocation()) { - hash = (37 * hash) + END_LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getEndLocation().hashCode(); - } - if (getStepsCount() > 0) { - hash = (37 * hash) + STEPS_FIELD_NUMBER; - hash = (53 * hash) + getStepsList().hashCode(); - } - if (hasTravelAdvisory()) { - hash = (37 * hash) + TRAVEL_ADVISORY_FIELD_NUMBER; - hash = (53 * hash) + getTravelAdvisory().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.maps.routing.v2.RouteLeg parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.maps.routing.v2.RouteLeg parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.maps.routing.v2.RouteLeg parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.maps.routing.v2.RouteLeg parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.maps.routing.v2.RouteLeg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg 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 segment between non-`via` waypoints.
-   * 
- * - * Protobuf type {@code google.maps.routing.v2.RouteLeg} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.RouteLeg) - com.google.maps.routing.v2.RouteLegOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLeg_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLeg.class, - com.google.maps.routing.v2.RouteLeg.Builder.class); - } - - // Construct using com.google.maps.routing.v2.RouteLeg.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - distanceMeters_ = 0; - duration_ = null; - if (durationBuilder_ != null) { - durationBuilder_.dispose(); - durationBuilder_ = null; - } - staticDuration_ = null; - if (staticDurationBuilder_ != null) { - staticDurationBuilder_.dispose(); - staticDurationBuilder_ = null; - } - polyline_ = null; - if (polylineBuilder_ != null) { - polylineBuilder_.dispose(); - polylineBuilder_ = null; - } - startLocation_ = null; - if (startLocationBuilder_ != null) { - startLocationBuilder_.dispose(); - startLocationBuilder_ = null; - } - endLocation_ = null; - if (endLocationBuilder_ != null) { - endLocationBuilder_.dispose(); - endLocationBuilder_ = null; - } - if (stepsBuilder_ == null) { - steps_ = java.util.Collections.emptyList(); - } else { - steps_ = null; - stepsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - travelAdvisory_ = null; - if (travelAdvisoryBuilder_ != null) { - travelAdvisoryBuilder_.dispose(); - travelAdvisoryBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLeg_descriptor; - } - - @java.lang.Override - public com.google.maps.routing.v2.RouteLeg getDefaultInstanceForType() { - return com.google.maps.routing.v2.RouteLeg.getDefaultInstance(); - } - - @java.lang.Override - public com.google.maps.routing.v2.RouteLeg build() { - com.google.maps.routing.v2.RouteLeg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.maps.routing.v2.RouteLeg buildPartial() { - com.google.maps.routing.v2.RouteLeg result = new com.google.maps.routing.v2.RouteLeg(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.maps.routing.v2.RouteLeg result) { - if (stepsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - steps_ = java.util.Collections.unmodifiableList(steps_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.steps_ = steps_; - } else { - result.steps_ = stepsBuilder_.build(); - } - } - - private void buildPartial0(com.google.maps.routing.v2.RouteLeg result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.distanceMeters_ = distanceMeters_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.staticDuration_ = - staticDurationBuilder_ == null ? staticDuration_ : staticDurationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.polyline_ = polylineBuilder_ == null ? polyline_ : polylineBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.startLocation_ = - startLocationBuilder_ == null ? startLocation_ : startLocationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.endLocation_ = - endLocationBuilder_ == null ? endLocation_ : endLocationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.travelAdvisory_ = - travelAdvisoryBuilder_ == null ? travelAdvisory_ : travelAdvisoryBuilder_.build(); - } - } - - @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.maps.routing.v2.RouteLeg) { - return mergeFrom((com.google.maps.routing.v2.RouteLeg) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.maps.routing.v2.RouteLeg other) { - if (other == com.google.maps.routing.v2.RouteLeg.getDefaultInstance()) return this; - if (other.getDistanceMeters() != 0) { - setDistanceMeters(other.getDistanceMeters()); - } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - if (other.hasStaticDuration()) { - mergeStaticDuration(other.getStaticDuration()); - } - if (other.hasPolyline()) { - mergePolyline(other.getPolyline()); - } - if (other.hasStartLocation()) { - mergeStartLocation(other.getStartLocation()); - } - if (other.hasEndLocation()) { - mergeEndLocation(other.getEndLocation()); - } - if (stepsBuilder_ == null) { - if (!other.steps_.isEmpty()) { - if (steps_.isEmpty()) { - steps_ = other.steps_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureStepsIsMutable(); - steps_.addAll(other.steps_); - } - onChanged(); - } - } else { - if (!other.steps_.isEmpty()) { - if (stepsBuilder_.isEmpty()) { - stepsBuilder_.dispose(); - stepsBuilder_ = null; - steps_ = other.steps_; - bitField0_ = (bitField0_ & ~0x00000040); - stepsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStepsFieldBuilder() - : null; - } else { - stepsBuilder_.addAllMessages(other.steps_); - } - } - } - if (other.hasTravelAdvisory()) { - mergeTravelAdvisory(other.getTravelAdvisory()); - } - 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 8: - { - distanceMeters_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getStaticDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getPolylineFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getStartLocationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getEndLocationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.maps.routing.v2.RouteLegStep m = - input.readMessage( - com.google.maps.routing.v2.RouteLegStep.parser(), extensionRegistry); - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.add(m); - } else { - stepsBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: - { - input.readMessage(getTravelAdvisoryFieldBuilder().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) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int distanceMeters_; - /** - * - * - *
-     * The travel distance of the route leg, in meters.
-     * 
- * - * int32 distance_meters = 1; - * - * @return The distanceMeters. - */ - @java.lang.Override - public int getDistanceMeters() { - return distanceMeters_; - } - /** - * - * - *
-     * The travel distance of the route leg, in meters.
-     * 
- * - * int32 distance_meters = 1; - * - * @param value The distanceMeters to set. - * @return This builder for chaining. - */ - public Builder setDistanceMeters(int value) { - - distanceMeters_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The travel distance of the route leg, in meters.
-     * 
- * - * int32 distance_meters = 1; - * - * @return This builder for chaining. - */ - public Builder clearDistanceMeters() { - bitField0_ = (bitField0_ & ~0x00000001); - distanceMeters_ = 0; - onChanged(); - return this; - } - - 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_; - /** - * - * - *
-     * The length of time needed to navigate the leg. If the `route_preference`
-     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 2; - * - * @return Whether the duration field is set. - */ - public boolean hasDuration() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * The length of time needed to navigate the leg. If the `route_preference`
-     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 2; - * - * @return The duration. - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } else { - return durationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The length of time needed to navigate the leg. If the `route_preference`
-     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 2; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - duration_ = value; - } else { - durationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The length of time needed to navigate the leg. If the `route_preference`
-     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 2; - */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The length of time needed to navigate the leg. If the `route_preference`
-     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 2; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && duration_ != null - && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { - getDurationBuilder().mergeFrom(value); - } else { - duration_ = value; - } - } else { - durationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The length of time needed to navigate the leg. If the `route_preference`
-     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 2; - */ - public Builder clearDuration() { - bitField0_ = (bitField0_ & ~0x00000002); - duration_ = null; - if (durationBuilder_ != null) { - durationBuilder_.dispose(); - durationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The length of time needed to navigate the leg. If the `route_preference`
-     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 2; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The length of time needed to navigate the leg. If the `route_preference`
-     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 2; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); - } else { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - } - /** - * - * - *
-     * The length of time needed to navigate the leg. If the `route_preference`
-     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
-     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - 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()); - duration_ = null; - } - return durationBuilder_; - } - - private com.google.protobuf.Duration staticDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - staticDurationBuilder_; - /** - * - * - *
-     * The duration of traveling through the leg, calculated without taking
-     * traffic conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 3; - * - * @return Whether the staticDuration field is set. - */ - public boolean hasStaticDuration() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * The duration of traveling through the leg, calculated without taking
-     * traffic conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 3; - * - * @return The staticDuration. - */ - public com.google.protobuf.Duration getStaticDuration() { - if (staticDurationBuilder_ == null) { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } else { - return staticDurationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The duration of traveling through the leg, calculated without taking
-     * traffic conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 3; - */ - public Builder setStaticDuration(com.google.protobuf.Duration value) { - if (staticDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - staticDuration_ = value; - } else { - staticDurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of traveling through the leg, calculated without taking
-     * traffic conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 3; - */ - public Builder setStaticDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (staticDurationBuilder_ == null) { - staticDuration_ = builderForValue.build(); - } else { - staticDurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of traveling through the leg, calculated without taking
-     * traffic conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 3; - */ - public Builder mergeStaticDuration(com.google.protobuf.Duration value) { - if (staticDurationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && staticDuration_ != null - && staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { - getStaticDurationBuilder().mergeFrom(value); - } else { - staticDuration_ = value; - } - } else { - staticDurationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of traveling through the leg, calculated without taking
-     * traffic conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 3; - */ - public Builder clearStaticDuration() { - bitField0_ = (bitField0_ & ~0x00000004); - staticDuration_ = null; - if (staticDurationBuilder_ != null) { - staticDurationBuilder_.dispose(); - staticDurationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of traveling through the leg, calculated without taking
-     * traffic conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 3; - */ - public com.google.protobuf.Duration.Builder getStaticDurationBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getStaticDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The duration of traveling through the leg, calculated without taking
-     * traffic conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 3; - */ - public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { - if (staticDurationBuilder_ != null) { - return staticDurationBuilder_.getMessageOrBuilder(); - } else { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } - } - /** - * - * - *
-     * The duration of traveling through the leg, calculated without taking
-     * traffic conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getStaticDurationFieldBuilder() { - if (staticDurationBuilder_ == null) { - staticDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getStaticDuration(), getParentForChildren(), isClean()); - staticDuration_ = null; - } - return staticDurationBuilder_; - } - - private com.google.maps.routing.v2.Polyline polyline_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Polyline, - com.google.maps.routing.v2.Polyline.Builder, - com.google.maps.routing.v2.PolylineOrBuilder> - polylineBuilder_; - /** - * - * - *
-     * The overall polyline for this leg. This includes that each `step`'s
-     * polyline.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 4; - * - * @return Whether the polyline field is set. - */ - public boolean hasPolyline() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * The overall polyline for this leg. This includes that each `step`'s
-     * polyline.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 4; - * - * @return The polyline. - */ - public com.google.maps.routing.v2.Polyline getPolyline() { - if (polylineBuilder_ == null) { - return polyline_ == null - ? com.google.maps.routing.v2.Polyline.getDefaultInstance() - : polyline_; - } else { - return polylineBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The overall polyline for this leg. This includes that each `step`'s
-     * polyline.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 4; - */ - public Builder setPolyline(com.google.maps.routing.v2.Polyline value) { - if (polylineBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - polyline_ = value; - } else { - polylineBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The overall polyline for this leg. This includes that each `step`'s
-     * polyline.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 4; - */ - public Builder setPolyline(com.google.maps.routing.v2.Polyline.Builder builderForValue) { - if (polylineBuilder_ == null) { - polyline_ = builderForValue.build(); - } else { - polylineBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The overall polyline for this leg. This includes that each `step`'s
-     * polyline.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 4; - */ - public Builder mergePolyline(com.google.maps.routing.v2.Polyline value) { - if (polylineBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && polyline_ != null - && polyline_ != com.google.maps.routing.v2.Polyline.getDefaultInstance()) { - getPolylineBuilder().mergeFrom(value); - } else { - polyline_ = value; - } - } else { - polylineBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The overall polyline for this leg. This includes that each `step`'s
-     * polyline.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 4; - */ - public Builder clearPolyline() { - bitField0_ = (bitField0_ & ~0x00000008); - polyline_ = null; - if (polylineBuilder_ != null) { - polylineBuilder_.dispose(); - polylineBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The overall polyline for this leg. This includes that each `step`'s
-     * polyline.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 4; - */ - public com.google.maps.routing.v2.Polyline.Builder getPolylineBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getPolylineFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The overall polyline for this leg. This includes that each `step`'s
-     * polyline.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 4; - */ - public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { - if (polylineBuilder_ != null) { - return polylineBuilder_.getMessageOrBuilder(); - } else { - return polyline_ == null - ? com.google.maps.routing.v2.Polyline.getDefaultInstance() - : polyline_; - } - } - /** - * - * - *
-     * The overall polyline for this leg. This includes that each `step`'s
-     * polyline.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Polyline, - com.google.maps.routing.v2.Polyline.Builder, - com.google.maps.routing.v2.PolylineOrBuilder> - getPolylineFieldBuilder() { - if (polylineBuilder_ == null) { - polylineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Polyline, - com.google.maps.routing.v2.Polyline.Builder, - com.google.maps.routing.v2.PolylineOrBuilder>( - getPolyline(), getParentForChildren(), isClean()); - polyline_ = null; - } - return polylineBuilder_; - } - - private com.google.maps.routing.v2.Location startLocation_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, - com.google.maps.routing.v2.Location.Builder, - com.google.maps.routing.v2.LocationOrBuilder> - startLocationBuilder_; - /** - * - * - *
-     * The start location of this leg. This might be different from the provided
-     * `origin`. For example, when the provided `origin` is not near a road, this
-     * is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 5; - * - * @return Whether the startLocation field is set. - */ - public boolean hasStartLocation() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * The start location of this leg. This might be different from the provided
-     * `origin`. For example, when the provided `origin` is not near a road, this
-     * is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 5; - * - * @return The startLocation. - */ - public com.google.maps.routing.v2.Location getStartLocation() { - if (startLocationBuilder_ == null) { - return startLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : startLocation_; - } else { - return startLocationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The start location of this leg. This might be different from the provided
-     * `origin`. For example, when the provided `origin` is not near a road, this
-     * is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 5; - */ - public Builder setStartLocation(com.google.maps.routing.v2.Location value) { - if (startLocationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startLocation_ = value; - } else { - startLocationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The start location of this leg. This might be different from the provided
-     * `origin`. For example, when the provided `origin` is not near a road, this
-     * is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 5; - */ - public Builder setStartLocation(com.google.maps.routing.v2.Location.Builder builderForValue) { - if (startLocationBuilder_ == null) { - startLocation_ = builderForValue.build(); - } else { - startLocationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The start location of this leg. This might be different from the provided
-     * `origin`. For example, when the provided `origin` is not near a road, this
-     * is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 5; - */ - public Builder mergeStartLocation(com.google.maps.routing.v2.Location value) { - if (startLocationBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && startLocation_ != null - && startLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) { - getStartLocationBuilder().mergeFrom(value); - } else { - startLocation_ = value; - } - } else { - startLocationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The start location of this leg. This might be different from the provided
-     * `origin`. For example, when the provided `origin` is not near a road, this
-     * is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 5; - */ - public Builder clearStartLocation() { - bitField0_ = (bitField0_ & ~0x00000010); - startLocation_ = null; - if (startLocationBuilder_ != null) { - startLocationBuilder_.dispose(); - startLocationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The start location of this leg. This might be different from the provided
-     * `origin`. For example, when the provided `origin` is not near a road, this
-     * is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 5; - */ - public com.google.maps.routing.v2.Location.Builder getStartLocationBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getStartLocationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The start location of this leg. This might be different from the provided
-     * `origin`. For example, when the provided `origin` is not near a road, this
-     * is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 5; - */ - public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder() { - if (startLocationBuilder_ != null) { - return startLocationBuilder_.getMessageOrBuilder(); - } else { - return startLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : startLocation_; - } - } - /** - * - * - *
-     * The start location of this leg. This might be different from the provided
-     * `origin`. For example, when the provided `origin` is not near a road, this
-     * is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, - com.google.maps.routing.v2.Location.Builder, - com.google.maps.routing.v2.LocationOrBuilder> - getStartLocationFieldBuilder() { - if (startLocationBuilder_ == null) { - startLocationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, - com.google.maps.routing.v2.Location.Builder, - com.google.maps.routing.v2.LocationOrBuilder>( - getStartLocation(), getParentForChildren(), isClean()); - startLocation_ = null; - } - return startLocationBuilder_; - } - - private com.google.maps.routing.v2.Location endLocation_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, - com.google.maps.routing.v2.Location.Builder, - com.google.maps.routing.v2.LocationOrBuilder> - endLocationBuilder_; - /** - * - * - *
-     * The end location of this leg. This might be different from the provided
-     * `destination`. For example, when the provided `destination` is not near a
-     * road, this is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 6; - * - * @return Whether the endLocation field is set. - */ - public boolean hasEndLocation() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-     * The end location of this leg. This might be different from the provided
-     * `destination`. For example, when the provided `destination` is not near a
-     * road, this is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 6; - * - * @return The endLocation. - */ - public com.google.maps.routing.v2.Location getEndLocation() { - if (endLocationBuilder_ == null) { - return endLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : endLocation_; - } else { - return endLocationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The end location of this leg. This might be different from the provided
-     * `destination`. For example, when the provided `destination` is not near a
-     * road, this is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 6; - */ - public Builder setEndLocation(com.google.maps.routing.v2.Location value) { - if (endLocationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endLocation_ = value; - } else { - endLocationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The end location of this leg. This might be different from the provided
-     * `destination`. For example, when the provided `destination` is not near a
-     * road, this is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 6; - */ - public Builder setEndLocation(com.google.maps.routing.v2.Location.Builder builderForValue) { - if (endLocationBuilder_ == null) { - endLocation_ = builderForValue.build(); - } else { - endLocationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The end location of this leg. This might be different from the provided
-     * `destination`. For example, when the provided `destination` is not near a
-     * road, this is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 6; - */ - public Builder mergeEndLocation(com.google.maps.routing.v2.Location value) { - if (endLocationBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && endLocation_ != null - && endLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) { - getEndLocationBuilder().mergeFrom(value); - } else { - endLocation_ = value; - } - } else { - endLocationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The end location of this leg. This might be different from the provided
-     * `destination`. For example, when the provided `destination` is not near a
-     * road, this is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 6; - */ - public Builder clearEndLocation() { - bitField0_ = (bitField0_ & ~0x00000020); - endLocation_ = null; - if (endLocationBuilder_ != null) { - endLocationBuilder_.dispose(); - endLocationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The end location of this leg. This might be different from the provided
-     * `destination`. For example, when the provided `destination` is not near a
-     * road, this is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 6; - */ - public com.google.maps.routing.v2.Location.Builder getEndLocationBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getEndLocationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The end location of this leg. This might be different from the provided
-     * `destination`. For example, when the provided `destination` is not near a
-     * road, this is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 6; - */ - public com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder() { - if (endLocationBuilder_ != null) { - return endLocationBuilder_.getMessageOrBuilder(); - } else { - return endLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : endLocation_; - } - } - /** - * - * - *
-     * The end location of this leg. This might be different from the provided
-     * `destination`. For example, when the provided `destination` is not near a
-     * road, this is a point on the road.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, - com.google.maps.routing.v2.Location.Builder, - com.google.maps.routing.v2.LocationOrBuilder> - getEndLocationFieldBuilder() { - if (endLocationBuilder_ == null) { - endLocationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, - com.google.maps.routing.v2.Location.Builder, - com.google.maps.routing.v2.LocationOrBuilder>( - getEndLocation(), getParentForChildren(), isClean()); - endLocation_ = null; - } - return endLocationBuilder_; - } - - private java.util.List steps_ = - java.util.Collections.emptyList(); - - private void ensureStepsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - steps_ = new java.util.ArrayList(steps_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStep, - com.google.maps.routing.v2.RouteLegStep.Builder, - com.google.maps.routing.v2.RouteLegStepOrBuilder> - stepsBuilder_; - - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public java.util.List getStepsList() { - if (stepsBuilder_ == null) { - return java.util.Collections.unmodifiableList(steps_); - } else { - return stepsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public int getStepsCount() { - if (stepsBuilder_ == null) { - return steps_.size(); - } else { - return stepsBuilder_.getCount(); - } - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public com.google.maps.routing.v2.RouteLegStep getSteps(int index) { - if (stepsBuilder_ == null) { - return steps_.get(index); - } else { - return stepsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public Builder setSteps(int index, com.google.maps.routing.v2.RouteLegStep value) { - if (stepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStepsIsMutable(); - steps_.set(index, value); - onChanged(); - } else { - stepsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public Builder setSteps( - int index, com.google.maps.routing.v2.RouteLegStep.Builder builderForValue) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.set(index, builderForValue.build()); - onChanged(); - } else { - stepsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public Builder addSteps(com.google.maps.routing.v2.RouteLegStep value) { - if (stepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStepsIsMutable(); - steps_.add(value); - onChanged(); - } else { - stepsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public Builder addSteps(int index, com.google.maps.routing.v2.RouteLegStep value) { - if (stepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStepsIsMutable(); - steps_.add(index, value); - onChanged(); - } else { - stepsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public Builder addSteps(com.google.maps.routing.v2.RouteLegStep.Builder builderForValue) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.add(builderForValue.build()); - onChanged(); - } else { - stepsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public Builder addSteps( - int index, com.google.maps.routing.v2.RouteLegStep.Builder builderForValue) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.add(index, builderForValue.build()); - onChanged(); - } else { - stepsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public Builder addAllSteps( - java.lang.Iterable values) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, steps_); - onChanged(); - } else { - stepsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public Builder clearSteps() { - if (stepsBuilder_ == null) { - steps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - stepsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public Builder removeSteps(int index) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.remove(index); - onChanged(); - } else { - stepsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public com.google.maps.routing.v2.RouteLegStep.Builder getStepsBuilder(int index) { - return getStepsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder(int index) { - if (stepsBuilder_ == null) { - return steps_.get(index); - } else { - return stepsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public java.util.List - getStepsOrBuilderList() { - if (stepsBuilder_ != null) { - return stepsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(steps_); - } - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public com.google.maps.routing.v2.RouteLegStep.Builder addStepsBuilder() { - return getStepsFieldBuilder() - .addBuilder(com.google.maps.routing.v2.RouteLegStep.getDefaultInstance()); - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public com.google.maps.routing.v2.RouteLegStep.Builder addStepsBuilder(int index) { - return getStepsFieldBuilder() - .addBuilder(index, com.google.maps.routing.v2.RouteLegStep.getDefaultInstance()); - } - /** - * - * - *
-     * An array of steps denoting segments within this leg. Each step represents
-     * one navigation instruction.
-     * 
- * - * repeated .google.maps.routing.v2.RouteLegStep steps = 7; - */ - public java.util.List getStepsBuilderList() { - return getStepsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStep, - com.google.maps.routing.v2.RouteLegStep.Builder, - com.google.maps.routing.v2.RouteLegStepOrBuilder> - getStepsFieldBuilder() { - if (stepsBuilder_ == null) { - stepsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStep, - com.google.maps.routing.v2.RouteLegStep.Builder, - com.google.maps.routing.v2.RouteLegStepOrBuilder>( - steps_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); - steps_ = null; - } - return stepsBuilder_; - } - - private com.google.maps.routing.v2.RouteLegTravelAdvisory travelAdvisory_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegTravelAdvisory, - com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder, - com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder> - travelAdvisoryBuilder_; - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction etc. on a route leg.
-     * 
- * - * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; - * - * @return Whether the travelAdvisory field is set. - */ - public boolean hasTravelAdvisory() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction etc. on a route leg.
-     * 
- * - * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; - * - * @return The travelAdvisory. - */ - public com.google.maps.routing.v2.RouteLegTravelAdvisory getTravelAdvisory() { - if (travelAdvisoryBuilder_ == null) { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } else { - return travelAdvisoryBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction etc. on a route leg.
-     * 
- * - * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; - */ - public Builder setTravelAdvisory(com.google.maps.routing.v2.RouteLegTravelAdvisory value) { - if (travelAdvisoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - travelAdvisory_ = value; - } else { - travelAdvisoryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction etc. on a route leg.
-     * 
- * - * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; - */ - public Builder setTravelAdvisory( - com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder builderForValue) { - if (travelAdvisoryBuilder_ == null) { - travelAdvisory_ = builderForValue.build(); - } else { - travelAdvisoryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction etc. on a route leg.
-     * 
- * - * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; - */ - public Builder mergeTravelAdvisory(com.google.maps.routing.v2.RouteLegTravelAdvisory value) { - if (travelAdvisoryBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && travelAdvisory_ != null - && travelAdvisory_ - != com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance()) { - getTravelAdvisoryBuilder().mergeFrom(value); - } else { - travelAdvisory_ = value; - } - } else { - travelAdvisoryBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction etc. on a route leg.
-     * 
- * - * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; - */ - public Builder clearTravelAdvisory() { - bitField0_ = (bitField0_ & ~0x00000080); - travelAdvisory_ = null; - if (travelAdvisoryBuilder_ != null) { - travelAdvisoryBuilder_.dispose(); - travelAdvisoryBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction etc. on a route leg.
-     * 
- * - * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; - */ - public com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder getTravelAdvisoryBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getTravelAdvisoryFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction etc. on a route leg.
-     * 
- * - * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; - */ - public com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() { - if (travelAdvisoryBuilder_ != null) { - return travelAdvisoryBuilder_.getMessageOrBuilder(); - } else { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction etc. on a route leg.
-     * 
- * - * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegTravelAdvisory, - com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder, - com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder> - getTravelAdvisoryFieldBuilder() { - if (travelAdvisoryBuilder_ == null) { - travelAdvisoryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegTravelAdvisory, - com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder, - com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder>( - getTravelAdvisory(), getParentForChildren(), isClean()); - travelAdvisory_ = null; - } - return travelAdvisoryBuilder_; - } - - @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.maps.routing.v2.RouteLeg) - } - - // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLeg) - private static final com.google.maps.routing.v2.RouteLeg DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLeg(); - } - - public static com.google.maps.routing.v2.RouteLeg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteLeg 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.maps.routing.v2.RouteLeg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStep.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStep.java deleted file mode 100644 index 06c4524ec7bd..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStep.java +++ /dev/null @@ -1,2178 +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/maps/routing/v2/route.proto - -package com.google.maps.routing.v2; - -/** - * - * - *
- * Encapsulates a segment of a [RouteLeg][google.maps.routing.v2.RouteLeg]. A
- * step corresponds to a single navigation instruction. Route legs are made up
- * of steps.
- * 
- * - * Protobuf type {@code google.maps.routing.v2.RouteLegStep} - */ -public final class RouteLegStep extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLegStep) - RouteLegStepOrBuilder { - private static final long serialVersionUID = 0L; - // Use RouteLegStep.newBuilder() to construct. - private RouteLegStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RouteLegStep() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RouteLegStep(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLegStep_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLegStep_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLegStep.class, - com.google.maps.routing.v2.RouteLegStep.Builder.class); - } - - public static final int DISTANCE_METERS_FIELD_NUMBER = 1; - private int distanceMeters_ = 0; - /** - * - * - *
-   * The travel distance of this step, in meters. In some circumstances, this
-   * field might not have a value.
-   * 
- * - * int32 distance_meters = 1; - * - * @return The distanceMeters. - */ - @java.lang.Override - public int getDistanceMeters() { - return distanceMeters_; - } - - public static final int STATIC_DURATION_FIELD_NUMBER = 2; - private com.google.protobuf.Duration staticDuration_; - /** - * - * - *
-   * The duration of travel through this step without taking traffic conditions
-   * into consideration. In some circumstances, this field might not have a
-   * value.
-   * 
- * - * .google.protobuf.Duration static_duration = 2; - * - * @return Whether the staticDuration field is set. - */ - @java.lang.Override - public boolean hasStaticDuration() { - return staticDuration_ != null; - } - /** - * - * - *
-   * The duration of travel through this step without taking traffic conditions
-   * into consideration. In some circumstances, this field might not have a
-   * value.
-   * 
- * - * .google.protobuf.Duration static_duration = 2; - * - * @return The staticDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getStaticDuration() { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } - /** - * - * - *
-   * The duration of travel through this step without taking traffic conditions
-   * into consideration. In some circumstances, this field might not have a
-   * value.
-   * 
- * - * .google.protobuf.Duration static_duration = 2; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } - - public static final int POLYLINE_FIELD_NUMBER = 3; - private com.google.maps.routing.v2.Polyline polyline_; - /** - * - * - *
-   * The polyline associated with this step.
-   * 
- * - * .google.maps.routing.v2.Polyline polyline = 3; - * - * @return Whether the polyline field is set. - */ - @java.lang.Override - public boolean hasPolyline() { - return polyline_ != null; - } - /** - * - * - *
-   * The polyline associated with this step.
-   * 
- * - * .google.maps.routing.v2.Polyline polyline = 3; - * - * @return The polyline. - */ - @java.lang.Override - public com.google.maps.routing.v2.Polyline getPolyline() { - return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; - } - /** - * - * - *
-   * The polyline associated with this step.
-   * 
- * - * .google.maps.routing.v2.Polyline polyline = 3; - */ - @java.lang.Override - public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { - return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; - } - - public static final int START_LOCATION_FIELD_NUMBER = 4; - private com.google.maps.routing.v2.Location startLocation_; - /** - * - * - *
-   * The start location of this step.
-   * 
- * - * .google.maps.routing.v2.Location start_location = 4; - * - * @return Whether the startLocation field is set. - */ - @java.lang.Override - public boolean hasStartLocation() { - return startLocation_ != null; - } - /** - * - * - *
-   * The start location of this step.
-   * 
- * - * .google.maps.routing.v2.Location start_location = 4; - * - * @return The startLocation. - */ - @java.lang.Override - public com.google.maps.routing.v2.Location getStartLocation() { - return startLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : startLocation_; - } - /** - * - * - *
-   * The start location of this step.
-   * 
- * - * .google.maps.routing.v2.Location start_location = 4; - */ - @java.lang.Override - public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder() { - return startLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : startLocation_; - } - - public static final int END_LOCATION_FIELD_NUMBER = 5; - private com.google.maps.routing.v2.Location endLocation_; - /** - * - * - *
-   * The end location of this step.
-   * 
- * - * .google.maps.routing.v2.Location end_location = 5; - * - * @return Whether the endLocation field is set. - */ - @java.lang.Override - public boolean hasEndLocation() { - return endLocation_ != null; - } - /** - * - * - *
-   * The end location of this step.
-   * 
- * - * .google.maps.routing.v2.Location end_location = 5; - * - * @return The endLocation. - */ - @java.lang.Override - public com.google.maps.routing.v2.Location getEndLocation() { - return endLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : endLocation_; - } - /** - * - * - *
-   * The end location of this step.
-   * 
- * - * .google.maps.routing.v2.Location end_location = 5; - */ - @java.lang.Override - public com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder() { - return endLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : endLocation_; - } - - public static final int NAVIGATION_INSTRUCTION_FIELD_NUMBER = 6; - private com.google.maps.routing.v2.NavigationInstruction navigationInstruction_; - /** - * - * - *
-   * Navigation instructions.
-   * 
- * - * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; - * - * @return Whether the navigationInstruction field is set. - */ - @java.lang.Override - public boolean hasNavigationInstruction() { - return navigationInstruction_ != null; - } - /** - * - * - *
-   * Navigation instructions.
-   * 
- * - * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; - * - * @return The navigationInstruction. - */ - @java.lang.Override - public com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction() { - return navigationInstruction_ == null - ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() - : navigationInstruction_; - } - /** - * - * - *
-   * Navigation instructions.
-   * 
- * - * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; - */ - @java.lang.Override - public com.google.maps.routing.v2.NavigationInstructionOrBuilder - getNavigationInstructionOrBuilder() { - return navigationInstruction_ == null - ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() - : navigationInstruction_; - } - - public static final int TRAVEL_ADVISORY_FIELD_NUMBER = 7; - private com.google.maps.routing.v2.RouteLegStepTravelAdvisory travelAdvisory_; - /** - * - * - *
-   * Encapsulates the additional information that the user should be informed
-   * about, such as possible traffic zone restriction on a leg step.
-   * 
- * - * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; - * - * @return Whether the travelAdvisory field is set. - */ - @java.lang.Override - public boolean hasTravelAdvisory() { - return travelAdvisory_ != null; - } - /** - * - * - *
-   * Encapsulates the additional information that the user should be informed
-   * about, such as possible traffic zone restriction on a leg step.
-   * 
- * - * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; - * - * @return The travelAdvisory. - */ - @java.lang.Override - public com.google.maps.routing.v2.RouteLegStepTravelAdvisory getTravelAdvisory() { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } - /** - * - * - *
-   * Encapsulates the additional information that the user should be informed
-   * about, such as possible traffic zone restriction on a leg step.
-   * 
- * - * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; - */ - @java.lang.Override - public com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder - getTravelAdvisoryOrBuilder() { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } - - 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 (distanceMeters_ != 0) { - output.writeInt32(1, distanceMeters_); - } - if (staticDuration_ != null) { - output.writeMessage(2, getStaticDuration()); - } - if (polyline_ != null) { - output.writeMessage(3, getPolyline()); - } - if (startLocation_ != null) { - output.writeMessage(4, getStartLocation()); - } - if (endLocation_ != null) { - output.writeMessage(5, getEndLocation()); - } - if (navigationInstruction_ != null) { - output.writeMessage(6, getNavigationInstruction()); - } - if (travelAdvisory_ != null) { - output.writeMessage(7, getTravelAdvisory()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (distanceMeters_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, distanceMeters_); - } - if (staticDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStaticDuration()); - } - if (polyline_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPolyline()); - } - if (startLocation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartLocation()); - } - if (endLocation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndLocation()); - } - if (navigationInstruction_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(6, getNavigationInstruction()); - } - if (travelAdvisory_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTravelAdvisory()); - } - 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.maps.routing.v2.RouteLegStep)) { - return super.equals(obj); - } - com.google.maps.routing.v2.RouteLegStep other = (com.google.maps.routing.v2.RouteLegStep) obj; - - if (getDistanceMeters() != other.getDistanceMeters()) return false; - if (hasStaticDuration() != other.hasStaticDuration()) return false; - if (hasStaticDuration()) { - if (!getStaticDuration().equals(other.getStaticDuration())) return false; - } - if (hasPolyline() != other.hasPolyline()) return false; - if (hasPolyline()) { - if (!getPolyline().equals(other.getPolyline())) return false; - } - if (hasStartLocation() != other.hasStartLocation()) return false; - if (hasStartLocation()) { - if (!getStartLocation().equals(other.getStartLocation())) return false; - } - if (hasEndLocation() != other.hasEndLocation()) return false; - if (hasEndLocation()) { - if (!getEndLocation().equals(other.getEndLocation())) return false; - } - if (hasNavigationInstruction() != other.hasNavigationInstruction()) return false; - if (hasNavigationInstruction()) { - if (!getNavigationInstruction().equals(other.getNavigationInstruction())) return false; - } - if (hasTravelAdvisory() != other.hasTravelAdvisory()) return false; - if (hasTravelAdvisory()) { - if (!getTravelAdvisory().equals(other.getTravelAdvisory())) 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) + DISTANCE_METERS_FIELD_NUMBER; - hash = (53 * hash) + getDistanceMeters(); - if (hasStaticDuration()) { - hash = (37 * hash) + STATIC_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getStaticDuration().hashCode(); - } - if (hasPolyline()) { - hash = (37 * hash) + POLYLINE_FIELD_NUMBER; - hash = (53 * hash) + getPolyline().hashCode(); - } - if (hasStartLocation()) { - hash = (37 * hash) + START_LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getStartLocation().hashCode(); - } - if (hasEndLocation()) { - hash = (37 * hash) + END_LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getEndLocation().hashCode(); - } - if (hasNavigationInstruction()) { - hash = (37 * hash) + NAVIGATION_INSTRUCTION_FIELD_NUMBER; - hash = (53 * hash) + getNavigationInstruction().hashCode(); - } - if (hasTravelAdvisory()) { - hash = (37 * hash) + TRAVEL_ADVISORY_FIELD_NUMBER; - hash = (53 * hash) + getTravelAdvisory().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.maps.routing.v2.RouteLegStep parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.maps.routing.v2.RouteLegStep parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.maps.routing.v2.RouteLegStep parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.maps.routing.v2.RouteLegStep parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.maps.routing.v2.RouteLegStep parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep 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 segment of a [RouteLeg][google.maps.routing.v2.RouteLeg]. A
-   * step corresponds to a single navigation instruction. Route legs are made up
-   * of steps.
-   * 
- * - * Protobuf type {@code google.maps.routing.v2.RouteLegStep} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.RouteLegStep) - com.google.maps.routing.v2.RouteLegStepOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLegStep_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLegStep_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLegStep.class, - com.google.maps.routing.v2.RouteLegStep.Builder.class); - } - - // Construct using com.google.maps.routing.v2.RouteLegStep.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - distanceMeters_ = 0; - staticDuration_ = null; - if (staticDurationBuilder_ != null) { - staticDurationBuilder_.dispose(); - staticDurationBuilder_ = null; - } - polyline_ = null; - if (polylineBuilder_ != null) { - polylineBuilder_.dispose(); - polylineBuilder_ = null; - } - startLocation_ = null; - if (startLocationBuilder_ != null) { - startLocationBuilder_.dispose(); - startLocationBuilder_ = null; - } - endLocation_ = null; - if (endLocationBuilder_ != null) { - endLocationBuilder_.dispose(); - endLocationBuilder_ = null; - } - navigationInstruction_ = null; - if (navigationInstructionBuilder_ != null) { - navigationInstructionBuilder_.dispose(); - navigationInstructionBuilder_ = null; - } - travelAdvisory_ = null; - if (travelAdvisoryBuilder_ != null) { - travelAdvisoryBuilder_.dispose(); - travelAdvisoryBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLegStep_descriptor; - } - - @java.lang.Override - public com.google.maps.routing.v2.RouteLegStep getDefaultInstanceForType() { - return com.google.maps.routing.v2.RouteLegStep.getDefaultInstance(); - } - - @java.lang.Override - public com.google.maps.routing.v2.RouteLegStep build() { - com.google.maps.routing.v2.RouteLegStep result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.maps.routing.v2.RouteLegStep buildPartial() { - com.google.maps.routing.v2.RouteLegStep result = - new com.google.maps.routing.v2.RouteLegStep(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.maps.routing.v2.RouteLegStep result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.distanceMeters_ = distanceMeters_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.staticDuration_ = - staticDurationBuilder_ == null ? staticDuration_ : staticDurationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.polyline_ = polylineBuilder_ == null ? polyline_ : polylineBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.startLocation_ = - startLocationBuilder_ == null ? startLocation_ : startLocationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.endLocation_ = - endLocationBuilder_ == null ? endLocation_ : endLocationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.navigationInstruction_ = - navigationInstructionBuilder_ == null - ? navigationInstruction_ - : navigationInstructionBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.travelAdvisory_ = - travelAdvisoryBuilder_ == null ? travelAdvisory_ : travelAdvisoryBuilder_.build(); - } - } - - @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.maps.routing.v2.RouteLegStep) { - return mergeFrom((com.google.maps.routing.v2.RouteLegStep) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.maps.routing.v2.RouteLegStep other) { - if (other == com.google.maps.routing.v2.RouteLegStep.getDefaultInstance()) return this; - if (other.getDistanceMeters() != 0) { - setDistanceMeters(other.getDistanceMeters()); - } - if (other.hasStaticDuration()) { - mergeStaticDuration(other.getStaticDuration()); - } - if (other.hasPolyline()) { - mergePolyline(other.getPolyline()); - } - if (other.hasStartLocation()) { - mergeStartLocation(other.getStartLocation()); - } - if (other.hasEndLocation()) { - mergeEndLocation(other.getEndLocation()); - } - if (other.hasNavigationInstruction()) { - mergeNavigationInstruction(other.getNavigationInstruction()); - } - if (other.hasTravelAdvisory()) { - mergeTravelAdvisory(other.getTravelAdvisory()); - } - 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 8: - { - distanceMeters_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getStaticDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getPolylineFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getStartLocationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getEndLocationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage( - getNavigationInstructionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getTravelAdvisoryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - 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 int distanceMeters_; - /** - * - * - *
-     * The travel distance of this step, in meters. In some circumstances, this
-     * field might not have a value.
-     * 
- * - * int32 distance_meters = 1; - * - * @return The distanceMeters. - */ - @java.lang.Override - public int getDistanceMeters() { - return distanceMeters_; - } - /** - * - * - *
-     * The travel distance of this step, in meters. In some circumstances, this
-     * field might not have a value.
-     * 
- * - * int32 distance_meters = 1; - * - * @param value The distanceMeters to set. - * @return This builder for chaining. - */ - public Builder setDistanceMeters(int value) { - - distanceMeters_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * The travel distance of this step, in meters. In some circumstances, this
-     * field might not have a value.
-     * 
- * - * int32 distance_meters = 1; - * - * @return This builder for chaining. - */ - public Builder clearDistanceMeters() { - bitField0_ = (bitField0_ & ~0x00000001); - distanceMeters_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Duration staticDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - staticDurationBuilder_; - /** - * - * - *
-     * The duration of travel through this step without taking traffic conditions
-     * into consideration. In some circumstances, this field might not have a
-     * value.
-     * 
- * - * .google.protobuf.Duration static_duration = 2; - * - * @return Whether the staticDuration field is set. - */ - public boolean hasStaticDuration() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * The duration of travel through this step without taking traffic conditions
-     * into consideration. In some circumstances, this field might not have a
-     * value.
-     * 
- * - * .google.protobuf.Duration static_duration = 2; - * - * @return The staticDuration. - */ - public com.google.protobuf.Duration getStaticDuration() { - if (staticDurationBuilder_ == null) { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } else { - return staticDurationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The duration of travel through this step without taking traffic conditions
-     * into consideration. In some circumstances, this field might not have a
-     * value.
-     * 
- * - * .google.protobuf.Duration static_duration = 2; - */ - public Builder setStaticDuration(com.google.protobuf.Duration value) { - if (staticDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - staticDuration_ = value; - } else { - staticDurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of travel through this step without taking traffic conditions
-     * into consideration. In some circumstances, this field might not have a
-     * value.
-     * 
- * - * .google.protobuf.Duration static_duration = 2; - */ - public Builder setStaticDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (staticDurationBuilder_ == null) { - staticDuration_ = builderForValue.build(); - } else { - staticDurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of travel through this step without taking traffic conditions
-     * into consideration. In some circumstances, this field might not have a
-     * value.
-     * 
- * - * .google.protobuf.Duration static_duration = 2; - */ - public Builder mergeStaticDuration(com.google.protobuf.Duration value) { - if (staticDurationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && staticDuration_ != null - && staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { - getStaticDurationBuilder().mergeFrom(value); - } else { - staticDuration_ = value; - } - } else { - staticDurationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of travel through this step without taking traffic conditions
-     * into consideration. In some circumstances, this field might not have a
-     * value.
-     * 
- * - * .google.protobuf.Duration static_duration = 2; - */ - public Builder clearStaticDuration() { - bitField0_ = (bitField0_ & ~0x00000002); - staticDuration_ = null; - if (staticDurationBuilder_ != null) { - staticDurationBuilder_.dispose(); - staticDurationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of travel through this step without taking traffic conditions
-     * into consideration. In some circumstances, this field might not have a
-     * value.
-     * 
- * - * .google.protobuf.Duration static_duration = 2; - */ - public com.google.protobuf.Duration.Builder getStaticDurationBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getStaticDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The duration of travel through this step without taking traffic conditions
-     * into consideration. In some circumstances, this field might not have a
-     * value.
-     * 
- * - * .google.protobuf.Duration static_duration = 2; - */ - public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { - if (staticDurationBuilder_ != null) { - return staticDurationBuilder_.getMessageOrBuilder(); - } else { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } - } - /** - * - * - *
-     * The duration of travel through this step without taking traffic conditions
-     * into consideration. In some circumstances, this field might not have a
-     * value.
-     * 
- * - * .google.protobuf.Duration static_duration = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getStaticDurationFieldBuilder() { - if (staticDurationBuilder_ == null) { - staticDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getStaticDuration(), getParentForChildren(), isClean()); - staticDuration_ = null; - } - return staticDurationBuilder_; - } - - private com.google.maps.routing.v2.Polyline polyline_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Polyline, - com.google.maps.routing.v2.Polyline.Builder, - com.google.maps.routing.v2.PolylineOrBuilder> - polylineBuilder_; - /** - * - * - *
-     * The polyline associated with this step.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 3; - * - * @return Whether the polyline field is set. - */ - public boolean hasPolyline() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * The polyline associated with this step.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 3; - * - * @return The polyline. - */ - public com.google.maps.routing.v2.Polyline getPolyline() { - if (polylineBuilder_ == null) { - return polyline_ == null - ? com.google.maps.routing.v2.Polyline.getDefaultInstance() - : polyline_; - } else { - return polylineBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The polyline associated with this step.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 3; - */ - public Builder setPolyline(com.google.maps.routing.v2.Polyline value) { - if (polylineBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - polyline_ = value; - } else { - polylineBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The polyline associated with this step.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 3; - */ - public Builder setPolyline(com.google.maps.routing.v2.Polyline.Builder builderForValue) { - if (polylineBuilder_ == null) { - polyline_ = builderForValue.build(); - } else { - polylineBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The polyline associated with this step.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 3; - */ - public Builder mergePolyline(com.google.maps.routing.v2.Polyline value) { - if (polylineBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && polyline_ != null - && polyline_ != com.google.maps.routing.v2.Polyline.getDefaultInstance()) { - getPolylineBuilder().mergeFrom(value); - } else { - polyline_ = value; - } - } else { - polylineBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * The polyline associated with this step.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 3; - */ - public Builder clearPolyline() { - bitField0_ = (bitField0_ & ~0x00000004); - polyline_ = null; - if (polylineBuilder_ != null) { - polylineBuilder_.dispose(); - polylineBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The polyline associated with this step.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 3; - */ - public com.google.maps.routing.v2.Polyline.Builder getPolylineBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getPolylineFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The polyline associated with this step.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 3; - */ - public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { - if (polylineBuilder_ != null) { - return polylineBuilder_.getMessageOrBuilder(); - } else { - return polyline_ == null - ? com.google.maps.routing.v2.Polyline.getDefaultInstance() - : polyline_; - } - } - /** - * - * - *
-     * The polyline associated with this step.
-     * 
- * - * .google.maps.routing.v2.Polyline polyline = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Polyline, - com.google.maps.routing.v2.Polyline.Builder, - com.google.maps.routing.v2.PolylineOrBuilder> - getPolylineFieldBuilder() { - if (polylineBuilder_ == null) { - polylineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Polyline, - com.google.maps.routing.v2.Polyline.Builder, - com.google.maps.routing.v2.PolylineOrBuilder>( - getPolyline(), getParentForChildren(), isClean()); - polyline_ = null; - } - return polylineBuilder_; - } - - private com.google.maps.routing.v2.Location startLocation_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, - com.google.maps.routing.v2.Location.Builder, - com.google.maps.routing.v2.LocationOrBuilder> - startLocationBuilder_; - /** - * - * - *
-     * The start location of this step.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 4; - * - * @return Whether the startLocation field is set. - */ - public boolean hasStartLocation() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-     * The start location of this step.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 4; - * - * @return The startLocation. - */ - public com.google.maps.routing.v2.Location getStartLocation() { - if (startLocationBuilder_ == null) { - return startLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : startLocation_; - } else { - return startLocationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The start location of this step.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 4; - */ - public Builder setStartLocation(com.google.maps.routing.v2.Location value) { - if (startLocationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startLocation_ = value; - } else { - startLocationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The start location of this step.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 4; - */ - public Builder setStartLocation(com.google.maps.routing.v2.Location.Builder builderForValue) { - if (startLocationBuilder_ == null) { - startLocation_ = builderForValue.build(); - } else { - startLocationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The start location of this step.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 4; - */ - public Builder mergeStartLocation(com.google.maps.routing.v2.Location value) { - if (startLocationBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && startLocation_ != null - && startLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) { - getStartLocationBuilder().mergeFrom(value); - } else { - startLocation_ = value; - } - } else { - startLocationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The start location of this step.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 4; - */ - public Builder clearStartLocation() { - bitField0_ = (bitField0_ & ~0x00000008); - startLocation_ = null; - if (startLocationBuilder_ != null) { - startLocationBuilder_.dispose(); - startLocationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The start location of this step.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 4; - */ - public com.google.maps.routing.v2.Location.Builder getStartLocationBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getStartLocationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The start location of this step.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 4; - */ - public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder() { - if (startLocationBuilder_ != null) { - return startLocationBuilder_.getMessageOrBuilder(); - } else { - return startLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : startLocation_; - } - } - /** - * - * - *
-     * The start location of this step.
-     * 
- * - * .google.maps.routing.v2.Location start_location = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, - com.google.maps.routing.v2.Location.Builder, - com.google.maps.routing.v2.LocationOrBuilder> - getStartLocationFieldBuilder() { - if (startLocationBuilder_ == null) { - startLocationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, - com.google.maps.routing.v2.Location.Builder, - com.google.maps.routing.v2.LocationOrBuilder>( - getStartLocation(), getParentForChildren(), isClean()); - startLocation_ = null; - } - return startLocationBuilder_; - } - - private com.google.maps.routing.v2.Location endLocation_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, - com.google.maps.routing.v2.Location.Builder, - com.google.maps.routing.v2.LocationOrBuilder> - endLocationBuilder_; - /** - * - * - *
-     * The end location of this step.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 5; - * - * @return Whether the endLocation field is set. - */ - public boolean hasEndLocation() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * The end location of this step.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 5; - * - * @return The endLocation. - */ - public com.google.maps.routing.v2.Location getEndLocation() { - if (endLocationBuilder_ == null) { - return endLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : endLocation_; - } else { - return endLocationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The end location of this step.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 5; - */ - public Builder setEndLocation(com.google.maps.routing.v2.Location value) { - if (endLocationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endLocation_ = value; - } else { - endLocationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The end location of this step.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 5; - */ - public Builder setEndLocation(com.google.maps.routing.v2.Location.Builder builderForValue) { - if (endLocationBuilder_ == null) { - endLocation_ = builderForValue.build(); - } else { - endLocationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The end location of this step.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 5; - */ - public Builder mergeEndLocation(com.google.maps.routing.v2.Location value) { - if (endLocationBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && endLocation_ != null - && endLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) { - getEndLocationBuilder().mergeFrom(value); - } else { - endLocation_ = value; - } - } else { - endLocationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The end location of this step.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 5; - */ - public Builder clearEndLocation() { - bitField0_ = (bitField0_ & ~0x00000010); - endLocation_ = null; - if (endLocationBuilder_ != null) { - endLocationBuilder_.dispose(); - endLocationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The end location of this step.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 5; - */ - public com.google.maps.routing.v2.Location.Builder getEndLocationBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getEndLocationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The end location of this step.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 5; - */ - public com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder() { - if (endLocationBuilder_ != null) { - return endLocationBuilder_.getMessageOrBuilder(); - } else { - return endLocation_ == null - ? com.google.maps.routing.v2.Location.getDefaultInstance() - : endLocation_; - } - } - /** - * - * - *
-     * The end location of this step.
-     * 
- * - * .google.maps.routing.v2.Location end_location = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, - com.google.maps.routing.v2.Location.Builder, - com.google.maps.routing.v2.LocationOrBuilder> - getEndLocationFieldBuilder() { - if (endLocationBuilder_ == null) { - endLocationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, - com.google.maps.routing.v2.Location.Builder, - com.google.maps.routing.v2.LocationOrBuilder>( - getEndLocation(), getParentForChildren(), isClean()); - endLocation_ = null; - } - return endLocationBuilder_; - } - - private com.google.maps.routing.v2.NavigationInstruction navigationInstruction_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.NavigationInstruction, - com.google.maps.routing.v2.NavigationInstruction.Builder, - com.google.maps.routing.v2.NavigationInstructionOrBuilder> - navigationInstructionBuilder_; - /** - * - * - *
-     * Navigation instructions.
-     * 
- * - * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; - * - * @return Whether the navigationInstruction field is set. - */ - public boolean hasNavigationInstruction() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-     * Navigation instructions.
-     * 
- * - * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; - * - * @return The navigationInstruction. - */ - public com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction() { - if (navigationInstructionBuilder_ == null) { - return navigationInstruction_ == null - ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() - : navigationInstruction_; - } else { - return navigationInstructionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Navigation instructions.
-     * 
- * - * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; - */ - public Builder setNavigationInstruction( - com.google.maps.routing.v2.NavigationInstruction value) { - if (navigationInstructionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - navigationInstruction_ = value; - } else { - navigationInstructionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Navigation instructions.
-     * 
- * - * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; - */ - public Builder setNavigationInstruction( - com.google.maps.routing.v2.NavigationInstruction.Builder builderForValue) { - if (navigationInstructionBuilder_ == null) { - navigationInstruction_ = builderForValue.build(); - } else { - navigationInstructionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Navigation instructions.
-     * 
- * - * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; - */ - public Builder mergeNavigationInstruction( - com.google.maps.routing.v2.NavigationInstruction value) { - if (navigationInstructionBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && navigationInstruction_ != null - && navigationInstruction_ - != com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance()) { - getNavigationInstructionBuilder().mergeFrom(value); - } else { - navigationInstruction_ = value; - } - } else { - navigationInstructionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * Navigation instructions.
-     * 
- * - * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; - */ - public Builder clearNavigationInstruction() { - bitField0_ = (bitField0_ & ~0x00000020); - navigationInstruction_ = null; - if (navigationInstructionBuilder_ != null) { - navigationInstructionBuilder_.dispose(); - navigationInstructionBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Navigation instructions.
-     * 
- * - * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; - */ - public com.google.maps.routing.v2.NavigationInstruction.Builder - getNavigationInstructionBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getNavigationInstructionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Navigation instructions.
-     * 
- * - * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; - */ - public com.google.maps.routing.v2.NavigationInstructionOrBuilder - getNavigationInstructionOrBuilder() { - if (navigationInstructionBuilder_ != null) { - return navigationInstructionBuilder_.getMessageOrBuilder(); - } else { - return navigationInstruction_ == null - ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() - : navigationInstruction_; - } - } - /** - * - * - *
-     * Navigation instructions.
-     * 
- * - * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.NavigationInstruction, - com.google.maps.routing.v2.NavigationInstruction.Builder, - com.google.maps.routing.v2.NavigationInstructionOrBuilder> - getNavigationInstructionFieldBuilder() { - if (navigationInstructionBuilder_ == null) { - navigationInstructionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.NavigationInstruction, - com.google.maps.routing.v2.NavigationInstruction.Builder, - com.google.maps.routing.v2.NavigationInstructionOrBuilder>( - getNavigationInstruction(), getParentForChildren(), isClean()); - navigationInstruction_ = null; - } - return navigationInstructionBuilder_; - } - - private com.google.maps.routing.v2.RouteLegStepTravelAdvisory travelAdvisory_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStepTravelAdvisory, - com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder, - com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder> - travelAdvisoryBuilder_; - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction on a leg step.
-     * 
- * - * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; - * - * @return Whether the travelAdvisory field is set. - */ - public boolean hasTravelAdvisory() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction on a leg step.
-     * 
- * - * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; - * - * @return The travelAdvisory. - */ - public com.google.maps.routing.v2.RouteLegStepTravelAdvisory getTravelAdvisory() { - if (travelAdvisoryBuilder_ == null) { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } else { - return travelAdvisoryBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction on a leg step.
-     * 
- * - * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; - */ - public Builder setTravelAdvisory(com.google.maps.routing.v2.RouteLegStepTravelAdvisory value) { - if (travelAdvisoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - travelAdvisory_ = value; - } else { - travelAdvisoryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction on a leg step.
-     * 
- * - * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; - */ - public Builder setTravelAdvisory( - com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder builderForValue) { - if (travelAdvisoryBuilder_ == null) { - travelAdvisory_ = builderForValue.build(); - } else { - travelAdvisoryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction on a leg step.
-     * 
- * - * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; - */ - public Builder mergeTravelAdvisory( - com.google.maps.routing.v2.RouteLegStepTravelAdvisory value) { - if (travelAdvisoryBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && travelAdvisory_ != null - && travelAdvisory_ - != com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance()) { - getTravelAdvisoryBuilder().mergeFrom(value); - } else { - travelAdvisory_ = value; - } - } else { - travelAdvisoryBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction on a leg step.
-     * 
- * - * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; - */ - public Builder clearTravelAdvisory() { - bitField0_ = (bitField0_ & ~0x00000040); - travelAdvisory_ = null; - if (travelAdvisoryBuilder_ != null) { - travelAdvisoryBuilder_.dispose(); - travelAdvisoryBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction on a leg step.
-     * 
- * - * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; - */ - public com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder - getTravelAdvisoryBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getTravelAdvisoryFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction on a leg step.
-     * 
- * - * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; - */ - public com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder - getTravelAdvisoryOrBuilder() { - if (travelAdvisoryBuilder_ != null) { - return travelAdvisoryBuilder_.getMessageOrBuilder(); - } else { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } - } - /** - * - * - *
-     * Encapsulates the additional information that the user should be informed
-     * about, such as possible traffic zone restriction on a leg step.
-     * 
- * - * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStepTravelAdvisory, - com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder, - com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder> - getTravelAdvisoryFieldBuilder() { - if (travelAdvisoryBuilder_ == null) { - travelAdvisoryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStepTravelAdvisory, - com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder, - com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder>( - getTravelAdvisory(), getParentForChildren(), isClean()); - travelAdvisory_ = null; - } - return travelAdvisoryBuilder_; - } - - @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.maps.routing.v2.RouteLegStep) - } - - // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLegStep) - private static final com.google.maps.routing.v2.RouteLegStep DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLegStep(); - } - - public static com.google.maps.routing.v2.RouteLegStep getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteLegStep 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.maps.routing.v2.RouteLegStep getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElement.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElement.java deleted file mode 100644 index 62ec76397efc..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElement.java +++ /dev/null @@ -1,2392 +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/maps/routing/v2/routes_service.proto - -package com.google.maps.routing.v2; - -/** - * - * - *
- * Encapsulates route information computed for an origin/destination pair in the
- * ComputeRouteMatrix API. This proto can be streamed to the client.
- * 
- * - * Protobuf type {@code google.maps.routing.v2.RouteMatrixElement} - */ -public final class RouteMatrixElement extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteMatrixElement) - RouteMatrixElementOrBuilder { - private static final long serialVersionUID = 0L; - // Use RouteMatrixElement.newBuilder() to construct. - private RouteMatrixElement(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RouteMatrixElement() { - condition_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RouteMatrixElement(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_RouteMatrixElement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteMatrixElement.class, - com.google.maps.routing.v2.RouteMatrixElement.Builder.class); - } - - private int bitField0_; - public static final int ORIGIN_INDEX_FIELD_NUMBER = 1; - private int originIndex_ = 0; - /** - * - * - *
-   * Zero-based index of the origin in the request.
-   * 
- * - * optional int32 origin_index = 1; - * - * @return Whether the originIndex field is set. - */ - @java.lang.Override - public boolean hasOriginIndex() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Zero-based index of the origin in the request.
-   * 
- * - * optional int32 origin_index = 1; - * - * @return The originIndex. - */ - @java.lang.Override - public int getOriginIndex() { - return originIndex_; - } - - public static final int DESTINATION_INDEX_FIELD_NUMBER = 2; - private int destinationIndex_ = 0; - /** - * - * - *
-   * Zero-based index of the destination in the request.
-   * 
- * - * optional int32 destination_index = 2; - * - * @return Whether the destinationIndex field is set. - */ - @java.lang.Override - public boolean hasDestinationIndex() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Zero-based index of the destination in the request.
-   * 
- * - * optional int32 destination_index = 2; - * - * @return The destinationIndex. - */ - @java.lang.Override - public int getDestinationIndex() { - return destinationIndex_; - } - - public static final int STATUS_FIELD_NUMBER = 3; - private com.google.rpc.Status status_; - /** - * - * - *
-   * Error status code for this element.
-   * 
- * - * .google.rpc.Status status = 3; - * - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return status_ != null; - } - /** - * - * - *
-   * Error status code for this element.
-   * 
- * - * .google.rpc.Status status = 3; - * - * @return The status. - */ - @java.lang.Override - public com.google.rpc.Status getStatus() { - return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; - } - /** - * - * - *
-   * Error status code for this element.
-   * 
- * - * .google.rpc.Status status = 3; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; - } - - public static final int CONDITION_FIELD_NUMBER = 9; - private int condition_ = 0; - /** - * - * - *
-   * Indicates whether the route was found or not. Independent of status.
-   * 
- * - * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; - * - * @return The enum numeric value on the wire for condition. - */ - @java.lang.Override - public int getConditionValue() { - return condition_; - } - /** - * - * - *
-   * Indicates whether the route was found or not. Independent of status.
-   * 
- * - * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; - * - * @return The condition. - */ - @java.lang.Override - public com.google.maps.routing.v2.RouteMatrixElementCondition getCondition() { - com.google.maps.routing.v2.RouteMatrixElementCondition result = - com.google.maps.routing.v2.RouteMatrixElementCondition.forNumber(condition_); - return result == null - ? com.google.maps.routing.v2.RouteMatrixElementCondition.UNRECOGNIZED - : result; - } - - public static final int DISTANCE_METERS_FIELD_NUMBER = 4; - private int distanceMeters_ = 0; - /** - * - * - *
-   * The travel distance of the route, in meters.
-   * 
- * - * int32 distance_meters = 4; - * - * @return The distanceMeters. - */ - @java.lang.Override - public int getDistanceMeters() { - return distanceMeters_; - } - - public static final int DURATION_FIELD_NUMBER = 5; - private com.google.protobuf.Duration duration_; - /** - * - * - *
-   * The length of time needed to navigate the route. If you set the
-   * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
-   * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
-   * you set the `routing_preference` to either `TRAFFIC_AWARE` or
-   * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-   * conditions into account.
-   * 
- * - * .google.protobuf.Duration duration = 5; - * - * @return Whether the duration field is set. - */ - @java.lang.Override - public boolean hasDuration() { - return duration_ != null; - } - /** - * - * - *
-   * The length of time needed to navigate the route. If you set the
-   * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
-   * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
-   * you set the `routing_preference` to either `TRAFFIC_AWARE` or
-   * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-   * conditions into account.
-   * 
- * - * .google.protobuf.Duration duration = 5; - * - * @return The duration. - */ - @java.lang.Override - public com.google.protobuf.Duration getDuration() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - /** - * - * - *
-   * The length of time needed to navigate the route. If you set the
-   * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
-   * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
-   * you set the `routing_preference` to either `TRAFFIC_AWARE` or
-   * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-   * conditions into account.
-   * 
- * - * .google.protobuf.Duration duration = 5; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - - public static final int STATIC_DURATION_FIELD_NUMBER = 6; - private com.google.protobuf.Duration staticDuration_; - /** - * - * - *
-   * The duration of traveling through the route without taking traffic
-   * conditions into consideration.
-   * 
- * - * .google.protobuf.Duration static_duration = 6; - * - * @return Whether the staticDuration field is set. - */ - @java.lang.Override - public boolean hasStaticDuration() { - return staticDuration_ != null; - } - /** - * - * - *
-   * The duration of traveling through the route without taking traffic
-   * conditions into consideration.
-   * 
- * - * .google.protobuf.Duration static_duration = 6; - * - * @return The staticDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getStaticDuration() { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } - /** - * - * - *
-   * The duration of traveling through the route without taking traffic
-   * conditions into consideration.
-   * 
- * - * .google.protobuf.Duration static_duration = 6; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } - - public static final int TRAVEL_ADVISORY_FIELD_NUMBER = 7; - private com.google.maps.routing.v2.RouteTravelAdvisory travelAdvisory_; - /** - * - * - *
-   * Additional information about the route. For example: restriction
-   * information and toll information
-   * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; - * - * @return Whether the travelAdvisory field is set. - */ - @java.lang.Override - public boolean hasTravelAdvisory() { - return travelAdvisory_ != null; - } - /** - * - * - *
-   * Additional information about the route. For example: restriction
-   * information and toll information
-   * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; - * - * @return The travelAdvisory. - */ - @java.lang.Override - public com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory() { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } - /** - * - * - *
-   * Additional information about the route. For example: restriction
-   * information and toll information
-   * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; - */ - @java.lang.Override - public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } - - public static final int FALLBACK_INFO_FIELD_NUMBER = 8; - private com.google.maps.routing.v2.FallbackInfo fallbackInfo_; - /** - * - * - *
-   * In some cases when the server is not able to compute the route with the
-   * given preferences for this particular origin/destination pair, it may
-   * fall back to using a different mode of computation. When fallback mode is
-   * used, this field contains detailed information about the fallback response.
-   * Otherwise this field is unset.
-   * 
- * - * .google.maps.routing.v2.FallbackInfo fallback_info = 8; - * - * @return Whether the fallbackInfo field is set. - */ - @java.lang.Override - public boolean hasFallbackInfo() { - return fallbackInfo_ != null; - } - /** - * - * - *
-   * In some cases when the server is not able to compute the route with the
-   * given preferences for this particular origin/destination pair, it may
-   * fall back to using a different mode of computation. When fallback mode is
-   * used, this field contains detailed information about the fallback response.
-   * Otherwise this field is unset.
-   * 
- * - * .google.maps.routing.v2.FallbackInfo fallback_info = 8; - * - * @return The fallbackInfo. - */ - @java.lang.Override - public com.google.maps.routing.v2.FallbackInfo getFallbackInfo() { - return fallbackInfo_ == null - ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() - : fallbackInfo_; - } - /** - * - * - *
-   * In some cases when the server is not able to compute the route with the
-   * given preferences for this particular origin/destination pair, it may
-   * fall back to using a different mode of computation. When fallback mode is
-   * used, this field contains detailed information about the fallback response.
-   * Otherwise this field is unset.
-   * 
- * - * .google.maps.routing.v2.FallbackInfo fallback_info = 8; - */ - @java.lang.Override - public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder() { - return fallbackInfo_ == null - ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() - : fallbackInfo_; - } - - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, originIndex_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt32(2, destinationIndex_); - } - if (status_ != null) { - output.writeMessage(3, getStatus()); - } - if (distanceMeters_ != 0) { - output.writeInt32(4, distanceMeters_); - } - if (duration_ != null) { - output.writeMessage(5, getDuration()); - } - if (staticDuration_ != null) { - output.writeMessage(6, getStaticDuration()); - } - if (travelAdvisory_ != null) { - output.writeMessage(7, getTravelAdvisory()); - } - if (fallbackInfo_ != null) { - output.writeMessage(8, getFallbackInfo()); - } - if (condition_ - != com.google.maps.routing.v2.RouteMatrixElementCondition - .ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED - .getNumber()) { - output.writeEnum(9, condition_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, originIndex_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, destinationIndex_); - } - if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus()); - } - if (distanceMeters_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, distanceMeters_); - } - if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDuration()); - } - if (staticDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStaticDuration()); - } - if (travelAdvisory_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTravelAdvisory()); - } - if (fallbackInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFallbackInfo()); - } - if (condition_ - != com.google.maps.routing.v2.RouteMatrixElementCondition - .ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, condition_); - } - 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.maps.routing.v2.RouteMatrixElement)) { - return super.equals(obj); - } - com.google.maps.routing.v2.RouteMatrixElement other = - (com.google.maps.routing.v2.RouteMatrixElement) obj; - - if (hasOriginIndex() != other.hasOriginIndex()) return false; - if (hasOriginIndex()) { - if (getOriginIndex() != other.getOriginIndex()) return false; - } - if (hasDestinationIndex() != other.hasDestinationIndex()) return false; - if (hasDestinationIndex()) { - if (getDestinationIndex() != other.getDestinationIndex()) return false; - } - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; - } - if (condition_ != other.condition_) return false; - if (getDistanceMeters() != other.getDistanceMeters()) return false; - if (hasDuration() != other.hasDuration()) return false; - if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; - } - if (hasStaticDuration() != other.hasStaticDuration()) return false; - if (hasStaticDuration()) { - if (!getStaticDuration().equals(other.getStaticDuration())) return false; - } - if (hasTravelAdvisory() != other.hasTravelAdvisory()) return false; - if (hasTravelAdvisory()) { - if (!getTravelAdvisory().equals(other.getTravelAdvisory())) return false; - } - if (hasFallbackInfo() != other.hasFallbackInfo()) return false; - if (hasFallbackInfo()) { - if (!getFallbackInfo().equals(other.getFallbackInfo())) 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(); - if (hasOriginIndex()) { - hash = (37 * hash) + ORIGIN_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getOriginIndex(); - } - if (hasDestinationIndex()) { - hash = (37 * hash) + DESTINATION_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getDestinationIndex(); - } - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - hash = (37 * hash) + CONDITION_FIELD_NUMBER; - hash = (53 * hash) + condition_; - hash = (37 * hash) + DISTANCE_METERS_FIELD_NUMBER; - hash = (53 * hash) + getDistanceMeters(); - if (hasDuration()) { - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().hashCode(); - } - if (hasStaticDuration()) { - hash = (37 * hash) + STATIC_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getStaticDuration().hashCode(); - } - if (hasTravelAdvisory()) { - hash = (37 * hash) + TRAVEL_ADVISORY_FIELD_NUMBER; - hash = (53 * hash) + getTravelAdvisory().hashCode(); - } - if (hasFallbackInfo()) { - hash = (37 * hash) + FALLBACK_INFO_FIELD_NUMBER; - hash = (53 * hash) + getFallbackInfo().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.maps.routing.v2.RouteMatrixElement parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.maps.routing.v2.RouteMatrixElement parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.maps.routing.v2.RouteMatrixElement parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.maps.routing.v2.RouteMatrixElement parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.maps.routing.v2.RouteMatrixElement parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement 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 route information computed for an origin/destination pair in the
-   * ComputeRouteMatrix API. This proto can be streamed to the client.
-   * 
- * - * Protobuf type {@code google.maps.routing.v2.RouteMatrixElement} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.RouteMatrixElement) - com.google.maps.routing.v2.RouteMatrixElementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_RouteMatrixElement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteMatrixElement.class, - com.google.maps.routing.v2.RouteMatrixElement.Builder.class); - } - - // Construct using com.google.maps.routing.v2.RouteMatrixElement.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - originIndex_ = 0; - destinationIndex_ = 0; - status_ = null; - if (statusBuilder_ != null) { - statusBuilder_.dispose(); - statusBuilder_ = null; - } - condition_ = 0; - distanceMeters_ = 0; - duration_ = null; - if (durationBuilder_ != null) { - durationBuilder_.dispose(); - durationBuilder_ = null; - } - staticDuration_ = null; - if (staticDurationBuilder_ != null) { - staticDurationBuilder_.dispose(); - staticDurationBuilder_ = null; - } - travelAdvisory_ = null; - if (travelAdvisoryBuilder_ != null) { - travelAdvisoryBuilder_.dispose(); - travelAdvisoryBuilder_ = null; - } - fallbackInfo_ = null; - if (fallbackInfoBuilder_ != null) { - fallbackInfoBuilder_.dispose(); - fallbackInfoBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor; - } - - @java.lang.Override - public com.google.maps.routing.v2.RouteMatrixElement getDefaultInstanceForType() { - return com.google.maps.routing.v2.RouteMatrixElement.getDefaultInstance(); - } - - @java.lang.Override - public com.google.maps.routing.v2.RouteMatrixElement build() { - com.google.maps.routing.v2.RouteMatrixElement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.maps.routing.v2.RouteMatrixElement buildPartial() { - com.google.maps.routing.v2.RouteMatrixElement result = - new com.google.maps.routing.v2.RouteMatrixElement(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.maps.routing.v2.RouteMatrixElement result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.originIndex_ = originIndex_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.destinationIndex_ = destinationIndex_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.condition_ = condition_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.distanceMeters_ = distanceMeters_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.staticDuration_ = - staticDurationBuilder_ == null ? staticDuration_ : staticDurationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.travelAdvisory_ = - travelAdvisoryBuilder_ == null ? travelAdvisory_ : travelAdvisoryBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.fallbackInfo_ = - fallbackInfoBuilder_ == null ? fallbackInfo_ : fallbackInfoBuilder_.build(); - } - result.bitField0_ |= to_bitField0_; - } - - @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.maps.routing.v2.RouteMatrixElement) { - return mergeFrom((com.google.maps.routing.v2.RouteMatrixElement) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.maps.routing.v2.RouteMatrixElement other) { - if (other == com.google.maps.routing.v2.RouteMatrixElement.getDefaultInstance()) return this; - if (other.hasOriginIndex()) { - setOriginIndex(other.getOriginIndex()); - } - if (other.hasDestinationIndex()) { - setDestinationIndex(other.getDestinationIndex()); - } - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - if (other.condition_ != 0) { - setConditionValue(other.getConditionValue()); - } - if (other.getDistanceMeters() != 0) { - setDistanceMeters(other.getDistanceMeters()); - } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - if (other.hasStaticDuration()) { - mergeStaticDuration(other.getStaticDuration()); - } - if (other.hasTravelAdvisory()) { - mergeTravelAdvisory(other.getTravelAdvisory()); - } - if (other.hasFallbackInfo()) { - mergeFallbackInfo(other.getFallbackInfo()); - } - 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 8: - { - originIndex_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - destinationIndex_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - distanceMeters_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 42: - { - input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 50: - { - input.readMessage(getStaticDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - input.readMessage(getTravelAdvisoryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: - { - input.readMessage(getFallbackInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 72: - { - condition_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 72 - 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 int originIndex_; - /** - * - * - *
-     * Zero-based index of the origin in the request.
-     * 
- * - * optional int32 origin_index = 1; - * - * @return Whether the originIndex field is set. - */ - @java.lang.Override - public boolean hasOriginIndex() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Zero-based index of the origin in the request.
-     * 
- * - * optional int32 origin_index = 1; - * - * @return The originIndex. - */ - @java.lang.Override - public int getOriginIndex() { - return originIndex_; - } - /** - * - * - *
-     * Zero-based index of the origin in the request.
-     * 
- * - * optional int32 origin_index = 1; - * - * @param value The originIndex to set. - * @return This builder for chaining. - */ - public Builder setOriginIndex(int value) { - - originIndex_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Zero-based index of the origin in the request.
-     * 
- * - * optional int32 origin_index = 1; - * - * @return This builder for chaining. - */ - public Builder clearOriginIndex() { - bitField0_ = (bitField0_ & ~0x00000001); - originIndex_ = 0; - onChanged(); - return this; - } - - private int destinationIndex_; - /** - * - * - *
-     * Zero-based index of the destination in the request.
-     * 
- * - * optional int32 destination_index = 2; - * - * @return Whether the destinationIndex field is set. - */ - @java.lang.Override - public boolean hasDestinationIndex() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Zero-based index of the destination in the request.
-     * 
- * - * optional int32 destination_index = 2; - * - * @return The destinationIndex. - */ - @java.lang.Override - public int getDestinationIndex() { - return destinationIndex_; - } - /** - * - * - *
-     * Zero-based index of the destination in the request.
-     * 
- * - * optional int32 destination_index = 2; - * - * @param value The destinationIndex to set. - * @return This builder for chaining. - */ - public Builder setDestinationIndex(int value) { - - destinationIndex_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Zero-based index of the destination in the request.
-     * 
- * - * optional int32 destination_index = 2; - * - * @return This builder for chaining. - */ - public Builder clearDestinationIndex() { - bitField0_ = (bitField0_ & ~0x00000002); - destinationIndex_ = 0; - onChanged(); - return this; - } - - private com.google.rpc.Status status_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - statusBuilder_; - /** - * - * - *
-     * Error status code for this element.
-     * 
- * - * .google.rpc.Status status = 3; - * - * @return Whether the status field is set. - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Error status code for this element.
-     * 
- * - * .google.rpc.Status status = 3; - * - * @return The status. - */ - public com.google.rpc.Status getStatus() { - if (statusBuilder_ == null) { - return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; - } else { - return statusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Error status code for this element.
-     * 
- * - * .google.rpc.Status status = 3; - */ - public Builder setStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - } else { - statusBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Error status code for this element.
-     * 
- * - * .google.rpc.Status status = 3; - */ - public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Error status code for this element.
-     * 
- * - * .google.rpc.Status status = 3; - */ - public Builder mergeStatus(com.google.rpc.Status value) { - if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && status_ != null - && status_ != com.google.rpc.Status.getDefaultInstance()) { - getStatusBuilder().mergeFrom(value); - } else { - status_ = value; - } - } else { - statusBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Error status code for this element.
-     * 
- * - * .google.rpc.Status status = 3; - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000004); - status_ = null; - if (statusBuilder_ != null) { - statusBuilder_.dispose(); - statusBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Error status code for this element.
-     * 
- * - * .google.rpc.Status status = 3; - */ - public com.google.rpc.Status.Builder getStatusBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Error status code for this element.
-     * 
- * - * .google.rpc.Status status = 3; - */ - public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; - } - } - /** - * - * - *
-     * Error status code for this element.
-     * 
- * - * .google.rpc.Status status = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); - status_ = null; - } - return statusBuilder_; - } - - private int condition_ = 0; - /** - * - * - *
-     * Indicates whether the route was found or not. Independent of status.
-     * 
- * - * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; - * - * @return The enum numeric value on the wire for condition. - */ - @java.lang.Override - public int getConditionValue() { - return condition_; - } - /** - * - * - *
-     * Indicates whether the route was found or not. Independent of status.
-     * 
- * - * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; - * - * @param value The enum numeric value on the wire for condition to set. - * @return This builder for chaining. - */ - public Builder setConditionValue(int value) { - condition_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates whether the route was found or not. Independent of status.
-     * 
- * - * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; - * - * @return The condition. - */ - @java.lang.Override - public com.google.maps.routing.v2.RouteMatrixElementCondition getCondition() { - com.google.maps.routing.v2.RouteMatrixElementCondition result = - com.google.maps.routing.v2.RouteMatrixElementCondition.forNumber(condition_); - return result == null - ? com.google.maps.routing.v2.RouteMatrixElementCondition.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Indicates whether the route was found or not. Independent of status.
-     * 
- * - * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; - * - * @param value The condition to set. - * @return This builder for chaining. - */ - public Builder setCondition(com.google.maps.routing.v2.RouteMatrixElementCondition value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - condition_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates whether the route was found or not. Independent of status.
-     * 
- * - * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; - * - * @return This builder for chaining. - */ - public Builder clearCondition() { - bitField0_ = (bitField0_ & ~0x00000008); - condition_ = 0; - onChanged(); - return this; - } - - private int distanceMeters_; - /** - * - * - *
-     * The travel distance of the route, in meters.
-     * 
- * - * int32 distance_meters = 4; - * - * @return The distanceMeters. - */ - @java.lang.Override - public int getDistanceMeters() { - return distanceMeters_; - } - /** - * - * - *
-     * The travel distance of the route, in meters.
-     * 
- * - * int32 distance_meters = 4; - * - * @param value The distanceMeters to set. - * @return This builder for chaining. - */ - public Builder setDistanceMeters(int value) { - - distanceMeters_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The travel distance of the route, in meters.
-     * 
- * - * int32 distance_meters = 4; - * - * @return This builder for chaining. - */ - public Builder clearDistanceMeters() { - bitField0_ = (bitField0_ & ~0x00000010); - distanceMeters_ = 0; - onChanged(); - return this; - } - - 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_; - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
-     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
-     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 5; - * - * @return Whether the duration field is set. - */ - public boolean hasDuration() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
-     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
-     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 5; - * - * @return The duration. - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } else { - return durationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
-     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
-     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - duration_ = value; - } else { - durationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
-     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
-     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
-     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
-     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && duration_ != null - && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { - getDurationBuilder().mergeFrom(value); - } else { - duration_ = value; - } - } else { - durationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
-     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
-     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder clearDuration() { - bitField0_ = (bitField0_ & ~0x00000020); - duration_ = null; - if (durationBuilder_ != null) { - durationBuilder_.dispose(); - durationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
-     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
-     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
-     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
-     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); - } else { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - } - /** - * - * - *
-     * The length of time needed to navigate the route. If you set the
-     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
-     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
-     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
-     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
-     * conditions into account.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - 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()); - duration_ = null; - } - return durationBuilder_; - } - - private com.google.protobuf.Duration staticDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - staticDurationBuilder_; - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 6; - * - * @return Whether the staticDuration field is set. - */ - public boolean hasStaticDuration() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 6; - * - * @return The staticDuration. - */ - public com.google.protobuf.Duration getStaticDuration() { - if (staticDurationBuilder_ == null) { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } else { - return staticDurationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 6; - */ - public Builder setStaticDuration(com.google.protobuf.Duration value) { - if (staticDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - staticDuration_ = value; - } else { - staticDurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 6; - */ - public Builder setStaticDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (staticDurationBuilder_ == null) { - staticDuration_ = builderForValue.build(); - } else { - staticDurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 6; - */ - public Builder mergeStaticDuration(com.google.protobuf.Duration value) { - if (staticDurationBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && staticDuration_ != null - && staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { - getStaticDurationBuilder().mergeFrom(value); - } else { - staticDuration_ = value; - } - } else { - staticDurationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 6; - */ - public Builder clearStaticDuration() { - bitField0_ = (bitField0_ & ~0x00000040); - staticDuration_ = null; - if (staticDurationBuilder_ != null) { - staticDurationBuilder_.dispose(); - staticDurationBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 6; - */ - public com.google.protobuf.Duration.Builder getStaticDurationBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getStaticDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { - if (staticDurationBuilder_ != null) { - return staticDurationBuilder_.getMessageOrBuilder(); - } else { - return staticDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : staticDuration_; - } - } - /** - * - * - *
-     * The duration of traveling through the route without taking traffic
-     * conditions into consideration.
-     * 
- * - * .google.protobuf.Duration static_duration = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getStaticDurationFieldBuilder() { - if (staticDurationBuilder_ == null) { - staticDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getStaticDuration(), getParentForChildren(), isClean()); - staticDuration_ = null; - } - return staticDurationBuilder_; - } - - private com.google.maps.routing.v2.RouteTravelAdvisory travelAdvisory_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteTravelAdvisory, - com.google.maps.routing.v2.RouteTravelAdvisory.Builder, - com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder> - travelAdvisoryBuilder_; - /** - * - * - *
-     * Additional information about the route. For example: restriction
-     * information and toll information
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; - * - * @return Whether the travelAdvisory field is set. - */ - public boolean hasTravelAdvisory() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-     * Additional information about the route. For example: restriction
-     * information and toll information
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; - * - * @return The travelAdvisory. - */ - public com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory() { - if (travelAdvisoryBuilder_ == null) { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } else { - return travelAdvisoryBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Additional information about the route. For example: restriction
-     * information and toll information
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; - */ - public Builder setTravelAdvisory(com.google.maps.routing.v2.RouteTravelAdvisory value) { - if (travelAdvisoryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - travelAdvisory_ = value; - } else { - travelAdvisoryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Additional information about the route. For example: restriction
-     * information and toll information
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; - */ - public Builder setTravelAdvisory( - com.google.maps.routing.v2.RouteTravelAdvisory.Builder builderForValue) { - if (travelAdvisoryBuilder_ == null) { - travelAdvisory_ = builderForValue.build(); - } else { - travelAdvisoryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Additional information about the route. For example: restriction
-     * information and toll information
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; - */ - public Builder mergeTravelAdvisory(com.google.maps.routing.v2.RouteTravelAdvisory value) { - if (travelAdvisoryBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && travelAdvisory_ != null - && travelAdvisory_ - != com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance()) { - getTravelAdvisoryBuilder().mergeFrom(value); - } else { - travelAdvisory_ = value; - } - } else { - travelAdvisoryBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - * - * - *
-     * Additional information about the route. For example: restriction
-     * information and toll information
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; - */ - public Builder clearTravelAdvisory() { - bitField0_ = (bitField0_ & ~0x00000080); - travelAdvisory_ = null; - if (travelAdvisoryBuilder_ != null) { - travelAdvisoryBuilder_.dispose(); - travelAdvisoryBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Additional information about the route. For example: restriction
-     * information and toll information
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; - */ - public com.google.maps.routing.v2.RouteTravelAdvisory.Builder getTravelAdvisoryBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getTravelAdvisoryFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Additional information about the route. For example: restriction
-     * information and toll information
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; - */ - public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() { - if (travelAdvisoryBuilder_ != null) { - return travelAdvisoryBuilder_.getMessageOrBuilder(); - } else { - return travelAdvisory_ == null - ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() - : travelAdvisory_; - } - } - /** - * - * - *
-     * Additional information about the route. For example: restriction
-     * information and toll information
-     * 
- * - * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteTravelAdvisory, - com.google.maps.routing.v2.RouteTravelAdvisory.Builder, - com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder> - getTravelAdvisoryFieldBuilder() { - if (travelAdvisoryBuilder_ == null) { - travelAdvisoryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteTravelAdvisory, - com.google.maps.routing.v2.RouteTravelAdvisory.Builder, - com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder>( - getTravelAdvisory(), getParentForChildren(), isClean()); - travelAdvisory_ = null; - } - return travelAdvisoryBuilder_; - } - - private com.google.maps.routing.v2.FallbackInfo fallbackInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.FallbackInfo, - com.google.maps.routing.v2.FallbackInfo.Builder, - com.google.maps.routing.v2.FallbackInfoOrBuilder> - fallbackInfoBuilder_; - /** - * - * - *
-     * In some cases when the server is not able to compute the route with the
-     * given preferences for this particular origin/destination pair, it may
-     * fall back to using a different mode of computation. When fallback mode is
-     * used, this field contains detailed information about the fallback response.
-     * Otherwise this field is unset.
-     * 
- * - * .google.maps.routing.v2.FallbackInfo fallback_info = 8; - * - * @return Whether the fallbackInfo field is set. - */ - public boolean hasFallbackInfo() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * - * - *
-     * In some cases when the server is not able to compute the route with the
-     * given preferences for this particular origin/destination pair, it may
-     * fall back to using a different mode of computation. When fallback mode is
-     * used, this field contains detailed information about the fallback response.
-     * Otherwise this field is unset.
-     * 
- * - * .google.maps.routing.v2.FallbackInfo fallback_info = 8; - * - * @return The fallbackInfo. - */ - public com.google.maps.routing.v2.FallbackInfo getFallbackInfo() { - if (fallbackInfoBuilder_ == null) { - return fallbackInfo_ == null - ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() - : fallbackInfo_; - } else { - return fallbackInfoBuilder_.getMessage(); - } - } - /** - * - * - *
-     * In some cases when the server is not able to compute the route with the
-     * given preferences for this particular origin/destination pair, it may
-     * fall back to using a different mode of computation. When fallback mode is
-     * used, this field contains detailed information about the fallback response.
-     * Otherwise this field is unset.
-     * 
- * - * .google.maps.routing.v2.FallbackInfo fallback_info = 8; - */ - public Builder setFallbackInfo(com.google.maps.routing.v2.FallbackInfo value) { - if (fallbackInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fallbackInfo_ = value; - } else { - fallbackInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * In some cases when the server is not able to compute the route with the
-     * given preferences for this particular origin/destination pair, it may
-     * fall back to using a different mode of computation. When fallback mode is
-     * used, this field contains detailed information about the fallback response.
-     * Otherwise this field is unset.
-     * 
- * - * .google.maps.routing.v2.FallbackInfo fallback_info = 8; - */ - public Builder setFallbackInfo( - com.google.maps.routing.v2.FallbackInfo.Builder builderForValue) { - if (fallbackInfoBuilder_ == null) { - fallbackInfo_ = builderForValue.build(); - } else { - fallbackInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * In some cases when the server is not able to compute the route with the
-     * given preferences for this particular origin/destination pair, it may
-     * fall back to using a different mode of computation. When fallback mode is
-     * used, this field contains detailed information about the fallback response.
-     * Otherwise this field is unset.
-     * 
- * - * .google.maps.routing.v2.FallbackInfo fallback_info = 8; - */ - public Builder mergeFallbackInfo(com.google.maps.routing.v2.FallbackInfo value) { - if (fallbackInfoBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && fallbackInfo_ != null - && fallbackInfo_ != com.google.maps.routing.v2.FallbackInfo.getDefaultInstance()) { - getFallbackInfoBuilder().mergeFrom(value); - } else { - fallbackInfo_ = value; - } - } else { - fallbackInfoBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - * - * - *
-     * In some cases when the server is not able to compute the route with the
-     * given preferences for this particular origin/destination pair, it may
-     * fall back to using a different mode of computation. When fallback mode is
-     * used, this field contains detailed information about the fallback response.
-     * Otherwise this field is unset.
-     * 
- * - * .google.maps.routing.v2.FallbackInfo fallback_info = 8; - */ - public Builder clearFallbackInfo() { - bitField0_ = (bitField0_ & ~0x00000100); - fallbackInfo_ = null; - if (fallbackInfoBuilder_ != null) { - fallbackInfoBuilder_.dispose(); - fallbackInfoBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * In some cases when the server is not able to compute the route with the
-     * given preferences for this particular origin/destination pair, it may
-     * fall back to using a different mode of computation. When fallback mode is
-     * used, this field contains detailed information about the fallback response.
-     * Otherwise this field is unset.
-     * 
- * - * .google.maps.routing.v2.FallbackInfo fallback_info = 8; - */ - public com.google.maps.routing.v2.FallbackInfo.Builder getFallbackInfoBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getFallbackInfoFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * In some cases when the server is not able to compute the route with the
-     * given preferences for this particular origin/destination pair, it may
-     * fall back to using a different mode of computation. When fallback mode is
-     * used, this field contains detailed information about the fallback response.
-     * Otherwise this field is unset.
-     * 
- * - * .google.maps.routing.v2.FallbackInfo fallback_info = 8; - */ - public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder() { - if (fallbackInfoBuilder_ != null) { - return fallbackInfoBuilder_.getMessageOrBuilder(); - } else { - return fallbackInfo_ == null - ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() - : fallbackInfo_; - } - } - /** - * - * - *
-     * In some cases when the server is not able to compute the route with the
-     * given preferences for this particular origin/destination pair, it may
-     * fall back to using a different mode of computation. When fallback mode is
-     * used, this field contains detailed information about the fallback response.
-     * Otherwise this field is unset.
-     * 
- * - * .google.maps.routing.v2.FallbackInfo fallback_info = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.FallbackInfo, - com.google.maps.routing.v2.FallbackInfo.Builder, - com.google.maps.routing.v2.FallbackInfoOrBuilder> - getFallbackInfoFieldBuilder() { - if (fallbackInfoBuilder_ == null) { - fallbackInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.FallbackInfo, - com.google.maps.routing.v2.FallbackInfo.Builder, - com.google.maps.routing.v2.FallbackInfoOrBuilder>( - getFallbackInfo(), getParentForChildren(), isClean()); - fallbackInfo_ = null; - } - return fallbackInfoBuilder_; - } - - @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.maps.routing.v2.RouteMatrixElement) - } - - // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteMatrixElement) - private static final com.google.maps.routing.v2.RouteMatrixElement DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteMatrixElement(); - } - - public static com.google.maps.routing.v2.RouteMatrixElement getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java deleted file mode 100644 index 1f2314628834..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java +++ /dev/null @@ -1,84 +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/maps/routing/v2/route_modifiers.proto - -package com.google.maps.routing.v2; - -public final class RouteModifiersProto { - private RouteModifiersProto() {} - - 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_maps_routing_v2_RouteModifiers_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteModifiers_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/maps/routing/v2/route_modifiers" - + ".proto\022\026google.maps.routing.v2\032(google/m" - + "aps/routing/v2/toll_passes.proto\032)google" - + "/maps/routing/v2/vehicle_info.proto\"\334\001\n\016" - + "RouteModifiers\022\023\n\013avoid_tolls\030\001 \001(\010\022\026\n\016a" - + "void_highways\030\002 \001(\010\022\025\n\ravoid_ferries\030\003 \001" - + "(\010\022\024\n\014avoid_indoor\030\004 \001(\010\0229\n\014vehicle_info" - + "\030\005 \001(\0132#.google.maps.routing.v2.VehicleI" - + "nfo\0225\n\013toll_passes\030\006 \003(\0162 .google.maps.r" - + "outing.v2.TollPassB\310\001\n\032com.google.maps.r" - + "outing.v2B\023RouteModifiersProtoP\001Z:cloud." - + "google.com/go/maps/routing/apiv2/routing" - + "pb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Ro" - + "uting.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Goog" - + "le::Maps::Routing::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.maps.routing.v2.TollPassesProto.getDescriptor(), - com.google.maps.routing.v2.VehicleInfoProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_RouteModifiers_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_RouteModifiers_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteModifiers_descriptor, - new java.lang.String[] { - "AvoidTolls", - "AvoidHighways", - "AvoidFerries", - "AvoidIndoor", - "VehicleInfo", - "TollPasses", - }); - com.google.maps.routing.v2.TollPassesProto.getDescriptor(); - com.google.maps.routing.v2.VehicleInfoProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java deleted file mode 100644 index 6ef753082b30..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java +++ /dev/null @@ -1,219 +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/maps/routing/v2/route.proto - -package com.google.maps.routing.v2; - -public final class RouteProto { - private RouteProto() {} - - 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_maps_routing_v2_Route_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_Route_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteLeg_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteLegStep_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteLegStep_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/maps/routing/v2/route.proto\022\026go" - + "ogle.maps.routing.v2\032\036google/geo/type/vi" - + "ewport.proto\032%google/maps/routing/v2/loc" - + "ation.proto\0323google/maps/routing/v2/navi" - + "gation_instruction.proto\032%google/maps/ro" - + "uting/v2/polyline.proto\032(google/maps/rou" - + "ting/v2/route_label.proto\0323google/maps/r" - + "outing/v2/speed_reading_interval.proto\032&" - + "google/maps/routing/v2/toll_info.proto\032\036" - + "google/protobuf/duration.proto\"\316\003\n\005Route" - + "\0228\n\014route_labels\030\r \003(\0162\".google.maps.rou" - + "ting.v2.RouteLabel\022.\n\004legs\030\001 \003(\0132 .googl" - + "e.maps.routing.v2.RouteLeg\022\027\n\017distance_m" - + "eters\030\002 \001(\005\022+\n\010duration\030\003 \001(\0132\031.google.p" - + "rotobuf.Duration\0222\n\017static_duration\030\004 \001(" - + "\0132\031.google.protobuf.Duration\0222\n\010polyline" - + "\030\005 \001(\0132 .google.maps.routing.v2.Polyline" - + "\022\023\n\013description\030\006 \001(\t\022\020\n\010warnings\030\007 \003(\t\022" - + "+\n\010viewport\030\010 \001(\0132\031.google.geo.type.View" - + "port\022D\n\017travel_advisory\030\t \001(\0132+.google.m" - + "aps.routing.v2.RouteTravelAdvisory\022\023\n\013ro" - + "ute_token\030\014 \001(\t\"\277\001\n\023RouteTravelAdvisory\022" - + "3\n\ttoll_info\030\002 \001(\0132 .google.maps.routing" - + ".v2.TollInfo\022M\n\027speed_reading_intervals\030" - + "\003 \003(\0132,.google.maps.routing.v2.SpeedRead" - + "ingInterval\022$\n\034fuel_consumption_microlit" - + "ers\030\005 \001(\003\"\234\001\n\026RouteLegTravelAdvisory\0223\n\t" - + "toll_info\030\001 \001(\0132 .google.maps.routing.v2" - + ".TollInfo\022M\n\027speed_reading_intervals\030\002 \003" - + "(\0132,.google.maps.routing.v2.SpeedReading" - + "Interval\"k\n\032RouteLegStepTravelAdvisory\022M" - + "\n\027speed_reading_intervals\030\001 \003(\0132,.google" - + ".maps.routing.v2.SpeedReadingInterval\"\250\003" - + "\n\010RouteLeg\022\027\n\017distance_meters\030\001 \001(\005\022+\n\010d" - + "uration\030\002 \001(\0132\031.google.protobuf.Duration" - + "\0222\n\017static_duration\030\003 \001(\0132\031.google.proto" - + "buf.Duration\0222\n\010polyline\030\004 \001(\0132 .google." - + "maps.routing.v2.Polyline\0228\n\016start_locati" - + "on\030\005 \001(\0132 .google.maps.routing.v2.Locati" - + "on\0226\n\014end_location\030\006 \001(\0132 .google.maps.r" - + "outing.v2.Location\0223\n\005steps\030\007 \003(\0132$.goog" - + "le.maps.routing.v2.RouteLegStep\022G\n\017trave" - + "l_advisory\030\010 \001(\0132..google.maps.routing.v" - + "2.RouteLegTravelAdvisory\"\235\003\n\014RouteLegSte" - + "p\022\027\n\017distance_meters\030\001 \001(\005\0222\n\017static_dur" - + "ation\030\002 \001(\0132\031.google.protobuf.Duration\0222" - + "\n\010polyline\030\003 \001(\0132 .google.maps.routing.v" - + "2.Polyline\0228\n\016start_location\030\004 \001(\0132 .goo" - + "gle.maps.routing.v2.Location\0226\n\014end_loca" - + "tion\030\005 \001(\0132 .google.maps.routing.v2.Loca" - + "tion\022M\n\026navigation_instruction\030\006 \001(\0132-.g" - + "oogle.maps.routing.v2.NavigationInstruct" - + "ion\022K\n\017travel_advisory\030\007 \001(\01322.google.ma" - + "ps.routing.v2.RouteLegStepTravelAdvisory" - + "B\277\001\n\032com.google.maps.routing.v2B\nRoutePr" - + "otoP\001Z:cloud.google.com/go/maps/routing/" - + "apiv2/routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026G" - + "oogle.Maps.Routing.V2\312\002\026Google\\Maps\\Rout" - + "ing\\V2\352\002\031Google::Maps::Routing::V2b\006prot" - + "o3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.geo.type.ViewportProto.getDescriptor(), - com.google.maps.routing.v2.LocationProto.getDescriptor(), - com.google.maps.routing.v2.NavigationInstructionProto.getDescriptor(), - com.google.maps.routing.v2.PolylineProto.getDescriptor(), - com.google.maps.routing.v2.RouteLabelProto.getDescriptor(), - com.google.maps.routing.v2.SpeedReadingIntervalProto.getDescriptor(), - com.google.maps.routing.v2.TollInfoProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_Route_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_Route_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_Route_descriptor, - new java.lang.String[] { - "RouteLabels", - "Legs", - "DistanceMeters", - "Duration", - "StaticDuration", - "Polyline", - "Description", - "Warnings", - "Viewport", - "TravelAdvisory", - "RouteToken", - }); - internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor, - new java.lang.String[] { - "TollInfo", "SpeedReadingIntervals", "FuelConsumptionMicroliters", - }); - internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor, - new java.lang.String[] { - "TollInfo", "SpeedReadingIntervals", - }); - internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor, - new java.lang.String[] { - "SpeedReadingIntervals", - }); - internal_static_google_maps_routing_v2_RouteLeg_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteLeg_descriptor, - new java.lang.String[] { - "DistanceMeters", - "Duration", - "StaticDuration", - "Polyline", - "StartLocation", - "EndLocation", - "Steps", - "TravelAdvisory", - }); - internal_static_google_maps_routing_v2_RouteLegStep_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_maps_routing_v2_RouteLegStep_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteLegStep_descriptor, - new java.lang.String[] { - "DistanceMeters", - "StaticDuration", - "Polyline", - "StartLocation", - "EndLocation", - "NavigationInstruction", - "TravelAdvisory", - }); - com.google.geo.type.ViewportProto.getDescriptor(); - com.google.maps.routing.v2.LocationProto.getDescriptor(); - com.google.maps.routing.v2.NavigationInstructionProto.getDescriptor(); - com.google.maps.routing.v2.PolylineProto.getDescriptor(); - com.google.maps.routing.v2.RouteLabelProto.getDescriptor(); - com.google.maps.routing.v2.SpeedReadingIntervalProto.getDescriptor(); - com.google.maps.routing.v2.TollInfoProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java deleted file mode 100644 index 5dc190ea4624..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java +++ /dev/null @@ -1,55 +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/maps/routing/v2/route_travel_mode.proto - -package com.google.maps.routing.v2; - -public final class RouteTravelModeProto { - private RouteTravelModeProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - 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/maps/routing/v2/route_travel_mo" - + "de.proto\022\026google.maps.routing.v2*a\n\017Rout" - + "eTravelMode\022\033\n\027TRAVEL_MODE_UNSPECIFIED\020\000" - + "\022\t\n\005DRIVE\020\001\022\013\n\007BICYCLE\020\002\022\010\n\004WALK\020\003\022\017\n\013TW" - + "O_WHEELER\020\004B\311\001\n\032com.google.maps.routing." - + "v2B\024RouteTravelModeProtoP\001Z:cloud.google" - + ".com/go/maps/routing/apiv2/routingpb;rou" - + "tingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Routing." - + "V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Google::Ma" - + "ps::Routing::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java deleted file mode 100644 index c1362842520f..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java +++ /dev/null @@ -1,288 +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/maps/routing/v2/routes_service.proto - -package com.google.maps.routing.v2; - -public final class RoutesServiceProto { - private RoutesServiceProto() {} - - 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_maps_routing_v2_ComputeRoutesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteMatrixElement_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/maps/routing/v2/routes_service." - + "proto\022\026google.maps.routing.v2\032\034google/ap" - + "i/annotations.proto\032\027google/api/client.p" - + "roto\032\037google/api/field_behavior.proto\032*g" - + "oogle/maps/routing/v2/fallback_info.prot" - + "o\032.google/maps/routing/v2/geocoding_resu" - + "lts.proto\032%google/maps/routing/v2/polyli" - + "ne.proto\032\"google/maps/routing/v2/route.p" - + "roto\032,google/maps/routing/v2/route_modif" - + "iers.proto\032.google/maps/routing/v2/route" - + "_travel_mode.proto\032/google/maps/routing/" - + "v2/routing_preference.proto\032\"google/maps" - + "/routing/v2/units.proto\032%google/maps/rou" - + "ting/v2/waypoint.proto\032\036google/protobuf/" - + "duration.proto\032\037google/protobuf/timestam" - + "p.proto\032\027google/rpc/status.proto\"\206\t\n\024Com" - + "puteRoutesRequest\0226\n\006origin\030\001 \001(\0132 .goog" - + "le.maps.routing.v2.WaypointB\004\342A\001\002\022;\n\013des" - + "tination\030\002 \001(\0132 .google.maps.routing.v2." - + "WaypointB\004\342A\001\002\022=\n\rintermediates\030\003 \003(\0132 ." - + "google.maps.routing.v2.WaypointB\004\342A\001\001\022B\n" - + "\013travel_mode\030\004 \001(\0162\'.google.maps.routing" - + ".v2.RouteTravelModeB\004\342A\001\001\022K\n\022routing_pre" - + "ference\030\005 \001(\0162).google.maps.routing.v2.R" - + "outingPreferenceB\004\342A\001\001\022G\n\020polyline_quali" - + "ty\030\006 \001(\0162\'.google.maps.routing.v2.Polyli" - + "neQualityB\004\342A\001\001\022I\n\021polyline_encoding\030\014 \001" - + "(\0162(.google.maps.routing.v2.PolylineEnco" - + "dingB\004\342A\001\001\0228\n\016departure_time\030\007 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\004\342A\001\001\022(\n\032compute_" - + "alternative_routes\030\010 \001(\010B\004\342A\001\001\022E\n\017route_" - + "modifiers\030\t \001(\0132&.google.maps.routing.v2" - + ".RouteModifiersB\004\342A\001\001\022\033\n\rlanguage_code\030\n" - + " \001(\tB\004\342A\001\001\022\031\n\013region_code\030\020 \001(\tB\004\342A\001\001\0222\n" - + "\005units\030\013 \001(\0162\035.google.maps.routing.v2.Un" - + "itsB\004\342A\001\001\022e\n\032requested_reference_routes\030" - + "\016 \003(\0162;.google.maps.routing.v2.ComputeRo" - + "utesRequest.ReferenceRouteB\004\342A\001\001\022_\n\022extr" - + "a_computations\030\017 \003(\0162=.google.maps.routi" - + "ng.v2.ComputeRoutesRequest.ExtraComputat" - + "ionB\004\342A\001\001\"E\n\016ReferenceRoute\022\037\n\033REFERENCE" - + "_ROUTE_UNSPECIFIED\020\000\022\022\n\016FUEL_EFFICIENT\020\001" - + "\"o\n\020ExtraComputation\022!\n\035EXTRA_COMPUTATIO" - + "N_UNSPECIFIED\020\000\022\t\n\005TOLLS\020\001\022\024\n\020FUEL_CONSU" - + "MPTION\020\002\022\027\n\023TRAFFIC_ON_POLYLINE\020\003\"\310\001\n\025Co" - + "mputeRoutesResponse\022-\n\006routes\030\001 \003(\0132\035.go" - + "ogle.maps.routing.v2.Route\022;\n\rfallback_i" - + "nfo\030\002 \001(\0132$.google.maps.routing.v2.Fallb" - + "ackInfo\022C\n\021geocoding_results\030\003 \001(\0132(.goo" - + "gle.maps.routing.v2.GeocodingResults\"\324\004\n" - + "\031ComputeRouteMatrixRequest\022@\n\007origins\030\001 " - + "\003(\0132).google.maps.routing.v2.RouteMatrix" - + "OriginB\004\342A\001\002\022J\n\014destinations\030\002 \003(\0132..goo" - + "gle.maps.routing.v2.RouteMatrixDestinati" - + "onB\004\342A\001\002\022B\n\013travel_mode\030\003 \001(\0162\'.google.m" - + "aps.routing.v2.RouteTravelModeB\004\342A\001\001\022K\n\022" - + "routing_preference\030\004 \001(\0162).google.maps.r" - + "outing.v2.RoutingPreferenceB\004\342A\001\001\0228\n\016dep" - + "arture_time\030\005 \001(\0132\032.google.protobuf.Time" - + "stampB\004\342A\001\001\022\033\n\rlanguage_code\030\006 \001(\tB\004\342A\001\001" - + "\022\031\n\013region_code\030\t \001(\tB\004\342A\001\001\022d\n\022extra_com" - + "putations\030\010 \003(\0162B.google.maps.routing.v2" - + ".ComputeRouteMatrixRequest.ExtraComputat" - + "ionB\004\342A\001\001\"@\n\020ExtraComputation\022!\n\035EXTRA_C" - + "OMPUTATION_UNSPECIFIED\020\000\022\t\n\005TOLLS\020\001\"\224\001\n\021" - + "RouteMatrixOrigin\0228\n\010waypoint\030\001 \001(\0132 .go" - + "ogle.maps.routing.v2.WaypointB\004\342A\001\002\022E\n\017r" - + "oute_modifiers\030\002 \001(\0132&.google.maps.routi" - + "ng.v2.RouteModifiersB\004\342A\001\001\"R\n\026RouteMatri" - + "xDestination\0228\n\010waypoint\030\001 \001(\0132 .google." - + "maps.routing.v2.WaypointB\004\342A\001\002\"\337\003\n\022Route" - + "MatrixElement\022\031\n\014origin_index\030\001 \001(\005H\000\210\001\001" - + "\022\036\n\021destination_index\030\002 \001(\005H\001\210\001\001\022\"\n\006stat" - + "us\030\003 \001(\0132\022.google.rpc.Status\022F\n\tconditio" - + "n\030\t \001(\01623.google.maps.routing.v2.RouteMa" - + "trixElementCondition\022\027\n\017distance_meters\030" - + "\004 \001(\005\022+\n\010duration\030\005 \001(\0132\031.google.protobu" - + "f.Duration\0222\n\017static_duration\030\006 \001(\0132\031.go" - + "ogle.protobuf.Duration\022D\n\017travel_advisor" - + "y\030\007 \001(\0132+.google.maps.routing.v2.RouteTr" - + "avelAdvisory\022;\n\rfallback_info\030\010 \001(\0132$.go" - + "ogle.maps.routing.v2.FallbackInfoB\017\n\r_or" - + "igin_indexB\024\n\022_destination_index*t\n\033Rout" - + "eMatrixElementCondition\022.\n*ROUTE_MATRIX_" - + "ELEMENT_CONDITION_UNSPECIFIED\020\000\022\020\n\014ROUTE" - + "_EXISTS\020\001\022\023\n\017ROUTE_NOT_FOUND\020\0022\344\002\n\006Route" - + "s\022\225\001\n\rComputeRoutes\022,.google.maps.routin" - + "g.v2.ComputeRoutesRequest\032-.google.maps." - + "routing.v2.ComputeRoutesResponse\"\'\202\323\344\223\002!" - + "\"\034/directions/v2:computeRoutes:\001*\022\247\001\n\022Co" - + "mputeRouteMatrix\0221.google.maps.routing.v" - + "2.ComputeRouteMatrixRequest\032*.google.map" - + "s.routing.v2.RouteMatrixElement\"0\202\323\344\223\002*\"" - + "%/distanceMatrix/v2:computeRouteMatrix:\001" - + "*0\001\032\030\312A\025routes.googleapis.comB\307\001\n\032com.go" - + "ogle.maps.routing.v2B\022RoutesServiceProto" - + "P\001Z:cloud.google.com/go/maps/routing/api" - + "v2/routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Goog" - + "le.Maps.Routing.V2\312\002\026Google\\Maps\\Routing" - + "\\V2\352\002\031Google::Maps::Routing::V2b\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.maps.routing.v2.FallbackInfoProto.getDescriptor(), - com.google.maps.routing.v2.GeocodingResultsProto.getDescriptor(), - com.google.maps.routing.v2.PolylineProto.getDescriptor(), - com.google.maps.routing.v2.RouteProto.getDescriptor(), - com.google.maps.routing.v2.RouteModifiersProto.getDescriptor(), - com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(), - com.google.maps.routing.v2.RoutingPreferenceProto.getDescriptor(), - com.google.maps.routing.v2.UnitsProto.getDescriptor(), - com.google.maps.routing.v2.WaypointProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor, - new java.lang.String[] { - "Origin", - "Destination", - "Intermediates", - "TravelMode", - "RoutingPreference", - "PolylineQuality", - "PolylineEncoding", - "DepartureTime", - "ComputeAlternativeRoutes", - "RouteModifiers", - "LanguageCode", - "RegionCode", - "Units", - "RequestedReferenceRoutes", - "ExtraComputations", - }); - internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor, - new java.lang.String[] { - "Routes", "FallbackInfo", "GeocodingResults", - }); - internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor, - new java.lang.String[] { - "Origins", - "Destinations", - "TravelMode", - "RoutingPreference", - "DepartureTime", - "LanguageCode", - "RegionCode", - "ExtraComputations", - }); - internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor, - new java.lang.String[] { - "Waypoint", "RouteModifiers", - }); - internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor, - new java.lang.String[] { - "Waypoint", - }); - internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_maps_routing_v2_RouteMatrixElement_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor, - new java.lang.String[] { - "OriginIndex", - "DestinationIndex", - "Status", - "Condition", - "DistanceMeters", - "Duration", - "StaticDuration", - "TravelAdvisory", - "FallbackInfo", - "OriginIndex", - "DestinationIndex", - }); - 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); - 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.maps.routing.v2.FallbackInfoProto.getDescriptor(); - com.google.maps.routing.v2.GeocodingResultsProto.getDescriptor(); - com.google.maps.routing.v2.PolylineProto.getDescriptor(); - com.google.maps.routing.v2.RouteProto.getDescriptor(); - com.google.maps.routing.v2.RouteModifiersProto.getDescriptor(); - com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(); - com.google.maps.routing.v2.RoutingPreferenceProto.getDescriptor(); - com.google.maps.routing.v2.UnitsProto.getDescriptor(); - com.google.maps.routing.v2.WaypointProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java deleted file mode 100644 index 270fe7cdff5a..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java +++ /dev/null @@ -1,56 +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/maps/routing/v2/routing_preference.proto - -package com.google.maps.routing.v2; - -public final class RoutingPreferenceProto { - private RoutingPreferenceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - 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/maps/routing/v2/routing_prefere" - + "nce.proto\022\026google.maps.routing.v2*z\n\021Rou" - + "tingPreference\022\"\n\036ROUTING_PREFERENCE_UNS" - + "PECIFIED\020\000\022\023\n\017TRAFFIC_UNAWARE\020\001\022\021\n\rTRAFF" - + "IC_AWARE\020\002\022\031\n\025TRAFFIC_AWARE_OPTIMAL\020\003B\313\001" - + "\n\032com.google.maps.routing.v2B\026RoutingPre" - + "ferenceProtoP\001Z:cloud.google.com/go/maps" - + "/routing/apiv2/routingpb;routingpb\370\001\001\242\002\005" - + "GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\" - + "Maps\\Routing\\V2\352\002\031Google::Maps::Routing:" - + ":V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java deleted file mode 100644 index ceeeb076c375..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java +++ /dev/null @@ -1,79 +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/maps/routing/v2/speed_reading_interval.proto - -package com.google.maps.routing.v2; - -public final class SpeedReadingIntervalProto { - private SpeedReadingIntervalProto() {} - - 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_maps_routing_v2_SpeedReadingInterval_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/maps/routing/v2/speed_reading_i" - + "nterval.proto\022\026google.maps.routing.v2\"\274\002" - + "\n\024SpeedReadingInterval\022\'\n\032start_polyline" - + "_point_index\030\001 \001(\005H\001\210\001\001\022%\n\030end_polyline_" - + "point_index\030\002 \001(\005H\002\210\001\001\022C\n\005speed\030\003 \001(\01622." - + "google.maps.routing.v2.SpeedReadingInter" - + "val.SpeedH\000\"E\n\005Speed\022\025\n\021SPEED_UNSPECIFIE" - + "D\020\000\022\n\n\006NORMAL\020\001\022\010\n\004SLOW\020\002\022\017\n\013TRAFFIC_JAM" - + "\020\003B\014\n\nspeed_typeB\035\n\033_start_polyline_poin" - + "t_indexB\033\n\031_end_polyline_point_indexB\316\001\n" - + "\032com.google.maps.routing.v2B\031SpeedReadin" - + "gIntervalProtoP\001Z:cloud.google.com/go/ma" - + "ps/routing/apiv2/routingpb;routingpb\370\001\001\242" - + "\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Googl" - + "e\\Maps\\Routing\\V2\352\002\031Google::Maps::Routin" - + "g::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor, - new java.lang.String[] { - "StartPolylinePointIndex", - "EndPolylinePointIndex", - "Speed", - "SpeedType", - "StartPolylinePointIndex", - "EndPolylinePointIndex", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java deleted file mode 100644 index b458764c7afc..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java +++ /dev/null @@ -1,71 +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/maps/routing/v2/toll_info.proto - -package com.google.maps.routing.v2; - -public final class TollInfoProto { - private TollInfoProto() {} - - 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_maps_routing_v2_TollInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_TollInfo_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/maps/routing/v2/toll_info.proto" - + "\022\026google.maps.routing.v2\032\027google/type/mo" - + "ney.proto\"7\n\010TollInfo\022+\n\017estimated_price" - + "\030\001 \003(\0132\022.google.type.MoneyB\302\001\n\032com.googl" - + "e.maps.routing.v2B\rTollInfoProtoP\001Z:clou" - + "d.google.com/go/maps/routing/apiv2/routi" - + "ngpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps." - + "Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Go" - + "ogle::Maps::Routing::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.type.MoneyProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_TollInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_TollInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_TollInfo_descriptor, - new java.lang.String[] { - "EstimatedPrice", - }); - com.google.type.MoneyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java deleted file mode 100644 index 99ab3c06eb11..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java +++ /dev/null @@ -1,107 +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/maps/routing/v2/toll_passes.proto - -package com.google.maps.routing.v2; - -public final class TollPassesProto { - private TollPassesProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - 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/maps/routing/v2/toll_passes.pro" - + "to\022\026google.maps.routing.v2*\223\021\n\010TollPass\022" - + "\031\n\025TOLL_PASS_UNSPECIFIED\020\000\022\020\n\014AU_ETOLL_T" - + "AG\020R\022\017\n\013AU_EWAY_TAG\020S\022\014\n\010AU_LINKT\020\002\022\017\n\013A" - + "R_TELEPASE\020\003\022\023\n\017BR_AUTO_EXPRESO\020Q\022\020\n\014BR_" - + "CONECTCAR\020\007\022\020\n\014BR_MOVE_MAIS\020\010\022\023\n\017BR_PASS" - + "A_RAPIDO\020X\022\020\n\014BR_SEM_PARAR\020\t\022\014\n\010BR_TAGGY" - + "\020\n\022\014\n\010BR_VELOE\020\013\022)\n%CA_US_AKWASASNE_SEAW" - + "AY_CORPORATE_CARD\020T\022\'\n#CA_US_AKWASASNE_S" - + "EAWAY_TRANSIT_CARD\020U\022\036\n\032CA_US_BLUE_WATER" - + "_EDGE_PASS\020\022\022\023\n\017CA_US_CONNEXION\020\023\022\024\n\020CA_" - + "US_NEXUS_CARD\020\024\022\r\n\tID_E_TOLL\020\020\022\r\n\tIN_FAS" - + "TAG\020N\022\034\n\030IN_LOCAL_HP_PLATE_EXEMPT\020O\022\013\n\007M" - + "X_IAVE\020Z\022\013\n\007MX_PASE\020[\022\020\n\014MX_QUICKPASS\020]\022" - + "\"\n\036MX_SISTEMA_TELEPEAJE_CHIHUAHUA\020Y\022\017\n\013M" - + "X_TAG_IAVE\020\014\022\022\n\016MX_TAG_TELEVIA\020\r\022\016\n\nMX_T" - + "ELEVIA\020\\\022\016\n\nMX_VIAPASS\020\016\022\026\n\022US_AL_FREEDO" - + "M_PASS\020\025\0222\n.US_AK_ANTON_ANDERSON_TUNNEL_" - + "BOOK_OF_10_TICKETS\020\026\022\021\n\rUS_CA_FASTRAK\020\004\022" - + "\035\n\031US_CA_FASTRAK_CAV_STICKER\020V\022\025\n\021US_CO_" - + "EXPRESSTOLL\020\027\022\021\n\rUS_CO_GO_PASS\020\030\022\022\n\016US_D" - + "E_EZPASSDE\020\031\022$\n US_FL_BOB_SIKES_TOLL_BRI" - + "DGE_PASS\020A\022:\n6US_FL_DUNES_COMMUNITY_DEVE" - + "LOPMENT_DISTRICT_EXPRESSCARD\020B\022\017\n\013US_FL_" - + "EPASS\020C\022\030\n\024US_FL_GIBA_TOLL_PASS\020D\022\020\n\014US_" - + "FL_LEEWAY\020E\022\021\n\rUS_FL_SUNPASS\020F\022\025\n\021US_FL_" - + "SUNPASS_PRO\020G\022\022\n\016US_IL_EZPASSIL\020I\022\017\n\013US_" - + "IL_IPASS\020H\022\022\n\016US_IN_EZPASSIN\020\032\022\032\n\026US_KS_" - + "BESTPASS_HORIZON\020\033\022\016\n\nUS_KS_KTAG\020\034\022\026\n\022US" - + "_KS_NATIONALPASS\020\035\022\033\n\027US_KS_PREPASS_ELIT" - + "EPASS\020\036\022\023\n\017US_KY_RIVERLINK\020\037\022\023\n\017US_LA_GE" - + "AUXPASS\020 \022\022\n\016US_LA_TOLL_TAG\020!\022\022\n\016US_MA_E" - + "ZPASSMA\020\006\022\022\n\016US_MD_EZPASSMD\020\"\022\022\n\016US_ME_E" - + "ZPASSME\020#\0221\n-US_MI_AMBASSADOR_BRIDGE_PRE" - + "MIER_COMMUTER_CARD\020$\022\020\n\014US_MI_BCPASS\020^\022)" - + "\n%US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG\020" - + "%\022\026\n\022US_MI_IQ_PROX_CARD\020&\022\"\n\036US_MI_MACKI" - + "NAC_BRIDGE_MAC_PASS\020\'\022\027\n\023US_MI_NEXPRESS_" - + "TOLL\020(\022\022\n\016US_MN_EZPASSMN\020)\022\022\n\016US_NC_EZPA" - + "SSNC\020*\022\024\n\020US_NC_PEACH_PASS\020W\022\024\n\020US_NC_QU" - + "ICK_PASS\020+\022\022\n\016US_NH_EZPASSNH\020P\022 \n\034US_NJ_" - + "DOWNBEACH_EXPRESS_PASS\020K\022\022\n\016US_NJ_EZPASS" - + "NJ\020J\022\025\n\021US_NY_EXPRESSPASS\020L\022\022\n\016US_NY_EZP" - + "ASSNY\020M\022\022\n\016US_OH_EZPASSOH\020,\022\022\n\016US_PA_EZP" - + "ASSPA\020-\022\022\n\016US_RI_EZPASSRI\020.\022\021\n\rUS_SC_PAL" - + "PASS\020/\022\022\n\016US_TX_BANCPASS\0200\022\026\n\022US_TX_DEL_" - + "RIO_PASS\0201\022\024\n\020US_TX_EFAST_PASS\0202\022!\n\035US_T" - + "X_EAGLE_PASS_EXPRESS_CARD\0203\022\020\n\014US_TX_EPT" - + "OLL\0204\022\022\n\016US_TX_EZ_CROSS\0205\022\017\n\013US_TX_EZTAG" - + "\0206\022\032\n\026US_TX_LAREDO_TRADE_TAG\0207\022\022\n\016US_TX_" - + "PLUSPASS\0208\022\021\n\rUS_TX_TOLLTAG\0209\022\017\n\013US_TX_T" - + "XTAG\020:\022\025\n\021US_TX_XPRESS_CARD\020;\022\'\n#US_UT_A" - + "DAMS_AVE_PARKWAY_EXPRESSCARD\020<\022\022\n\016US_VA_" - + "EZPASSVA\020=\022\022\n\016US_WA_BREEZEBY\020\021\022\024\n\020US_WA_" - + "GOOD_TO_GO\020\001\022\022\n\016US_WV_EZPASSWV\020>\022!\n\035US_W" - + "V_MEMORIAL_BRIDGE_TICKETS\020?\022#\n\037US_WV_NEW" - + "ELL_TOLL_BRIDGE_TICKET\020@B\304\001\n\032com.google." - + "maps.routing.v2B\017TollPassesProtoP\001Z:clou" - + "d.google.com/go/maps/routing/apiv2/routi" - + "ngpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps." - + "Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Go" - + "ogle::Maps::Routing::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java deleted file mode 100644 index ffc970453a97..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java +++ /dev/null @@ -1,53 +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/maps/routing/v2/units.proto - -package com.google.maps.routing.v2; - -public final class UnitsProto { - private UnitsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - 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/maps/routing/v2/units.proto\022\026go" - + "ogle.maps.routing.v2*8\n\005Units\022\025\n\021UNITS_U" - + "NSPECIFIED\020\000\022\n\n\006METRIC\020\001\022\014\n\010IMPERIAL\020\002B\277" - + "\001\n\032com.google.maps.routing.v2B\nUnitsProt" - + "oP\001Z:cloud.google.com/go/maps/routing/ap" - + "iv2/routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Goo" - + "gle.Maps.Routing.V2\312\002\026Google\\Maps\\Routin" - + "g\\V2\352\002\031Google::Maps::Routing::V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java deleted file mode 100644 index 620583071a68..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java +++ /dev/null @@ -1,56 +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/maps/routing/v2/vehicle_emission_type.proto - -package com.google.maps.routing.v2; - -public final class VehicleEmissionTypeProto { - private VehicleEmissionTypeProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/maps/routing/v2/vehicle_emissio" - + "n_type.proto\022\026google.maps.routing.v2*p\n\023" - + "VehicleEmissionType\022%\n!VEHICLE_EMISSION_" - + "TYPE_UNSPECIFIED\020\000\022\014\n\010GASOLINE\020\001\022\014\n\010ELEC" - + "TRIC\020\002\022\n\n\006HYBRID\020\003\022\n\n\006DIESEL\020\004B\315\001\n\032com.g" - + "oogle.maps.routing.v2B\030VehicleEmissionTy" - + "peProtoP\001Z:cloud.google.com/go/maps/rout" - + "ing/apiv2/routingpb;routingpb\370\001\001\242\002\005GMRV2" - + "\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Maps\\" - + "Routing\\V2\352\002\031Google::Maps::Routing::V2b\006" - + "proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java deleted file mode 100644 index 5295208b48ec..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java +++ /dev/null @@ -1,73 +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/maps/routing/v2/vehicle_info.proto - -package com.google.maps.routing.v2; - -public final class VehicleInfoProto { - private VehicleInfoProto() {} - - 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_maps_routing_v2_VehicleInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_VehicleInfo_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/maps/routing/v2/vehicle_info.pr" - + "oto\022\026google.maps.routing.v2\0322google/maps" - + "/routing/v2/vehicle_emission_type.proto\"" - + "Q\n\013VehicleInfo\022B\n\remission_type\030\002 \001(\0162+." - + "google.maps.routing.v2.VehicleEmissionTy" - + "peB\305\001\n\032com.google.maps.routing.v2B\020Vehic" - + "leInfoProtoP\001Z:cloud.google.com/go/maps/" - + "routing/apiv2/routingpb;routingpb\370\001\001\242\002\005G" - + "MRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\M" - + "aps\\Routing\\V2\352\002\031Google::Maps::Routing::" - + "V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.maps.routing.v2.VehicleEmissionTypeProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_VehicleInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_VehicleInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_VehicleInfo_descriptor, - new java.lang.String[] { - "EmissionType", - }); - com.google.maps.routing.v2.VehicleEmissionTypeProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java deleted file mode 100644 index a8ffe241b24b..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java +++ /dev/null @@ -1,81 +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/maps/routing/v2/waypoint.proto - -package com.google.maps.routing.v2; - -public final class WaypointProto { - private WaypointProto() {} - - 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_maps_routing_v2_Waypoint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_Waypoint_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/maps/routing/v2/waypoint.proto\022" - + "\026google.maps.routing.v2\032%google/maps/rou" - + "ting/v2/location.proto\"\265\001\n\010Waypoint\0224\n\010l" - + "ocation\030\001 \001(\0132 .google.maps.routing.v2.L" - + "ocationH\000\022\022\n\010place_id\030\002 \001(\tH\000\022\021\n\007address" - + "\030\007 \001(\tH\000\022\013\n\003via\030\003 \001(\010\022\030\n\020vehicle_stopove" - + "r\030\004 \001(\010\022\024\n\014side_of_road\030\005 \001(\010B\017\n\rlocatio" - + "n_typeB\302\001\n\032com.google.maps.routing.v2B\rW" - + "aypointProtoP\001Z:cloud.google.com/go/maps" - + "/routing/apiv2/routingpb;routingpb\370\001\001\242\002\005" - + "GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\" - + "Maps\\Routing\\V2\352\002\031Google::Maps::Routing:" - + ":V2b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.maps.routing.v2.LocationProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_Waypoint_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_Waypoint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_Waypoint_descriptor, - new java.lang.String[] { - "Location", - "PlaceId", - "Address", - "Via", - "VehicleStopover", - "SideOfRoad", - "LocationType", - }); - com.google.maps.routing.v2.LocationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto deleted file mode 100644 index 7d5c89b793e5..000000000000 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto +++ /dev/null @@ -1,219 +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 -// -// http://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. - -syntax = "proto3"; - -package google.maps.routing.v2; - -import "google/geo/type/viewport.proto"; -import "google/maps/routing/v2/location.proto"; -import "google/maps/routing/v2/navigation_instruction.proto"; -import "google/maps/routing/v2/polyline.proto"; -import "google/maps/routing/v2/route_label.proto"; -import "google/maps/routing/v2/speed_reading_interval.proto"; -import "google/maps/routing/v2/toll_info.proto"; -import "google/protobuf/duration.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; -option java_multiple_files = true; -option java_outer_classname = "RouteProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// Encapsulates a route, which consists of a series of connected road segments -// that join beginning, ending, and intermediate waypoints. -message Route { - // Labels for the `Route` that are useful to identify specific properties - // of the route to compare against others. - repeated RouteLabel route_labels = 13; - - // A collection of legs (path segments between waypoints) that make-up the - // route. Each leg corresponds to the trip between two non-`via` - // [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no - // intermediate waypoints has only one leg. A route that includes one - // non-`via` intermediate waypoint has two legs. A route that includes one - // `via` intermediate waypoint has one leg. The order of the legs matches the - // order of Waypoints from `origin` to `intermediates` to `destination`. - repeated RouteLeg legs = 1; - - // The travel distance of the route, in meters. - int32 distance_meters = 2; - - // The length of time needed to navigate the route. If you set the - // `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as - // `static_duration`. If you set the `routing_preference` to either - // `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated - // taking traffic conditions into account. - google.protobuf.Duration duration = 3; - - // The duration of traveling through the route without taking traffic - // conditions into consideration. - google.protobuf.Duration static_duration = 4; - - // The overall route polyline. This polyline will be the combined polyline of - // all `legs`. - Polyline polyline = 5; - - // A description of the route. - string description = 6; - - // An array of warnings to show when displaying the route. - repeated string warnings = 7; - - // The viewport bounding box of the polyline. - google.geo.type.Viewport viewport = 8; - - // Additional information about the route. - RouteTravelAdvisory travel_advisory = 9; - - // Web-safe base64 encoded route token that can be passed to NavigationSDK, - // which allows the Navigation SDK to reconstruct the route during navigation, - // and in the event of rerouting honor the original intention when Routes - // ComputeRoutes is called. Customers should treat this token as an - // opaque blob. - // NOTE: `Route.route_token` is only available for requests that have set - // `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or - // `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for - // requests that have Via waypoints. - string route_token = 12; -} - -// Encapsulates the additional information that the user should be informed -// about, such as possible traffic zone restriction etc. -message RouteTravelAdvisory { - // Encapsulates information about tolls on the Route. - // This field is only populated if we expect there are tolls on the Route. - // If this field is set but the estimated_price subfield is not populated, - // we expect that road contains tolls but we do not know an estimated price. - // If this field is not set, then we expect there is no toll on the Route. - TollInfo toll_info = 2; - - // Speed reading intervals detailing traffic density. Applicable in case of - // `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences. - // The intervals cover the entire polyline of the route without overlap. - // The start point of a specified interval is the same as the end point of the - // preceding interval. - // - // Example: - // - // polyline: A ---- B ---- C ---- D ---- E ---- F ---- G - // speed_reading_intervals: [A,C), [C,D), [D,G). - repeated SpeedReadingInterval speed_reading_intervals = 3; - - // The fuel consumption prediction in microliters. - int64 fuel_consumption_microliters = 5; -} - -// Encapsulates the additional information that the user should be informed -// about, such as possible traffic zone restriction etc. on a route leg. -message RouteLegTravelAdvisory { - // Encapsulates information about tolls on the specific RouteLeg. - // This field is only populated if we expect there are tolls on the RouteLeg. - // If this field is set but the estimated_price subfield is not populated, - // we expect that road contains tolls but we do not know an estimated price. - // If this field does not exist, then there is no toll on the RouteLeg. - TollInfo toll_info = 1; - - // Speed reading intervals detailing traffic density. Applicable in case of - // `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences. - // The intervals cover the entire polyline of the RouteLg without overlap. - // The start point of a specified interval is the same as the end point of the - // preceding interval. - // - // Example: - // - // polyline: A ---- B ---- C ---- D ---- E ---- F ---- G - // speed_reading_intervals: [A,C), [C,D), [D,G). - repeated SpeedReadingInterval speed_reading_intervals = 2; -} - -// Encapsulates the additional information that the user should be informed -// about, such as possible traffic zone restriction on a leg step. -message RouteLegStepTravelAdvisory { - // NOTE: This field is not currently populated. - repeated SpeedReadingInterval speed_reading_intervals = 1; -} - -// Encapsulates a segment between non-`via` waypoints. -message RouteLeg { - // The travel distance of the route leg, in meters. - int32 distance_meters = 1; - - // The length of time needed to navigate the leg. If the `route_preference` - // is set to `TRAFFIC_UNAWARE`, then this value is the same as - // `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or - // `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic - // conditions into account. - google.protobuf.Duration duration = 2; - - // The duration of traveling through the leg, calculated without taking - // traffic conditions into consideration. - google.protobuf.Duration static_duration = 3; - - // The overall polyline for this leg. This includes that each `step`'s - // polyline. - Polyline polyline = 4; - - // The start location of this leg. This might be different from the provided - // `origin`. For example, when the provided `origin` is not near a road, this - // is a point on the road. - Location start_location = 5; - - // The end location of this leg. This might be different from the provided - // `destination`. For example, when the provided `destination` is not near a - // road, this is a point on the road. - Location end_location = 6; - - // An array of steps denoting segments within this leg. Each step represents - // one navigation instruction. - repeated RouteLegStep steps = 7; - - // Encapsulates the additional information that the user should be informed - // about, such as possible traffic zone restriction etc. on a route leg. - RouteLegTravelAdvisory travel_advisory = 8; -} - -// Encapsulates a segment of a [RouteLeg][google.maps.routing.v2.RouteLeg]. A -// step corresponds to a single navigation instruction. Route legs are made up -// of steps. -message RouteLegStep { - // The travel distance of this step, in meters. In some circumstances, this - // field might not have a value. - int32 distance_meters = 1; - - // The duration of travel through this step without taking traffic conditions - // into consideration. In some circumstances, this field might not have a - // value. - google.protobuf.Duration static_duration = 2; - - // The polyline associated with this step. - Polyline polyline = 3; - - // The start location of this step. - Location start_location = 4; - - // The end location of this step. - Location end_location = 5; - - // Navigation instructions. - NavigationInstruction navigation_instruction = 6; - - // Encapsulates the additional information that the user should be informed - // about, such as possible traffic zone restriction on a leg step. - RouteLegStepTravelAdvisory travel_advisory = 7; -} diff --git a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java similarity index 95% rename from java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java rename to owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java index 4449dbe4a040..d6c7bd4f673c 100644 --- a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java +++ b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java @@ -49,13 +49,17 @@ * .setPolylineQuality(PolylineQuality.forNumber(0)) * .setPolylineEncoding(PolylineEncoding.forNumber(0)) * .setDepartureTime(Timestamp.newBuilder().build()) + * .setArrivalTime(Timestamp.newBuilder().build()) * .setComputeAlternativeRoutes(true) * .setRouteModifiers(RouteModifiers.newBuilder().build()) * .setLanguageCode("languageCode-2092349083") * .setRegionCode("regionCode-1991004415") * .setUnits(Units.forNumber(0)) + * .setOptimizeWaypointOrder(true) * .addAllRequestedReferenceRoutes(new ArrayList()) * .addAllExtraComputations(new ArrayList()) + * .setTrafficModel(TrafficModel.forNumber(0)) + * .setTransitPreferences(TransitPreferences.newBuilder().build()) * .build(); * ComputeRoutesResponse response = routesClient.computeRoutes(request); * } @@ -231,13 +235,17 @@ public RoutesStub getStub() { * .setPolylineQuality(PolylineQuality.forNumber(0)) * .setPolylineEncoding(PolylineEncoding.forNumber(0)) * .setDepartureTime(Timestamp.newBuilder().build()) + * .setArrivalTime(Timestamp.newBuilder().build()) * .setComputeAlternativeRoutes(true) * .setRouteModifiers(RouteModifiers.newBuilder().build()) * .setLanguageCode("languageCode-2092349083") * .setRegionCode("regionCode-1991004415") * .setUnits(Units.forNumber(0)) + * .setOptimizeWaypointOrder(true) * .addAllRequestedReferenceRoutes(new ArrayList()) * .addAllExtraComputations(new ArrayList()) + * .setTrafficModel(TrafficModel.forNumber(0)) + * .setTransitPreferences(TransitPreferences.newBuilder().build()) * .build(); * ComputeRoutesResponse response = routesClient.computeRoutes(request); * } @@ -304,13 +312,17 @@ public final ComputeRoutesResponse computeRoutes(ComputeRoutesRequest request) { * .setPolylineQuality(PolylineQuality.forNumber(0)) * .setPolylineEncoding(PolylineEncoding.forNumber(0)) * .setDepartureTime(Timestamp.newBuilder().build()) + * .setArrivalTime(Timestamp.newBuilder().build()) * .setComputeAlternativeRoutes(true) * .setRouteModifiers(RouteModifiers.newBuilder().build()) * .setLanguageCode("languageCode-2092349083") * .setRegionCode("regionCode-1991004415") * .setUnits(Units.forNumber(0)) + * .setOptimizeWaypointOrder(true) * .addAllRequestedReferenceRoutes(new ArrayList()) * .addAllExtraComputations(new ArrayList()) + * .setTrafficModel(TrafficModel.forNumber(0)) + * .setTransitPreferences(TransitPreferences.newBuilder().build()) * .build(); * ApiFuture future = * routesClient.computeRoutesCallable().futureCall(request); @@ -377,9 +389,12 @@ public final UnaryCallable computeR * .setTravelMode(RouteTravelMode.forNumber(0)) * .setRoutingPreference(RoutingPreference.forNumber(0)) * .setDepartureTime(Timestamp.newBuilder().build()) + * .setArrivalTime(Timestamp.newBuilder().build()) * .setLanguageCode("languageCode-2092349083") * .setRegionCode("regionCode-1991004415") * .addAllExtraComputations(new ArrayList()) + * .setTrafficModel(TrafficModel.forNumber(0)) + * .setTransitPreferences(TransitPreferences.newBuilder().build()) * .build(); * ServerStream stream = * routesClient.computeRouteMatrixCallable().call(request); diff --git a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java similarity index 99% rename from java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java rename to owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java index 44cc5ad8a188..38264d0b5557 100644 --- a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java +++ b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.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.ServerStreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.maps.routing.v2.stub.RoutesStubSettings; diff --git a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/gapic_metadata.json b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/gapic_metadata.json similarity index 100% rename from java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/gapic_metadata.json rename to owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/gapic_metadata.json diff --git a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/package-info.java b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/package-info.java similarity index 91% rename from java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/package-info.java rename to owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/package-info.java index a5437832a646..d6fef577af43 100644 --- a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/package-info.java +++ b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/package-info.java @@ -42,13 +42,17 @@ * .setPolylineQuality(PolylineQuality.forNumber(0)) * .setPolylineEncoding(PolylineEncoding.forNumber(0)) * .setDepartureTime(Timestamp.newBuilder().build()) + * .setArrivalTime(Timestamp.newBuilder().build()) * .setComputeAlternativeRoutes(true) * .setRouteModifiers(RouteModifiers.newBuilder().build()) * .setLanguageCode("languageCode-2092349083") * .setRegionCode("regionCode-1991004415") * .setUnits(Units.forNumber(0)) + * .setOptimizeWaypointOrder(true) * .addAllRequestedReferenceRoutes(new ArrayList()) * .addAllExtraComputations(new ArrayList()) + * .setTrafficModel(TrafficModel.forNumber(0)) + * .setTransitPreferences(TransitPreferences.newBuilder().build()) * .build(); * ComputeRoutesResponse response = routesClient.computeRoutes(request); * } diff --git a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesCallableFactory.java b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesCallableFactory.java similarity index 100% rename from java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesCallableFactory.java rename to owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesCallableFactory.java diff --git a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesStub.java b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesStub.java similarity index 100% rename from java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesStub.java rename to owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesStub.java diff --git a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesCallableFactory.java b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesCallableFactory.java similarity index 100% rename from java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesCallableFactory.java rename to owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesCallableFactory.java diff --git a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesStub.java b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesStub.java similarity index 100% rename from java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesStub.java rename to owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesStub.java diff --git a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStub.java b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStub.java similarity index 100% rename from java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStub.java rename to owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStub.java diff --git a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java similarity index 100% rename from java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java rename to owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java diff --git a/java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutes.java b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutes.java similarity index 100% rename from java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutes.java rename to owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutes.java diff --git a/java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutesImpl.java b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutesImpl.java similarity index 100% rename from java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutesImpl.java rename to owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutesImpl.java diff --git a/java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientHttpJsonTest.java b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientHttpJsonTest.java similarity index 93% rename from java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientHttpJsonTest.java rename to owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientHttpJsonTest.java index f36413e100a2..1f2d5fe2dd19 100644 --- a/java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientHttpJsonTest.java +++ b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientHttpJsonTest.java @@ -92,13 +92,17 @@ public void computeRoutesTest() throws Exception { .setPolylineQuality(PolylineQuality.forNumber(0)) .setPolylineEncoding(PolylineEncoding.forNumber(0)) .setDepartureTime(Timestamp.newBuilder().build()) + .setArrivalTime(Timestamp.newBuilder().build()) .setComputeAlternativeRoutes(true) .setRouteModifiers(RouteModifiers.newBuilder().build()) .setLanguageCode("languageCode-2092349083") .setRegionCode("regionCode-1991004415") .setUnits(Units.forNumber(0)) + .setOptimizeWaypointOrder(true) .addAllRequestedReferenceRoutes(new ArrayList()) .addAllExtraComputations(new ArrayList()) + .setTrafficModel(TrafficModel.forNumber(0)) + .setTransitPreferences(TransitPreferences.newBuilder().build()) .build(); ComputeRoutesResponse actualResponse = client.computeRoutes(request); @@ -137,13 +141,17 @@ public void computeRoutesExceptionTest() throws Exception { .setPolylineQuality(PolylineQuality.forNumber(0)) .setPolylineEncoding(PolylineEncoding.forNumber(0)) .setDepartureTime(Timestamp.newBuilder().build()) + .setArrivalTime(Timestamp.newBuilder().build()) .setComputeAlternativeRoutes(true) .setRouteModifiers(RouteModifiers.newBuilder().build()) .setLanguageCode("languageCode-2092349083") .setRegionCode("regionCode-1991004415") .setUnits(Units.forNumber(0)) + .setOptimizeWaypointOrder(true) .addAllRequestedReferenceRoutes(new ArrayList()) .addAllExtraComputations(new ArrayList()) + .setTrafficModel(TrafficModel.forNumber(0)) + .setTransitPreferences(TransitPreferences.newBuilder().build()) .build(); client.computeRoutes(request); Assert.fail("No exception raised"); diff --git a/java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientTest.java b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientTest.java similarity index 89% rename from java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientTest.java rename to owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientTest.java index 66ac1ac4d1b8..cf4eafcb8c1a 100644 --- a/java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientTest.java +++ b/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientTest.java @@ -103,13 +103,17 @@ public void computeRoutesTest() throws Exception { .setPolylineQuality(PolylineQuality.forNumber(0)) .setPolylineEncoding(PolylineEncoding.forNumber(0)) .setDepartureTime(Timestamp.newBuilder().build()) + .setArrivalTime(Timestamp.newBuilder().build()) .setComputeAlternativeRoutes(true) .setRouteModifiers(RouteModifiers.newBuilder().build()) .setLanguageCode("languageCode-2092349083") .setRegionCode("regionCode-1991004415") .setUnits(Units.forNumber(0)) + .setOptimizeWaypointOrder(true) .addAllRequestedReferenceRoutes(new ArrayList()) .addAllExtraComputations(new ArrayList()) + .setTrafficModel(TrafficModel.forNumber(0)) + .setTransitPreferences(TransitPreferences.newBuilder().build()) .build(); ComputeRoutesResponse actualResponse = client.computeRoutes(request); @@ -127,16 +131,21 @@ public void computeRoutesTest() throws Exception { Assert.assertEquals(request.getPolylineQuality(), actualRequest.getPolylineQuality()); Assert.assertEquals(request.getPolylineEncoding(), actualRequest.getPolylineEncoding()); Assert.assertEquals(request.getDepartureTime(), actualRequest.getDepartureTime()); + Assert.assertEquals(request.getArrivalTime(), actualRequest.getArrivalTime()); Assert.assertEquals( request.getComputeAlternativeRoutes(), actualRequest.getComputeAlternativeRoutes()); Assert.assertEquals(request.getRouteModifiers(), actualRequest.getRouteModifiers()); Assert.assertEquals(request.getLanguageCode(), actualRequest.getLanguageCode()); Assert.assertEquals(request.getRegionCode(), actualRequest.getRegionCode()); Assert.assertEquals(request.getUnits(), actualRequest.getUnits()); + Assert.assertEquals( + request.getOptimizeWaypointOrder(), actualRequest.getOptimizeWaypointOrder()); Assert.assertEquals( request.getRequestedReferenceRoutesList(), actualRequest.getRequestedReferenceRoutesList()); Assert.assertEquals( request.getExtraComputationsList(), actualRequest.getExtraComputationsList()); + Assert.assertEquals(request.getTrafficModel(), actualRequest.getTrafficModel()); + Assert.assertEquals(request.getTransitPreferences(), actualRequest.getTransitPreferences()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -159,13 +168,17 @@ public void computeRoutesExceptionTest() throws Exception { .setPolylineQuality(PolylineQuality.forNumber(0)) .setPolylineEncoding(PolylineEncoding.forNumber(0)) .setDepartureTime(Timestamp.newBuilder().build()) + .setArrivalTime(Timestamp.newBuilder().build()) .setComputeAlternativeRoutes(true) .setRouteModifiers(RouteModifiers.newBuilder().build()) .setLanguageCode("languageCode-2092349083") .setRegionCode("regionCode-1991004415") .setUnits(Units.forNumber(0)) + .setOptimizeWaypointOrder(true) .addAllRequestedReferenceRoutes(new ArrayList()) .addAllExtraComputations(new ArrayList()) + .setTrafficModel(TrafficModel.forNumber(0)) + .setTransitPreferences(TransitPreferences.newBuilder().build()) .build(); client.computeRoutes(request); Assert.fail("No exception raised"); @@ -187,6 +200,7 @@ public void computeRouteMatrixTest() throws Exception { .setStaticDuration(Duration.newBuilder().build()) .setTravelAdvisory(RouteTravelAdvisory.newBuilder().build()) .setFallbackInfo(FallbackInfo.newBuilder().build()) + .setLocalizedValues(RouteMatrixElement.LocalizedValues.newBuilder().build()) .build(); mockRoutes.addResponse(expectedResponse); ComputeRouteMatrixRequest request = @@ -196,9 +210,12 @@ public void computeRouteMatrixTest() throws Exception { .setTravelMode(RouteTravelMode.forNumber(0)) .setRoutingPreference(RoutingPreference.forNumber(0)) .setDepartureTime(Timestamp.newBuilder().build()) + .setArrivalTime(Timestamp.newBuilder().build()) .setLanguageCode("languageCode-2092349083") .setRegionCode("regionCode-1991004415") .addAllExtraComputations(new ArrayList()) + .setTrafficModel(TrafficModel.forNumber(0)) + .setTransitPreferences(TransitPreferences.newBuilder().build()) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); @@ -223,9 +240,12 @@ public void computeRouteMatrixExceptionTest() throws Exception { .setTravelMode(RouteTravelMode.forNumber(0)) .setRoutingPreference(RoutingPreference.forNumber(0)) .setDepartureTime(Timestamp.newBuilder().build()) + .setArrivalTime(Timestamp.newBuilder().build()) .setLanguageCode("languageCode-2092349083") .setRegionCode("regionCode-1991004415") .addAllExtraComputations(new ArrayList()) + .setTrafficModel(TrafficModel.forNumber(0)) + .setTransitPreferences(TransitPreferences.newBuilder().build()) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); diff --git a/java-maps-routing/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java b/owl-bot-staging/java-maps-routing/v2/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java similarity index 69% rename from java-maps-routing/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java rename to owl-bot-staging/java-maps-routing/v2/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java index 8d1ecd0c5f2a..88e31aa0f94a 100644 --- a/java-maps-routing/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java +++ b/owl-bot-staging/java-maps-routing/v2/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.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.maps.routing.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * The Routes API.
  * 
@@ -35,139 +18,113 @@ private RoutesGrpc() {} public static final String SERVICE_NAME = "google.maps.routing.v2.Routes"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.maps.routing.v2.ComputeRoutesRequest, - com.google.maps.routing.v2.ComputeRoutesResponse> - getComputeRoutesMethod; + private static volatile io.grpc.MethodDescriptor getComputeRoutesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ComputeRoutes", requestType = com.google.maps.routing.v2.ComputeRoutesRequest.class, responseType = com.google.maps.routing.v2.ComputeRoutesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.maps.routing.v2.ComputeRoutesRequest, - com.google.maps.routing.v2.ComputeRoutesResponse> - getComputeRoutesMethod() { - io.grpc.MethodDescriptor< - com.google.maps.routing.v2.ComputeRoutesRequest, - com.google.maps.routing.v2.ComputeRoutesResponse> - getComputeRoutesMethod; + public static io.grpc.MethodDescriptor getComputeRoutesMethod() { + io.grpc.MethodDescriptor getComputeRoutesMethod; if ((getComputeRoutesMethod = RoutesGrpc.getComputeRoutesMethod) == null) { synchronized (RoutesGrpc.class) { if ((getComputeRoutesMethod = RoutesGrpc.getComputeRoutesMethod) == null) { - RoutesGrpc.getComputeRoutesMethod = - getComputeRoutesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeRoutes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.maps.routing.v2.ComputeRoutesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.maps.routing.v2.ComputeRoutesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new RoutesMethodDescriptorSupplier("ComputeRoutes")) - .build(); + RoutesGrpc.getComputeRoutesMethod = getComputeRoutesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeRoutes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.routing.v2.ComputeRoutesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.routing.v2.ComputeRoutesResponse.getDefaultInstance())) + .setSchemaDescriptor(new RoutesMethodDescriptorSupplier("ComputeRoutes")) + .build(); } } } return getComputeRoutesMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.maps.routing.v2.ComputeRouteMatrixRequest, - com.google.maps.routing.v2.RouteMatrixElement> - getComputeRouteMatrixMethod; + private static volatile io.grpc.MethodDescriptor getComputeRouteMatrixMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ComputeRouteMatrix", requestType = com.google.maps.routing.v2.ComputeRouteMatrixRequest.class, responseType = com.google.maps.routing.v2.RouteMatrixElement.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.maps.routing.v2.ComputeRouteMatrixRequest, - com.google.maps.routing.v2.RouteMatrixElement> - getComputeRouteMatrixMethod() { - io.grpc.MethodDescriptor< - com.google.maps.routing.v2.ComputeRouteMatrixRequest, - com.google.maps.routing.v2.RouteMatrixElement> - getComputeRouteMatrixMethod; + public static io.grpc.MethodDescriptor getComputeRouteMatrixMethod() { + io.grpc.MethodDescriptor getComputeRouteMatrixMethod; if ((getComputeRouteMatrixMethod = RoutesGrpc.getComputeRouteMatrixMethod) == null) { synchronized (RoutesGrpc.class) { if ((getComputeRouteMatrixMethod = RoutesGrpc.getComputeRouteMatrixMethod) == null) { - RoutesGrpc.getComputeRouteMatrixMethod = - getComputeRouteMatrixMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeRouteMatrix")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.maps.routing.v2.ComputeRouteMatrixRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.maps.routing.v2.RouteMatrixElement.getDefaultInstance())) - .setSchemaDescriptor(new RoutesMethodDescriptorSupplier("ComputeRouteMatrix")) - .build(); + RoutesGrpc.getComputeRouteMatrixMethod = getComputeRouteMatrixMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeRouteMatrix")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.routing.v2.ComputeRouteMatrixRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.routing.v2.RouteMatrixElement.getDefaultInstance())) + .setSchemaDescriptor(new RoutesMethodDescriptorSupplier("ComputeRouteMatrix")) + .build(); } } } return getComputeRouteMatrixMethod; } - /** 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 RoutesStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RoutesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RoutesStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RoutesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RoutesStub(channel, callOptions); + } + }; return RoutesStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static RoutesBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static RoutesBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RoutesBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RoutesBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RoutesBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RoutesBlockingStub(channel, callOptions); + } + }; return RoutesBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static RoutesFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static RoutesFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RoutesFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RoutesFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RoutesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RoutesFutureStub(channel, callOptions); + } + }; return RoutesFutureStub.newStub(factory, channel); } /** - * - * *
    * The Routes API.
    * 
@@ -175,8 +132,6 @@ public RoutesFutureStub newStub( public interface AsyncService { /** - * - * *
      * Returns the primary route along with optional alternate routes, given a set
      * of terminal and intermediate waypoints.
@@ -210,17 +165,12 @@ public interface AsyncService {
      * size, and thus higher network throughput.
      * 
*/ - default void computeRoutes( - com.google.maps.routing.v2.ComputeRoutesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getComputeRoutesMethod(), responseObserver); + default void computeRoutes(com.google.maps.routing.v2.ComputeRoutesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeRoutesMethod(), responseObserver); } /** - * - * *
      * Takes in a list of origins and destinations and returns a stream containing
      * route information for each combination of origin and destination.
@@ -254,50 +204,46 @@ default void computeRoutes(
      * size, and thus higher network throughput.
      * 
*/ - default void computeRouteMatrix( - com.google.maps.routing.v2.ComputeRouteMatrixRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getComputeRouteMatrixMethod(), responseObserver); + default void computeRouteMatrix(com.google.maps.routing.v2.ComputeRouteMatrixRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeRouteMatrixMethod(), responseObserver); } } /** * Base class for the server implementation of the service Routes. - * *
    * The Routes API.
    * 
*/ - public abstract static class RoutesImplBase implements io.grpc.BindableService, AsyncService { + public static abstract class RoutesImplBase + implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return RoutesGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Routes. - * *
    * The Routes API.
    * 
*/ - public static final class RoutesStub extends io.grpc.stub.AbstractAsyncStub { - private RoutesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class RoutesStub + extends io.grpc.stub.AbstractAsyncStub { + private RoutesStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected RoutesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected RoutesStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RoutesStub(channel, callOptions); } /** - * - * *
      * Returns the primary route along with optional alternate routes, given a set
      * of terminal and intermediate waypoints.
@@ -331,19 +277,13 @@ protected RoutesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOpti
      * size, and thus higher network throughput.
      * 
*/ - public void computeRoutes( - com.google.maps.routing.v2.ComputeRoutesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void computeRoutes(com.google.maps.routing.v2.ComputeRoutesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getComputeRoutesMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getComputeRoutesMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Takes in a list of origins and destinations and returns a stream containing
      * route information for each combination of origin and destination.
@@ -377,38 +317,33 @@ public void computeRoutes(
      * size, and thus higher network throughput.
      * 
*/ - public void computeRouteMatrix( - com.google.maps.routing.v2.ComputeRouteMatrixRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void computeRouteMatrix(com.google.maps.routing.v2.ComputeRouteMatrixRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getComputeRouteMatrixMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getComputeRouteMatrixMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Routes. - * *
    * The Routes API.
    * 
*/ public static final class RoutesBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private RoutesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private RoutesBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected RoutesBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected RoutesBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RoutesBlockingStub(channel, callOptions); } /** - * - * *
      * Returns the primary route along with optional alternate routes, given a set
      * of terminal and intermediate waypoints.
@@ -442,15 +377,12 @@ protected RoutesBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions
      * size, and thus higher network throughput.
      * 
*/ - public com.google.maps.routing.v2.ComputeRoutesResponse computeRoutes( - com.google.maps.routing.v2.ComputeRoutesRequest request) { + public com.google.maps.routing.v2.ComputeRoutesResponse computeRoutes(com.google.maps.routing.v2.ComputeRoutesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getComputeRoutesMethod(), getCallOptions(), request); } /** - * - * *
      * Takes in a list of origins and destinations and returns a stream containing
      * route information for each combination of origin and destination.
@@ -493,25 +425,24 @@ public java.util.Iterator compute
 
   /**
    * A stub to allow clients to do ListenableFuture-style rpc calls to service Routes.
-   *
    * 
    * The Routes API.
    * 
*/ public static final class RoutesFutureStub extends io.grpc.stub.AbstractFutureStub { - private RoutesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private RoutesFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected RoutesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected RoutesFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RoutesFutureStub(channel, callOptions); } /** - * - * *
      * Returns the primary route along with optional alternate routes, given a set
      * of terminal and intermediate waypoints.
@@ -545,9 +476,8 @@ protected RoutesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
      * size, and thus higher network throughput.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.maps.routing.v2.ComputeRoutesResponse> - computeRoutes(com.google.maps.routing.v2.ComputeRoutesRequest request) { + public com.google.common.util.concurrent.ListenableFuture computeRoutes( + com.google.maps.routing.v2.ComputeRoutesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getComputeRoutesMethod(), getCallOptions()), request); } @@ -556,11 +486,11 @@ protected RoutesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca private static final int METHODID_COMPUTE_ROUTES = 0; private static final int METHODID_COMPUTE_ROUTE_MATRIX = 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; @@ -574,16 +504,12 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_COMPUTE_ROUTES: - serviceImpl.computeRoutes( - (com.google.maps.routing.v2.ComputeRoutesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.computeRoutes((com.google.maps.routing.v2.ComputeRoutesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COMPUTE_ROUTE_MATRIX: - serviceImpl.computeRouteMatrix( - (com.google.maps.routing.v2.ComputeRouteMatrixRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.computeRouteMatrix((com.google.maps.routing.v2.ComputeRouteMatrixRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -604,25 +530,24 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getComputeRoutesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.maps.routing.v2.ComputeRoutesRequest, - com.google.maps.routing.v2.ComputeRoutesResponse>( - service, METHODID_COMPUTE_ROUTES))) + getComputeRoutesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.routing.v2.ComputeRoutesRequest, + com.google.maps.routing.v2.ComputeRoutesResponse>( + service, METHODID_COMPUTE_ROUTES))) .addMethod( - getComputeRouteMatrixMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.maps.routing.v2.ComputeRouteMatrixRequest, - com.google.maps.routing.v2.RouteMatrixElement>( - service, METHODID_COMPUTE_ROUTE_MATRIX))) + getComputeRouteMatrixMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.maps.routing.v2.ComputeRouteMatrixRequest, + com.google.maps.routing.v2.RouteMatrixElement>( + service, METHODID_COMPUTE_ROUTE_MATRIX))) .build(); } - private abstract static class RoutesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class RoutesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { RoutesBaseDescriptorSupplier() {} @java.lang.Override @@ -636,11 +561,13 @@ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() } } - private static final class RoutesFileDescriptorSupplier extends RoutesBaseDescriptorSupplier { + private static final class RoutesFileDescriptorSupplier + extends RoutesBaseDescriptorSupplier { RoutesFileDescriptorSupplier() {} } - private static final class RoutesMethodDescriptorSupplier extends RoutesBaseDescriptorSupplier + private static final class RoutesMethodDescriptorSupplier + extends RoutesBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; @@ -662,13 +589,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (RoutesGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new RoutesFileDescriptorSupplier()) - .addMethod(getComputeRoutesMethod()) - .addMethod(getComputeRouteMatrixMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new RoutesFileDescriptorSupplier()) + .addMethod(getComputeRoutesMethod()) + .addMethod(getComputeRouteMatrixMethod()) + .build(); } } } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java similarity index 57% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java index 5c97f79d0dca..942a47caef9b 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; /** - * - * *
  * ComputeRouteMatrix request message
  * 
* * Protobuf type {@code google.maps.routing.v2.ComputeRouteMatrixRequest} */ -public final class ComputeRouteMatrixRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ComputeRouteMatrixRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.ComputeRouteMatrixRequest) ComputeRouteMatrixRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ComputeRouteMatrixRequest.newBuilder() to construct. private ComputeRouteMatrixRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ComputeRouteMatrixRequest() { origins_ = java.util.Collections.emptyList(); destinations_ = java.util.Collections.emptyList(); @@ -45,42 +27,39 @@ private ComputeRouteMatrixRequest() { languageCode_ = ""; regionCode_ = ""; extraComputations_ = java.util.Collections.emptyList(); + trafficModel_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ComputeRouteMatrixRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.ComputeRouteMatrixRequest.class, - com.google.maps.routing.v2.ComputeRouteMatrixRequest.Builder.class); + com.google.maps.routing.v2.ComputeRouteMatrixRequest.class, com.google.maps.routing.v2.ComputeRouteMatrixRequest.Builder.class); } /** - * - * *
    * Extra computations to perform while completing the request.
    * 
* * Protobuf enum {@code google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation} */ - public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum { + public enum ExtraComputation + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not used. Requests containing this value will fail.
      * 
@@ -89,8 +68,6 @@ public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum */ EXTRA_COMPUTATION_UNSPECIFIED(0), /** - * - * *
      * Toll information for the matrix element(s).
      * 
@@ -102,8 +79,6 @@ public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Not used. Requests containing this value will fail.
      * 
@@ -112,8 +87,6 @@ public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum */ public static final int EXTRA_COMPUTATION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Toll information for the matrix element(s).
      * 
@@ -122,6 +95,7 @@ public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum */ public static final int TOLLS_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -146,43 +120,39 @@ public static ExtraComputation valueOf(int value) { */ public static ExtraComputation forNumber(int value) { switch (value) { - case 0: - return EXTRA_COMPUTATION_UNSPECIFIED; - case 1: - return TOLLS; - default: - return null; + case 0: return EXTRA_COMPUTATION_UNSPECIFIED; + case 1: return TOLLS; + 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< + ExtraComputation> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExtraComputation findValueByNumber(int number) { + return ExtraComputation.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExtraComputation findValueByNumber(int number) { - return ExtraComputation.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.maps.routing.v2.ComputeRouteMatrixRequest.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.maps.routing.v2.ComputeRouteMatrixRequest.getDescriptor().getEnumTypes().get(0); } private static final ExtraComputation[] VALUES = values(); @@ -190,7 +160,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ExtraComputation 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; @@ -208,12 +179,9 @@ private ExtraComputation(int value) { } public static final int ORIGINS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List origins_; /** - * - * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -227,17 +195,13 @@ private ExtraComputation(int value) {
    * must be no greater than 50.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getOriginsList() { return origins_; } /** - * - * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -251,18 +215,14 @@ public java.util.List getOriginsLi
    * must be no greater than 50.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getOriginsOrBuilderList() { return origins_; } /** - * - * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -276,17 +236,13 @@ public java.util.List getOriginsLi
    * must be no greater than 50.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getOriginsCount() { return origins_.size(); } /** - * - * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -300,17 +256,13 @@ public int getOriginsCount() {
    * must be no greater than 50.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.maps.routing.v2.RouteMatrixOrigin getOrigins(int index) { return origins_.get(index); } /** - * - * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -324,95 +276,73 @@ public com.google.maps.routing.v2.RouteMatrixOrigin getOrigins(int index) {
    * must be no greater than 50.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder(int index) { + public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder( + int index) { return origins_.get(index); } public static final int DESTINATIONS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List destinations_; /** - * - * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public java.util.List getDestinationsList() { return destinations_; } /** - * - * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List + public java.util.List getDestinationsOrBuilderList() { return destinations_; } /** - * - * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getDestinationsCount() { return destinations_.size(); } /** - * - * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.maps.routing.v2.RouteMatrixDestination getDestinations(int index) { return destinations_.get(index); } /** - * - * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuilder( @@ -423,47 +353,32 @@ public com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestination public static final int TRAVEL_MODE_FIELD_NUMBER = 3; private int travelMode_ = 0; /** - * - * *
    * Optional. Specifies the mode of transportation.
    * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for travelMode. */ - @java.lang.Override - public int getTravelModeValue() { + @java.lang.Override public int getTravelModeValue() { return travelMode_; } /** - * - * *
    * Optional. Specifies the mode of transportation.
    * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The travelMode. */ - @java.lang.Override - public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { - com.google.maps.routing.v2.RouteTravelMode result = - com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + @java.lang.Override public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { + com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; } public static final int ROUTING_PREFERENCE_FIELD_NUMBER = 4; private int routingPreference_ = 0; /** - * - * *
    * Optional. Specifies how to compute the route. The server attempts to use
    * the selected routing preference to compute the route. If the routing
@@ -472,19 +387,13 @@ public com.google.maps.routing.v2.RouteTravelMode getTravelMode() {
    * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for routingPreference. */ - @java.lang.Override - public int getRoutingPreferenceValue() { + @java.lang.Override public int getRoutingPreferenceValue() { return routingPreference_; } /** - * - * *
    * Optional. Specifies how to compute the route. The server attempts to use
    * the selected routing preference to compute the route. If the routing
@@ -493,33 +402,26 @@ public int getRoutingPreferenceValue() {
    * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The routingPreference. */ - @java.lang.Override - public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() { - com.google.maps.routing.v2.RoutingPreference result = - com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); + @java.lang.Override public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() { + com.google.maps.routing.v2.RoutingPreference result = com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); return result == null ? com.google.maps.routing.v2.RoutingPreference.UNRECOGNIZED : result; } public static final int DEPARTURE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp departureTime_; /** - * - * *
-   * Optional. The departure time. If you don't set this value, this defaults to
-   * the time that you made the request. If you set this value to a time that
-   * has already occurred, the request fails.
+   * Optional. The departure time. If you don't set this value, then this value
+   * defaults to the time that you made the request.
+   * NOTE: You can only specify a `departure_time` in the past when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the departureTime field is set. */ @java.lang.Override @@ -527,51 +429,91 @@ public boolean hasDepartureTime() { return departureTime_ != null; } /** - * - * *
-   * Optional. The departure time. If you don't set this value, this defaults to
-   * the time that you made the request. If you set this value to a time that
-   * has already occurred, the request fails.
+   * Optional. The departure time. If you don't set this value, then this value
+   * defaults to the time that you made the request.
+   * NOTE: You can only specify a `departure_time` in the past when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The departureTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDepartureTime() { - return departureTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : departureTime_; + return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + } + /** + *
+   * Optional. The departure time. If you don't set this value, then this value
+   * defaults to the time that you made the request.
+   * NOTE: You can only specify a `departure_time` in the past when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
+   * 
+ * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { + return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; } + + public static final int ARRIVAL_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp arrivalTime_; /** + *
+   * Optional. The arrival time.
+   * NOTE: Can only be set when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+   * both.
+   * 
* + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the arrivalTime field is set. + */ + @java.lang.Override + public boolean hasArrivalTime() { + return arrivalTime_ != null; + } + /** + *
+   * Optional. The arrival time.
+   * NOTE: Can only be set when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+   * both.
+   * 
* + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return The arrivalTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getArrivalTime() { + return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + } + /** *
-   * Optional. The departure time. If you don't set this value, this defaults to
-   * the time that you made the request. If you set this value to a time that
-   * has already occurred, the request fails.
+   * Optional. The arrival time.
+   * NOTE: Can only be set when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+   * both.
    * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { - return departureTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : departureTime_; + public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { + return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** - * - * *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -582,7 +524,6 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -591,15 +532,14 @@ public java.lang.String getLanguageCode() { 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(); languageCode_ = s; return s; } } /** - * - * *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -610,15 +550,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -627,12 +568,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int REGION_CODE_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object regionCode_ = ""; /** - * - * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -640,7 +578,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
    * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The regionCode. */ @java.lang.Override @@ -649,15 +586,14 @@ public java.lang.String getRegionCode() { 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(); regionCode_ = s; return s; } } /** - * - * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -665,15 +601,16 @@ public java.lang.String getRegionCode() {
    * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for regionCode. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionCodeBytes() { + public com.google.protobuf.ByteString + getRegionCodeBytes() { java.lang.Object ref = regionCode_; 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); regionCode_ = b; return b; } else { @@ -682,30 +619,18 @@ public com.google.protobuf.ByteString getRegionCodeBytes() { } public static final int EXTRA_COMPUTATIONS_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private java.util.List extraComputations_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation> - extraComputations_converter_ = + java.lang.Integer, com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation> extraComputations_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>() { - public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation convert( - java.lang.Integer from) { - com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation result = - com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation.forNumber( - from); - return result == null - ? com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation - .UNRECOGNIZED - : result; + java.lang.Integer, com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>() { + public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation convert(java.lang.Integer from) { + com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation result = com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation.forNumber(from); + return result == null ? com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation.UNRECOGNIZED : result; } }; /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -713,22 +638,15 @@ public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation con
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the extraComputations. */ @java.lang.Override - public java.util.List - getExtraComputationsList() { + public java.util.List getExtraComputationsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>( - extraComputations_, extraComputations_converter_); + java.lang.Integer, com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>(extraComputations_, extraComputations_converter_); } /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -736,10 +654,7 @@ public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation con
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of extraComputations. */ @java.lang.Override @@ -747,8 +662,6 @@ public int getExtraComputationsCount() { return extraComputations_.size(); } /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -756,21 +669,15 @@ public int getExtraComputationsCount() {
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The extraComputations at the given index. */ @java.lang.Override - public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation getExtraComputations( - int index) { + public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation getExtraComputations(int index) { return extraComputations_converter_.convert(extraComputations_.get(index)); } /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -778,19 +685,15 @@ public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation get
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for extraComputations. */ @java.lang.Override - public java.util.List getExtraComputationsValueList() { + public java.util.List + getExtraComputationsValueList() { return extraComputations_; } /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -798,10 +701,7 @@ public java.util.List getExtraComputationsValueList() {
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of extraComputations at the given index. */ @@ -809,11 +709,98 @@ public java.util.List getExtraComputationsValueList() { public int getExtraComputationsValue(int index) { return extraComputations_.get(index); } - private int extraComputationsMemoizedSerializedSize; - private byte memoizedIsInitialized = -1; + public static final int TRAFFIC_MODEL_FIELD_NUMBER = 10; + private int trafficModel_ = 0; + /** + *
+   * Optional. Specifies the assumptions to use when calculating time in
+   * traffic. This setting affects the value returned in the duration field in
+   * the [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] which
+   * contains the predicted time in traffic based on historical averages.
+   * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+   * `TRAFFIC_AWARE_OPTIMAL` and
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+   * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+   * specified.
+   * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enum numeric value on the wire for trafficModel. + */ + @java.lang.Override public int getTrafficModelValue() { + return trafficModel_; + } + /** + *
+   * Optional. Specifies the assumptions to use when calculating time in
+   * traffic. This setting affects the value returned in the duration field in
+   * the [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] which
+   * contains the predicted time in traffic based on historical averages.
+   * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+   * `TRAFFIC_AWARE_OPTIMAL` and
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+   * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+   * specified.
+   * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return The trafficModel. + */ + @java.lang.Override public com.google.maps.routing.v2.TrafficModel getTrafficModel() { + com.google.maps.routing.v2.TrafficModel result = com.google.maps.routing.v2.TrafficModel.forNumber(trafficModel_); + return result == null ? com.google.maps.routing.v2.TrafficModel.UNRECOGNIZED : result; + } + + public static final int TRANSIT_PREFERENCES_FIELD_NUMBER = 12; + private com.google.maps.routing.v2.TransitPreferences transitPreferences_; + /** + *
+   * Optional. Specifies preferences that influence the route returned for
+   * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the transitPreferences field is set. + */ + @java.lang.Override + public boolean hasTransitPreferences() { + return transitPreferences_ != null; + } + /** + *
+   * Optional. Specifies preferences that influence the route returned for
+   * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return The transitPreferences. + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitPreferences getTransitPreferences() { + return transitPreferences_ == null ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + } + /** + *
+   * Optional. Specifies preferences that influence the route returned for
+   * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitPreferencesOrBuilder getTransitPreferencesOrBuilder() { + return transitPreferences_ == null ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -825,7 +812,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 < origins_.size(); i++) { output.writeMessage(1, origins_.get(i)); @@ -833,13 +821,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < destinations_.size(); i++) { output.writeMessage(2, destinations_.get(i)); } - if (travelMode_ - != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(3, travelMode_); } - if (routingPreference_ - != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED - .getNumber()) { + if (routingPreference_ != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED.getNumber()) { output.writeEnum(4, routingPreference_); } if (departureTime_ != null) { @@ -858,6 +843,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, regionCode_); } + if (trafficModel_ != com.google.maps.routing.v2.TrafficModel.TRAFFIC_MODEL_UNSPECIFIED.getNumber()) { + output.writeEnum(10, trafficModel_); + } + if (arrivalTime_ != null) { + output.writeMessage(11, getArrivalTime()); + } + if (transitPreferences_ != null) { + output.writeMessage(12, getTransitPreferences()); + } getUnknownFields().writeTo(output); } @@ -868,22 +862,24 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < origins_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, origins_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, origins_.get(i)); } for (int i = 0; i < destinations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, destinations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, destinations_.get(i)); } - if (travelMode_ - != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, travelMode_); + if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, travelMode_); } - if (routingPreference_ - != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, routingPreference_); + if (routingPreference_ != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, routingPreference_); } if (departureTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDepartureTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getDepartureTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, languageCode_); @@ -891,19 +887,30 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < extraComputations_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(extraComputations_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(extraComputations_.get(i)); } size += dataSize; - if (!getExtraComputationsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - extraComputationsMemoizedSerializedSize = dataSize; + if (!getExtraComputationsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }extraComputationsMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, regionCode_); } + if (trafficModel_ != com.google.maps.routing.v2.TrafficModel.TRAFFIC_MODEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, trafficModel_); + } + if (arrivalTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getArrivalTime()); + } + if (transitPreferences_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getTransitPreferences()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -912,25 +919,40 @@ 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.maps.routing.v2.ComputeRouteMatrixRequest)) { return super.equals(obj); } - com.google.maps.routing.v2.ComputeRouteMatrixRequest other = - (com.google.maps.routing.v2.ComputeRouteMatrixRequest) obj; + com.google.maps.routing.v2.ComputeRouteMatrixRequest other = (com.google.maps.routing.v2.ComputeRouteMatrixRequest) obj; - if (!getOriginsList().equals(other.getOriginsList())) return false; - if (!getDestinationsList().equals(other.getDestinationsList())) return false; + if (!getOriginsList() + .equals(other.getOriginsList())) return false; + if (!getDestinationsList() + .equals(other.getDestinationsList())) return false; if (travelMode_ != other.travelMode_) return false; if (routingPreference_ != other.routingPreference_) return false; if (hasDepartureTime() != other.hasDepartureTime()) return false; if (hasDepartureTime()) { - if (!getDepartureTime().equals(other.getDepartureTime())) return false; - } - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getRegionCode().equals(other.getRegionCode())) return false; + if (!getDepartureTime() + .equals(other.getDepartureTime())) return false; + } + if (hasArrivalTime() != other.hasArrivalTime()) return false; + if (hasArrivalTime()) { + if (!getArrivalTime() + .equals(other.getArrivalTime())) return false; + } + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getRegionCode() + .equals(other.getRegionCode())) return false; if (!extraComputations_.equals(other.extraComputations_)) return false; + if (trafficModel_ != other.trafficModel_) return false; + if (hasTransitPreferences() != other.hasTransitPreferences()) return false; + if (hasTransitPreferences()) { + if (!getTransitPreferences() + .equals(other.getTransitPreferences())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -958,6 +980,10 @@ public int hashCode() { hash = (37 * hash) + DEPARTURE_TIME_FIELD_NUMBER; hash = (53 * hash) + getDepartureTime().hashCode(); } + if (hasArrivalTime()) { + hash = (37 * hash) + ARRIVAL_TIME_FIELD_NUMBER; + hash = (53 * hash) + getArrivalTime().hashCode(); + } hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; @@ -966,141 +992,143 @@ public int hashCode() { hash = (37 * hash) + EXTRA_COMPUTATIONS_FIELD_NUMBER; hash = (53 * hash) + extraComputations_.hashCode(); } + hash = (37 * hash) + TRAFFIC_MODEL_FIELD_NUMBER; + hash = (53 * hash) + trafficModel_; + if (hasTransitPreferences()) { + hash = (37 * hash) + TRANSIT_PREFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getTransitPreferences().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.maps.routing.v2.ComputeRouteMatrixRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.ComputeRouteMatrixRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest 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; } /** - * - * *
    * ComputeRouteMatrix request message
    * 
* * Protobuf type {@code google.maps.routing.v2.ComputeRouteMatrixRequest} */ - 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.maps.routing.v2.ComputeRouteMatrixRequest) com.google.maps.routing.v2.ComputeRouteMatrixRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.ComputeRouteMatrixRequest.class, - com.google.maps.routing.v2.ComputeRouteMatrixRequest.Builder.class); + com.google.maps.routing.v2.ComputeRouteMatrixRequest.class, com.google.maps.routing.v2.ComputeRouteMatrixRequest.Builder.class); } // Construct using com.google.maps.routing.v2.ComputeRouteMatrixRequest.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,17 +1154,28 @@ public Builder clear() { departureTimeBuilder_.dispose(); departureTimeBuilder_ = null; } + arrivalTime_ = null; + if (arrivalTimeBuilder_ != null) { + arrivalTimeBuilder_.dispose(); + arrivalTimeBuilder_ = null; + } languageCode_ = ""; regionCode_ = ""; extraComputations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); + trafficModel_ = 0; + transitPreferences_ = null; + if (transitPreferencesBuilder_ != null) { + transitPreferencesBuilder_.dispose(); + transitPreferencesBuilder_ = null; + } return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; } @java.lang.Override @@ -1155,18 +1194,14 @@ public com.google.maps.routing.v2.ComputeRouteMatrixRequest build() { @java.lang.Override public com.google.maps.routing.v2.ComputeRouteMatrixRequest buildPartial() { - com.google.maps.routing.v2.ComputeRouteMatrixRequest result = - new com.google.maps.routing.v2.ComputeRouteMatrixRequest(this); + com.google.maps.routing.v2.ComputeRouteMatrixRequest result = new com.google.maps.routing.v2.ComputeRouteMatrixRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.maps.routing.v2.ComputeRouteMatrixRequest result) { + private void buildPartialRepeatedFields(com.google.maps.routing.v2.ComputeRouteMatrixRequest result) { if (originsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { origins_ = java.util.Collections.unmodifiableList(origins_); @@ -1185,9 +1220,9 @@ private void buildPartialRepeatedFields( } else { result.destinations_ = destinationsBuilder_.build(); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { extraComputations_ = java.util.Collections.unmodifiableList(extraComputations_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } result.extraComputations_ = extraComputations_; } @@ -1201,54 +1236,67 @@ private void buildPartial0(com.google.maps.routing.v2.ComputeRouteMatrixRequest result.routingPreference_ = routingPreference_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.departureTime_ = - departureTimeBuilder_ == null ? departureTime_ : departureTimeBuilder_.build(); + result.departureTime_ = departureTimeBuilder_ == null + ? departureTime_ + : departureTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.languageCode_ = languageCode_; + result.arrivalTime_ = arrivalTimeBuilder_ == null + ? arrivalTime_ + : arrivalTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { result.regionCode_ = regionCode_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.trafficModel_ = trafficModel_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.transitPreferences_ = transitPreferencesBuilder_ == null + ? transitPreferences_ + : transitPreferencesBuilder_.build(); + } } @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) { + 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.maps.routing.v2.ComputeRouteMatrixRequest) { - return mergeFrom((com.google.maps.routing.v2.ComputeRouteMatrixRequest) other); + return mergeFrom((com.google.maps.routing.v2.ComputeRouteMatrixRequest)other); } else { super.mergeFrom(other); return this; @@ -1256,8 +1304,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.maps.routing.v2.ComputeRouteMatrixRequest other) { - if (other == com.google.maps.routing.v2.ComputeRouteMatrixRequest.getDefaultInstance()) - return this; + if (other == com.google.maps.routing.v2.ComputeRouteMatrixRequest.getDefaultInstance()) return this; if (originsBuilder_ == null) { if (!other.origins_.isEmpty()) { if (origins_.isEmpty()) { @@ -1276,10 +1323,9 @@ public Builder mergeFrom(com.google.maps.routing.v2.ComputeRouteMatrixRequest ot originsBuilder_ = null; origins_ = other.origins_; bitField0_ = (bitField0_ & ~0x00000001); - originsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOriginsFieldBuilder() - : null; + originsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOriginsFieldBuilder() : null; } else { originsBuilder_.addAllMessages(other.origins_); } @@ -1303,10 +1349,9 @@ public Builder mergeFrom(com.google.maps.routing.v2.ComputeRouteMatrixRequest ot destinationsBuilder_ = null; destinations_ = other.destinations_; bitField0_ = (bitField0_ & ~0x00000002); - destinationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDestinationsFieldBuilder() - : null; + destinationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDestinationsFieldBuilder() : null; } else { destinationsBuilder_.addAllMessages(other.destinations_); } @@ -1321,26 +1366,35 @@ public Builder mergeFrom(com.google.maps.routing.v2.ComputeRouteMatrixRequest ot if (other.hasDepartureTime()) { mergeDepartureTime(other.getDepartureTime()); } + if (other.hasArrivalTime()) { + mergeArrivalTime(other.getArrivalTime()); + } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getRegionCode().isEmpty()) { regionCode_ = other.regionCode_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (!other.extraComputations_.isEmpty()) { if (extraComputations_.isEmpty()) { extraComputations_ = other.extraComputations_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureExtraComputationsIsMutable(); extraComputations_.addAll(other.extraComputations_); } onChanged(); } + if (other.trafficModel_ != 0) { + setTrafficModelValue(other.getTrafficModelValue()); + } + if (other.hasTransitPreferences()) { + mergeTransitPreferences(other.getTransitPreferences()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1367,89 +1421,101 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.maps.routing.v2.RouteMatrixOrigin m = - input.readMessage( - com.google.maps.routing.v2.RouteMatrixOrigin.parser(), extensionRegistry); - if (originsBuilder_ == null) { - ensureOriginsIsMutable(); - origins_.add(m); - } else { - originsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.maps.routing.v2.RouteMatrixDestination m = - input.readMessage( - com.google.maps.routing.v2.RouteMatrixDestination.parser(), - extensionRegistry); - if (destinationsBuilder_ == null) { - ensureDestinationsIsMutable(); - destinations_.add(m); - } else { - destinationsBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: - { - travelMode_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - routingPreference_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage(getDepartureTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 64: - { + case 10: { + com.google.maps.routing.v2.RouteMatrixOrigin m = + input.readMessage( + com.google.maps.routing.v2.RouteMatrixOrigin.parser(), + extensionRegistry); + if (originsBuilder_ == null) { + ensureOriginsIsMutable(); + origins_.add(m); + } else { + originsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.maps.routing.v2.RouteMatrixDestination m = + input.readMessage( + com.google.maps.routing.v2.RouteMatrixDestination.parser(), + extensionRegistry); + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.add(m); + } else { + destinationsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: { + travelMode_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + routingPreference_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getDepartureTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 64: { + int tmpRaw = input.readEnum(); + ensureExtraComputationsIsMutable(); + extraComputations_.add(tmpRaw); + break; + } // case 64 + case 66: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureExtraComputationsIsMutable(); extraComputations_.add(tmpRaw); - break; - } // case 64 - case 66: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureExtraComputationsIsMutable(); - extraComputations_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 66 - case 74: - { - regionCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 66 + case 74: { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 80: { + trafficModel_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: { + input.readMessage( + getArrivalTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 90 + case 98: { + input.readMessage( + getTransitPreferencesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + 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) { @@ -1459,28 +1525,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List origins_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureOriginsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { origins_ = new java.util.ArrayList(origins_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteMatrixOrigin, - com.google.maps.routing.v2.RouteMatrixOrigin.Builder, - com.google.maps.routing.v2.RouteMatrixOriginOrBuilder> - originsBuilder_; + com.google.maps.routing.v2.RouteMatrixOrigin, com.google.maps.routing.v2.RouteMatrixOrigin.Builder, com.google.maps.routing.v2.RouteMatrixOriginOrBuilder> originsBuilder_; /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1494,9 +1553,7 @@ private void ensureOriginsIsMutable() {
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getOriginsList() { if (originsBuilder_ == null) { @@ -1506,8 +1563,6 @@ public java.util.List getOriginsLi } } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1521,9 +1576,7 @@ public java.util.List getOriginsLi
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getOriginsCount() { if (originsBuilder_ == null) { @@ -1533,8 +1586,6 @@ public int getOriginsCount() { } } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1548,9 +1599,7 @@ public int getOriginsCount() {
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.maps.routing.v2.RouteMatrixOrigin getOrigins(int index) { if (originsBuilder_ == null) { @@ -1560,8 +1609,6 @@ public com.google.maps.routing.v2.RouteMatrixOrigin getOrigins(int index) { } } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1575,11 +1622,10 @@ public com.google.maps.routing.v2.RouteMatrixOrigin getOrigins(int index) {
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setOrigins(int index, com.google.maps.routing.v2.RouteMatrixOrigin value) { + public Builder setOrigins( + int index, com.google.maps.routing.v2.RouteMatrixOrigin value) { if (originsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1593,8 +1639,6 @@ public Builder setOrigins(int index, com.google.maps.routing.v2.RouteMatrixOrigi return this; } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1608,9 +1652,7 @@ public Builder setOrigins(int index, com.google.maps.routing.v2.RouteMatrixOrigi
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOrigins( int index, com.google.maps.routing.v2.RouteMatrixOrigin.Builder builderForValue) { @@ -1624,8 +1666,6 @@ public Builder setOrigins( return this; } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1639,9 +1679,7 @@ public Builder setOrigins(
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addOrigins(com.google.maps.routing.v2.RouteMatrixOrigin value) { if (originsBuilder_ == null) { @@ -1657,8 +1695,6 @@ public Builder addOrigins(com.google.maps.routing.v2.RouteMatrixOrigin value) { return this; } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1672,11 +1708,10 @@ public Builder addOrigins(com.google.maps.routing.v2.RouteMatrixOrigin value) {
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addOrigins(int index, com.google.maps.routing.v2.RouteMatrixOrigin value) { + public Builder addOrigins( + int index, com.google.maps.routing.v2.RouteMatrixOrigin value) { if (originsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1690,8 +1725,6 @@ public Builder addOrigins(int index, com.google.maps.routing.v2.RouteMatrixOrigi return this; } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1705,9 +1738,7 @@ public Builder addOrigins(int index, com.google.maps.routing.v2.RouteMatrixOrigi
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addOrigins( com.google.maps.routing.v2.RouteMatrixOrigin.Builder builderForValue) { @@ -1721,8 +1752,6 @@ public Builder addOrigins( return this; } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1736,9 +1765,7 @@ public Builder addOrigins(
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addOrigins( int index, com.google.maps.routing.v2.RouteMatrixOrigin.Builder builderForValue) { @@ -1752,8 +1779,6 @@ public Builder addOrigins( return this; } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1767,15 +1792,14 @@ public Builder addOrigins(
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllOrigins( java.lang.Iterable values) { if (originsBuilder_ == null) { ensureOriginsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, origins_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, origins_); onChanged(); } else { originsBuilder_.addAllMessages(values); @@ -1783,8 +1807,6 @@ public Builder addAllOrigins( return this; } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1798,9 +1820,7 @@ public Builder addAllOrigins(
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOrigins() { if (originsBuilder_ == null) { @@ -1813,8 +1833,6 @@ public Builder clearOrigins() { return this; } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1828,9 +1846,7 @@ public Builder clearOrigins() {
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeOrigins(int index) { if (originsBuilder_ == null) { @@ -1843,8 +1859,6 @@ public Builder removeOrigins(int index) { return this; } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1858,16 +1872,13 @@ public Builder removeOrigins(int index) {
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.maps.routing.v2.RouteMatrixOrigin.Builder getOriginsBuilder(int index) { + public com.google.maps.routing.v2.RouteMatrixOrigin.Builder getOriginsBuilder( + int index) { return getOriginsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1881,20 +1892,16 @@ public com.google.maps.routing.v2.RouteMatrixOrigin.Builder getOriginsBuilder(in
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder(int index) { + public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder( + int index) { if (originsBuilder_ == null) { - return origins_.get(index); - } else { + return origins_.get(index); } else { return originsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1908,12 +1915,10 @@ public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getOriginsOrBuilderList() { + public java.util.List + getOriginsOrBuilderList() { if (originsBuilder_ != null) { return originsBuilder_.getMessageOrBuilderList(); } else { @@ -1921,8 +1926,6 @@ public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder } } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1936,17 +1939,13 @@ public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.maps.routing.v2.RouteMatrixOrigin.Builder addOriginsBuilder() { - return getOriginsFieldBuilder() - .addBuilder(com.google.maps.routing.v2.RouteMatrixOrigin.getDefaultInstance()); + return getOriginsFieldBuilder().addBuilder( + com.google.maps.routing.v2.RouteMatrixOrigin.getDefaultInstance()); } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1960,17 +1959,14 @@ public com.google.maps.routing.v2.RouteMatrixOrigin.Builder addOriginsBuilder()
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.maps.routing.v2.RouteMatrixOrigin.Builder addOriginsBuilder(int index) { - return getOriginsFieldBuilder() - .addBuilder(index, com.google.maps.routing.v2.RouteMatrixOrigin.getDefaultInstance()); + public com.google.maps.routing.v2.RouteMatrixOrigin.Builder addOriginsBuilder( + int index) { + return getOriginsFieldBuilder().addBuilder( + index, com.google.maps.routing.v2.RouteMatrixOrigin.getDefaultInstance()); } /** - * - * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1984,61 +1980,46 @@ public com.google.maps.routing.v2.RouteMatrixOrigin.Builder addOriginsBuilder(in
      * must be no greater than 50.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getOriginsBuilderList() { + public java.util.List + getOriginsBuilderList() { return getOriginsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteMatrixOrigin, - com.google.maps.routing.v2.RouteMatrixOrigin.Builder, - com.google.maps.routing.v2.RouteMatrixOriginOrBuilder> + com.google.maps.routing.v2.RouteMatrixOrigin, com.google.maps.routing.v2.RouteMatrixOrigin.Builder, com.google.maps.routing.v2.RouteMatrixOriginOrBuilder> getOriginsFieldBuilder() { if (originsBuilder_ == null) { - originsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteMatrixOrigin, - com.google.maps.routing.v2.RouteMatrixOrigin.Builder, - com.google.maps.routing.v2.RouteMatrixOriginOrBuilder>( - origins_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + originsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.RouteMatrixOrigin, com.google.maps.routing.v2.RouteMatrixOrigin.Builder, com.google.maps.routing.v2.RouteMatrixOriginOrBuilder>( + origins_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); origins_ = null; } return originsBuilder_; } private java.util.List destinations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDestinationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - destinations_ = - new java.util.ArrayList( - destinations_); + destinations_ = new java.util.ArrayList(destinations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteMatrixDestination, - com.google.maps.routing.v2.RouteMatrixDestination.Builder, - com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder> - destinationsBuilder_; + com.google.maps.routing.v2.RouteMatrixDestination, com.google.maps.routing.v2.RouteMatrixDestination.Builder, com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder> destinationsBuilder_; /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public java.util.List getDestinationsList() { if (destinationsBuilder_ == null) { @@ -2048,16 +2029,12 @@ public java.util.List getDest } } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public int getDestinationsCount() { if (destinationsBuilder_ == null) { @@ -2067,16 +2044,12 @@ public int getDestinationsCount() { } } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.maps.routing.v2.RouteMatrixDestination getDestinations(int index) { if (destinationsBuilder_ == null) { @@ -2086,16 +2059,12 @@ public com.google.maps.routing.v2.RouteMatrixDestination getDestinations(int ind } } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDestinations( int index, com.google.maps.routing.v2.RouteMatrixDestination value) { @@ -2112,16 +2081,12 @@ public Builder setDestinations( return this; } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDestinations( int index, com.google.maps.routing.v2.RouteMatrixDestination.Builder builderForValue) { @@ -2135,16 +2100,12 @@ public Builder setDestinations( return this; } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addDestinations(com.google.maps.routing.v2.RouteMatrixDestination value) { if (destinationsBuilder_ == null) { @@ -2160,16 +2121,12 @@ public Builder addDestinations(com.google.maps.routing.v2.RouteMatrixDestination return this; } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addDestinations( int index, com.google.maps.routing.v2.RouteMatrixDestination value) { @@ -2186,16 +2143,12 @@ public Builder addDestinations( return this; } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addDestinations( com.google.maps.routing.v2.RouteMatrixDestination.Builder builderForValue) { @@ -2209,16 +2162,12 @@ public Builder addDestinations( return this; } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addDestinations( int index, com.google.maps.routing.v2.RouteMatrixDestination.Builder builderForValue) { @@ -2232,22 +2181,19 @@ public Builder addDestinations( return this; } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllDestinations( java.lang.Iterable values) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destinations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, destinations_); onChanged(); } else { destinationsBuilder_.addAllMessages(values); @@ -2255,16 +2201,12 @@ public Builder addAllDestinations( return this; } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDestinations() { if (destinationsBuilder_ == null) { @@ -2277,16 +2219,12 @@ public Builder clearDestinations() { return this; } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeDestinations(int index) { if (destinationsBuilder_ == null) { @@ -2299,55 +2237,42 @@ public Builder removeDestinations(int index) { return this; } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.maps.routing.v2.RouteMatrixDestination.Builder getDestinationsBuilder( int index) { return getDestinationsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuilder( int index) { if (destinationsBuilder_ == null) { - return destinations_.get(index); - } else { + return destinations_.get(index); } else { return destinationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getDestinationsOrBuilderList() { + public java.util.List + getDestinationsOrBuilderList() { if (destinationsBuilder_ != null) { return destinationsBuilder_.getMessageOrBuilderList(); } else { @@ -2355,68 +2280,52 @@ public com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestination } } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.maps.routing.v2.RouteMatrixDestination.Builder addDestinationsBuilder() { - return getDestinationsFieldBuilder() - .addBuilder(com.google.maps.routing.v2.RouteMatrixDestination.getDefaultInstance()); + return getDestinationsFieldBuilder().addBuilder( + com.google.maps.routing.v2.RouteMatrixDestination.getDefaultInstance()); } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.maps.routing.v2.RouteMatrixDestination.Builder addDestinationsBuilder( int index) { - return getDestinationsFieldBuilder() - .addBuilder( - index, com.google.maps.routing.v2.RouteMatrixDestination.getDefaultInstance()); + return getDestinationsFieldBuilder().addBuilder( + index, com.google.maps.routing.v2.RouteMatrixDestination.getDefaultInstance()); } /** - * - * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List - getDestinationsBuilderList() { + public java.util.List + getDestinationsBuilderList() { return getDestinationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteMatrixDestination, - com.google.maps.routing.v2.RouteMatrixDestination.Builder, - com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder> + com.google.maps.routing.v2.RouteMatrixDestination, com.google.maps.routing.v2.RouteMatrixDestination.Builder, com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder> getDestinationsFieldBuilder() { if (destinationsBuilder_ == null) { - destinationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteMatrixDestination, - com.google.maps.routing.v2.RouteMatrixDestination.Builder, - com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder>( - destinations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + destinationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.RouteMatrixDestination, com.google.maps.routing.v2.RouteMatrixDestination.Builder, com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder>( + destinations_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); destinations_ = null; } return destinationsBuilder_; @@ -2424,33 +2333,22 @@ public com.google.maps.routing.v2.RouteMatrixDestination.Builder addDestinations private int travelMode_ = 0; /** - * - * *
      * Optional. Specifies the mode of transportation.
      * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for travelMode. */ - @java.lang.Override - public int getTravelModeValue() { + @java.lang.Override public int getTravelModeValue() { return travelMode_; } /** - * - * *
      * Optional. Specifies the mode of transportation.
      * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for travelMode to set. * @return This builder for chaining. */ @@ -2461,35 +2359,24 @@ public Builder setTravelModeValue(int value) { return this; } /** - * - * *
      * Optional. Specifies the mode of transportation.
      * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The travelMode. */ @java.lang.Override public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { - com.google.maps.routing.v2.RouteTravelMode result = - com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Specifies the mode of transportation.
      * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The travelMode to set. * @return This builder for chaining. */ @@ -2503,16 +2390,11 @@ public Builder setTravelMode(com.google.maps.routing.v2.RouteTravelMode value) { return this; } /** - * - * *
      * Optional. Specifies the mode of transportation.
      * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearTravelMode() { @@ -2524,8 +2406,6 @@ public Builder clearTravelMode() { private int routingPreference_ = 0; /** - * - * *
      * Optional. Specifies how to compute the route. The server attempts to use
      * the selected routing preference to compute the route. If the routing
@@ -2534,19 +2414,13 @@ public Builder clearTravelMode() {
      * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for routingPreference. */ - @java.lang.Override - public int getRoutingPreferenceValue() { + @java.lang.Override public int getRoutingPreferenceValue() { return routingPreference_; } /** - * - * *
      * Optional. Specifies how to compute the route. The server attempts to use
      * the selected routing preference to compute the route. If the routing
@@ -2555,10 +2429,7 @@ public int getRoutingPreferenceValue() {
      * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for routingPreference to set. * @return This builder for chaining. */ @@ -2569,8 +2440,6 @@ public Builder setRoutingPreferenceValue(int value) { return this; } /** - * - * *
      * Optional. Specifies how to compute the route. The server attempts to use
      * the selected routing preference to compute the route. If the routing
@@ -2579,21 +2448,15 @@ public Builder setRoutingPreferenceValue(int value) {
      * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The routingPreference. */ @java.lang.Override public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() { - com.google.maps.routing.v2.RoutingPreference result = - com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); + com.google.maps.routing.v2.RoutingPreference result = com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); return result == null ? com.google.maps.routing.v2.RoutingPreference.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Specifies how to compute the route. The server attempts to use
      * the selected routing preference to compute the route. If the routing
@@ -2602,10 +2465,7 @@ public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() {
      * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The routingPreference to set. * @return This builder for chaining. */ @@ -2619,8 +2479,6 @@ public Builder setRoutingPreference(com.google.maps.routing.v2.RoutingPreference return this; } /** - * - * *
      * Optional. Specifies how to compute the route. The server attempts to use
      * the selected routing preference to compute the route. If the routing
@@ -2629,10 +2487,7 @@ public Builder setRoutingPreference(com.google.maps.routing.v2.RoutingPreference
      * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearRoutingPreference() { @@ -2644,64 +2499,51 @@ public Builder clearRoutingPreference() { private com.google.protobuf.Timestamp departureTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - departureTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> departureTimeBuilder_; /** - * - * *
-     * Optional. The departure time. If you don't set this value, this defaults to
-     * the time that you made the request. If you set this value to a time that
-     * has already occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, then this value
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the departureTime field is set. */ public boolean hasDepartureTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
-     * Optional. The departure time. If you don't set this value, this defaults to
-     * the time that you made the request. If you set this value to a time that
-     * has already occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, then this value
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The departureTime. */ public com.google.protobuf.Timestamp getDepartureTime() { if (departureTimeBuilder_ == null) { - return departureTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : departureTime_; + return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; } else { return departureTimeBuilder_.getMessage(); } } /** - * - * *
-     * Optional. The departure time. If you don't set this value, this defaults to
-     * the time that you made the request. If you set this value to a time that
-     * has already occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, then this value
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDepartureTime(com.google.protobuf.Timestamp value) { if (departureTimeBuilder_ == null) { @@ -2717,19 +2559,18 @@ public Builder setDepartureTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
-     * Optional. The departure time. If you don't set this value, this defaults to
-     * the time that you made the request. If you set this value to a time that
-     * has already occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, then this value
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDepartureTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDepartureTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (departureTimeBuilder_ == null) { departureTime_ = builderForValue.build(); } else { @@ -2740,23 +2581,21 @@ public Builder setDepartureTime(com.google.protobuf.Timestamp.Builder builderFor return this; } /** - * - * *
-     * Optional. The departure time. If you don't set this value, this defaults to
-     * the time that you made the request. If you set this value to a time that
-     * has already occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, then this value
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeDepartureTime(com.google.protobuf.Timestamp value) { if (departureTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && departureTime_ != null - && departureTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + departureTime_ != null && + departureTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDepartureTimeBuilder().mergeFrom(value); } else { departureTime_ = value; @@ -2769,17 +2608,15 @@ public Builder mergeDepartureTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
-     * Optional. The departure time. If you don't set this value, this defaults to
-     * the time that you made the request. If you set this value to a time that
-     * has already occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, then this value
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDepartureTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2792,17 +2629,15 @@ public Builder clearDepartureTime() { return this; } /** - * - * *
-     * Optional. The departure time. If you don't set this value, this defaults to
-     * the time that you made the request. If you set this value to a time that
-     * has already occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, then this value
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getDepartureTimeBuilder() { bitField0_ |= 0x00000010; @@ -2810,61 +2645,242 @@ public com.google.protobuf.Timestamp.Builder getDepartureTimeBuilder() { return getDepartureTimeFieldBuilder().getBuilder(); } /** - * - * *
-     * Optional. The departure time. If you don't set this value, this defaults to
-     * the time that you made the request. If you set this value to a time that
-     * has already occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, then this value
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { if (departureTimeBuilder_ != null) { return departureTimeBuilder_.getMessageOrBuilder(); } else { - return departureTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : departureTime_; + return departureTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; } } /** - * - * *
-     * Optional. The departure time. If you don't set this value, this defaults to
-     * the time that you made the request. If you set this value to a time that
-     * has already occurred, the request fails.
+     * Optional. The departure time. If you don't set this value, then this value
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ 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> getDepartureTimeFieldBuilder() { if (departureTimeBuilder_ == null) { - departureTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDepartureTime(), getParentForChildren(), isClean()); + departureTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDepartureTime(), + getParentForChildren(), + isClean()); departureTime_ = null; } return departureTimeBuilder_; } - private java.lang.Object languageCode_ = ""; + private com.google.protobuf.Timestamp arrivalTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> arrivalTimeBuilder_; + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the arrivalTime field is set. + */ + public boolean hasArrivalTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return The arrivalTime. + */ + public com.google.protobuf.Timestamp getArrivalTime() { + if (arrivalTimeBuilder_ == null) { + return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + } else { + return arrivalTimeBuilder_.getMessage(); + } + } + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setArrivalTime(com.google.protobuf.Timestamp value) { + if (arrivalTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + arrivalTime_ = value; + } else { + arrivalTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setArrivalTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (arrivalTimeBuilder_ == null) { + arrivalTime_ = builderForValue.build(); + } else { + arrivalTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
* + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeArrivalTime(com.google.protobuf.Timestamp value) { + if (arrivalTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + arrivalTime_ != null && + arrivalTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getArrivalTimeBuilder().mergeFrom(value); + } else { + arrivalTime_ = value; + } + } else { + arrivalTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
* + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearArrivalTime() { + bitField0_ = (bitField0_ & ~0x00000020); + arrivalTime_ = null; + if (arrivalTimeBuilder_ != null) { + arrivalTimeBuilder_.dispose(); + arrivalTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Timestamp.Builder getArrivalTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getArrivalTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { + if (arrivalTimeBuilder_ != null) { + return arrivalTimeBuilder_.getMessageOrBuilder(); + } else { + return arrivalTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + } + } + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getArrivalTimeFieldBuilder() { + if (arrivalTimeBuilder_ == null) { + arrivalTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getArrivalTime(), + getParentForChildren(), + isClean()); + arrivalTime_ = null; + } + return arrivalTimeBuilder_; + } + + private java.lang.Object languageCode_ = ""; + /** *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -2875,13 +2891,13 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; 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(); languageCode_ = s; return s; @@ -2890,8 +2906,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -2902,14 +2916,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -2917,8 +2932,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -2929,22 +2942,18 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -2955,18 +2964,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -2977,25 +2983,21 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object regionCode_ = ""; /** - * - * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -3003,13 +3005,13 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
      * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The regionCode. */ public java.lang.String getRegionCode() { java.lang.Object ref = regionCode_; 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(); regionCode_ = s; return s; @@ -3018,8 +3020,6 @@ public java.lang.String getRegionCode() { } } /** - * - * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -3027,14 +3027,15 @@ public java.lang.String getRegionCode() {
      * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for regionCode. */ - public com.google.protobuf.ByteString getRegionCodeBytes() { + public com.google.protobuf.ByteString + getRegionCodeBytes() { java.lang.Object ref = regionCode_; 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); regionCode_ = b; return b; } else { @@ -3042,8 +3043,6 @@ public com.google.protobuf.ByteString getRegionCodeBytes() { } } /** - * - * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -3051,22 +3050,18 @@ public com.google.protobuf.ByteString getRegionCodeBytes() {
      * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRegionCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } regionCode_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -3074,18 +3069,15 @@ public Builder setRegionCode(java.lang.String value) {
      * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRegionCode() { regionCode_ = getDefaultInstance().getRegionCode(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** - * - * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -3093,33 +3085,28 @@ public Builder clearRegionCode() {
      * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRegionCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); regionCode_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } private java.util.List extraComputations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureExtraComputationsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { extraComputations_ = new java.util.ArrayList(extraComputations_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3127,21 +3114,14 @@ private void ensureExtraComputationsIsMutable() {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the extraComputations. */ - public java.util.List - getExtraComputationsList() { + public java.util.List getExtraComputationsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>( - extraComputations_, extraComputations_converter_); + java.lang.Integer, com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>(extraComputations_, extraComputations_converter_); } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3149,18 +3129,13 @@ private void ensureExtraComputationsIsMutable() {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of extraComputations. */ public int getExtraComputationsCount() { return extraComputations_.size(); } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3168,20 +3143,14 @@ public int getExtraComputationsCount() {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The extraComputations at the given index. */ - public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation - getExtraComputations(int index) { + public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation getExtraComputations(int index) { return extraComputations_converter_.convert(extraComputations_.get(index)); } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3189,10 +3158,7 @@ public int getExtraComputationsCount() {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The extraComputations to set. * @return This builder for chaining. @@ -3208,8 +3174,6 @@ public Builder setExtraComputations( return this; } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3217,15 +3181,11 @@ public Builder setExtraComputations(
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param value The extraComputations to add. * @return This builder for chaining. */ - public Builder addExtraComputations( - com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation value) { + public Builder addExtraComputations(com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation value) { if (value == null) { throw new NullPointerException(); } @@ -3235,8 +3195,6 @@ public Builder addExtraComputations( return this; } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3244,17 +3202,12 @@ public Builder addExtraComputations(
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param values The extraComputations to add. * @return This builder for chaining. */ public Builder addAllExtraComputations( - java.lang.Iterable< - ? extends com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation> - values) { + java.lang.Iterable values) { ensureExtraComputationsIsMutable(); for (com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation value : values) { extraComputations_.add(value.getNumber()); @@ -3263,8 +3216,6 @@ public Builder addAllExtraComputations( return this; } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3272,21 +3223,16 @@ public Builder addAllExtraComputations(
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearExtraComputations() { extraComputations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3294,18 +3240,14 @@ public Builder clearExtraComputations() {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for extraComputations. */ - public java.util.List getExtraComputationsValueList() { + public java.util.List + getExtraComputationsValueList() { return java.util.Collections.unmodifiableList(extraComputations_); } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3313,10 +3255,7 @@ public java.util.List getExtraComputationsValueList() {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of extraComputations at the given index. */ @@ -3324,8 +3263,6 @@ public int getExtraComputationsValue(int index) { return extraComputations_.get(index); } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3333,23 +3270,19 @@ public int getExtraComputationsValue(int index) {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The enum numeric value on the wire for extraComputations to set. * @return This builder for chaining. */ - public Builder setExtraComputationsValue(int index, int value) { + public Builder setExtraComputationsValue( + int index, int value) { ensureExtraComputationsIsMutable(); extraComputations_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3357,10 +3290,7 @@ public Builder setExtraComputationsValue(int index, int value) {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for extraComputations to add. * @return This builder for chaining. */ @@ -3371,8 +3301,6 @@ public Builder addExtraComputationsValue(int value) { return this; } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3380,14 +3308,12 @@ public Builder addExtraComputationsValue(int value) {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param values The enum numeric values on the wire for extraComputations to add. * @return This builder for chaining. */ - public Builder addAllExtraComputationsValue(java.lang.Iterable values) { + public Builder addAllExtraComputationsValue( + java.lang.Iterable values) { ensureExtraComputationsIsMutable(); for (int value : values) { extraComputations_.add(value); @@ -3396,8 +3322,303 @@ public Builder addAllExtraComputationsValue(java.lang.Iterable + * Optional. Specifies the assumptions to use when calculating time in + * traffic. This setting affects the value returned in the duration field in + * the [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] which + * contains the predicted time in traffic based on historical averages. + * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to + * `TRAFFIC_AWARE_OPTIMAL` and + * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`. + * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not + * specified. + *
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enum numeric value on the wire for trafficModel. + */ + @java.lang.Override public int getTrafficModelValue() { + return trafficModel_; + } + /** + *
+     * Optional. Specifies the assumptions to use when calculating time in
+     * traffic. This setting affects the value returned in the duration field in
+     * the [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] which
+     * contains the predicted time in traffic based on historical averages.
+     * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+     * `TRAFFIC_AWARE_OPTIMAL` and
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+     * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+     * specified.
+     * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The enum numeric value on the wire for trafficModel to set. + * @return This builder for chaining. + */ + public Builder setTrafficModelValue(int value) { + trafficModel_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Optional. Specifies the assumptions to use when calculating time in
+     * traffic. This setting affects the value returned in the duration field in
+     * the [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] which
+     * contains the predicted time in traffic based on historical averages.
+     * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+     * `TRAFFIC_AWARE_OPTIMAL` and
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+     * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+     * specified.
+     * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return The trafficModel. + */ + @java.lang.Override + public com.google.maps.routing.v2.TrafficModel getTrafficModel() { + com.google.maps.routing.v2.TrafficModel result = com.google.maps.routing.v2.TrafficModel.forNumber(trafficModel_); + return result == null ? com.google.maps.routing.v2.TrafficModel.UNRECOGNIZED : result; + } + /** + *
+     * Optional. Specifies the assumptions to use when calculating time in
+     * traffic. This setting affects the value returned in the duration field in
+     * the [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] which
+     * contains the predicted time in traffic based on historical averages.
+     * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+     * `TRAFFIC_AWARE_OPTIMAL` and
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+     * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+     * specified.
+     * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The trafficModel to set. + * @return This builder for chaining. + */ + public Builder setTrafficModel(com.google.maps.routing.v2.TrafficModel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + trafficModel_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Optional. Specifies the assumptions to use when calculating time in
+     * traffic. This setting affects the value returned in the duration field in
+     * the [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] which
+     * contains the predicted time in traffic based on historical averages.
+     * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+     * `TRAFFIC_AWARE_OPTIMAL` and
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+     * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+     * specified.
+     * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearTrafficModel() { + bitField0_ = (bitField0_ & ~0x00000200); + trafficModel_ = 0; + onChanged(); + return this; + } + + private com.google.maps.routing.v2.TransitPreferences transitPreferences_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitPreferences, com.google.maps.routing.v2.TransitPreferences.Builder, com.google.maps.routing.v2.TransitPreferencesOrBuilder> transitPreferencesBuilder_; + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the transitPreferences field is set. + */ + public boolean hasTransitPreferences() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return The transitPreferences. + */ + public com.google.maps.routing.v2.TransitPreferences getTransitPreferences() { + if (transitPreferencesBuilder_ == null) { + return transitPreferences_ == null ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + } else { + return transitPreferencesBuilder_.getMessage(); + } + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTransitPreferences(com.google.maps.routing.v2.TransitPreferences value) { + if (transitPreferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transitPreferences_ = value; + } else { + transitPreferencesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTransitPreferences( + com.google.maps.routing.v2.TransitPreferences.Builder builderForValue) { + if (transitPreferencesBuilder_ == null) { + transitPreferences_ = builderForValue.build(); + } else { + transitPreferencesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeTransitPreferences(com.google.maps.routing.v2.TransitPreferences value) { + if (transitPreferencesBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) && + transitPreferences_ != null && + transitPreferences_ != com.google.maps.routing.v2.TransitPreferences.getDefaultInstance()) { + getTransitPreferencesBuilder().mergeFrom(value); + } else { + transitPreferences_ = value; + } + } else { + transitPreferencesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearTransitPreferences() { + bitField0_ = (bitField0_ & ~0x00000400); + transitPreferences_ = null; + if (transitPreferencesBuilder_ != null) { + transitPreferencesBuilder_.dispose(); + transitPreferencesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.maps.routing.v2.TransitPreferences.Builder getTransitPreferencesBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getTransitPreferencesFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.maps.routing.v2.TransitPreferencesOrBuilder getTransitPreferencesOrBuilder() { + if (transitPreferencesBuilder_ != null) { + return transitPreferencesBuilder_.getMessageOrBuilder(); + } else { + return transitPreferences_ == null ? + com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + } + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitPreferences, com.google.maps.routing.v2.TransitPreferences.Builder, com.google.maps.routing.v2.TransitPreferencesOrBuilder> + getTransitPreferencesFieldBuilder() { + if (transitPreferencesBuilder_ == null) { + transitPreferencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitPreferences, com.google.maps.routing.v2.TransitPreferences.Builder, com.google.maps.routing.v2.TransitPreferencesOrBuilder>( + getTransitPreferences(), + getParentForChildren(), + isClean()); + transitPreferences_ = null; + } + return transitPreferencesBuilder_; + } @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); } @@ -3407,12 +3628,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.ComputeRouteMatrixRequest) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.ComputeRouteMatrixRequest) private static final com.google.maps.routing.v2.ComputeRouteMatrixRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.ComputeRouteMatrixRequest(); } @@ -3421,27 +3642,27 @@ public static com.google.maps.routing.v2.ComputeRouteMatrixRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeRouteMatrixRequest 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 ComputeRouteMatrixRequest 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; @@ -3456,4 +3677,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.maps.routing.v2.ComputeRouteMatrixRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java similarity index 56% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java index e0fe0730dbf6..050b66b0cbc4 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; -public interface ComputeRouteMatrixRequestOrBuilder - extends +public interface ComputeRouteMatrixRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.ComputeRouteMatrixRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -39,14 +21,11 @@ public interface ComputeRouteMatrixRequestOrBuilder
    * must be no greater than 50.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getOriginsList(); + java.util.List + getOriginsList(); /** - * - * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -60,14 +39,10 @@ public interface ComputeRouteMatrixRequestOrBuilder
    * must be no greater than 50.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.maps.routing.v2.RouteMatrixOrigin getOrigins(int index); /** - * - * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -81,14 +56,10 @@ public interface ComputeRouteMatrixRequestOrBuilder
    * must be no greater than 50.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getOriginsCount(); /** - * - * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -102,15 +73,11 @@ public interface ComputeRouteMatrixRequestOrBuilder
    * must be no greater than 50.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getOriginsOrBuilderList(); /** - * - * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -124,111 +91,80 @@ public interface ComputeRouteMatrixRequestOrBuilder
    * must be no greater than 50.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder(int index); + com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder( + int index); /** - * - * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List getDestinationsList(); + java.util.List + getDestinationsList(); /** - * - * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.maps.routing.v2.RouteMatrixDestination getDestinations(int index); /** - * - * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ int getDestinationsCount(); /** - * - * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List + java.util.List getDestinationsOrBuilderList(); /** - * - * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuilder(int index); + com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuilder( + int index); /** - * - * *
    * Optional. Specifies the mode of transportation.
    * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for travelMode. */ int getTravelModeValue(); /** - * - * *
    * Optional. Specifies the mode of transportation.
    * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The travelMode. */ com.google.maps.routing.v2.RouteTravelMode getTravelMode(); /** - * - * *
    * Optional. Specifies how to compute the route. The server attempts to use
    * the selected routing preference to compute the route. If the routing
@@ -237,16 +173,11 @@ public interface ComputeRouteMatrixRequestOrBuilder
    * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for routingPreference. */ int getRoutingPreferenceValue(); /** - * - * *
    * Optional. Specifies how to compute the route. The server attempts to use
    * the selected routing preference to compute the route. If the routing
@@ -255,61 +186,90 @@ public interface ComputeRouteMatrixRequestOrBuilder
    * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The routingPreference. */ com.google.maps.routing.v2.RoutingPreference getRoutingPreference(); /** - * - * *
-   * Optional. The departure time. If you don't set this value, this defaults to
-   * the time that you made the request. If you set this value to a time that
-   * has already occurred, the request fails.
+   * Optional. The departure time. If you don't set this value, then this value
+   * defaults to the time that you made the request.
+   * NOTE: You can only specify a `departure_time` in the past when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the departureTime field is set. */ boolean hasDepartureTime(); /** - * - * *
-   * Optional. The departure time. If you don't set this value, this defaults to
-   * the time that you made the request. If you set this value to a time that
-   * has already occurred, the request fails.
+   * Optional. The departure time. If you don't set this value, then this value
+   * defaults to the time that you made the request.
+   * NOTE: You can only specify a `departure_time` in the past when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The departureTime. */ com.google.protobuf.Timestamp getDepartureTime(); /** - * - * *
-   * Optional. The departure time. If you don't set this value, this defaults to
-   * the time that you made the request. If you set this value to a time that
-   * has already occurred, the request fails.
+   * Optional. The departure time. If you don't set this value, then this value
+   * defaults to the time that you made the request.
+   * NOTE: You can only specify a `departure_time` in the past when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder(); /** + *
+   * Optional. The arrival time.
+   * NOTE: Can only be set when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+   * both.
+   * 
* + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the arrivalTime field is set. + */ + boolean hasArrivalTime(); + /** + *
+   * Optional. The arrival time.
+   * NOTE: Can only be set when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+   * both.
+   * 
* + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return The arrivalTime. + */ + com.google.protobuf.Timestamp getArrivalTime(); + /** + *
+   * Optional. The arrival time.
+   * NOTE: Can only be set when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+   * both.
+   * 
+ * + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder(); + + /** *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -320,13 +280,10 @@ public interface ComputeRouteMatrixRequestOrBuilder
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -337,14 +294,12 @@ public interface ComputeRouteMatrixRequestOrBuilder
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -352,13 +307,10 @@ public interface ComputeRouteMatrixRequestOrBuilder
    * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The regionCode. */ java.lang.String getRegionCode(); /** - * - * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -366,14 +318,12 @@ public interface ComputeRouteMatrixRequestOrBuilder
    * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for regionCode. */ - com.google.protobuf.ByteString getRegionCodeBytes(); + com.google.protobuf.ByteString + getRegionCodeBytes(); /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -381,17 +331,11 @@ public interface ComputeRouteMatrixRequestOrBuilder
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the extraComputations. */ - java.util.List - getExtraComputationsList(); + java.util.List getExtraComputationsList(); /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -399,16 +343,11 @@ public interface ComputeRouteMatrixRequestOrBuilder
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of extraComputations. */ int getExtraComputationsCount(); /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -416,18 +355,12 @@ public interface ComputeRouteMatrixRequestOrBuilder
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The extraComputations at the given index. */ - com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation getExtraComputations( - int index); + com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation getExtraComputations(int index); /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -435,16 +368,12 @@ com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation getExtraCo
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for extraComputations. */ - java.util.List getExtraComputationsValueList(); + java.util.List + getExtraComputationsValueList(); /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -452,12 +381,80 @@ com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation getExtraCo
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of extraComputations at the given index. */ int getExtraComputationsValue(int index); + + /** + *
+   * Optional. Specifies the assumptions to use when calculating time in
+   * traffic. This setting affects the value returned in the duration field in
+   * the [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] which
+   * contains the predicted time in traffic based on historical averages.
+   * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+   * `TRAFFIC_AWARE_OPTIMAL` and
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+   * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+   * specified.
+   * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enum numeric value on the wire for trafficModel. + */ + int getTrafficModelValue(); + /** + *
+   * Optional. Specifies the assumptions to use when calculating time in
+   * traffic. This setting affects the value returned in the duration field in
+   * the [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] which
+   * contains the predicted time in traffic based on historical averages.
+   * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+   * `TRAFFIC_AWARE_OPTIMAL` and
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+   * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+   * specified.
+   * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return The trafficModel. + */ + com.google.maps.routing.v2.TrafficModel getTrafficModel(); + + /** + *
+   * Optional. Specifies preferences that influence the route returned for
+   * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the transitPreferences field is set. + */ + boolean hasTransitPreferences(); + /** + *
+   * Optional. Specifies preferences that influence the route returned for
+   * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return The transitPreferences. + */ + com.google.maps.routing.v2.TransitPreferences getTransitPreferences(); + /** + *
+   * Optional. Specifies preferences that influence the route returned for
+   * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.maps.routing.v2.TransitPreferencesOrBuilder getTransitPreferencesOrBuilder(); } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java similarity index 56% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java index 9a26a557279b..6a6fea534235 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; /** - * - * *
  * ComputeRoutes request message.
  * 
* * Protobuf type {@code google.maps.routing.v2.ComputeRoutesRequest} */ -public final class ComputeRoutesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ComputeRoutesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.ComputeRoutesRequest) ComputeRoutesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ComputeRoutesRequest.newBuilder() to construct. private ComputeRoutesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ComputeRoutesRequest() { intermediates_ = java.util.Collections.emptyList(); travelMode_ = 0; @@ -48,42 +30,39 @@ private ComputeRoutesRequest() { units_ = 0; requestedReferenceRoutes_ = java.util.Collections.emptyList(); extraComputations_ = java.util.Collections.emptyList(); + trafficModel_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ComputeRoutesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.ComputeRoutesRequest.class, - com.google.maps.routing.v2.ComputeRoutesRequest.Builder.class); + com.google.maps.routing.v2.ComputeRoutesRequest.class, com.google.maps.routing.v2.ComputeRoutesRequest.Builder.class); } /** - * - * *
    * A supported reference route on the ComputeRoutesRequest.
    * 
* * Protobuf enum {@code google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute} */ - public enum ReferenceRoute implements com.google.protobuf.ProtocolMessageEnum { + public enum ReferenceRoute + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not used. Requests containing this value fail.
      * 
@@ -92,8 +71,6 @@ public enum ReferenceRoute implements com.google.protobuf.ProtocolMessageEnum { */ REFERENCE_ROUTE_UNSPECIFIED(0), /** - * - * *
      * Fuel efficient route. Routes labeled with this value are determined to be
      * optimized for parameters such as fuel consumption.
@@ -106,8 +83,6 @@ public enum ReferenceRoute implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not used. Requests containing this value fail.
      * 
@@ -116,8 +91,6 @@ public enum ReferenceRoute implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REFERENCE_ROUTE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Fuel efficient route. Routes labeled with this value are determined to be
      * optimized for parameters such as fuel consumption.
@@ -127,6 +100,7 @@ public enum ReferenceRoute implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FUEL_EFFICIENT_VALUE = 1;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -151,47 +125,48 @@ public static ReferenceRoute valueOf(int value) {
      */
     public static ReferenceRoute forNumber(int value) {
       switch (value) {
-        case 0:
-          return REFERENCE_ROUTE_UNSPECIFIED;
-        case 1:
-          return FUEL_EFFICIENT;
-        default:
-          return null;
+        case 0: return REFERENCE_ROUTE_UNSPECIFIED;
+        case 1: return FUEL_EFFICIENT;
+        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<
+        ReferenceRoute> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ReferenceRoute findValueByNumber(int number) {
+              return ReferenceRoute.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public ReferenceRoute findValueByNumber(int number) {
-            return ReferenceRoute.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.maps.routing.v2.ComputeRoutesRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final ReferenceRoute[] VALUES = values();
 
-    public static ReferenceRoute valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static ReferenceRoute 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;
@@ -209,18 +184,15 @@ private ReferenceRoute(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Extra computations to perform while completing the request.
    * 
* * Protobuf enum {@code google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation} */ - public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum { + public enum ExtraComputation + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Not used. Requests containing this value will fail.
      * 
@@ -229,8 +201,6 @@ public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum */ EXTRA_COMPUTATION_UNSPECIFIED(0), /** - * - * *
      * Toll information for the route(s).
      * 
@@ -239,8 +209,6 @@ public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum */ TOLLS(1), /** - * - * *
      * Estimated fuel consumption for the route(s).
      * 
@@ -249,8 +217,6 @@ public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum */ FUEL_CONSUMPTION(2), /** - * - * *
      * Traffic aware polylines for the route(s).
      * 
@@ -258,12 +224,22 @@ public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum * TRAFFIC_ON_POLYLINE = 3; */ TRAFFIC_ON_POLYLINE(3), + /** + *
+     * [Navigation
+     * Instructions][google.maps.routing.v2.NavigationInstructions.instructions]
+     * presented as a formatted HTML text string. This content
+     * is meant to be read as-is. This content is for display only.
+     * Do not programmatically parse it.
+     * 
+ * + * HTML_FORMATTED_NAVIGATION_INSTRUCTIONS = 4; + */ + HTML_FORMATTED_NAVIGATION_INSTRUCTIONS(4), UNRECOGNIZED(-1), ; /** - * - * *
      * Not used. Requests containing this value will fail.
      * 
@@ -272,8 +248,6 @@ public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum */ public static final int EXTRA_COMPUTATION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Toll information for the route(s).
      * 
@@ -282,8 +256,6 @@ public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum */ public static final int TOLLS_VALUE = 1; /** - * - * *
      * Estimated fuel consumption for the route(s).
      * 
@@ -292,8 +264,6 @@ public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum */ public static final int FUEL_CONSUMPTION_VALUE = 2; /** - * - * *
      * Traffic aware polylines for the route(s).
      * 
@@ -301,6 +271,19 @@ public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum * TRAFFIC_ON_POLYLINE = 3; */ public static final int TRAFFIC_ON_POLYLINE_VALUE = 3; + /** + *
+     * [Navigation
+     * Instructions][google.maps.routing.v2.NavigationInstructions.instructions]
+     * presented as a formatted HTML text string. This content
+     * is meant to be read as-is. This content is for display only.
+     * Do not programmatically parse it.
+     * 
+ * + * HTML_FORMATTED_NAVIGATION_INSTRUCTIONS = 4; + */ + public static final int HTML_FORMATTED_NAVIGATION_INSTRUCTIONS_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { @@ -326,44 +309,41 @@ public static ExtraComputation valueOf(int value) { */ public static ExtraComputation forNumber(int value) { switch (value) { - case 0: - return EXTRA_COMPUTATION_UNSPECIFIED; - case 1: - return TOLLS; - case 2: - return FUEL_CONSUMPTION; - case 3: - return TRAFFIC_ON_POLYLINE; - default: - return null; + case 0: return EXTRA_COMPUTATION_UNSPECIFIED; + case 1: return TOLLS; + case 2: return FUEL_CONSUMPTION; + case 3: return TRAFFIC_ON_POLYLINE; + case 4: return HTML_FORMATTED_NAVIGATION_INSTRUCTIONS; + 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< + ExtraComputation> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExtraComputation findValueByNumber(int number) { + return ExtraComputation.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExtraComputation findValueByNumber(int number) { - return ExtraComputation.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.maps.routing.v2.ComputeRoutesRequest.getDescriptor().getEnumTypes().get(1); } @@ -372,7 +352,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ExtraComputation 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; @@ -392,15 +373,11 @@ private ExtraComputation(int value) { public static final int ORIGIN_FIELD_NUMBER = 1; private com.google.maps.routing.v2.Waypoint origin_; /** - * - * *
    * Required. Origin waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the origin field is set. */ @java.lang.Override @@ -408,15 +385,11 @@ public boolean hasOrigin() { return origin_ != null; } /** - * - * *
    * Required. Origin waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The origin. */ @java.lang.Override @@ -424,14 +397,11 @@ public com.google.maps.routing.v2.Waypoint getOrigin() { return origin_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : origin_; } /** - * - * *
    * Required. Origin waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.maps.routing.v2.WaypointOrBuilder getOriginOrBuilder() { @@ -441,16 +411,11 @@ public com.google.maps.routing.v2.WaypointOrBuilder getOriginOrBuilder() { public static final int DESTINATION_FIELD_NUMBER = 2; private com.google.maps.routing.v2.Waypoint destination_; /** - * - * *
    * Required. Destination waypoint.
    * 
* - * - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the destination field is set. */ @java.lang.Override @@ -458,177 +423,129 @@ public boolean hasDestination() { return destination_ != null; } /** - * - * *
    * Required. Destination waypoint.
    * 
* - * - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The destination. */ @java.lang.Override public com.google.maps.routing.v2.Waypoint getDestination() { - return destination_ == null - ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() - : destination_; + return destination_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : destination_; } /** - * - * *
    * Required. Destination waypoint.
    * 
* - * - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.maps.routing.v2.WaypointOrBuilder getDestinationOrBuilder() { - return destination_ == null - ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() - : destination_; + return destination_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : destination_; } public static final int INTERMEDIATES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List intermediates_; /** - * - * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getIntermediatesList() { return intermediates_; } /** - * - * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getIntermediatesOrBuilderList() { return intermediates_; } /** - * - * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getIntermediatesCount() { return intermediates_.size(); } /** - * - * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.maps.routing.v2.Waypoint getIntermediates(int index) { return intermediates_.get(index); } /** - * - * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(int index) { + public com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder( + int index) { return intermediates_.get(index); } public static final int TRAVEL_MODE_FIELD_NUMBER = 4; private int travelMode_ = 0; /** - * - * *
    * Optional. Specifies the mode of transportation.
    * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for travelMode. */ - @java.lang.Override - public int getTravelModeValue() { + @java.lang.Override public int getTravelModeValue() { return travelMode_; } /** - * - * *
    * Optional. Specifies the mode of transportation.
    * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The travelMode. */ - @java.lang.Override - public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { - com.google.maps.routing.v2.RouteTravelMode result = - com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + @java.lang.Override public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { + com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; } public static final int ROUTING_PREFERENCE_FIELD_NUMBER = 5; private int routingPreference_ = 0; /** - * - * *
    * Optional. Specifies how to compute the route. The server
    * attempts to use the selected routing preference to compute the route. If
@@ -637,19 +554,13 @@ public com.google.maps.routing.v2.RouteTravelMode getTravelMode() {
    * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for routingPreference. */ - @java.lang.Override - public int getRoutingPreferenceValue() { + @java.lang.Override public int getRoutingPreferenceValue() { return routingPreference_; } /** - * - * *
    * Optional. Specifies how to compute the route. The server
    * attempts to use the selected routing preference to compute the route. If
@@ -658,111 +569,78 @@ public int getRoutingPreferenceValue() {
    * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The routingPreference. */ - @java.lang.Override - public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() { - com.google.maps.routing.v2.RoutingPreference result = - com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); + @java.lang.Override public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() { + com.google.maps.routing.v2.RoutingPreference result = com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); return result == null ? com.google.maps.routing.v2.RoutingPreference.UNRECOGNIZED : result; } public static final int POLYLINE_QUALITY_FIELD_NUMBER = 6; private int polylineQuality_ = 0; /** - * - * *
    * Optional. Specifies your preference for the quality of the polyline.
    * 
* - * - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for polylineQuality. */ - @java.lang.Override - public int getPolylineQualityValue() { + @java.lang.Override public int getPolylineQualityValue() { return polylineQuality_; } /** - * - * *
    * Optional. Specifies your preference for the quality of the polyline.
    * 
* - * - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The polylineQuality. */ - @java.lang.Override - public com.google.maps.routing.v2.PolylineQuality getPolylineQuality() { - com.google.maps.routing.v2.PolylineQuality result = - com.google.maps.routing.v2.PolylineQuality.forNumber(polylineQuality_); + @java.lang.Override public com.google.maps.routing.v2.PolylineQuality getPolylineQuality() { + com.google.maps.routing.v2.PolylineQuality result = com.google.maps.routing.v2.PolylineQuality.forNumber(polylineQuality_); return result == null ? com.google.maps.routing.v2.PolylineQuality.UNRECOGNIZED : result; } public static final int POLYLINE_ENCODING_FIELD_NUMBER = 12; private int polylineEncoding_ = 0; /** - * - * *
    * Optional. Specifies the preferred encoding for the polyline.
    * 
* - * - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for polylineEncoding. */ - @java.lang.Override - public int getPolylineEncodingValue() { + @java.lang.Override public int getPolylineEncodingValue() { return polylineEncoding_; } /** - * - * *
    * Optional. Specifies the preferred encoding for the polyline.
    * 
* - * - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The polylineEncoding. */ - @java.lang.Override - public com.google.maps.routing.v2.PolylineEncoding getPolylineEncoding() { - com.google.maps.routing.v2.PolylineEncoding result = - com.google.maps.routing.v2.PolylineEncoding.forNumber(polylineEncoding_); + @java.lang.Override public com.google.maps.routing.v2.PolylineEncoding getPolylineEncoding() { + com.google.maps.routing.v2.PolylineEncoding result = com.google.maps.routing.v2.PolylineEncoding.forNumber(polylineEncoding_); return result == null ? com.google.maps.routing.v2.PolylineEncoding.UNRECOGNIZED : result; } public static final int DEPARTURE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp departureTime_; /** - * - * *
    * Optional. The departure time. If you don't set this value, then this value
-   * defaults to the time that you made the request. If you set this value to a
-   * time that has already occurred, then the request fails.
+   * defaults to the time that you made the request.
+   * NOTE: You can only specify a `departure_time` in the past when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the departureTime field is set. */ @java.lang.Override @@ -770,49 +648,90 @@ public boolean hasDepartureTime() { return departureTime_ != null; } /** - * - * *
    * Optional. The departure time. If you don't set this value, then this value
-   * defaults to the time that you made the request. If you set this value to a
-   * time that has already occurred, then the request fails.
+   * defaults to the time that you made the request.
+   * NOTE: You can only specify a `departure_time` in the past when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The departureTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDepartureTime() { - return departureTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : departureTime_; + return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; } /** - * - * *
    * Optional. The departure time. If you don't set this value, then this value
-   * defaults to the time that you made the request. If you set this value to a
-   * time that has already occurred, then the request fails.
+   * defaults to the time that you made the request.
+   * NOTE: You can only specify a `departure_time` in the past when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { - return departureTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : departureTime_; + return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; } - public static final int COMPUTE_ALTERNATIVE_ROUTES_FIELD_NUMBER = 8; - private boolean computeAlternativeRoutes_ = false; + public static final int ARRIVAL_TIME_FIELD_NUMBER = 19; + private com.google.protobuf.Timestamp arrivalTime_; + /** + *
+   * Optional. The arrival time.
+   * NOTE: Can only be set when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+   * both.
+   * 
+ * + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the arrivalTime field is set. + */ + @java.lang.Override + public boolean hasArrivalTime() { + return arrivalTime_ != null; + } /** + *
+   * Optional. The arrival time.
+   * NOTE: Can only be set when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+   * both.
+   * 
* + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return The arrivalTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getArrivalTime() { + return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + } + /** + *
+   * Optional. The arrival time.
+   * NOTE: Can only be set when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+   * both.
+   * 
* + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { + return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + } + + public static final int COMPUTE_ALTERNATIVE_ROUTES_FIELD_NUMBER = 8; + private boolean computeAlternativeRoutes_ = false; + /** *
    * Optional. Specifies whether to calculate alternate routes in addition to
    * the route. No alternative routes are returned for requests that have
@@ -820,7 +739,6 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() {
    * 
* * bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The computeAlternativeRoutes. */ @java.lang.Override @@ -831,17 +749,12 @@ public boolean getComputeAlternativeRoutes() { public static final int ROUTE_MODIFIERS_FIELD_NUMBER = 9; private com.google.maps.routing.v2.RouteModifiers routeModifiers_; /** - * - * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated.
    * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the routeModifiers field is set. */ @java.lang.Override @@ -849,51 +762,35 @@ public boolean hasRouteModifiers() { return routeModifiers_ != null; } /** - * - * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated.
    * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The routeModifiers. */ @java.lang.Override public com.google.maps.routing.v2.RouteModifiers getRouteModifiers() { - return routeModifiers_ == null - ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() - : routeModifiers_; + return routeModifiers_ == null ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; } /** - * - * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated.
    * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBuilder() { - return routeModifiers_ == null - ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() - : routeModifiers_; + return routeModifiers_ == null ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** - * - * *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -904,7 +801,6 @@ public com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBui
    * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -913,15 +809,14 @@ public java.lang.String getLanguageCode() { 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(); languageCode_ = s; return s; } } /** - * - * *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -932,15 +827,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -949,12 +845,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int REGION_CODE_FIELD_NUMBER = 16; - @SuppressWarnings("serial") private volatile java.lang.Object regionCode_ = ""; /** - * - * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -962,7 +855,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
    * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The regionCode. */ @java.lang.Override @@ -971,15 +863,14 @@ public java.lang.String getRegionCode() { 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(); regionCode_ = s; return s; } } /** - * - * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -987,15 +878,16 @@ public java.lang.String getRegionCode() {
    * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for regionCode. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionCodeBytes() { + public com.google.protobuf.ByteString + getRegionCodeBytes() { java.lang.Object ref = regionCode_; 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); regionCode_ = b; return b; } else { @@ -1006,71 +898,76 @@ public com.google.protobuf.ByteString getRegionCodeBytes() { public static final int UNITS_FIELD_NUMBER = 11; private int units_ = 0; /** - * - * *
-   * Optional. Specifies the units of measure for the display fields. This
-   * includes the `instruction` field in
+   * Optional. Specifies the units of measure for the display fields. These
+   * fields include the `instruction` field in
    * [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
    * units of measure used for the route, leg, step distance, and duration are
    * not affected by this value. If you don't provide this value, then the
-   * display units are inferred from the location of the request.
+   * display units are inferred from the location of the first origin.
    * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for units. */ - @java.lang.Override - public int getUnitsValue() { + @java.lang.Override public int getUnitsValue() { return units_; } /** - * - * *
-   * Optional. Specifies the units of measure for the display fields. This
-   * includes the `instruction` field in
+   * Optional. Specifies the units of measure for the display fields. These
+   * fields include the `instruction` field in
    * [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
    * units of measure used for the route, leg, step distance, and duration are
    * not affected by this value. If you don't provide this value, then the
-   * display units are inferred from the location of the request.
+   * display units are inferred from the location of the first origin.
    * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The units. */ - @java.lang.Override - public com.google.maps.routing.v2.Units getUnits() { + @java.lang.Override public com.google.maps.routing.v2.Units getUnits() { com.google.maps.routing.v2.Units result = com.google.maps.routing.v2.Units.forNumber(units_); return result == null ? com.google.maps.routing.v2.Units.UNRECOGNIZED : result; } - public static final int REQUESTED_REFERENCE_ROUTES_FIELD_NUMBER = 14; + public static final int OPTIMIZE_WAYPOINT_ORDER_FIELD_NUMBER = 13; + private boolean optimizeWaypointOrder_ = false; + /** + *
+   * Optional. If set to true, the service attempts to minimize the overall cost
+   * of the route by re-ordering the specified intermediate waypoints. The
+   * request fails if any of the intermediate waypoints is a `via` waypoint. Use
+   * `ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index` to
+   * find the new ordering.
+   * If `ComputeRoutesResponseroutes.optimized_intermediate_waypoint_index` is
+   * not requested in the `X-Goog-FieldMask` header, the request fails.
+   * If `optimize_waypoint_order` is set to false,
+   * `ComputeRoutesResponse.optimized_intermediate_waypoint_index` will be
+   * empty.
+   * 
+ * + * bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return The optimizeWaypointOrder. + */ + @java.lang.Override + public boolean getOptimizeWaypointOrder() { + return optimizeWaypointOrder_; + } + public static final int REQUESTED_REFERENCE_ROUTES_FIELD_NUMBER = 14; @SuppressWarnings("serial") private java.util.List requestedReferenceRoutes_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute> - requestedReferenceRoutes_converter_ = + java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute> requestedReferenceRoutes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute>() { - public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute convert( - java.lang.Integer from) { - com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute result = - com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute.forNumber(from); - return result == null - ? com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute.UNRECOGNIZED - : result; + public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute convert(java.lang.Integer from) { + com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute result = com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute.forNumber(from); + return result == null ? com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute.UNRECOGNIZED : result; } }; /** - * - * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -1079,22 +976,15 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute convert(
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the requestedReferenceRoutes. */ @java.lang.Override - public java.util.List - getRequestedReferenceRoutesList() { + public java.util.List getRequestedReferenceRoutesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute>( - requestedReferenceRoutes_, requestedReferenceRoutes_converter_); + java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute>(requestedReferenceRoutes_, requestedReferenceRoutes_converter_); } /** - * - * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -1103,10 +993,7 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute convert(
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of requestedReferenceRoutes. */ @java.lang.Override @@ -1114,8 +1001,6 @@ public int getRequestedReferenceRoutesCount() { return requestedReferenceRoutes_.size(); } /** - * - * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -1124,21 +1009,15 @@ public int getRequestedReferenceRoutesCount() {
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The requestedReferenceRoutes at the given index. */ @java.lang.Override - public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedReferenceRoutes( - int index) { + public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedReferenceRoutes(int index) { return requestedReferenceRoutes_converter_.convert(requestedReferenceRoutes_.get(index)); } /** - * - * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -1147,19 +1026,15 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequest
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for requestedReferenceRoutes. */ @java.lang.Override - public java.util.List getRequestedReferenceRoutesValueList() { + public java.util.List + getRequestedReferenceRoutesValueList() { return requestedReferenceRoutes_; } /** - * - * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -1168,10 +1043,7 @@ public java.util.List getRequestedReferenceRoutesValueList()
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of requestedReferenceRoutes at the given index. */ @@ -1179,32 +1051,21 @@ public java.util.List getRequestedReferenceRoutesValueList() public int getRequestedReferenceRoutesValue(int index) { return requestedReferenceRoutes_.get(index); } - private int requestedReferenceRoutesMemoizedSerializedSize; public static final int EXTRA_COMPUTATIONS_FIELD_NUMBER = 15; - @SuppressWarnings("serial") private java.util.List extraComputations_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation> - extraComputations_converter_ = + java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation> extraComputations_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation>() { - public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation convert( - java.lang.Integer from) { - com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation result = - com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation.forNumber(from); - return result == null - ? com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation.UNRECOGNIZED - : result; + java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation>() { + public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation convert(java.lang.Integer from) { + com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation result = com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation.forNumber(from); + return result == null ? com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation.UNRECOGNIZED : result; } }; /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -1212,22 +1073,15 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation convert(
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the extraComputations. */ @java.lang.Override - public java.util.List - getExtraComputationsList() { + public java.util.List getExtraComputationsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation>( - extraComputations_, extraComputations_converter_); + java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation>(extraComputations_, extraComputations_converter_); } /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -1235,10 +1089,7 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation convert(
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of extraComputations. */ @java.lang.Override @@ -1246,8 +1097,6 @@ public int getExtraComputationsCount() { return extraComputations_.size(); } /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -1255,21 +1104,15 @@ public int getExtraComputationsCount() {
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The extraComputations at the given index. */ @java.lang.Override - public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtraComputations( - int index) { + public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtraComputations(int index) { return extraComputations_converter_.convert(extraComputations_.get(index)); } /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -1277,19 +1120,15 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtra
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for extraComputations. */ @java.lang.Override - public java.util.List getExtraComputationsValueList() { + public java.util.List + getExtraComputationsValueList() { return extraComputations_; } /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -1297,10 +1136,7 @@ public java.util.List getExtraComputationsValueList() {
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of extraComputations at the given index. */ @@ -1308,23 +1144,115 @@ public java.util.List getExtraComputationsValueList() { public int getExtraComputationsValue(int index) { return extraComputations_.get(index); } - private int extraComputationsMemoizedSerializedSize; - private byte memoizedIsInitialized = -1; + public static final int TRAFFIC_MODEL_FIELD_NUMBER = 18; + private int trafficModel_ = 0; + /** + *
+   * Optional. Specifies the assumptions to use when calculating time in
+   * traffic. This setting affects the value returned in the duration field in
+   * the [Route][google.maps.routing.v2.Route] and
+   * [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted
+   * time in traffic based on historical averages.
+   * `TrafficModel` is only available for requests that have set
+   * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+   * `TRAFFIC_AWARE_OPTIMAL` and
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+   * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+   * specified.
+   * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enum numeric value on the wire for trafficModel. + */ + @java.lang.Override public int getTrafficModelValue() { + return trafficModel_; + } + /** + *
+   * Optional. Specifies the assumptions to use when calculating time in
+   * traffic. This setting affects the value returned in the duration field in
+   * the [Route][google.maps.routing.v2.Route] and
+   * [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted
+   * time in traffic based on historical averages.
+   * `TrafficModel` is only available for requests that have set
+   * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+   * `TRAFFIC_AWARE_OPTIMAL` and
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+   * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+   * specified.
+   * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return The trafficModel. + */ + @java.lang.Override public com.google.maps.routing.v2.TrafficModel getTrafficModel() { + com.google.maps.routing.v2.TrafficModel result = com.google.maps.routing.v2.TrafficModel.forNumber(trafficModel_); + return result == null ? com.google.maps.routing.v2.TrafficModel.UNRECOGNIZED : result; + } + public static final int TRANSIT_PREFERENCES_FIELD_NUMBER = 20; + private com.google.maps.routing.v2.TransitPreferences transitPreferences_; + /** + *
+   * Optional. Specifies preferences that influence the route returned for
+   * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the transitPreferences field is set. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public boolean hasTransitPreferences() { + return transitPreferences_ != null; + } + /** + *
+   * Optional. Specifies preferences that influence the route returned for
+   * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @return The transitPreferences. + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitPreferences getTransitPreferences() { + return transitPreferences_ == null ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + } + /** + *
+   * Optional. Specifies preferences that influence the route returned for
+   * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitPreferencesOrBuilder getTransitPreferencesOrBuilder() { + return transitPreferences_ == null ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + } + + 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 { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (origin_ != null) { output.writeMessage(1, getOrigin()); @@ -1335,17 +1263,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < intermediates_.size(); i++) { output.writeMessage(3, intermediates_.get(i)); } - if (travelMode_ - != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(4, travelMode_); } - if (routingPreference_ - != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED - .getNumber()) { + if (routingPreference_ != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED.getNumber()) { output.writeEnum(5, routingPreference_); } - if (polylineQuality_ - != com.google.maps.routing.v2.PolylineQuality.POLYLINE_QUALITY_UNSPECIFIED.getNumber()) { + if (polylineQuality_ != com.google.maps.routing.v2.PolylineQuality.POLYLINE_QUALITY_UNSPECIFIED.getNumber()) { output.writeEnum(6, polylineQuality_); } if (departureTime_ != null) { @@ -1363,10 +1287,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (units_ != com.google.maps.routing.v2.Units.UNITS_UNSPECIFIED.getNumber()) { output.writeEnum(11, units_); } - if (polylineEncoding_ - != com.google.maps.routing.v2.PolylineEncoding.POLYLINE_ENCODING_UNSPECIFIED.getNumber()) { + if (polylineEncoding_ != com.google.maps.routing.v2.PolylineEncoding.POLYLINE_ENCODING_UNSPECIFIED.getNumber()) { output.writeEnum(12, polylineEncoding_); } + if (optimizeWaypointOrder_ != false) { + output.writeBool(13, optimizeWaypointOrder_); + } if (getRequestedReferenceRoutesList().size() > 0) { output.writeUInt32NoTag(114); output.writeUInt32NoTag(requestedReferenceRoutesMemoizedSerializedSize); @@ -1384,6 +1310,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, regionCode_); } + if (trafficModel_ != com.google.maps.routing.v2.TrafficModel.TRAFFIC_MODEL_UNSPECIFIED.getNumber()) { + output.writeEnum(18, trafficModel_); + } + if (arrivalTime_ != null) { + output.writeMessage(19, getArrivalTime()); + } + if (transitPreferences_ != null) { + output.writeMessage(20, getTransitPreferences()); + } getUnknownFields().writeTo(output); } @@ -1394,76 +1329,95 @@ public int getSerializedSize() { size = 0; if (origin_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOrigin()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOrigin()); } if (destination_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDestination()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDestination()); } for (int i = 0; i < intermediates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, intermediates_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, intermediates_.get(i)); } - if (travelMode_ - != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, travelMode_); + if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, travelMode_); } - if (routingPreference_ - != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, routingPreference_); + if (routingPreference_ != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, routingPreference_); } - if (polylineQuality_ - != com.google.maps.routing.v2.PolylineQuality.POLYLINE_QUALITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, polylineQuality_); + if (polylineQuality_ != com.google.maps.routing.v2.PolylineQuality.POLYLINE_QUALITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, polylineQuality_); } if (departureTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDepartureTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getDepartureTime()); } if (computeAlternativeRoutes_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, computeAlternativeRoutes_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, computeAlternativeRoutes_); } if (routeModifiers_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getRouteModifiers()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getRouteModifiers()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, languageCode_); } if (units_ != com.google.maps.routing.v2.Units.UNITS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, units_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(11, units_); + } + if (polylineEncoding_ != com.google.maps.routing.v2.PolylineEncoding.POLYLINE_ENCODING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, polylineEncoding_); } - if (polylineEncoding_ - != com.google.maps.routing.v2.PolylineEncoding.POLYLINE_ENCODING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, polylineEncoding_); + if (optimizeWaypointOrder_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, optimizeWaypointOrder_); } { int dataSize = 0; for (int i = 0; i < requestedReferenceRoutes_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( - requestedReferenceRoutes_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(requestedReferenceRoutes_.get(i)); } size += dataSize; - if (!getRequestedReferenceRoutesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - requestedReferenceRoutesMemoizedSerializedSize = dataSize; + if (!getRequestedReferenceRoutesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }requestedReferenceRoutesMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < extraComputations_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(extraComputations_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(extraComputations_.get(i)); } size += dataSize; - if (!getExtraComputationsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - extraComputationsMemoizedSerializedSize = dataSize; + if (!getExtraComputationsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }extraComputationsMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, regionCode_); } + if (trafficModel_ != com.google.maps.routing.v2.TrafficModel.TRAFFIC_MODEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(18, trafficModel_); + } + if (arrivalTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getArrivalTime()); + } + if (transitPreferences_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getTransitPreferences()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1472,41 +1426,61 @@ 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.maps.routing.v2.ComputeRoutesRequest)) { return super.equals(obj); } - com.google.maps.routing.v2.ComputeRoutesRequest other = - (com.google.maps.routing.v2.ComputeRoutesRequest) obj; + com.google.maps.routing.v2.ComputeRoutesRequest other = (com.google.maps.routing.v2.ComputeRoutesRequest) obj; if (hasOrigin() != other.hasOrigin()) return false; if (hasOrigin()) { - if (!getOrigin().equals(other.getOrigin())) return false; + if (!getOrigin() + .equals(other.getOrigin())) return false; } if (hasDestination() != other.hasDestination()) return false; if (hasDestination()) { - if (!getDestination().equals(other.getDestination())) return false; + if (!getDestination() + .equals(other.getDestination())) return false; } - if (!getIntermediatesList().equals(other.getIntermediatesList())) return false; + if (!getIntermediatesList() + .equals(other.getIntermediatesList())) return false; if (travelMode_ != other.travelMode_) return false; if (routingPreference_ != other.routingPreference_) return false; if (polylineQuality_ != other.polylineQuality_) return false; if (polylineEncoding_ != other.polylineEncoding_) return false; if (hasDepartureTime() != other.hasDepartureTime()) return false; if (hasDepartureTime()) { - if (!getDepartureTime().equals(other.getDepartureTime())) return false; + if (!getDepartureTime() + .equals(other.getDepartureTime())) return false; } - if (getComputeAlternativeRoutes() != other.getComputeAlternativeRoutes()) return false; + if (hasArrivalTime() != other.hasArrivalTime()) return false; + if (hasArrivalTime()) { + if (!getArrivalTime() + .equals(other.getArrivalTime())) return false; + } + if (getComputeAlternativeRoutes() + != other.getComputeAlternativeRoutes()) 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 (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getRegionCode().equals(other.getRegionCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getRegionCode() + .equals(other.getRegionCode())) return false; if (units_ != other.units_) return false; + if (getOptimizeWaypointOrder() + != other.getOptimizeWaypointOrder()) return false; if (!requestedReferenceRoutes_.equals(other.requestedReferenceRoutes_)) return false; if (!extraComputations_.equals(other.extraComputations_)) return false; + if (trafficModel_ != other.trafficModel_) return false; + if (hasTransitPreferences() != other.hasTransitPreferences()) return false; + if (hasTransitPreferences()) { + if (!getTransitPreferences() + .equals(other.getTransitPreferences())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1542,8 +1516,13 @@ public int hashCode() { hash = (37 * hash) + DEPARTURE_TIME_FIELD_NUMBER; hash = (53 * hash) + getDepartureTime().hashCode(); } + if (hasArrivalTime()) { + hash = (37 * hash) + ARRIVAL_TIME_FIELD_NUMBER; + hash = (53 * hash) + getArrivalTime().hashCode(); + } hash = (37 * hash) + COMPUTE_ALTERNATIVE_ROUTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getComputeAlternativeRoutes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getComputeAlternativeRoutes()); if (hasRouteModifiers()) { hash = (37 * hash) + ROUTE_MODIFIERS_FIELD_NUMBER; hash = (53 * hash) + getRouteModifiers().hashCode(); @@ -1554,6 +1533,9 @@ public int hashCode() { hash = (53 * hash) + getRegionCode().hashCode(); hash = (37 * hash) + UNITS_FIELD_NUMBER; hash = (53 * hash) + units_; + hash = (37 * hash) + OPTIMIZE_WAYPOINT_ORDER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOptimizeWaypointOrder()); if (getRequestedReferenceRoutesCount() > 0) { hash = (37 * hash) + REQUESTED_REFERENCE_ROUTES_FIELD_NUMBER; hash = (53 * hash) + requestedReferenceRoutes_.hashCode(); @@ -1562,141 +1544,143 @@ public int hashCode() { hash = (37 * hash) + EXTRA_COMPUTATIONS_FIELD_NUMBER; hash = (53 * hash) + extraComputations_.hashCode(); } + hash = (37 * hash) + TRAFFIC_MODEL_FIELD_NUMBER; + hash = (53 * hash) + trafficModel_; + if (hasTransitPreferences()) { + hash = (37 * hash) + TRANSIT_PREFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getTransitPreferences().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.maps.routing.v2.ComputeRoutesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.ComputeRoutesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.ComputeRoutesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest 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; } /** - * - * *
    * ComputeRoutes request message.
    * 
* * Protobuf type {@code google.maps.routing.v2.ComputeRoutesRequest} */ - 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.maps.routing.v2.ComputeRoutesRequest) com.google.maps.routing.v2.ComputeRoutesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.ComputeRoutesRequest.class, - com.google.maps.routing.v2.ComputeRoutesRequest.Builder.class); + com.google.maps.routing.v2.ComputeRoutesRequest.class, com.google.maps.routing.v2.ComputeRoutesRequest.Builder.class); } // Construct using com.google.maps.routing.v2.ComputeRoutesRequest.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(); @@ -1727,6 +1711,11 @@ public Builder clear() { departureTimeBuilder_.dispose(); departureTimeBuilder_ = null; } + arrivalTime_ = null; + if (arrivalTimeBuilder_ != null) { + arrivalTimeBuilder_.dispose(); + arrivalTimeBuilder_ = null; + } computeAlternativeRoutes_ = false; routeModifiers_ = null; if (routeModifiersBuilder_ != null) { @@ -1736,17 +1725,24 @@ public Builder clear() { languageCode_ = ""; regionCode_ = ""; units_ = 0; + optimizeWaypointOrder_ = false; requestedReferenceRoutes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00008000); extraComputations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); + trafficModel_ = 0; + transitPreferences_ = null; + if (transitPreferencesBuilder_ != null) { + transitPreferencesBuilder_.dispose(); + transitPreferencesBuilder_ = null; + } return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor; } @java.lang.Override @@ -1765,18 +1761,14 @@ public com.google.maps.routing.v2.ComputeRoutesRequest build() { @java.lang.Override public com.google.maps.routing.v2.ComputeRoutesRequest buildPartial() { - com.google.maps.routing.v2.ComputeRoutesRequest result = - new com.google.maps.routing.v2.ComputeRoutesRequest(this); + com.google.maps.routing.v2.ComputeRoutesRequest result = new com.google.maps.routing.v2.ComputeRoutesRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.maps.routing.v2.ComputeRoutesRequest result) { + private void buildPartialRepeatedFields(com.google.maps.routing.v2.ComputeRoutesRequest result) { if (intermediatesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { intermediates_ = java.util.Collections.unmodifiableList(intermediates_); @@ -1786,15 +1778,14 @@ private void buildPartialRepeatedFields( } else { result.intermediates_ = intermediatesBuilder_.build(); } - if (((bitField0_ & 0x00002000) != 0)) { - requestedReferenceRoutes_ = - java.util.Collections.unmodifiableList(requestedReferenceRoutes_); - bitField0_ = (bitField0_ & ~0x00002000); + if (((bitField0_ & 0x00008000) != 0)) { + requestedReferenceRoutes_ = java.util.Collections.unmodifiableList(requestedReferenceRoutes_); + bitField0_ = (bitField0_ & ~0x00008000); } result.requestedReferenceRoutes_ = requestedReferenceRoutes_; - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00010000) != 0)) { extraComputations_ = java.util.Collections.unmodifiableList(extraComputations_); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); } result.extraComputations_ = extraComputations_; } @@ -1802,11 +1793,14 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.maps.routing.v2.ComputeRoutesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.origin_ = originBuilder_ == null ? origin_ : originBuilder_.build(); + result.origin_ = originBuilder_ == null + ? origin_ + : originBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.destination_ = - destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); + result.destination_ = destinationBuilder_ == null + ? destination_ + : destinationBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.travelMode_ = travelMode_; @@ -1821,64 +1815,81 @@ private void buildPartial0(com.google.maps.routing.v2.ComputeRoutesRequest resul result.polylineEncoding_ = polylineEncoding_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.departureTime_ = - departureTimeBuilder_ == null ? departureTime_ : departureTimeBuilder_.build(); + result.departureTime_ = departureTimeBuilder_ == null + ? departureTime_ + : departureTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.computeAlternativeRoutes_ = computeAlternativeRoutes_; + result.arrivalTime_ = arrivalTimeBuilder_ == null + ? arrivalTime_ + : arrivalTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.routeModifiers_ = - routeModifiersBuilder_ == null ? routeModifiers_ : routeModifiersBuilder_.build(); + result.computeAlternativeRoutes_ = computeAlternativeRoutes_; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.languageCode_ = languageCode_; + result.routeModifiers_ = routeModifiersBuilder_ == null + ? routeModifiers_ + : routeModifiersBuilder_.build(); } if (((from_bitField0_ & 0x00000800) != 0)) { - result.regionCode_ = regionCode_; + result.languageCode_ = languageCode_; } if (((from_bitField0_ & 0x00001000) != 0)) { + result.regionCode_ = regionCode_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { result.units_ = units_; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.optimizeWaypointOrder_ = optimizeWaypointOrder_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.trafficModel_ = trafficModel_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.transitPreferences_ = transitPreferencesBuilder_ == null + ? transitPreferences_ + : transitPreferencesBuilder_.build(); + } } @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) { + 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.maps.routing.v2.ComputeRoutesRequest) { - return mergeFrom((com.google.maps.routing.v2.ComputeRoutesRequest) other); + return mergeFrom((com.google.maps.routing.v2.ComputeRoutesRequest)other); } else { super.mergeFrom(other); return this; @@ -1886,8 +1897,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.maps.routing.v2.ComputeRoutesRequest other) { - if (other == com.google.maps.routing.v2.ComputeRoutesRequest.getDefaultInstance()) - return this; + if (other == com.google.maps.routing.v2.ComputeRoutesRequest.getDefaultInstance()) return this; if (other.hasOrigin()) { mergeOrigin(other.getOrigin()); } @@ -1912,10 +1922,9 @@ public Builder mergeFrom(com.google.maps.routing.v2.ComputeRoutesRequest other) intermediatesBuilder_ = null; intermediates_ = other.intermediates_; bitField0_ = (bitField0_ & ~0x00000004); - intermediatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getIntermediatesFieldBuilder() - : null; + intermediatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getIntermediatesFieldBuilder() : null; } else { intermediatesBuilder_.addAllMessages(other.intermediates_); } @@ -1936,6 +1945,9 @@ public Builder mergeFrom(com.google.maps.routing.v2.ComputeRoutesRequest other) if (other.hasDepartureTime()) { mergeDepartureTime(other.getDepartureTime()); } + if (other.hasArrivalTime()) { + mergeArrivalTime(other.getArrivalTime()); + } if (other.getComputeAlternativeRoutes() != false) { setComputeAlternativeRoutes(other.getComputeAlternativeRoutes()); } @@ -1944,21 +1956,24 @@ public Builder mergeFrom(com.google.maps.routing.v2.ComputeRoutesRequest other) } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (!other.getRegionCode().isEmpty()) { regionCode_ = other.regionCode_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (other.units_ != 0) { setUnitsValue(other.getUnitsValue()); } + if (other.getOptimizeWaypointOrder() != false) { + setOptimizeWaypointOrder(other.getOptimizeWaypointOrder()); + } if (!other.requestedReferenceRoutes_.isEmpty()) { if (requestedReferenceRoutes_.isEmpty()) { requestedReferenceRoutes_ = other.requestedReferenceRoutes_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00008000); } else { ensureRequestedReferenceRoutesIsMutable(); requestedReferenceRoutes_.addAll(other.requestedReferenceRoutes_); @@ -1968,13 +1983,19 @@ public Builder mergeFrom(com.google.maps.routing.v2.ComputeRoutesRequest other) if (!other.extraComputations_.isEmpty()) { if (extraComputations_.isEmpty()) { extraComputations_ = other.extraComputations_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); } else { ensureExtraComputationsIsMutable(); extraComputations_.addAll(other.extraComputations_); } onChanged(); } + if (other.trafficModel_ != 0) { + setTrafficModelValue(other.getTrafficModelValue()); + } + if (other.hasTransitPreferences()) { + mergeTransitPreferences(other.getTransitPreferences()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2001,136 +2022,151 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getOriginFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.maps.routing.v2.Waypoint m = - input.readMessage( - com.google.maps.routing.v2.Waypoint.parser(), extensionRegistry); - if (intermediatesBuilder_ == null) { - ensureIntermediatesIsMutable(); - intermediates_.add(m); - } else { - intermediatesBuilder_.addMessage(m); - } - break; - } // case 26 - case 32: - { - travelMode_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - routingPreference_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - polylineQuality_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - input.readMessage(getDepartureTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 64: - { - computeAlternativeRoutes_ = input.readBool(); - bitField0_ |= 0x00000100; - break; - } // case 64 - case 74: - { - input.readMessage(getRouteModifiersFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 74 - case 82: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 82 - case 88: - { - units_ = input.readEnum(); - bitField0_ |= 0x00001000; - break; - } // case 88 - case 96: - { - polylineEncoding_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 96 - case 112: - { + case 10: { + input.readMessage( + getOriginFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDestinationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.maps.routing.v2.Waypoint m = + input.readMessage( + com.google.maps.routing.v2.Waypoint.parser(), + extensionRegistry); + if (intermediatesBuilder_ == null) { + ensureIntermediatesIsMutable(); + intermediates_.add(m); + } else { + intermediatesBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: { + travelMode_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + routingPreference_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + polylineQuality_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + input.readMessage( + getDepartureTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 64: { + computeAlternativeRoutes_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 64 + case 74: { + input.readMessage( + getRouteModifiersFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 74 + case 82: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 82 + case 88: { + units_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 88 + case 96: { + polylineEncoding_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 96 + case 104: { + optimizeWaypointOrder_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 104 + case 112: { + int tmpRaw = input.readEnum(); + ensureRequestedReferenceRoutesIsMutable(); + requestedReferenceRoutes_.add(tmpRaw); + break; + } // case 112 + case 114: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureRequestedReferenceRoutesIsMutable(); requestedReferenceRoutes_.add(tmpRaw); - break; - } // case 112 - case 114: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureRequestedReferenceRoutesIsMutable(); - requestedReferenceRoutes_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 114 - case 120: - { + } + input.popLimit(oldLimit); + break; + } // case 114 + case 120: { + int tmpRaw = input.readEnum(); + ensureExtraComputationsIsMutable(); + extraComputations_.add(tmpRaw); + break; + } // case 120 + case 122: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureExtraComputationsIsMutable(); extraComputations_.add(tmpRaw); - break; - } // case 120 - case 122: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureExtraComputationsIsMutable(); - extraComputations_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 122 - case 130: - { - regionCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 130 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 122 + case 130: { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 130 + case 144: { + trafficModel_ = input.readEnum(); + bitField0_ |= 0x00020000; + break; + } // case 144 + case 154: { + input.readMessage( + getArrivalTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 154 + case 162: { + input.readMessage( + getTransitPreferencesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 162 + 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) { @@ -2140,40 +2176,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.maps.routing.v2.Waypoint origin_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, - com.google.maps.routing.v2.Waypoint.Builder, - com.google.maps.routing.v2.WaypointOrBuilder> - originBuilder_; + com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> originBuilder_; /** - * - * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the origin field is set. */ public boolean hasOrigin() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The origin. */ public com.google.maps.routing.v2.Waypoint getOrigin() { @@ -2184,14 +2208,11 @@ public com.google.maps.routing.v2.Waypoint getOrigin() { } } /** - * - * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOrigin(com.google.maps.routing.v2.Waypoint value) { if (originBuilder_ == null) { @@ -2207,16 +2228,14 @@ public Builder setOrigin(com.google.maps.routing.v2.Waypoint value) { return this; } /** - * - * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setOrigin(com.google.maps.routing.v2.Waypoint.Builder builderForValue) { + public Builder setOrigin( + com.google.maps.routing.v2.Waypoint.Builder builderForValue) { if (originBuilder_ == null) { origin_ = builderForValue.build(); } else { @@ -2227,20 +2246,17 @@ public Builder setOrigin(com.google.maps.routing.v2.Waypoint.Builder builderForV return this; } /** - * - * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOrigin(com.google.maps.routing.v2.Waypoint value) { if (originBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && origin_ != null - && origin_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + origin_ != null && + origin_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { getOriginBuilder().mergeFrom(value); } else { origin_ = value; @@ -2253,14 +2269,11 @@ public Builder mergeOrigin(com.google.maps.routing.v2.Waypoint value) { return this; } /** - * - * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOrigin() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2273,14 +2286,11 @@ public Builder clearOrigin() { return this; } /** - * - * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.maps.routing.v2.Waypoint.Builder getOriginBuilder() { bitField0_ |= 0x00000001; @@ -2288,44 +2298,36 @@ public com.google.maps.routing.v2.Waypoint.Builder getOriginBuilder() { return getOriginFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.maps.routing.v2.WaypointOrBuilder getOriginOrBuilder() { if (originBuilder_ != null) { return originBuilder_.getMessageOrBuilder(); } else { - return origin_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : origin_; + return origin_ == null ? + com.google.maps.routing.v2.Waypoint.getDefaultInstance() : origin_; } } /** - * - * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, - com.google.maps.routing.v2.Waypoint.Builder, - com.google.maps.routing.v2.WaypointOrBuilder> + com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> getOriginFieldBuilder() { if (originBuilder_ == null) { - originBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, - com.google.maps.routing.v2.Waypoint.Builder, - com.google.maps.routing.v2.WaypointOrBuilder>( - getOrigin(), getParentForChildren(), isClean()); + originBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder>( + getOrigin(), + getParentForChildren(), + isClean()); origin_ = null; } return originBuilder_; @@ -2333,58 +2335,39 @@ public com.google.maps.routing.v2.WaypointOrBuilder getOriginOrBuilder() { private com.google.maps.routing.v2.Waypoint destination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, - com.google.maps.routing.v2.Waypoint.Builder, - com.google.maps.routing.v2.WaypointOrBuilder> - destinationBuilder_; + com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> destinationBuilder_; /** - * - * *
      * Required. Destination waypoint.
      * 
* - * - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the destination field is set. */ public boolean hasDestination() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Destination waypoint.
      * 
* - * - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The destination. */ public com.google.maps.routing.v2.Waypoint getDestination() { if (destinationBuilder_ == null) { - return destination_ == null - ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() - : destination_; + return destination_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : destination_; } else { return destinationBuilder_.getMessage(); } } /** - * - * *
      * Required. Destination waypoint.
      * 
* - * - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDestination(com.google.maps.routing.v2.Waypoint value) { if (destinationBuilder_ == null) { @@ -2400,17 +2383,14 @@ public Builder setDestination(com.google.maps.routing.v2.Waypoint value) { return this; } /** - * - * *
      * Required. Destination waypoint.
      * 
* - * - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDestination(com.google.maps.routing.v2.Waypoint.Builder builderForValue) { + public Builder setDestination( + com.google.maps.routing.v2.Waypoint.Builder builderForValue) { if (destinationBuilder_ == null) { destination_ = builderForValue.build(); } else { @@ -2421,21 +2401,17 @@ public Builder setDestination(com.google.maps.routing.v2.Waypoint.Builder builde return this; } /** - * - * *
      * Required. Destination waypoint.
      * 
* - * - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDestination(com.google.maps.routing.v2.Waypoint value) { if (destinationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && destination_ != null - && destination_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + destination_ != null && + destination_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { getDestinationBuilder().mergeFrom(value); } else { destination_ = value; @@ -2448,15 +2424,11 @@ public Builder mergeDestination(com.google.maps.routing.v2.Waypoint value) { return this; } /** - * - * *
      * Required. Destination waypoint.
      * 
* - * - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDestination() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2469,15 +2441,11 @@ public Builder clearDestination() { return this; } /** - * - * *
      * Required. Destination waypoint.
      * 
* - * - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.maps.routing.v2.Waypoint.Builder getDestinationBuilder() { bitField0_ |= 0x00000002; @@ -2485,82 +2453,61 @@ public com.google.maps.routing.v2.Waypoint.Builder getDestinationBuilder() { return getDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Destination waypoint.
      * 
* - * - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.maps.routing.v2.WaypointOrBuilder getDestinationOrBuilder() { if (destinationBuilder_ != null) { return destinationBuilder_.getMessageOrBuilder(); } else { - return destination_ == null - ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() - : destination_; + return destination_ == null ? + com.google.maps.routing.v2.Waypoint.getDefaultInstance() : destination_; } } /** - * - * *
      * Required. Destination waypoint.
      * 
* - * - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, - com.google.maps.routing.v2.Waypoint.Builder, - com.google.maps.routing.v2.WaypointOrBuilder> + com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> getDestinationFieldBuilder() { if (destinationBuilder_ == null) { - destinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, - com.google.maps.routing.v2.Waypoint.Builder, - com.google.maps.routing.v2.WaypointOrBuilder>( - getDestination(), getParentForChildren(), isClean()); + destinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder>( + getDestination(), + getParentForChildren(), + isClean()); destination_ = null; } return destinationBuilder_; } private java.util.List intermediates_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureIntermediatesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - intermediates_ = - new java.util.ArrayList(intermediates_); + intermediates_ = new java.util.ArrayList(intermediates_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, - com.google.maps.routing.v2.Waypoint.Builder, - com.google.maps.routing.v2.WaypointOrBuilder> - intermediatesBuilder_; + com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> intermediatesBuilder_; /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getIntermediatesList() { if (intermediatesBuilder_ == null) { @@ -2570,17 +2517,13 @@ public java.util.List getIntermediatesList( } } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public int getIntermediatesCount() { if (intermediatesBuilder_ == null) { @@ -2590,17 +2533,13 @@ public int getIntermediatesCount() { } } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.maps.routing.v2.Waypoint getIntermediates(int index) { if (intermediatesBuilder_ == null) { @@ -2610,19 +2549,16 @@ public com.google.maps.routing.v2.Waypoint getIntermediates(int index) { } } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setIntermediates(int index, com.google.maps.routing.v2.Waypoint value) { + public Builder setIntermediates( + int index, com.google.maps.routing.v2.Waypoint value) { if (intermediatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2636,17 +2572,13 @@ public Builder setIntermediates(int index, com.google.maps.routing.v2.Waypoint v return this; } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setIntermediates( int index, com.google.maps.routing.v2.Waypoint.Builder builderForValue) { @@ -2660,17 +2592,13 @@ public Builder setIntermediates( return this; } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addIntermediates(com.google.maps.routing.v2.Waypoint value) { if (intermediatesBuilder_ == null) { @@ -2686,19 +2614,16 @@ public Builder addIntermediates(com.google.maps.routing.v2.Waypoint value) { return this; } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addIntermediates(int index, com.google.maps.routing.v2.Waypoint value) { + public Builder addIntermediates( + int index, com.google.maps.routing.v2.Waypoint value) { if (intermediatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2712,19 +2637,16 @@ public Builder addIntermediates(int index, com.google.maps.routing.v2.Waypoint v return this; } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addIntermediates(com.google.maps.routing.v2.Waypoint.Builder builderForValue) { + public Builder addIntermediates( + com.google.maps.routing.v2.Waypoint.Builder builderForValue) { if (intermediatesBuilder_ == null) { ensureIntermediatesIsMutable(); intermediates_.add(builderForValue.build()); @@ -2735,17 +2657,13 @@ public Builder addIntermediates(com.google.maps.routing.v2.Waypoint.Builder buil return this; } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addIntermediates( int index, com.google.maps.routing.v2.Waypoint.Builder builderForValue) { @@ -2759,23 +2677,20 @@ public Builder addIntermediates( return this; } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllIntermediates( java.lang.Iterable values) { if (intermediatesBuilder_ == null) { ensureIntermediatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, intermediates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, intermediates_); onChanged(); } else { intermediatesBuilder_.addAllMessages(values); @@ -2783,17 +2698,13 @@ public Builder addAllIntermediates( return this; } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearIntermediates() { if (intermediatesBuilder_ == null) { @@ -2806,17 +2717,13 @@ public Builder clearIntermediates() { return this; } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeIntermediates(int index) { if (intermediatesBuilder_ == null) { @@ -2829,56 +2736,45 @@ public Builder removeIntermediates(int index) { return this; } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.maps.routing.v2.Waypoint.Builder getIntermediatesBuilder(int index) { + public com.google.maps.routing.v2.Waypoint.Builder getIntermediatesBuilder( + int index) { return getIntermediatesFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(int index) { + public com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder( + int index) { if (intermediatesBuilder_ == null) { - return intermediates_.get(index); - } else { + return intermediates_.get(index); } else { return intermediatesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getIntermediatesOrBuilderList() { + public java.util.List + getIntermediatesOrBuilderList() { if (intermediatesBuilder_ != null) { return intermediatesBuilder_.getMessageOrBuilderList(); } else { @@ -2886,68 +2782,51 @@ public com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(in } } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.maps.routing.v2.Waypoint.Builder addIntermediatesBuilder() { - return getIntermediatesFieldBuilder() - .addBuilder(com.google.maps.routing.v2.Waypoint.getDefaultInstance()); + return getIntermediatesFieldBuilder().addBuilder( + com.google.maps.routing.v2.Waypoint.getDefaultInstance()); } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.maps.routing.v2.Waypoint.Builder addIntermediatesBuilder(int index) { - return getIntermediatesFieldBuilder() - .addBuilder(index, com.google.maps.routing.v2.Waypoint.getDefaultInstance()); + public com.google.maps.routing.v2.Waypoint.Builder addIntermediatesBuilder( + int index) { + return getIntermediatesFieldBuilder().addBuilder( + index, com.google.maps.routing.v2.Waypoint.getDefaultInstance()); } /** - * - * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getIntermediatesBuilderList() { + public java.util.List + getIntermediatesBuilderList() { return getIntermediatesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, - com.google.maps.routing.v2.Waypoint.Builder, - com.google.maps.routing.v2.WaypointOrBuilder> + com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> getIntermediatesFieldBuilder() { if (intermediatesBuilder_ == null) { - intermediatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, - com.google.maps.routing.v2.Waypoint.Builder, - com.google.maps.routing.v2.WaypointOrBuilder>( + intermediatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder>( intermediates_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -2959,33 +2838,22 @@ public com.google.maps.routing.v2.Waypoint.Builder addIntermediatesBuilder(int i private int travelMode_ = 0; /** - * - * *
      * Optional. Specifies the mode of transportation.
      * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for travelMode. */ - @java.lang.Override - public int getTravelModeValue() { + @java.lang.Override public int getTravelModeValue() { return travelMode_; } /** - * - * *
      * Optional. Specifies the mode of transportation.
      * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for travelMode to set. * @return This builder for chaining. */ @@ -2996,35 +2864,24 @@ public Builder setTravelModeValue(int value) { return this; } /** - * - * *
      * Optional. Specifies the mode of transportation.
      * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The travelMode. */ @java.lang.Override public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { - com.google.maps.routing.v2.RouteTravelMode result = - com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Specifies the mode of transportation.
      * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The travelMode to set. * @return This builder for chaining. */ @@ -3038,16 +2895,11 @@ public Builder setTravelMode(com.google.maps.routing.v2.RouteTravelMode value) { return this; } /** - * - * *
      * Optional. Specifies the mode of transportation.
      * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearTravelMode() { @@ -3059,8 +2911,6 @@ public Builder clearTravelMode() { private int routingPreference_ = 0; /** - * - * *
      * Optional. Specifies how to compute the route. The server
      * attempts to use the selected routing preference to compute the route. If
@@ -3069,19 +2919,13 @@ public Builder clearTravelMode() {
      * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for routingPreference. */ - @java.lang.Override - public int getRoutingPreferenceValue() { + @java.lang.Override public int getRoutingPreferenceValue() { return routingPreference_; } /** - * - * *
      * Optional. Specifies how to compute the route. The server
      * attempts to use the selected routing preference to compute the route. If
@@ -3090,10 +2934,7 @@ public int getRoutingPreferenceValue() {
      * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for routingPreference to set. * @return This builder for chaining. */ @@ -3104,8 +2945,6 @@ public Builder setRoutingPreferenceValue(int value) { return this; } /** - * - * *
      * Optional. Specifies how to compute the route. The server
      * attempts to use the selected routing preference to compute the route. If
@@ -3114,21 +2953,15 @@ public Builder setRoutingPreferenceValue(int value) {
      * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The routingPreference. */ @java.lang.Override public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() { - com.google.maps.routing.v2.RoutingPreference result = - com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); + com.google.maps.routing.v2.RoutingPreference result = com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); return result == null ? com.google.maps.routing.v2.RoutingPreference.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Specifies how to compute the route. The server
      * attempts to use the selected routing preference to compute the route. If
@@ -3137,10 +2970,7 @@ public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() {
      * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @param value The routingPreference to set. * @return This builder for chaining. */ @@ -3154,8 +2984,6 @@ public Builder setRoutingPreference(com.google.maps.routing.v2.RoutingPreference return this; } /** - * - * *
      * Optional. Specifies how to compute the route. The server
      * attempts to use the selected routing preference to compute the route. If
@@ -3164,10 +2992,7 @@ public Builder setRoutingPreference(com.google.maps.routing.v2.RoutingPreference
      * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearRoutingPreference() { @@ -3179,33 +3004,22 @@ public Builder clearRoutingPreference() { private int polylineQuality_ = 0; /** - * - * *
      * Optional. Specifies your preference for the quality of the polyline.
      * 
* - * - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for polylineQuality. */ - @java.lang.Override - public int getPolylineQualityValue() { + @java.lang.Override public int getPolylineQualityValue() { return polylineQuality_; } /** - * - * *
      * Optional. Specifies your preference for the quality of the polyline.
      * 
* - * - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for polylineQuality to set. * @return This builder for chaining. */ @@ -3216,35 +3030,24 @@ public Builder setPolylineQualityValue(int value) { return this; } /** - * - * *
      * Optional. Specifies your preference for the quality of the polyline.
      * 
* - * - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The polylineQuality. */ @java.lang.Override public com.google.maps.routing.v2.PolylineQuality getPolylineQuality() { - com.google.maps.routing.v2.PolylineQuality result = - com.google.maps.routing.v2.PolylineQuality.forNumber(polylineQuality_); + com.google.maps.routing.v2.PolylineQuality result = com.google.maps.routing.v2.PolylineQuality.forNumber(polylineQuality_); return result == null ? com.google.maps.routing.v2.PolylineQuality.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Specifies your preference for the quality of the polyline.
      * 
* - * - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param value The polylineQuality to set. * @return This builder for chaining. */ @@ -3258,16 +3061,11 @@ public Builder setPolylineQuality(com.google.maps.routing.v2.PolylineQuality val return this; } /** - * - * *
      * Optional. Specifies your preference for the quality of the polyline.
      * 
* - * - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearPolylineQuality() { @@ -3279,33 +3077,22 @@ public Builder clearPolylineQuality() { private int polylineEncoding_ = 0; /** - * - * *
      * Optional. Specifies the preferred encoding for the polyline.
      * 
* - * - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for polylineEncoding. */ - @java.lang.Override - public int getPolylineEncodingValue() { + @java.lang.Override public int getPolylineEncodingValue() { return polylineEncoding_; } /** - * - * *
      * Optional. Specifies the preferred encoding for the polyline.
      * 
* - * - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for polylineEncoding to set. * @return This builder for chaining. */ @@ -3316,35 +3103,24 @@ public Builder setPolylineEncodingValue(int value) { return this; } /** - * - * *
      * Optional. Specifies the preferred encoding for the polyline.
      * 
* - * - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The polylineEncoding. */ @java.lang.Override public com.google.maps.routing.v2.PolylineEncoding getPolylineEncoding() { - com.google.maps.routing.v2.PolylineEncoding result = - com.google.maps.routing.v2.PolylineEncoding.forNumber(polylineEncoding_); + com.google.maps.routing.v2.PolylineEncoding result = com.google.maps.routing.v2.PolylineEncoding.forNumber(polylineEncoding_); return result == null ? com.google.maps.routing.v2.PolylineEncoding.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Specifies the preferred encoding for the polyline.
      * 
* - * - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; * @param value The polylineEncoding to set. * @return This builder for chaining. */ @@ -3358,16 +3134,11 @@ public Builder setPolylineEncoding(com.google.maps.routing.v2.PolylineEncoding v return this; } /** - * - * *
      * Optional. Specifies the preferred encoding for the polyline.
      * 
* - * - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearPolylineEncoding() { @@ -3379,64 +3150,51 @@ public Builder clearPolylineEncoding() { private com.google.protobuf.Timestamp departureTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - departureTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> departureTimeBuilder_; /** - * - * *
      * Optional. The departure time. If you don't set this value, then this value
-     * defaults to the time that you made the request. If you set this value to a
-     * time that has already occurred, then the request fails.
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the departureTime field is set. */ public boolean hasDepartureTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Optional. The departure time. If you don't set this value, then this value
-     * defaults to the time that you made the request. If you set this value to a
-     * time that has already occurred, then the request fails.
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The departureTime. */ public com.google.protobuf.Timestamp getDepartureTime() { if (departureTimeBuilder_ == null) { - return departureTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : departureTime_; + return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; } else { return departureTimeBuilder_.getMessage(); } } /** - * - * *
      * Optional. The departure time. If you don't set this value, then this value
-     * defaults to the time that you made the request. If you set this value to a
-     * time that has already occurred, then the request fails.
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setDepartureTime(com.google.protobuf.Timestamp value) { if (departureTimeBuilder_ == null) { @@ -3452,19 +3210,18 @@ public Builder setDepartureTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. The departure time. If you don't set this value, then this value
-     * defaults to the time that you made the request. If you set this value to a
-     * time that has already occurred, then the request fails.
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setDepartureTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDepartureTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (departureTimeBuilder_ == null) { departureTime_ = builderForValue.build(); } else { @@ -3475,23 +3232,21 @@ public Builder setDepartureTime(com.google.protobuf.Timestamp.Builder builderFor return this; } /** - * - * *
      * Optional. The departure time. If you don't set this value, then this value
-     * defaults to the time that you made the request. If you set this value to a
-     * time that has already occurred, then the request fails.
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeDepartureTime(com.google.protobuf.Timestamp value) { if (departureTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && departureTime_ != null - && departureTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + departureTime_ != null && + departureTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDepartureTimeBuilder().mergeFrom(value); } else { departureTime_ = value; @@ -3504,17 +3259,15 @@ public Builder mergeDepartureTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Optional. The departure time. If you don't set this value, then this value
-     * defaults to the time that you made the request. If you set this value to a
-     * time that has already occurred, then the request fails.
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearDepartureTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3527,17 +3280,15 @@ public Builder clearDepartureTime() { return this; } /** - * - * *
      * Optional. The departure time. If you don't set this value, then this value
-     * defaults to the time that you made the request. If you set this value to a
-     * time that has already occurred, then the request fails.
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getDepartureTimeBuilder() { bitField0_ |= 0x00000080; @@ -3545,61 +3296,242 @@ public com.google.protobuf.Timestamp.Builder getDepartureTimeBuilder() { return getDepartureTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The departure time. If you don't set this value, then this value
-     * defaults to the time that you made the request. If you set this value to a
-     * time that has already occurred, then the request fails.
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { if (departureTimeBuilder_ != null) { return departureTimeBuilder_.getMessageOrBuilder(); } else { - return departureTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : departureTime_; + return departureTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; } } /** - * - * *
      * Optional. The departure time. If you don't set this value, then this value
-     * defaults to the time that you made the request. If you set this value to a
-     * time that has already occurred, then the request fails.
+     * defaults to the time that you made the request.
+     * NOTE: You can only specify a `departure_time` in the past when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
      * 
* - * - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; */ 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> getDepartureTimeFieldBuilder() { if (departureTimeBuilder_ == null) { - departureTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDepartureTime(), getParentForChildren(), isClean()); + departureTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDepartureTime(), + getParentForChildren(), + isClean()); departureTime_ = null; } return departureTimeBuilder_; } - private boolean computeAlternativeRoutes_; + private com.google.protobuf.Timestamp arrivalTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> arrivalTimeBuilder_; /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
* + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the arrivalTime field is set. + */ + public boolean hasArrivalTime() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
* + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return The arrivalTime. + */ + public com.google.protobuf.Timestamp getArrivalTime() { + if (arrivalTimeBuilder_ == null) { + return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + } else { + return arrivalTimeBuilder_.getMessage(); + } + } + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setArrivalTime(com.google.protobuf.Timestamp value) { + if (arrivalTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + arrivalTime_ = value; + } else { + arrivalTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setArrivalTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (arrivalTimeBuilder_ == null) { + arrivalTime_ = builderForValue.build(); + } else { + arrivalTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeArrivalTime(com.google.protobuf.Timestamp value) { + if (arrivalTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + arrivalTime_ != null && + arrivalTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getArrivalTimeBuilder().mergeFrom(value); + } else { + arrivalTime_ = value; + } + } else { + arrivalTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearArrivalTime() { + bitField0_ = (bitField0_ & ~0x00000100); + arrivalTime_ = null; + if (arrivalTimeBuilder_ != null) { + arrivalTimeBuilder_.dispose(); + arrivalTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Timestamp.Builder getArrivalTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getArrivalTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { + if (arrivalTimeBuilder_ != null) { + return arrivalTimeBuilder_.getMessageOrBuilder(); + } else { + return arrivalTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + } + } + /** + *
+     * Optional. The arrival time.
+     * NOTE: Can only be set when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+     * both.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getArrivalTimeFieldBuilder() { + if (arrivalTimeBuilder_ == null) { + arrivalTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getArrivalTime(), + getParentForChildren(), + isClean()); + arrivalTime_ = null; + } + return arrivalTimeBuilder_; + } + + private boolean computeAlternativeRoutes_ ; + /** *
      * Optional. Specifies whether to calculate alternate routes in addition to
      * the route. No alternative routes are returned for requests that have
@@ -3607,7 +3539,6 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() {
      * 
* * bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The computeAlternativeRoutes. */ @java.lang.Override @@ -3615,8 +3546,6 @@ public boolean getComputeAlternativeRoutes() { return computeAlternativeRoutes_; } /** - * - * *
      * Optional. Specifies whether to calculate alternate routes in addition to
      * the route. No alternative routes are returned for requests that have
@@ -3624,20 +3553,17 @@ public boolean getComputeAlternativeRoutes() {
      * 
* * bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The computeAlternativeRoutes to set. * @return This builder for chaining. */ public Builder setComputeAlternativeRoutes(boolean value) { computeAlternativeRoutes_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Optional. Specifies whether to calculate alternate routes in addition to
      * the route. No alternative routes are returned for requests that have
@@ -3645,11 +3571,10 @@ public Builder setComputeAlternativeRoutes(boolean value) {
      * 
* * bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearComputeAlternativeRoutes() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); computeAlternativeRoutes_ = false; onChanged(); return this; @@ -3657,61 +3582,42 @@ public Builder clearComputeAlternativeRoutes() { private com.google.maps.routing.v2.RouteModifiers routeModifiers_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteModifiers, - com.google.maps.routing.v2.RouteModifiers.Builder, - com.google.maps.routing.v2.RouteModifiersOrBuilder> - routeModifiersBuilder_; + com.google.maps.routing.v2.RouteModifiers, com.google.maps.routing.v2.RouteModifiers.Builder, com.google.maps.routing.v2.RouteModifiersOrBuilder> routeModifiersBuilder_; /** - * - * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the routeModifiers field is set. */ public boolean hasRouteModifiers() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The routeModifiers. */ public com.google.maps.routing.v2.RouteModifiers getRouteModifiers() { if (routeModifiersBuilder_ == null) { - return routeModifiers_ == null - ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() - : routeModifiers_; + return routeModifiers_ == null ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; } else { return routeModifiersBuilder_.getMessage(); } } /** - * - * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRouteModifiers(com.google.maps.routing.v2.RouteModifiers value) { if (routeModifiersBuilder_ == null) { @@ -3722,21 +3628,17 @@ public Builder setRouteModifiers(com.google.maps.routing.v2.RouteModifiers value } else { routeModifiersBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRouteModifiers( com.google.maps.routing.v2.RouteModifiers.Builder builderForValue) { @@ -3745,27 +3647,23 @@ public Builder setRouteModifiers( } else { routeModifiersBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeRouteModifiers(com.google.maps.routing.v2.RouteModifiers value) { if (routeModifiersBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && routeModifiers_ != null - && routeModifiers_ != com.google.maps.routing.v2.RouteModifiers.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) && + routeModifiers_ != null && + routeModifiers_ != com.google.maps.routing.v2.RouteModifiers.getDefaultInstance()) { getRouteModifiersBuilder().mergeFrom(value); } else { routeModifiers_ = value; @@ -3773,24 +3671,20 @@ public Builder mergeRouteModifiers(com.google.maps.routing.v2.RouteModifiers val } else { routeModifiersBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearRouteModifiers() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); routeModifiers_ = null; if (routeModifiersBuilder_ != null) { routeModifiersBuilder_.dispose(); @@ -3800,67 +3694,51 @@ public Builder clearRouteModifiers() { return this; } /** - * - * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.maps.routing.v2.RouteModifiers.Builder getRouteModifiersBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return getRouteModifiersFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBuilder() { if (routeModifiersBuilder_ != null) { return routeModifiersBuilder_.getMessageOrBuilder(); } else { - return routeModifiers_ == null - ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() - : routeModifiers_; + return routeModifiers_ == null ? + com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; } } /** - * - * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteModifiers, - com.google.maps.routing.v2.RouteModifiers.Builder, - com.google.maps.routing.v2.RouteModifiersOrBuilder> + com.google.maps.routing.v2.RouteModifiers, com.google.maps.routing.v2.RouteModifiers.Builder, com.google.maps.routing.v2.RouteModifiersOrBuilder> getRouteModifiersFieldBuilder() { if (routeModifiersBuilder_ == null) { - routeModifiersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteModifiers, - com.google.maps.routing.v2.RouteModifiers.Builder, - com.google.maps.routing.v2.RouteModifiersOrBuilder>( - getRouteModifiers(), getParentForChildren(), isClean()); + routeModifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteModifiers, com.google.maps.routing.v2.RouteModifiers.Builder, com.google.maps.routing.v2.RouteModifiersOrBuilder>( + getRouteModifiers(), + getParentForChildren(), + isClean()); routeModifiers_ = null; } return routeModifiersBuilder_; @@ -3868,8 +3746,6 @@ public com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBui private java.lang.Object languageCode_ = ""; /** - * - * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -3880,13 +3756,13 @@ public com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBui
      * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; 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(); languageCode_ = s; return s; @@ -3895,8 +3771,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -3907,14 +3781,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -3922,8 +3797,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -3934,22 +3807,18 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -3960,18 +3829,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** - * - * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -3982,25 +3848,21 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } private java.lang.Object regionCode_ = ""; /** - * - * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -4008,13 +3870,13 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
      * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The regionCode. */ public java.lang.String getRegionCode() { java.lang.Object ref = regionCode_; 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(); regionCode_ = s; return s; @@ -4023,8 +3885,6 @@ public java.lang.String getRegionCode() { } } /** - * - * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -4032,14 +3892,15 @@ public java.lang.String getRegionCode() {
      * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for regionCode. */ - public com.google.protobuf.ByteString getRegionCodeBytes() { + public com.google.protobuf.ByteString + getRegionCodeBytes() { java.lang.Object ref = regionCode_; 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); regionCode_ = b; return b; } else { @@ -4047,8 +3908,6 @@ public com.google.protobuf.ByteString getRegionCodeBytes() { } } /** - * - * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -4056,22 +3915,18 @@ public com.google.protobuf.ByteString getRegionCodeBytes() {
      * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRegionCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } regionCode_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -4079,18 +3934,15 @@ public Builder setRegionCode(java.lang.String value) {
      * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRegionCode() { regionCode_ = getDefaultInstance().getRegionCode(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** - * - * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -4098,82 +3950,67 @@ public Builder clearRegionCode() {
      * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRegionCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); regionCode_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } private int units_ = 0; /** - * - * *
-     * Optional. Specifies the units of measure for the display fields. This
-     * includes the `instruction` field in
+     * Optional. Specifies the units of measure for the display fields. These
+     * fields include the `instruction` field in
      * [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
      * units of measure used for the route, leg, step distance, and duration are
      * not affected by this value. If you don't provide this value, then the
-     * display units are inferred from the location of the request.
+     * display units are inferred from the location of the first origin.
      * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for units. */ - @java.lang.Override - public int getUnitsValue() { + @java.lang.Override public int getUnitsValue() { return units_; } /** - * - * *
-     * Optional. Specifies the units of measure for the display fields. This
-     * includes the `instruction` field in
+     * Optional. Specifies the units of measure for the display fields. These
+     * fields include the `instruction` field in
      * [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
      * units of measure used for the route, leg, step distance, and duration are
      * not affected by this value. If you don't provide this value, then the
-     * display units are inferred from the location of the request.
+     * display units are inferred from the location of the first origin.
      * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for units to set. * @return This builder for chaining. */ public Builder setUnitsValue(int value) { units_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } /** - * - * *
-     * Optional. Specifies the units of measure for the display fields. This
-     * includes the `instruction` field in
+     * Optional. Specifies the units of measure for the display fields. These
+     * fields include the `instruction` field in
      * [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
      * units of measure used for the route, leg, step distance, and duration are
      * not affected by this value. If you don't provide this value, then the
-     * display units are inferred from the location of the request.
+     * display units are inferred from the location of the first origin.
      * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The units. */ @java.lang.Override @@ -4182,20 +4019,16 @@ public com.google.maps.routing.v2.Units getUnits() { return result == null ? com.google.maps.routing.v2.Units.UNRECOGNIZED : result; } /** - * - * *
-     * Optional. Specifies the units of measure for the display fields. This
-     * includes the `instruction` field in
+     * Optional. Specifies the units of measure for the display fields. These
+     * fields include the `instruction` field in
      * [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
      * units of measure used for the route, leg, step distance, and duration are
      * not affected by this value. If you don't provide this value, then the
-     * display units are inferred from the location of the request.
+     * display units are inferred from the location of the first origin.
      * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; * @param value The units to set. * @return This builder for chaining. */ @@ -4203,48 +4036,111 @@ public Builder setUnits(com.google.maps.routing.v2.Units value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; units_ = value.getNumber(); onChanged(); return this; } /** - * - * *
-     * Optional. Specifies the units of measure for the display fields. This
-     * includes the `instruction` field in
+     * Optional. Specifies the units of measure for the display fields. These
+     * fields include the `instruction` field in
      * [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
      * units of measure used for the route, leg, step distance, and duration are
      * not affected by this value. If you don't provide this value, then the
-     * display units are inferred from the location of the request.
+     * display units are inferred from the location of the first origin.
      * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearUnits() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); units_ = 0; onChanged(); return this; } - private java.util.List requestedReferenceRoutes_ = - java.util.Collections.emptyList(); + private boolean optimizeWaypointOrder_ ; + /** + *
+     * Optional. If set to true, the service attempts to minimize the overall cost
+     * of the route by re-ordering the specified intermediate waypoints. The
+     * request fails if any of the intermediate waypoints is a `via` waypoint. Use
+     * `ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index` to
+     * find the new ordering.
+     * If `ComputeRoutesResponseroutes.optimized_intermediate_waypoint_index` is
+     * not requested in the `X-Goog-FieldMask` header, the request fails.
+     * If `optimize_waypoint_order` is set to false,
+     * `ComputeRoutesResponse.optimized_intermediate_waypoint_index` will be
+     * empty.
+     * 
+ * + * bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return The optimizeWaypointOrder. + */ + @java.lang.Override + public boolean getOptimizeWaypointOrder() { + return optimizeWaypointOrder_; + } + /** + *
+     * Optional. If set to true, the service attempts to minimize the overall cost
+     * of the route by re-ordering the specified intermediate waypoints. The
+     * request fails if any of the intermediate waypoints is a `via` waypoint. Use
+     * `ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index` to
+     * find the new ordering.
+     * If `ComputeRoutesResponseroutes.optimized_intermediate_waypoint_index` is
+     * not requested in the `X-Goog-FieldMask` header, the request fails.
+     * If `optimize_waypoint_order` is set to false,
+     * `ComputeRoutesResponse.optimized_intermediate_waypoint_index` will be
+     * empty.
+     * 
+ * + * bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The optimizeWaypointOrder to set. + * @return This builder for chaining. + */ + public Builder setOptimizeWaypointOrder(boolean value) { + optimizeWaypointOrder_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + *
+     * Optional. If set to true, the service attempts to minimize the overall cost
+     * of the route by re-ordering the specified intermediate waypoints. The
+     * request fails if any of the intermediate waypoints is a `via` waypoint. Use
+     * `ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index` to
+     * find the new ordering.
+     * If `ComputeRoutesResponseroutes.optimized_intermediate_waypoint_index` is
+     * not requested in the `X-Goog-FieldMask` header, the request fails.
+     * If `optimize_waypoint_order` is set to false,
+     * `ComputeRoutesResponse.optimized_intermediate_waypoint_index` will be
+     * empty.
+     * 
+ * + * bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearOptimizeWaypointOrder() { + bitField0_ = (bitField0_ & ~0x00004000); + optimizeWaypointOrder_ = false; + onChanged(); + return this; + } + + private java.util.List requestedReferenceRoutes_ = + java.util.Collections.emptyList(); private void ensureRequestedReferenceRoutesIsMutable() { - if (!((bitField0_ & 0x00002000) != 0)) { - requestedReferenceRoutes_ = - new java.util.ArrayList(requestedReferenceRoutes_); - bitField0_ |= 0x00002000; + if (!((bitField0_ & 0x00008000) != 0)) { + requestedReferenceRoutes_ = new java.util.ArrayList(requestedReferenceRoutes_); + bitField0_ |= 0x00008000; } } /** - * - * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4253,21 +4149,14 @@ private void ensureRequestedReferenceRoutesIsMutable() {
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the requestedReferenceRoutes. */ - public java.util.List - getRequestedReferenceRoutesList() { + public java.util.List getRequestedReferenceRoutesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute>( - requestedReferenceRoutes_, requestedReferenceRoutes_converter_); + java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute>(requestedReferenceRoutes_, requestedReferenceRoutes_converter_); } /** - * - * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4276,18 +4165,13 @@ private void ensureRequestedReferenceRoutesIsMutable() {
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of requestedReferenceRoutes. */ public int getRequestedReferenceRoutesCount() { return requestedReferenceRoutes_.size(); } /** - * - * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4296,20 +4180,14 @@ public int getRequestedReferenceRoutesCount() {
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The requestedReferenceRoutes at the given index. */ - public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute - getRequestedReferenceRoutes(int index) { + public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedReferenceRoutes(int index) { return requestedReferenceRoutes_converter_.convert(requestedReferenceRoutes_.get(index)); } /** - * - * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4318,10 +4196,7 @@ public int getRequestedReferenceRoutesCount() {
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The requestedReferenceRoutes to set. * @return This builder for chaining. @@ -4337,8 +4212,6 @@ public Builder setRequestedReferenceRoutes( return this; } /** - * - * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4347,15 +4220,11 @@ public Builder setRequestedReferenceRoutes(
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param value The requestedReferenceRoutes to add. * @return This builder for chaining. */ - public Builder addRequestedReferenceRoutes( - com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute value) { + public Builder addRequestedReferenceRoutes(com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute value) { if (value == null) { throw new NullPointerException(); } @@ -4365,8 +4234,6 @@ public Builder addRequestedReferenceRoutes( return this; } /** - * - * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4375,16 +4242,12 @@ public Builder addRequestedReferenceRoutes(
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param values The requestedReferenceRoutes to add. * @return This builder for chaining. */ public Builder addAllRequestedReferenceRoutes( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureRequestedReferenceRoutesIsMutable(); for (com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute value : values) { requestedReferenceRoutes_.add(value.getNumber()); @@ -4393,8 +4256,6 @@ public Builder addAllRequestedReferenceRoutes( return this; } /** - * - * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4403,21 +4264,16 @@ public Builder addAllRequestedReferenceRoutes(
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearRequestedReferenceRoutes() { requestedReferenceRoutes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } /** - * - * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4426,18 +4282,14 @@ public Builder clearRequestedReferenceRoutes() {
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for requestedReferenceRoutes. */ - public java.util.List getRequestedReferenceRoutesValueList() { + public java.util.List + getRequestedReferenceRoutesValueList() { return java.util.Collections.unmodifiableList(requestedReferenceRoutes_); } /** - * - * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4446,10 +4298,7 @@ public java.util.List getRequestedReferenceRoutesValueList()
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of requestedReferenceRoutes at the given index. */ @@ -4457,8 +4306,6 @@ public int getRequestedReferenceRoutesValue(int index) { return requestedReferenceRoutes_.get(index); } /** - * - * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4467,23 +4314,19 @@ public int getRequestedReferenceRoutesValue(int index) {
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The enum numeric value on the wire for requestedReferenceRoutes to set. * @return This builder for chaining. */ - public Builder setRequestedReferenceRoutesValue(int index, int value) { + public Builder setRequestedReferenceRoutesValue( + int index, int value) { ensureRequestedReferenceRoutesIsMutable(); requestedReferenceRoutes_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4492,10 +4335,7 @@ public Builder setRequestedReferenceRoutesValue(int index, int value) {
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for requestedReferenceRoutes to add. * @return This builder for chaining. */ @@ -4506,8 +4346,6 @@ public Builder addRequestedReferenceRoutesValue(int value) { return this; } /** - * - * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4516,10 +4354,7 @@ public Builder addRequestedReferenceRoutesValue(int value) {
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param values The enum numeric values on the wire for requestedReferenceRoutes to add. * @return This builder for chaining. */ @@ -4534,17 +4369,14 @@ public Builder addAllRequestedReferenceRoutesValue( } private java.util.List extraComputations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureExtraComputationsIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { + if (!((bitField0_ & 0x00010000) != 0)) { extraComputations_ = new java.util.ArrayList(extraComputations_); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00010000; } } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4552,21 +4384,14 @@ private void ensureExtraComputationsIsMutable() {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the extraComputations. */ - public java.util.List - getExtraComputationsList() { + public java.util.List getExtraComputationsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation>( - extraComputations_, extraComputations_converter_); + java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation>(extraComputations_, extraComputations_converter_); } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4574,18 +4399,13 @@ private void ensureExtraComputationsIsMutable() {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of extraComputations. */ public int getExtraComputationsCount() { return extraComputations_.size(); } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4593,20 +4413,14 @@ public int getExtraComputationsCount() {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The extraComputations at the given index. */ - public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtraComputations( - int index) { + public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtraComputations(int index) { return extraComputations_converter_.convert(extraComputations_.get(index)); } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4614,10 +4428,7 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtra
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The extraComputations to set. * @return This builder for chaining. @@ -4633,8 +4444,6 @@ public Builder setExtraComputations( return this; } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4642,15 +4451,11 @@ public Builder setExtraComputations(
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param value The extraComputations to add. * @return This builder for chaining. */ - public Builder addExtraComputations( - com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation value) { + public Builder addExtraComputations(com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation value) { if (value == null) { throw new NullPointerException(); } @@ -4660,8 +4465,6 @@ public Builder addExtraComputations( return this; } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4669,17 +4472,12 @@ public Builder addExtraComputations(
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param values The extraComputations to add. * @return This builder for chaining. */ public Builder addAllExtraComputations( - java.lang.Iterable< - ? extends com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation> - values) { + java.lang.Iterable values) { ensureExtraComputationsIsMutable(); for (com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation value : values) { extraComputations_.add(value.getNumber()); @@ -4688,8 +4486,6 @@ public Builder addAllExtraComputations( return this; } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4697,21 +4493,16 @@ public Builder addAllExtraComputations(
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearExtraComputations() { extraComputations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4719,18 +4510,14 @@ public Builder clearExtraComputations() {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for extraComputations. */ - public java.util.List getExtraComputationsValueList() { + public java.util.List + getExtraComputationsValueList() { return java.util.Collections.unmodifiableList(extraComputations_); } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4738,10 +4525,7 @@ public java.util.List getExtraComputationsValueList() {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of extraComputations at the given index. */ @@ -4749,8 +4533,6 @@ public int getExtraComputationsValue(int index) { return extraComputations_.get(index); } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4758,23 +4540,19 @@ public int getExtraComputationsValue(int index) {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The enum numeric value on the wire for extraComputations to set. * @return This builder for chaining. */ - public Builder setExtraComputationsValue(int index, int value) { + public Builder setExtraComputationsValue( + int index, int value) { ensureExtraComputationsIsMutable(); extraComputations_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4782,10 +4560,7 @@ public Builder setExtraComputationsValue(int index, int value) {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for extraComputations to add. * @return This builder for chaining. */ @@ -4796,8 +4571,6 @@ public Builder addExtraComputationsValue(int value) { return this; } /** - * - * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4805,14 +4578,12 @@ public Builder addExtraComputationsValue(int value) {
      * returned in the response.
      * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param values The enum numeric values on the wire for extraComputations to add. * @return This builder for chaining. */ - public Builder addAllExtraComputationsValue(java.lang.Iterable values) { + public Builder addAllExtraComputationsValue( + java.lang.Iterable values) { ensureExtraComputationsIsMutable(); for (int value : values) { extraComputations_.add(value); @@ -4821,8 +4592,313 @@ public Builder addAllExtraComputationsValue(java.lang.Iterable + * Optional. Specifies the assumptions to use when calculating time in + * traffic. This setting affects the value returned in the duration field in + * the [Route][google.maps.routing.v2.Route] and + * [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted + * time in traffic based on historical averages. + * `TrafficModel` is only available for requests that have set + * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to + * `TRAFFIC_AWARE_OPTIMAL` and + * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`. + * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not + * specified. + *
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enum numeric value on the wire for trafficModel. + */ + @java.lang.Override public int getTrafficModelValue() { + return trafficModel_; + } + /** + *
+     * Optional. Specifies the assumptions to use when calculating time in
+     * traffic. This setting affects the value returned in the duration field in
+     * the [Route][google.maps.routing.v2.Route] and
+     * [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted
+     * time in traffic based on historical averages.
+     * `TrafficModel` is only available for requests that have set
+     * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+     * `TRAFFIC_AWARE_OPTIMAL` and
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+     * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+     * specified.
+     * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The enum numeric value on the wire for trafficModel to set. + * @return This builder for chaining. + */ + public Builder setTrafficModelValue(int value) { + trafficModel_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * Optional. Specifies the assumptions to use when calculating time in
+     * traffic. This setting affects the value returned in the duration field in
+     * the [Route][google.maps.routing.v2.Route] and
+     * [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted
+     * time in traffic based on historical averages.
+     * `TrafficModel` is only available for requests that have set
+     * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+     * `TRAFFIC_AWARE_OPTIMAL` and
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+     * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+     * specified.
+     * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return The trafficModel. + */ + @java.lang.Override + public com.google.maps.routing.v2.TrafficModel getTrafficModel() { + com.google.maps.routing.v2.TrafficModel result = com.google.maps.routing.v2.TrafficModel.forNumber(trafficModel_); + return result == null ? com.google.maps.routing.v2.TrafficModel.UNRECOGNIZED : result; + } + /** + *
+     * Optional. Specifies the assumptions to use when calculating time in
+     * traffic. This setting affects the value returned in the duration field in
+     * the [Route][google.maps.routing.v2.Route] and
+     * [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted
+     * time in traffic based on historical averages.
+     * `TrafficModel` is only available for requests that have set
+     * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+     * `TRAFFIC_AWARE_OPTIMAL` and
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+     * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+     * specified.
+     * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The trafficModel to set. + * @return This builder for chaining. + */ + public Builder setTrafficModel(com.google.maps.routing.v2.TrafficModel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; + trafficModel_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Optional. Specifies the assumptions to use when calculating time in
+     * traffic. This setting affects the value returned in the duration field in
+     * the [Route][google.maps.routing.v2.Route] and
+     * [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted
+     * time in traffic based on historical averages.
+     * `TrafficModel` is only available for requests that have set
+     * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+     * `TRAFFIC_AWARE_OPTIMAL` and
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+     * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+     * specified.
+     * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearTrafficModel() { + bitField0_ = (bitField0_ & ~0x00020000); + trafficModel_ = 0; + onChanged(); + return this; + } + + private com.google.maps.routing.v2.TransitPreferences transitPreferences_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitPreferences, com.google.maps.routing.v2.TransitPreferences.Builder, com.google.maps.routing.v2.TransitPreferencesOrBuilder> transitPreferencesBuilder_; + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the transitPreferences field is set. + */ + public boolean hasTransitPreferences() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @return The transitPreferences. + */ + public com.google.maps.routing.v2.TransitPreferences getTransitPreferences() { + if (transitPreferencesBuilder_ == null) { + return transitPreferences_ == null ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + } else { + return transitPreferencesBuilder_.getMessage(); + } + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTransitPreferences(com.google.maps.routing.v2.TransitPreferences value) { + if (transitPreferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transitPreferences_ = value; + } else { + transitPreferencesBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTransitPreferences( + com.google.maps.routing.v2.TransitPreferences.Builder builderForValue) { + if (transitPreferencesBuilder_ == null) { + transitPreferences_ = builderForValue.build(); + } else { + transitPreferencesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeTransitPreferences(com.google.maps.routing.v2.TransitPreferences value) { + if (transitPreferencesBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) && + transitPreferences_ != null && + transitPreferences_ != com.google.maps.routing.v2.TransitPreferences.getDefaultInstance()) { + getTransitPreferencesBuilder().mergeFrom(value); + } else { + transitPreferences_ = value; + } + } else { + transitPreferencesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearTransitPreferences() { + bitField0_ = (bitField0_ & ~0x00040000); + transitPreferences_ = null; + if (transitPreferencesBuilder_ != null) { + transitPreferencesBuilder_.dispose(); + transitPreferencesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.maps.routing.v2.TransitPreferences.Builder getTransitPreferencesBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getTransitPreferencesFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.maps.routing.v2.TransitPreferencesOrBuilder getTransitPreferencesOrBuilder() { + if (transitPreferencesBuilder_ != null) { + return transitPreferencesBuilder_.getMessageOrBuilder(); + } else { + return transitPreferences_ == null ? + com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + } + } + /** + *
+     * Optional. Specifies preferences that influence the route returned for
+     * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+     * `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitPreferences, com.google.maps.routing.v2.TransitPreferences.Builder, com.google.maps.routing.v2.TransitPreferencesOrBuilder> + getTransitPreferencesFieldBuilder() { + if (transitPreferencesBuilder_ == null) { + transitPreferencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitPreferences, com.google.maps.routing.v2.TransitPreferences.Builder, com.google.maps.routing.v2.TransitPreferencesOrBuilder>( + getTransitPreferences(), + getParentForChildren(), + isClean()); + transitPreferences_ = null; + } + return transitPreferencesBuilder_; + } @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); } @@ -4832,12 +4908,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.ComputeRoutesRequest) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.ComputeRoutesRequest) private static final com.google.maps.routing.v2.ComputeRoutesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.ComputeRoutesRequest(); } @@ -4846,27 +4922,27 @@ public static com.google.maps.routing.v2.ComputeRoutesRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeRoutesRequest 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 ComputeRoutesRequest 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; @@ -4881,4 +4957,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.ComputeRoutesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java similarity index 57% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java index 8b39296d6d4a..e91e7ecceb11 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java @@ -1,211 +1,140 @@ -/* - * 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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; -public interface ComputeRoutesRequestOrBuilder - extends +public interface ComputeRoutesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.ComputeRoutesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Origin waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the origin field is set. */ boolean hasOrigin(); /** - * - * *
    * Required. Origin waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The origin. */ com.google.maps.routing.v2.Waypoint getOrigin(); /** - * - * *
    * Required. Origin waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.maps.routing.v2.WaypointOrBuilder getOriginOrBuilder(); /** - * - * *
    * Required. Destination waypoint.
    * 
* - * - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the destination field is set. */ boolean hasDestination(); /** - * - * *
    * Required. Destination waypoint.
    * 
* - * - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The destination. */ com.google.maps.routing.v2.Waypoint getDestination(); /** - * - * *
    * Required. Destination waypoint.
    * 
* - * - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.maps.routing.v2.WaypointOrBuilder getDestinationOrBuilder(); /** - * - * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getIntermediatesList(); + java.util.List + getIntermediatesList(); /** - * - * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.maps.routing.v2.Waypoint getIntermediates(int index); /** - * - * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getIntermediatesCount(); /** - * - * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getIntermediatesOrBuilderList(); /** - * - * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(int index); + com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder( + int index); /** - * - * *
    * Optional. Specifies the mode of transportation.
    * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for travelMode. */ int getTravelModeValue(); /** - * - * *
    * Optional. Specifies the mode of transportation.
    * 
* - * - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The travelMode. */ com.google.maps.routing.v2.RouteTravelMode getTravelMode(); /** - * - * *
    * Optional. Specifies how to compute the route. The server
    * attempts to use the selected routing preference to compute the route. If
@@ -214,16 +143,11 @@ public interface ComputeRoutesRequestOrBuilder
    * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for routingPreference. */ int getRoutingPreferenceValue(); /** - * - * *
    * Optional. Specifies how to compute the route. The server
    * attempts to use the selected routing preference to compute the route. If
@@ -232,119 +156,128 @@ public interface ComputeRoutesRequestOrBuilder
    * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The routingPreference. */ com.google.maps.routing.v2.RoutingPreference getRoutingPreference(); /** - * - * *
    * Optional. Specifies your preference for the quality of the polyline.
    * 
* - * - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for polylineQuality. */ int getPolylineQualityValue(); /** - * - * *
    * Optional. Specifies your preference for the quality of the polyline.
    * 
* - * - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The polylineQuality. */ com.google.maps.routing.v2.PolylineQuality getPolylineQuality(); /** - * - * *
    * Optional. Specifies the preferred encoding for the polyline.
    * 
* - * - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for polylineEncoding. */ int getPolylineEncodingValue(); /** - * - * *
    * Optional. Specifies the preferred encoding for the polyline.
    * 
* - * - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The polylineEncoding. */ com.google.maps.routing.v2.PolylineEncoding getPolylineEncoding(); /** - * - * *
    * Optional. The departure time. If you don't set this value, then this value
-   * defaults to the time that you made the request. If you set this value to a
-   * time that has already occurred, then the request fails.
+   * defaults to the time that you made the request.
+   * NOTE: You can only specify a `departure_time` in the past when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the departureTime field is set. */ boolean hasDepartureTime(); /** - * - * *
    * Optional. The departure time. If you don't set this value, then this value
-   * defaults to the time that you made the request. If you set this value to a
-   * time that has already occurred, then the request fails.
+   * defaults to the time that you made the request.
+   * NOTE: You can only specify a `departure_time` in the past when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The departureTime. */ com.google.protobuf.Timestamp getDepartureTime(); /** - * - * *
    * Optional. The departure time. If you don't set this value, then this value
-   * defaults to the time that you made the request. If you set this value to a
-   * time that has already occurred, then the request fails.
+   * defaults to the time that you made the request.
+   * NOTE: You can only specify a `departure_time` in the past when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder(); /** + *
+   * Optional. The arrival time.
+   * NOTE: Can only be set when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+   * both.
+   * 
+ * + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the arrivalTime field is set. + */ + boolean hasArrivalTime(); + /** + *
+   * Optional. The arrival time.
+   * NOTE: Can only be set when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+   * both.
+   * 
* + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return The arrivalTime. + */ + com.google.protobuf.Timestamp getArrivalTime(); + /** + *
+   * Optional. The arrival time.
+   * NOTE: Can only be set when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`. You can specify either departure_time or arrival_time, but not
+   * both.
+   * 
* + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder(); + + /** *
    * Optional. Specifies whether to calculate alternate routes in addition to
    * the route. No alternative routes are returned for requests that have
@@ -352,58 +285,41 @@ public interface ComputeRoutesRequestOrBuilder
    * 
* * bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The computeAlternativeRoutes. */ boolean getComputeAlternativeRoutes(); /** - * - * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated.
    * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.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.
    * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The routeModifiers. */ com.google.maps.routing.v2.RouteModifiers getRouteModifiers(); /** - * - * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated.
    * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBuilder(); /** - * - * *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -414,13 +330,10 @@ public interface ComputeRoutesRequestOrBuilder
    * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -431,14 +344,12 @@ public interface ComputeRoutesRequestOrBuilder
    * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -446,13 +357,10 @@ public interface ComputeRoutesRequestOrBuilder
    * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The regionCode. */ java.lang.String getRegionCode(); /** - * - * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -460,51 +368,60 @@ public interface ComputeRoutesRequestOrBuilder
    * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for regionCode. */ - com.google.protobuf.ByteString getRegionCodeBytes(); + com.google.protobuf.ByteString + getRegionCodeBytes(); /** - * - * *
-   * Optional. Specifies the units of measure for the display fields. This
-   * includes the `instruction` field in
+   * Optional. Specifies the units of measure for the display fields. These
+   * fields include the `instruction` field in
    * [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
    * units of measure used for the route, leg, step distance, and duration are
    * not affected by this value. If you don't provide this value, then the
-   * display units are inferred from the location of the request.
+   * display units are inferred from the location of the first origin.
    * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for units. */ int getUnitsValue(); /** - * - * *
-   * Optional. Specifies the units of measure for the display fields. This
-   * includes the `instruction` field in
+   * Optional. Specifies the units of measure for the display fields. These
+   * fields include the `instruction` field in
    * [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
    * units of measure used for the route, leg, step distance, and duration are
    * not affected by this value. If you don't provide this value, then the
-   * display units are inferred from the location of the request.
+   * display units are inferred from the location of the first origin.
    * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The units. */ com.google.maps.routing.v2.Units getUnits(); /** + *
+   * Optional. If set to true, the service attempts to minimize the overall cost
+   * of the route by re-ordering the specified intermediate waypoints. The
+   * request fails if any of the intermediate waypoints is a `via` waypoint. Use
+   * `ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index` to
+   * find the new ordering.
+   * If `ComputeRoutesResponseroutes.optimized_intermediate_waypoint_index` is
+   * not requested in the `X-Goog-FieldMask` header, the request fails.
+   * If `optimize_waypoint_order` is set to false,
+   * `ComputeRoutesResponse.optimized_intermediate_waypoint_index` will be
+   * empty.
+   * 
* - * + * bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return The optimizeWaypointOrder. + */ + boolean getOptimizeWaypointOrder(); + + /** *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -513,17 +430,11 @@ public interface ComputeRoutesRequestOrBuilder
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the requestedReferenceRoutes. */ - java.util.List - getRequestedReferenceRoutesList(); + java.util.List getRequestedReferenceRoutesList(); /** - * - * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -532,16 +443,11 @@ public interface ComputeRoutesRequestOrBuilder
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of requestedReferenceRoutes. */ int getRequestedReferenceRoutesCount(); /** - * - * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -550,18 +456,12 @@ public interface ComputeRoutesRequestOrBuilder
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The requestedReferenceRoutes at the given index. */ - com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedReferenceRoutes( - int index); + com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedReferenceRoutes(int index); /** - * - * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -570,16 +470,12 @@ com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedRefer
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for requestedReferenceRoutes. */ - java.util.List getRequestedReferenceRoutesValueList(); + java.util.List + getRequestedReferenceRoutesValueList(); /** - * - * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -588,18 +484,13 @@ com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedRefer
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of requestedReferenceRoutes at the given index. */ int getRequestedReferenceRoutesValue(int index); /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -607,17 +498,11 @@ com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedRefer
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the extraComputations. */ - java.util.List - getExtraComputationsList(); + java.util.List getExtraComputationsList(); /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -625,16 +510,11 @@ com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedRefer
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of extraComputations. */ int getExtraComputationsCount(); /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -642,17 +522,12 @@ com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedRefer
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The extraComputations at the given index. */ com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtraComputations(int index); /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -660,16 +535,12 @@ com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedRefer
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the enum numeric values on the wire for extraComputations. */ - java.util.List getExtraComputationsValueList(); + java.util.List + getExtraComputationsValueList(); /** - * - * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -677,12 +548,84 @@ com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedRefer
    * returned in the response.
    * 
* - * - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The enum numeric value on the wire of extraComputations at the given index. */ int getExtraComputationsValue(int index); + + /** + *
+   * Optional. Specifies the assumptions to use when calculating time in
+   * traffic. This setting affects the value returned in the duration field in
+   * the [Route][google.maps.routing.v2.Route] and
+   * [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted
+   * time in traffic based on historical averages.
+   * `TrafficModel` is only available for requests that have set
+   * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+   * `TRAFFIC_AWARE_OPTIMAL` and
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+   * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+   * specified.
+   * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return The enum numeric value on the wire for trafficModel. + */ + int getTrafficModelValue(); + /** + *
+   * Optional. Specifies the assumptions to use when calculating time in
+   * traffic. This setting affects the value returned in the duration field in
+   * the [Route][google.maps.routing.v2.Route] and
+   * [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted
+   * time in traffic based on historical averages.
+   * `TrafficModel` is only available for requests that have set
+   * [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
+   * `TRAFFIC_AWARE_OPTIMAL` and
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
+   * Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
+   * specified.
+   * 
+ * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return The trafficModel. + */ + com.google.maps.routing.v2.TrafficModel getTrafficModel(); + + /** + *
+   * Optional. Specifies preferences that influence the route returned for
+   * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the transitPreferences field is set. + */ + boolean hasTransitPreferences(); + /** + *
+   * Optional. Specifies preferences that influence the route returned for
+   * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @return The transitPreferences. + */ + com.google.maps.routing.v2.TransitPreferences getTransitPreferences(); + /** + *
+   * Optional. Specifies preferences that influence the route returned for
+   * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
+   * `TRANSIT`.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.maps.routing.v2.TransitPreferencesOrBuilder getTransitPreferencesOrBuilder(); } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponse.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponse.java similarity index 76% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponse.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponse.java index 6105522fdc97..872abe5a12c4 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponse.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponse.java @@ -1,74 +1,52 @@ -/* - * 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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; /** - * - * *
  * ComputeRoutes the response message.
  * 
* * Protobuf type {@code google.maps.routing.v2.ComputeRoutesResponse} */ -public final class ComputeRoutesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ComputeRoutesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.ComputeRoutesResponse) ComputeRoutesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ComputeRoutesResponse.newBuilder() to construct. private ComputeRoutesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ComputeRoutesResponse() { routes_ = 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 ComputeRoutesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.ComputeRoutesResponse.class, - com.google.maps.routing.v2.ComputeRoutesResponse.Builder.class); + com.google.maps.routing.v2.ComputeRoutesResponse.class, com.google.maps.routing.v2.ComputeRoutesResponse.Builder.class); } public static final int ROUTES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List routes_; /** - * - * *
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -84,8 +62,6 @@ public java.util.List getRoutesList() {
     return routes_;
   }
   /**
-   *
-   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -97,13 +73,11 @@ public java.util.List getRoutesList() {
    * repeated .google.maps.routing.v2.Route routes = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getRoutesOrBuilderList() {
     return routes_;
   }
   /**
-   *
-   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -119,8 +93,6 @@ public int getRoutesCount() {
     return routes_.size();
   }
   /**
-   *
-   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -136,8 +108,6 @@ public com.google.maps.routing.v2.Route getRoutes(int index) {
     return routes_.get(index);
   }
   /**
-   *
-   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -149,15 +119,14 @@ public com.google.maps.routing.v2.Route getRoutes(int index) {
    * repeated .google.maps.routing.v2.Route routes = 1;
    */
   @java.lang.Override
-  public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(int index) {
+  public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(
+      int index) {
     return routes_.get(index);
   }
 
   public static final int FALLBACK_INFO_FIELD_NUMBER = 2;
   private com.google.maps.routing.v2.FallbackInfo fallbackInfo_;
   /**
-   *
-   *
    * 
    * In some cases when the server is not able to compute the route results with
    * all of the input preferences, it may fallback to using a different way of
@@ -166,7 +135,6 @@ public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(int index) {
    * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 2; - * * @return Whether the fallbackInfo field is set. */ @java.lang.Override @@ -174,8 +142,6 @@ public boolean hasFallbackInfo() { return fallbackInfo_ != null; } /** - * - * *
    * In some cases when the server is not able to compute the route results with
    * all of the input preferences, it may fallback to using a different way of
@@ -184,18 +150,13 @@ public boolean hasFallbackInfo() {
    * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 2; - * * @return The fallbackInfo. */ @java.lang.Override public com.google.maps.routing.v2.FallbackInfo getFallbackInfo() { - return fallbackInfo_ == null - ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() - : fallbackInfo_; + return fallbackInfo_ == null ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_; } /** - * - * *
    * In some cases when the server is not able to compute the route results with
    * all of the input preferences, it may fallback to using a different way of
@@ -207,22 +168,17 @@ public com.google.maps.routing.v2.FallbackInfo getFallbackInfo() {
    */
   @java.lang.Override
   public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder() {
-    return fallbackInfo_ == null
-        ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance()
-        : fallbackInfo_;
+    return fallbackInfo_ == null ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_;
   }
 
   public static final int GEOCODING_RESULTS_FIELD_NUMBER = 3;
   private com.google.maps.routing.v2.GeocodingResults geocodingResults_;
   /**
-   *
-   *
    * 
    * Contains geocoding response info for waypoints specified as addresses.
    * 
* * .google.maps.routing.v2.GeocodingResults geocoding_results = 3; - * * @return Whether the geocodingResults field is set. */ @java.lang.Override @@ -230,25 +186,18 @@ public boolean hasGeocodingResults() { return geocodingResults_ != null; } /** - * - * *
    * Contains geocoding response info for waypoints specified as addresses.
    * 
* * .google.maps.routing.v2.GeocodingResults geocoding_results = 3; - * * @return The geocodingResults. */ @java.lang.Override public com.google.maps.routing.v2.GeocodingResults getGeocodingResults() { - return geocodingResults_ == null - ? com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() - : geocodingResults_; + return geocodingResults_ == null ? com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() : geocodingResults_; } /** - * - * *
    * Contains geocoding response info for waypoints specified as addresses.
    * 
@@ -257,13 +206,10 @@ public com.google.maps.routing.v2.GeocodingResults getGeocodingResults() { */ @java.lang.Override public com.google.maps.routing.v2.GeocodingResultsOrBuilder getGeocodingResultsOrBuilder() { - return geocodingResults_ == null - ? com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() - : geocodingResults_; + return geocodingResults_ == null ? com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() : geocodingResults_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,7 +221,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)); } @@ -295,13 +242,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)); } if (fallbackInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFallbackInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFallbackInfo()); } if (geocodingResults_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGeocodingResults()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getGeocodingResults()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -311,22 +261,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.maps.routing.v2.ComputeRoutesResponse)) { return super.equals(obj); } - com.google.maps.routing.v2.ComputeRoutesResponse other = - (com.google.maps.routing.v2.ComputeRoutesResponse) obj; + com.google.maps.routing.v2.ComputeRoutesResponse other = (com.google.maps.routing.v2.ComputeRoutesResponse) obj; - if (!getRoutesList().equals(other.getRoutesList())) return false; + if (!getRoutesList() + .equals(other.getRoutesList())) return false; if (hasFallbackInfo() != other.hasFallbackInfo()) return false; if (hasFallbackInfo()) { - if (!getFallbackInfo().equals(other.getFallbackInfo())) return false; + if (!getFallbackInfo() + .equals(other.getFallbackInfo())) return false; } if (hasGeocodingResults() != other.hasGeocodingResults()) return false; if (hasGeocodingResults()) { - if (!getGeocodingResults().equals(other.getGeocodingResults())) return false; + if (!getGeocodingResults() + .equals(other.getGeocodingResults())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -356,136 +308,132 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.ComputeRoutesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.ComputeRoutesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.maps.routing.v2.ComputeRoutesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.ComputeRoutesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse 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; } /** - * - * *
    * ComputeRoutes the response message.
    * 
* * Protobuf type {@code google.maps.routing.v2.ComputeRoutesResponse} */ - 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.maps.routing.v2.ComputeRoutesResponse) com.google.maps.routing.v2.ComputeRoutesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.ComputeRoutesResponse.class, - com.google.maps.routing.v2.ComputeRoutesResponse.Builder.class); + com.google.maps.routing.v2.ComputeRoutesResponse.class, com.google.maps.routing.v2.ComputeRoutesResponse.Builder.class); } // Construct using com.google.maps.routing.v2.ComputeRoutesResponse.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(); @@ -511,9 +459,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; } @java.lang.Override @@ -532,18 +480,14 @@ public com.google.maps.routing.v2.ComputeRoutesResponse build() { @java.lang.Override public com.google.maps.routing.v2.ComputeRoutesResponse buildPartial() { - com.google.maps.routing.v2.ComputeRoutesResponse result = - new com.google.maps.routing.v2.ComputeRoutesResponse(this); + com.google.maps.routing.v2.ComputeRoutesResponse result = new com.google.maps.routing.v2.ComputeRoutesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.maps.routing.v2.ComputeRoutesResponse result) { + private void buildPartialRepeatedFields(com.google.maps.routing.v2.ComputeRoutesResponse result) { if (routesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { routes_ = java.util.Collections.unmodifiableList(routes_); @@ -558,12 +502,14 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.maps.routing.v2.ComputeRoutesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { - result.fallbackInfo_ = - fallbackInfoBuilder_ == null ? fallbackInfo_ : fallbackInfoBuilder_.build(); + result.fallbackInfo_ = fallbackInfoBuilder_ == null + ? fallbackInfo_ + : fallbackInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.geocodingResults_ = - geocodingResultsBuilder_ == null ? geocodingResults_ : geocodingResultsBuilder_.build(); + result.geocodingResults_ = geocodingResultsBuilder_ == null + ? geocodingResults_ + : geocodingResultsBuilder_.build(); } } @@ -571,39 +517,38 @@ private void buildPartial0(com.google.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse) { - return mergeFrom((com.google.maps.routing.v2.ComputeRoutesResponse) other); + return mergeFrom((com.google.maps.routing.v2.ComputeRoutesResponse)other); } else { super.mergeFrom(other); return this; @@ -611,8 +556,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.maps.routing.v2.ComputeRoutesResponse other) { - if (other == com.google.maps.routing.v2.ComputeRoutesResponse.getDefaultInstance()) - return this; + if (other == com.google.maps.routing.v2.ComputeRoutesResponse.getDefaultInstance()) return this; if (routesBuilder_ == null) { if (!other.routes_.isEmpty()) { if (routes_.isEmpty()) { @@ -631,10 +575,9 @@ public Builder mergeFrom(com.google.maps.routing.v2.ComputeRoutesResponse other) 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_); } @@ -672,38 +615,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.maps.routing.v2.Route m = - input.readMessage(com.google.maps.routing.v2.Route.parser(), extensionRegistry); - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.add(m); - } else { - routesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - input.readMessage(getFallbackInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getGeocodingResultsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.maps.routing.v2.Route m = + input.readMessage( + com.google.maps.routing.v2.Route.parser(), + extensionRegistry); + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(m); + } else { + routesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + input.readMessage( + getFallbackInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getGeocodingResultsFieldBuilder().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) { @@ -713,28 +657,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.maps.routing.v2.Route, - com.google.maps.routing.v2.Route.Builder, - com.google.maps.routing.v2.RouteOrBuilder> - routesBuilder_; + com.google.maps.routing.v2.Route, com.google.maps.routing.v2.Route.Builder, com.google.maps.routing.v2.RouteOrBuilder> routesBuilder_; /** - * - * *
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -753,8 +690,6 @@ public java.util.List getRoutesList() {
       }
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -773,8 +708,6 @@ public int getRoutesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -793,8 +726,6 @@ public com.google.maps.routing.v2.Route getRoutes(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -805,7 +736,8 @@ public com.google.maps.routing.v2.Route getRoutes(int index) {
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public Builder setRoutes(int index, com.google.maps.routing.v2.Route value) {
+    public Builder setRoutes(
+        int index, com.google.maps.routing.v2.Route value) {
       if (routesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -819,8 +751,6 @@ public Builder setRoutes(int index, com.google.maps.routing.v2.Route value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -831,7 +761,8 @@ public Builder setRoutes(int index, com.google.maps.routing.v2.Route value) {
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public Builder setRoutes(int index, com.google.maps.routing.v2.Route.Builder builderForValue) {
+    public Builder setRoutes(
+        int index, com.google.maps.routing.v2.Route.Builder builderForValue) {
       if (routesBuilder_ == null) {
         ensureRoutesIsMutable();
         routes_.set(index, builderForValue.build());
@@ -842,8 +773,6 @@ public Builder setRoutes(int index, com.google.maps.routing.v2.Route.Builder bui
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -868,8 +797,6 @@ public Builder addRoutes(com.google.maps.routing.v2.Route value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -880,7 +807,8 @@ public Builder addRoutes(com.google.maps.routing.v2.Route value) {
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public Builder addRoutes(int index, com.google.maps.routing.v2.Route value) {
+    public Builder addRoutes(
+        int index, com.google.maps.routing.v2.Route value) {
       if (routesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -894,8 +822,6 @@ public Builder addRoutes(int index, com.google.maps.routing.v2.Route value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -906,7 +832,8 @@ public Builder addRoutes(int index, com.google.maps.routing.v2.Route value) {
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public Builder addRoutes(com.google.maps.routing.v2.Route.Builder builderForValue) {
+    public Builder addRoutes(
+        com.google.maps.routing.v2.Route.Builder builderForValue) {
       if (routesBuilder_ == null) {
         ensureRoutesIsMutable();
         routes_.add(builderForValue.build());
@@ -917,8 +844,6 @@ public Builder addRoutes(com.google.maps.routing.v2.Route.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -929,7 +854,8 @@ public Builder addRoutes(com.google.maps.routing.v2.Route.Builder builderForValu
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public Builder addRoutes(int index, com.google.maps.routing.v2.Route.Builder builderForValue) {
+    public Builder addRoutes(
+        int index, com.google.maps.routing.v2.Route.Builder builderForValue) {
       if (routesBuilder_ == null) {
         ensureRoutesIsMutable();
         routes_.add(index, builderForValue.build());
@@ -940,8 +866,6 @@ public Builder addRoutes(int index, com.google.maps.routing.v2.Route.Builder bui
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -956,7 +880,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);
@@ -964,8 +889,6 @@ public Builder addAllRoutes(
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -987,8 +910,6 @@ public Builder clearRoutes() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -1010,8 +931,6 @@ public Builder removeRoutes(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -1022,12 +941,11 @@ public Builder removeRoutes(int index) {
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public com.google.maps.routing.v2.Route.Builder getRoutesBuilder(int index) {
+    public com.google.maps.routing.v2.Route.Builder getRoutesBuilder(
+        int index) {
       return getRoutesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -1038,16 +956,14 @@ public com.google.maps.routing.v2.Route.Builder getRoutesBuilder(int index) {
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(int index) {
+    public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(
+        int index) {
       if (routesBuilder_ == null) {
-        return routes_.get(index);
-      } else {
+        return routes_.get(index);  } else {
         return routesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -1058,8 +974,8 @@ public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(int index) {
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public java.util.List
-        getRoutesOrBuilderList() {
+    public java.util.List 
+         getRoutesOrBuilderList() {
       if (routesBuilder_ != null) {
         return routesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1067,8 +983,6 @@ public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -1080,12 +994,10 @@ public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(int index) {
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
     public com.google.maps.routing.v2.Route.Builder addRoutesBuilder() {
-      return getRoutesFieldBuilder()
-          .addBuilder(com.google.maps.routing.v2.Route.getDefaultInstance());
+      return getRoutesFieldBuilder().addBuilder(
+          com.google.maps.routing.v2.Route.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -1096,13 +1008,12 @@ public com.google.maps.routing.v2.Route.Builder addRoutesBuilder() {
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public com.google.maps.routing.v2.Route.Builder addRoutesBuilder(int index) {
-      return getRoutesFieldBuilder()
-          .addBuilder(index, com.google.maps.routing.v2.Route.getDefaultInstance());
+    public com.google.maps.routing.v2.Route.Builder addRoutesBuilder(
+        int index) {
+      return getRoutesFieldBuilder().addBuilder(
+          index, com.google.maps.routing.v2.Route.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -1113,22 +1024,20 @@ public com.google.maps.routing.v2.Route.Builder addRoutesBuilder(int index) {
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public java.util.List getRoutesBuilderList() {
+    public java.util.List 
+         getRoutesBuilderList() {
       return getRoutesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.maps.routing.v2.Route,
-            com.google.maps.routing.v2.Route.Builder,
-            com.google.maps.routing.v2.RouteOrBuilder>
+        com.google.maps.routing.v2.Route, com.google.maps.routing.v2.Route.Builder, com.google.maps.routing.v2.RouteOrBuilder> 
         getRoutesFieldBuilder() {
       if (routesBuilder_ == null) {
-        routesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.maps.routing.v2.Route,
-                com.google.maps.routing.v2.Route.Builder,
-                com.google.maps.routing.v2.RouteOrBuilder>(
-                routes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.maps.routing.v2.Route, com.google.maps.routing.v2.Route.Builder, com.google.maps.routing.v2.RouteOrBuilder>(
+                routes_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         routes_ = null;
       }
       return routesBuilder_;
@@ -1136,13 +1045,8 @@ public java.util.List getRoutesBuilder
 
     private com.google.maps.routing.v2.FallbackInfo fallbackInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.FallbackInfo,
-            com.google.maps.routing.v2.FallbackInfo.Builder,
-            com.google.maps.routing.v2.FallbackInfoOrBuilder>
-        fallbackInfoBuilder_;
+        com.google.maps.routing.v2.FallbackInfo, com.google.maps.routing.v2.FallbackInfo.Builder, com.google.maps.routing.v2.FallbackInfoOrBuilder> fallbackInfoBuilder_;
     /**
-     *
-     *
      * 
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1151,15 +1055,12 @@ public java.util.List getRoutesBuilder
      * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 2; - * * @return Whether the fallbackInfo field is set. */ public boolean hasFallbackInfo() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1168,21 +1069,16 @@ public boolean hasFallbackInfo() {
      * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 2; - * * @return The fallbackInfo. */ public com.google.maps.routing.v2.FallbackInfo getFallbackInfo() { if (fallbackInfoBuilder_ == null) { - return fallbackInfo_ == null - ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() - : fallbackInfo_; + return fallbackInfo_ == null ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_; } else { return fallbackInfoBuilder_.getMessage(); } } /** - * - * *
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1206,8 +1102,6 @@ public Builder setFallbackInfo(com.google.maps.routing.v2.FallbackInfo value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1229,8 +1123,6 @@ public Builder setFallbackInfo(
       return this;
     }
     /**
-     *
-     *
      * 
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1242,9 +1134,9 @@ public Builder setFallbackInfo(
      */
     public Builder mergeFallbackInfo(com.google.maps.routing.v2.FallbackInfo value) {
       if (fallbackInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && fallbackInfo_ != null
-            && fallbackInfo_ != com.google.maps.routing.v2.FallbackInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          fallbackInfo_ != null &&
+          fallbackInfo_ != com.google.maps.routing.v2.FallbackInfo.getDefaultInstance()) {
           getFallbackInfoBuilder().mergeFrom(value);
         } else {
           fallbackInfo_ = value;
@@ -1257,8 +1149,6 @@ public Builder mergeFallbackInfo(com.google.maps.routing.v2.FallbackInfo value)
       return this;
     }
     /**
-     *
-     *
      * 
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1279,8 +1169,6 @@ public Builder clearFallbackInfo() {
       return this;
     }
     /**
-     *
-     *
      * 
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1296,8 +1184,6 @@ public com.google.maps.routing.v2.FallbackInfo.Builder getFallbackInfoBuilder()
       return getFallbackInfoFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1311,14 +1197,11 @@ public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder
       if (fallbackInfoBuilder_ != null) {
         return fallbackInfoBuilder_.getMessageOrBuilder();
       } else {
-        return fallbackInfo_ == null
-            ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance()
-            : fallbackInfo_;
+        return fallbackInfo_ == null ?
+            com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_;
       }
     }
     /**
-     *
-     *
      * 
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1329,17 +1212,14 @@ public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder
      * .google.maps.routing.v2.FallbackInfo fallback_info = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.FallbackInfo,
-            com.google.maps.routing.v2.FallbackInfo.Builder,
-            com.google.maps.routing.v2.FallbackInfoOrBuilder>
+        com.google.maps.routing.v2.FallbackInfo, com.google.maps.routing.v2.FallbackInfo.Builder, com.google.maps.routing.v2.FallbackInfoOrBuilder> 
         getFallbackInfoFieldBuilder() {
       if (fallbackInfoBuilder_ == null) {
-        fallbackInfoBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.maps.routing.v2.FallbackInfo,
-                com.google.maps.routing.v2.FallbackInfo.Builder,
-                com.google.maps.routing.v2.FallbackInfoOrBuilder>(
-                getFallbackInfo(), getParentForChildren(), isClean());
+        fallbackInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.maps.routing.v2.FallbackInfo, com.google.maps.routing.v2.FallbackInfo.Builder, com.google.maps.routing.v2.FallbackInfoOrBuilder>(
+                getFallbackInfo(),
+                getParentForChildren(),
+                isClean());
         fallbackInfo_ = null;
       }
       return fallbackInfoBuilder_;
@@ -1347,47 +1227,34 @@ public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder
 
     private com.google.maps.routing.v2.GeocodingResults geocodingResults_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.GeocodingResults,
-            com.google.maps.routing.v2.GeocodingResults.Builder,
-            com.google.maps.routing.v2.GeocodingResultsOrBuilder>
-        geocodingResultsBuilder_;
+        com.google.maps.routing.v2.GeocodingResults, com.google.maps.routing.v2.GeocodingResults.Builder, com.google.maps.routing.v2.GeocodingResultsOrBuilder> geocodingResultsBuilder_;
     /**
-     *
-     *
      * 
      * Contains geocoding response info for waypoints specified as addresses.
      * 
* * .google.maps.routing.v2.GeocodingResults geocoding_results = 3; - * * @return Whether the geocodingResults field is set. */ public boolean hasGeocodingResults() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
* * .google.maps.routing.v2.GeocodingResults geocoding_results = 3; - * * @return The geocodingResults. */ public com.google.maps.routing.v2.GeocodingResults getGeocodingResults() { if (geocodingResultsBuilder_ == null) { - return geocodingResults_ == null - ? com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() - : geocodingResults_; + return geocodingResults_ == null ? com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() : geocodingResults_; } else { return geocodingResultsBuilder_.getMessage(); } } /** - * - * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
@@ -1408,8 +1275,6 @@ public Builder setGeocodingResults(com.google.maps.routing.v2.GeocodingResults v return this; } /** - * - * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
@@ -1428,8 +1293,6 @@ public Builder setGeocodingResults( return this; } /** - * - * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
@@ -1438,10 +1301,9 @@ public Builder setGeocodingResults( */ public Builder mergeGeocodingResults(com.google.maps.routing.v2.GeocodingResults value) { if (geocodingResultsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && geocodingResults_ != null - && geocodingResults_ - != com.google.maps.routing.v2.GeocodingResults.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + geocodingResults_ != null && + geocodingResults_ != com.google.maps.routing.v2.GeocodingResults.getDefaultInstance()) { getGeocodingResultsBuilder().mergeFrom(value); } else { geocodingResults_ = value; @@ -1454,8 +1316,6 @@ public Builder mergeGeocodingResults(com.google.maps.routing.v2.GeocodingResults return this; } /** - * - * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
@@ -1473,8 +1333,6 @@ public Builder clearGeocodingResults() { return this; } /** - * - * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
@@ -1487,8 +1345,6 @@ public com.google.maps.routing.v2.GeocodingResults.Builder getGeocodingResultsBu return getGeocodingResultsFieldBuilder().getBuilder(); } /** - * - * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
@@ -1499,14 +1355,11 @@ public com.google.maps.routing.v2.GeocodingResultsOrBuilder getGeocodingResultsO if (geocodingResultsBuilder_ != null) { return geocodingResultsBuilder_.getMessageOrBuilder(); } else { - return geocodingResults_ == null - ? com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() - : geocodingResults_; + return geocodingResults_ == null ? + com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() : geocodingResults_; } } /** - * - * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
@@ -1514,24 +1367,21 @@ public com.google.maps.routing.v2.GeocodingResultsOrBuilder getGeocodingResultsO * .google.maps.routing.v2.GeocodingResults geocoding_results = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.GeocodingResults, - com.google.maps.routing.v2.GeocodingResults.Builder, - com.google.maps.routing.v2.GeocodingResultsOrBuilder> + com.google.maps.routing.v2.GeocodingResults, com.google.maps.routing.v2.GeocodingResults.Builder, com.google.maps.routing.v2.GeocodingResultsOrBuilder> getGeocodingResultsFieldBuilder() { if (geocodingResultsBuilder_ == null) { - geocodingResultsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.GeocodingResults, - com.google.maps.routing.v2.GeocodingResults.Builder, - com.google.maps.routing.v2.GeocodingResultsOrBuilder>( - getGeocodingResults(), getParentForChildren(), isClean()); + geocodingResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.GeocodingResults, com.google.maps.routing.v2.GeocodingResults.Builder, com.google.maps.routing.v2.GeocodingResultsOrBuilder>( + getGeocodingResults(), + getParentForChildren(), + isClean()); geocodingResults_ = null; } return geocodingResultsBuilder_; } - @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); } @@ -1541,12 +1391,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.ComputeRoutesResponse) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.ComputeRoutesResponse) private static final com.google.maps.routing.v2.ComputeRoutesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.ComputeRoutesResponse(); } @@ -1555,27 +1405,27 @@ public static com.google.maps.routing.v2.ComputeRoutesResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeRoutesResponse 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 ComputeRoutesResponse 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; @@ -1590,4 +1440,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.ComputeRoutesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponseOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponseOrBuilder.java similarity index 83% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponseOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponseOrBuilder.java index 45fd3b29fbb5..46961af3cb76 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponseOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponseOrBuilder.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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; -public interface ComputeRoutesResponseOrBuilder - extends +public interface ComputeRoutesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.ComputeRoutesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -36,10 +18,9 @@ public interface ComputeRoutesResponseOrBuilder
    *
    * repeated .google.maps.routing.v2.Route routes = 1;
    */
-  java.util.List getRoutesList();
+  java.util.List 
+      getRoutesList();
   /**
-   *
-   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -52,8 +33,6 @@ public interface ComputeRoutesResponseOrBuilder
    */
   com.google.maps.routing.v2.Route getRoutes(int index);
   /**
-   *
-   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -66,8 +45,6 @@ public interface ComputeRoutesResponseOrBuilder
    */
   int getRoutesCount();
   /**
-   *
-   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -78,10 +55,9 @@ public interface ComputeRoutesResponseOrBuilder
    *
    * repeated .google.maps.routing.v2.Route routes = 1;
    */
-  java.util.List getRoutesOrBuilderList();
+  java.util.List 
+      getRoutesOrBuilderList();
   /**
-   *
-   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -92,11 +68,10 @@ public interface ComputeRoutesResponseOrBuilder
    *
    * repeated .google.maps.routing.v2.Route routes = 1;
    */
-  com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(int index);
+  com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * In some cases when the server is not able to compute the route results with
    * all of the input preferences, it may fallback to using a different way of
@@ -105,13 +80,10 @@ public interface ComputeRoutesResponseOrBuilder
    * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 2; - * * @return Whether the fallbackInfo field is set. */ boolean hasFallbackInfo(); /** - * - * *
    * In some cases when the server is not able to compute the route results with
    * all of the input preferences, it may fallback to using a different way of
@@ -120,13 +92,10 @@ public interface ComputeRoutesResponseOrBuilder
    * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 2; - * * @return The fallbackInfo. */ com.google.maps.routing.v2.FallbackInfo getFallbackInfo(); /** - * - * *
    * In some cases when the server is not able to compute the route results with
    * all of the input preferences, it may fallback to using a different way of
@@ -139,32 +108,24 @@ public interface ComputeRoutesResponseOrBuilder
   com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder();
 
   /**
-   *
-   *
    * 
    * Contains geocoding response info for waypoints specified as addresses.
    * 
* * .google.maps.routing.v2.GeocodingResults geocoding_results = 3; - * * @return Whether the geocodingResults field is set. */ boolean hasGeocodingResults(); /** - * - * *
    * Contains geocoding response info for waypoints specified as addresses.
    * 
* * .google.maps.routing.v2.GeocodingResults geocoding_results = 3; - * * @return The geocodingResults. */ com.google.maps.routing.v2.GeocodingResults getGeocodingResults(); /** - * - * *
    * Contains geocoding response info for waypoints specified as addresses.
    * 
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfo.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfo.java similarity index 69% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfo.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfo.java index a0529eef7729..d9785ef4086b 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfo.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfo.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/maps/routing/v2/fallback_info.proto package com.google.maps.routing.v2; /** - * - * *
  * Information related to how and why a fallback result was used. If this field
  * is set, then it means the server used a different routing mode from your
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.maps.routing.v2.FallbackInfo}
  */
-public final class FallbackInfo extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FallbackInfo extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.FallbackInfo)
     FallbackInfoOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FallbackInfo.newBuilder() to construct.
   private FallbackInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FallbackInfo() {
     routingMode_ = 0;
     reason_ = 0;
@@ -46,30 +28,27 @@ private FallbackInfo() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FallbackInfo();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.maps.routing.v2.FallbackInfoProto
-        .internal_static_google_maps_routing_v2_FallbackInfo_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.maps.routing.v2.FallbackInfoProto.internal_static_google_maps_routing_v2_FallbackInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.FallbackInfoProto
-        .internal_static_google_maps_routing_v2_FallbackInfo_fieldAccessorTable
+    return com.google.maps.routing.v2.FallbackInfoProto.internal_static_google_maps_routing_v2_FallbackInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.FallbackInfo.class,
-            com.google.maps.routing.v2.FallbackInfo.Builder.class);
+            com.google.maps.routing.v2.FallbackInfo.class, com.google.maps.routing.v2.FallbackInfo.Builder.class);
   }
 
   public static final int ROUTING_MODE_FIELD_NUMBER = 1;
   private int routingMode_ = 0;
   /**
-   *
-   *
    * 
    * Routing mode used for the response. If fallback was triggered, the mode
    * may be different from routing preference set in the original client
@@ -77,16 +56,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; - * * @return The enum numeric value on the wire for routingMode. */ - @java.lang.Override - public int getRoutingModeValue() { + @java.lang.Override public int getRoutingModeValue() { return routingMode_; } /** - * - * *
    * Routing mode used for the response. If fallback was triggered, the mode
    * may be different from routing preference set in the original client
@@ -94,21 +69,16 @@ public int getRoutingModeValue() {
    * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; - * * @return The routingMode. */ - @java.lang.Override - public com.google.maps.routing.v2.FallbackRoutingMode getRoutingMode() { - com.google.maps.routing.v2.FallbackRoutingMode result = - com.google.maps.routing.v2.FallbackRoutingMode.forNumber(routingMode_); + @java.lang.Override public com.google.maps.routing.v2.FallbackRoutingMode getRoutingMode() { + com.google.maps.routing.v2.FallbackRoutingMode result = com.google.maps.routing.v2.FallbackRoutingMode.forNumber(routingMode_); return result == null ? com.google.maps.routing.v2.FallbackRoutingMode.UNRECOGNIZED : result; } public static final int REASON_FIELD_NUMBER = 2; private int reason_ = 0; /** - * - * *
    * The reason why fallback response was used instead of the original response.
    * This field is only populated when the fallback mode is triggered and the
@@ -116,16 +86,12 @@ public com.google.maps.routing.v2.FallbackRoutingMode getRoutingMode() {
    * 
* * .google.maps.routing.v2.FallbackReason reason = 2; - * * @return The enum numeric value on the wire for reason. */ - @java.lang.Override - public int getReasonValue() { + @java.lang.Override public int getReasonValue() { return reason_; } /** - * - * *
    * The reason why fallback response was used instead of the original response.
    * This field is only populated when the fallback mode is triggered and the
@@ -133,18 +99,14 @@ public int getReasonValue() {
    * 
* * .google.maps.routing.v2.FallbackReason reason = 2; - * * @return The reason. */ - @java.lang.Override - public com.google.maps.routing.v2.FallbackReason getReason() { - com.google.maps.routing.v2.FallbackReason result = - com.google.maps.routing.v2.FallbackReason.forNumber(reason_); + @java.lang.Override public com.google.maps.routing.v2.FallbackReason getReason() { + com.google.maps.routing.v2.FallbackReason result = com.google.maps.routing.v2.FallbackReason.forNumber(reason_); return result == null ? com.google.maps.routing.v2.FallbackReason.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -156,14 +118,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (routingMode_ - != com.google.maps.routing.v2.FallbackRoutingMode.FALLBACK_ROUTING_MODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (routingMode_ != com.google.maps.routing.v2.FallbackRoutingMode.FALLBACK_ROUTING_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, routingMode_); } - if (reason_ - != com.google.maps.routing.v2.FallbackReason.FALLBACK_REASON_UNSPECIFIED.getNumber()) { + if (reason_ != com.google.maps.routing.v2.FallbackReason.FALLBACK_REASON_UNSPECIFIED.getNumber()) { output.writeEnum(2, reason_); } getUnknownFields().writeTo(output); @@ -175,14 +135,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (routingMode_ - != com.google.maps.routing.v2.FallbackRoutingMode.FALLBACK_ROUTING_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, routingMode_); + if (routingMode_ != com.google.maps.routing.v2.FallbackRoutingMode.FALLBACK_ROUTING_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, routingMode_); } - if (reason_ - != com.google.maps.routing.v2.FallbackReason.FALLBACK_REASON_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, reason_); + if (reason_ != com.google.maps.routing.v2.FallbackReason.FALLBACK_REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, reason_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -192,7 +151,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.maps.routing.v2.FallbackInfo)) { return super.equals(obj); @@ -221,104 +180,99 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.FallbackInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.FallbackInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.FallbackInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo 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; } /** - * - * *
    * Information related to how and why a fallback result was used. If this field
    * is set, then it means the server used a different routing mode from your
@@ -327,32 +281,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.maps.routing.v2.FallbackInfo}
    */
-  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.maps.routing.v2.FallbackInfo)
       com.google.maps.routing.v2.FallbackInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.maps.routing.v2.FallbackInfoProto
-          .internal_static_google_maps_routing_v2_FallbackInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.maps.routing.v2.FallbackInfoProto.internal_static_google_maps_routing_v2_FallbackInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.FallbackInfoProto
-          .internal_static_google_maps_routing_v2_FallbackInfo_fieldAccessorTable
+      return com.google.maps.routing.v2.FallbackInfoProto.internal_static_google_maps_routing_v2_FallbackInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.FallbackInfo.class,
-              com.google.maps.routing.v2.FallbackInfo.Builder.class);
+              com.google.maps.routing.v2.FallbackInfo.class, com.google.maps.routing.v2.FallbackInfo.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.FallbackInfo.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();
@@ -363,9 +318,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.maps.routing.v2.FallbackInfoProto
-          .internal_static_google_maps_routing_v2_FallbackInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.maps.routing.v2.FallbackInfoProto.internal_static_google_maps_routing_v2_FallbackInfo_descriptor;
     }
 
     @java.lang.Override
@@ -384,11 +339,8 @@ public com.google.maps.routing.v2.FallbackInfo build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.FallbackInfo buildPartial() {
-      com.google.maps.routing.v2.FallbackInfo result =
-          new com.google.maps.routing.v2.FallbackInfo(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.maps.routing.v2.FallbackInfo result = new com.google.maps.routing.v2.FallbackInfo(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -407,39 +359,38 @@ private void buildPartial0(com.google.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo) {
-        return mergeFrom((com.google.maps.routing.v2.FallbackInfo) other);
+        return mergeFrom((com.google.maps.routing.v2.FallbackInfo)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -480,25 +431,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                routingMode_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                reason_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              routingMode_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              reason_ = 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) {
@@ -508,13 +456,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private int routingMode_ = 0;
     /**
-     *
-     *
      * 
      * Routing mode used for the response. If fallback was triggered, the mode
      * may be different from routing preference set in the original client
@@ -522,16 +467,12 @@ public Builder mergeFrom(
      * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; - * * @return The enum numeric value on the wire for routingMode. */ - @java.lang.Override - public int getRoutingModeValue() { + @java.lang.Override public int getRoutingModeValue() { return routingMode_; } /** - * - * *
      * Routing mode used for the response. If fallback was triggered, the mode
      * may be different from routing preference set in the original client
@@ -539,7 +480,6 @@ public int getRoutingModeValue() {
      * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; - * * @param value The enum numeric value on the wire for routingMode to set. * @return This builder for chaining. */ @@ -550,8 +490,6 @@ public Builder setRoutingModeValue(int value) { return this; } /** - * - * *
      * Routing mode used for the response. If fallback was triggered, the mode
      * may be different from routing preference set in the original client
@@ -559,18 +497,14 @@ public Builder setRoutingModeValue(int value) {
      * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; - * * @return The routingMode. */ @java.lang.Override public com.google.maps.routing.v2.FallbackRoutingMode getRoutingMode() { - com.google.maps.routing.v2.FallbackRoutingMode result = - com.google.maps.routing.v2.FallbackRoutingMode.forNumber(routingMode_); + com.google.maps.routing.v2.FallbackRoutingMode result = com.google.maps.routing.v2.FallbackRoutingMode.forNumber(routingMode_); return result == null ? com.google.maps.routing.v2.FallbackRoutingMode.UNRECOGNIZED : result; } /** - * - * *
      * Routing mode used for the response. If fallback was triggered, the mode
      * may be different from routing preference set in the original client
@@ -578,7 +512,6 @@ public com.google.maps.routing.v2.FallbackRoutingMode getRoutingMode() {
      * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; - * * @param value The routingMode to set. * @return This builder for chaining. */ @@ -592,8 +525,6 @@ public Builder setRoutingMode(com.google.maps.routing.v2.FallbackRoutingMode val return this; } /** - * - * *
      * Routing mode used for the response. If fallback was triggered, the mode
      * may be different from routing preference set in the original client
@@ -601,7 +532,6 @@ public Builder setRoutingMode(com.google.maps.routing.v2.FallbackRoutingMode val
      * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; - * * @return This builder for chaining. */ public Builder clearRoutingMode() { @@ -613,8 +543,6 @@ public Builder clearRoutingMode() { private int reason_ = 0; /** - * - * *
      * The reason why fallback response was used instead of the original response.
      * This field is only populated when the fallback mode is triggered and the
@@ -622,16 +550,12 @@ public Builder clearRoutingMode() {
      * 
* * .google.maps.routing.v2.FallbackReason reason = 2; - * * @return The enum numeric value on the wire for reason. */ - @java.lang.Override - public int getReasonValue() { + @java.lang.Override public int getReasonValue() { return reason_; } /** - * - * *
      * The reason why fallback response was used instead of the original response.
      * This field is only populated when the fallback mode is triggered and the
@@ -639,7 +563,6 @@ public int getReasonValue() {
      * 
* * .google.maps.routing.v2.FallbackReason reason = 2; - * * @param value The enum numeric value on the wire for reason to set. * @return This builder for chaining. */ @@ -650,8 +573,6 @@ public Builder setReasonValue(int value) { return this; } /** - * - * *
      * The reason why fallback response was used instead of the original response.
      * This field is only populated when the fallback mode is triggered and the
@@ -659,18 +580,14 @@ public Builder setReasonValue(int value) {
      * 
* * .google.maps.routing.v2.FallbackReason reason = 2; - * * @return The reason. */ @java.lang.Override public com.google.maps.routing.v2.FallbackReason getReason() { - com.google.maps.routing.v2.FallbackReason result = - com.google.maps.routing.v2.FallbackReason.forNumber(reason_); + com.google.maps.routing.v2.FallbackReason result = com.google.maps.routing.v2.FallbackReason.forNumber(reason_); return result == null ? com.google.maps.routing.v2.FallbackReason.UNRECOGNIZED : result; } /** - * - * *
      * The reason why fallback response was used instead of the original response.
      * This field is only populated when the fallback mode is triggered and the
@@ -678,7 +595,6 @@ public com.google.maps.routing.v2.FallbackReason getReason() {
      * 
* * .google.maps.routing.v2.FallbackReason reason = 2; - * * @param value The reason to set. * @return This builder for chaining. */ @@ -692,8 +608,6 @@ public Builder setReason(com.google.maps.routing.v2.FallbackReason value) { return this; } /** - * - * *
      * The reason why fallback response was used instead of the original response.
      * This field is only populated when the fallback mode is triggered and the
@@ -701,7 +615,6 @@ public Builder setReason(com.google.maps.routing.v2.FallbackReason value) {
      * 
* * .google.maps.routing.v2.FallbackReason reason = 2; - * * @return This builder for chaining. */ public Builder clearReason() { @@ -710,9 +623,9 @@ public Builder clearReason() { 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); } @@ -722,12 +635,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.FallbackInfo) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.FallbackInfo) private static final com.google.maps.routing.v2.FallbackInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.FallbackInfo(); } @@ -736,27 +649,27 @@ public static com.google.maps.routing.v2.FallbackInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FallbackInfo 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 FallbackInfo 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; @@ -771,4 +684,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.FallbackInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoOrBuilder.java similarity index 72% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoOrBuilder.java index a5975cac3d8f..eab36a068616 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoOrBuilder.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/maps/routing/v2/fallback_info.proto package com.google.maps.routing.v2; -public interface FallbackInfoOrBuilder - extends +public interface FallbackInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.FallbackInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Routing mode used for the response. If fallback was triggered, the mode
    * may be different from routing preference set in the original client
@@ -33,13 +15,10 @@ public interface FallbackInfoOrBuilder
    * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; - * * @return The enum numeric value on the wire for routingMode. */ int getRoutingModeValue(); /** - * - * *
    * Routing mode used for the response. If fallback was triggered, the mode
    * may be different from routing preference set in the original client
@@ -47,14 +26,11 @@ public interface FallbackInfoOrBuilder
    * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; - * * @return The routingMode. */ com.google.maps.routing.v2.FallbackRoutingMode getRoutingMode(); /** - * - * *
    * The reason why fallback response was used instead of the original response.
    * This field is only populated when the fallback mode is triggered and the
@@ -62,13 +38,10 @@ public interface FallbackInfoOrBuilder
    * 
* * .google.maps.routing.v2.FallbackReason reason = 2; - * * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** - * - * *
    * The reason why fallback response was used instead of the original response.
    * This field is only populated when the fallback mode is triggered and the
@@ -76,7 +49,6 @@ public interface FallbackInfoOrBuilder
    * 
* * .google.maps.routing.v2.FallbackReason reason = 2; - * * @return The reason. */ com.google.maps.routing.v2.FallbackReason getReason(); diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java new file mode 100644 index 000000000000..fd839bbb281b --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/fallback_info.proto + +package com.google.maps.routing.v2; + +public final class FallbackInfoProto { + private FallbackInfoProto() {} + 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_maps_routing_v2_FallbackInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_FallbackInfo_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/maps/routing/v2/fallback_info.p" + + "roto\022\026google.maps.routing.v2\"\211\001\n\014Fallbac" + + "kInfo\022A\n\014routing_mode\030\001 \001(\0162+.google.map" + + "s.routing.v2.FallbackRoutingMode\0226\n\006reas" + + "on\030\002 \001(\0162&.google.maps.routing.v2.Fallba" + + "ckReason*Y\n\016FallbackReason\022\037\n\033FALLBACK_R" + + "EASON_UNSPECIFIED\020\000\022\020\n\014SERVER_ERROR\020\001\022\024\n" + + "\020LATENCY_EXCEEDED\020\002*v\n\023FallbackRoutingMo" + + "de\022%\n!FALLBACK_ROUTING_MODE_UNSPECIFIED\020" + + "\000\022\034\n\030FALLBACK_TRAFFIC_UNAWARE\020\001\022\032\n\026FALLB" + + "ACK_TRAFFIC_AWARE\020\002B\306\001\n\032com.google.maps." + + "routing.v2B\021FallbackInfoProtoP\001Z:cloud.g" + + "oogle.com/go/maps/routing/apiv2/routingp" + + "b;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Rou" + + "ting.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Googl" + + "e::Maps::Routing::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_maps_routing_v2_FallbackInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_FallbackInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_FallbackInfo_descriptor, + new java.lang.String[] { "RoutingMode", "Reason", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackReason.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackReason.java similarity index 70% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackReason.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackReason.java index ce11b11e3334..c9b91da581c9 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackReason.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackReason.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/maps/routing/v2/fallback_info.proto package com.google.maps.routing.v2; /** - * - * *
  * Reasons for using fallback response.
  * 
* * Protobuf enum {@code google.maps.routing.v2.FallbackReason} */ -public enum FallbackReason implements com.google.protobuf.ProtocolMessageEnum { +public enum FallbackReason + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * No fallback reason specified.
    * 
@@ -39,8 +21,6 @@ public enum FallbackReason implements com.google.protobuf.ProtocolMessageEnum { */ FALLBACK_REASON_UNSPECIFIED(0), /** - * - * *
    * A server error happened while calculating routes with your preferred
    * routing mode, but we were able to return a result calculated by an
@@ -51,8 +31,6 @@ public enum FallbackReason implements com.google.protobuf.ProtocolMessageEnum {
    */
   SERVER_ERROR(1),
   /**
-   *
-   *
    * 
    * We were not able to finish the calculation with your preferred routing mode
    * on time, but we were able to return a result calculated by an alternative
@@ -66,8 +44,6 @@ public enum FallbackReason implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * No fallback reason specified.
    * 
@@ -76,8 +52,6 @@ public enum FallbackReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FALLBACK_REASON_UNSPECIFIED_VALUE = 0; /** - * - * *
    * A server error happened while calculating routes with your preferred
    * routing mode, but we were able to return a result calculated by an
@@ -88,8 +62,6 @@ public enum FallbackReason implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int SERVER_ERROR_VALUE = 1;
   /**
-   *
-   *
    * 
    * We were not able to finish the calculation with your preferred routing mode
    * on time, but we were able to return a result calculated by an alternative
@@ -100,6 +72,7 @@ public enum FallbackReason implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int LATENCY_EXCEEDED_VALUE = 2;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -124,49 +97,49 @@ public static FallbackReason valueOf(int value) {
    */
   public static FallbackReason forNumber(int value) {
     switch (value) {
-      case 0:
-        return FALLBACK_REASON_UNSPECIFIED;
-      case 1:
-        return SERVER_ERROR;
-      case 2:
-        return LATENCY_EXCEEDED;
-      default:
-        return null;
+      case 0: return FALLBACK_REASON_UNSPECIFIED;
+      case 1: return SERVER_ERROR;
+      case 2: return LATENCY_EXCEEDED;
+      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 FallbackReason findValueByNumber(int number) {
-          return FallbackReason.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      FallbackReason> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public FallbackReason findValueByNumber(int number) {
+            return FallbackReason.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.maps.routing.v2.FallbackInfoProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final FallbackReason[] VALUES = values();
 
-  public static FallbackReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static FallbackReason 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;
@@ -182,3 +155,4 @@ private FallbackReason(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.FallbackReason)
 }
+
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackRoutingMode.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackRoutingMode.java
similarity index 71%
rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackRoutingMode.java
rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackRoutingMode.java
index 8513c10a7068..68da15f39cf0 100644
--- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackRoutingMode.java
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackRoutingMode.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/maps/routing/v2/fallback_info.proto
 
 package com.google.maps.routing.v2;
 
 /**
- *
- *
  * 
  * Actual routing mode used for returned fallback response.
  * 
* * Protobuf enum {@code google.maps.routing.v2.FallbackRoutingMode} */ -public enum FallbackRoutingMode implements com.google.protobuf.ProtocolMessageEnum { +public enum FallbackRoutingMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Not used.
    * 
@@ -39,8 +21,6 @@ public enum FallbackRoutingMode implements com.google.protobuf.ProtocolMessageEn */ FALLBACK_ROUTING_MODE_UNSPECIFIED(0), /** - * - * *
    * Indicates the `TRAFFIC_UNAWARE` [google.maps.routing.v2.RoutingPreference]
    * was used to compute the response.
@@ -50,8 +30,6 @@ public enum FallbackRoutingMode implements com.google.protobuf.ProtocolMessageEn
    */
   FALLBACK_TRAFFIC_UNAWARE(1),
   /**
-   *
-   *
    * 
    * Indicates the `TRAFFIC_AWARE`
    * [RoutingPreference][google.maps.routing.v2.RoutingPreference] was used to
@@ -65,8 +43,6 @@ public enum FallbackRoutingMode implements com.google.protobuf.ProtocolMessageEn
   ;
 
   /**
-   *
-   *
    * 
    * Not used.
    * 
@@ -75,8 +51,6 @@ public enum FallbackRoutingMode implements com.google.protobuf.ProtocolMessageEn */ public static final int FALLBACK_ROUTING_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Indicates the `TRAFFIC_UNAWARE` [google.maps.routing.v2.RoutingPreference]
    * was used to compute the response.
@@ -86,8 +60,6 @@ public enum FallbackRoutingMode implements com.google.protobuf.ProtocolMessageEn
    */
   public static final int FALLBACK_TRAFFIC_UNAWARE_VALUE = 1;
   /**
-   *
-   *
    * 
    * Indicates the `TRAFFIC_AWARE`
    * [RoutingPreference][google.maps.routing.v2.RoutingPreference] was used to
@@ -98,6 +70,7 @@ public enum FallbackRoutingMode implements com.google.protobuf.ProtocolMessageEn
    */
   public static final int FALLBACK_TRAFFIC_AWARE_VALUE = 2;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -122,14 +95,10 @@ public static FallbackRoutingMode valueOf(int value) {
    */
   public static FallbackRoutingMode forNumber(int value) {
     switch (value) {
-      case 0:
-        return FALLBACK_ROUTING_MODE_UNSPECIFIED;
-      case 1:
-        return FALLBACK_TRAFFIC_UNAWARE;
-      case 2:
-        return FALLBACK_TRAFFIC_AWARE;
-      default:
-        return null;
+      case 0: return FALLBACK_ROUTING_MODE_UNSPECIFIED;
+      case 1: return FALLBACK_TRAFFIC_UNAWARE;
+      case 2: return FALLBACK_TRAFFIC_AWARE;
+      default: return null;
     }
   }
 
@@ -137,28 +106,28 @@ public static FallbackRoutingMode forNumber(int value) {
       internalGetValueMap() {
     return internalValueMap;
   }
-
-  private static final com.google.protobuf.Internal.EnumLiteMap
-      internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public FallbackRoutingMode findValueByNumber(int number) {
-              return FallbackRoutingMode.forNumber(number);
-            }
-          };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      FallbackRoutingMode> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public FallbackRoutingMode findValueByNumber(int number) {
+            return FallbackRoutingMode.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.maps.routing.v2.FallbackInfoProto.getDescriptor().getEnumTypes().get(1);
   }
 
@@ -167,7 +136,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
   public static FallbackRoutingMode 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;
@@ -183,3 +153,4 @@ private FallbackRoutingMode(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.FallbackRoutingMode)
 }
+
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypoint.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypoint.java
similarity index 74%
rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypoint.java
rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypoint.java
index 44ff9c8f29d5..929af8ab4b3a 100644
--- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypoint.java
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypoint.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/maps/routing/v2/geocoding_results.proto
 
 package com.google.maps.routing.v2;
 
 /**
- *
- *
  * 
  * Details about the locations used as waypoints. Only populated for address
  * waypoints. Includes details about the geocoding results for the purposes of
@@ -29,54 +12,50 @@
  *
  * Protobuf type {@code google.maps.routing.v2.GeocodedWaypoint}
  */
-public final class GeocodedWaypoint extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GeocodedWaypoint extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.GeocodedWaypoint)
     GeocodedWaypointOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GeocodedWaypoint.newBuilder() to construct.
   private GeocodedWaypoint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GeocodedWaypoint() {
-    type_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    type_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     placeId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GeocodedWaypoint();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.maps.routing.v2.GeocodingResultsProto
-        .internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.GeocodingResultsProto
-        .internal_static_google_maps_routing_v2_GeocodedWaypoint_fieldAccessorTable
+    return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodedWaypoint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.GeocodedWaypoint.class,
-            com.google.maps.routing.v2.GeocodedWaypoint.Builder.class);
+            com.google.maps.routing.v2.GeocodedWaypoint.class, com.google.maps.routing.v2.GeocodedWaypoint.Builder.class);
   }
 
   private int bitField0_;
   public static final int GEOCODER_STATUS_FIELD_NUMBER = 1;
   private com.google.rpc.Status geocoderStatus_;
   /**
-   *
-   *
    * 
    * Indicates the status code resulting from the geocoding operation.
    * 
* * .google.rpc.Status geocoder_status = 1; - * * @return Whether the geocoderStatus field is set. */ @java.lang.Override @@ -84,14 +63,11 @@ public boolean hasGeocoderStatus() { return geocoderStatus_ != null; } /** - * - * *
    * Indicates the status code resulting from the geocoding operation.
    * 
* * .google.rpc.Status geocoder_status = 1; - * * @return The geocoderStatus. */ @java.lang.Override @@ -99,8 +75,6 @@ public com.google.rpc.Status getGeocoderStatus() { return geocoderStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : geocoderStatus_; } /** - * - * *
    * Indicates the status code resulting from the geocoding operation.
    * 
@@ -115,8 +89,6 @@ public com.google.rpc.StatusOrBuilder getGeocoderStatusOrBuilder() { public static final int INTERMEDIATE_WAYPOINT_REQUEST_INDEX_FIELD_NUMBER = 2; private int intermediateWaypointRequestIndex_ = 0; /** - * - * *
    * The index of the corresponding intermediate waypoint in the request.
    * Only populated if the corresponding waypoint is an intermediate
@@ -124,7 +96,6 @@ public com.google.rpc.StatusOrBuilder getGeocoderStatusOrBuilder() {
    * 
* * optional int32 intermediate_waypoint_request_index = 2; - * * @return Whether the intermediateWaypointRequestIndex field is set. */ @java.lang.Override @@ -132,8 +103,6 @@ public boolean hasIntermediateWaypointRequestIndex() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The index of the corresponding intermediate waypoint in the request.
    * Only populated if the corresponding waypoint is an intermediate
@@ -141,7 +110,6 @@ public boolean hasIntermediateWaypointRequestIndex() {
    * 
* * optional int32 intermediate_waypoint_request_index = 2; - * * @return The intermediateWaypointRequestIndex. */ @java.lang.Override @@ -150,13 +118,10 @@ public int getIntermediateWaypointRequestIndex() { } public static final int TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList type_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -164,15 +129,13 @@ public int getIntermediateWaypointRequestIndex() {
    * 
* * repeated string type = 3; - * * @return A list containing the type. */ - public com.google.protobuf.ProtocolStringList getTypeList() { + public com.google.protobuf.ProtocolStringList + getTypeList() { return type_; } /** - * - * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -180,15 +143,12 @@ public com.google.protobuf.ProtocolStringList getTypeList() {
    * 
* * repeated string type = 3; - * * @return The count of type. */ public int getTypeCount() { return type_.size(); } /** - * - * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -196,7 +156,6 @@ public int getTypeCount() {
    * 
* * repeated string type = 3; - * * @param index The index of the element to return. * @return The type at the given index. */ @@ -204,8 +163,6 @@ public java.lang.String getType(int index) { return type_.get(index); } /** - * - * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -213,19 +170,17 @@ public java.lang.String getType(int index) {
    * 
* * repeated string type = 3; - * * @param index The index of the value to return. * @return The bytes of the type at the given index. */ - public com.google.protobuf.ByteString getTypeBytes(int index) { + public com.google.protobuf.ByteString + getTypeBytes(int index) { return type_.getByteString(index); } public static final int PARTIAL_MATCH_FIELD_NUMBER = 4; private boolean partialMatch_ = false; /** - * - * *
    * Indicates that the geocoder did not return an exact match for the original
    * request, though it was able to match part of the requested address. You may
@@ -234,7 +189,6 @@ public com.google.protobuf.ByteString getTypeBytes(int index) {
    * 
* * bool partial_match = 4; - * * @return The partialMatch. */ @java.lang.Override @@ -243,18 +197,14 @@ public boolean getPartialMatch() { } public static final int PLACE_ID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object placeId_ = ""; /** - * - * *
    * The place ID for this result.
    * 
* * string place_id = 5; - * * @return The placeId. */ @java.lang.Override @@ -263,29 +213,29 @@ 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(); placeId_ = s; return s; } } /** - * - * *
    * The place ID for this result.
    * 
* * string place_id = 5; - * * @return The bytes for placeId. */ @java.lang.Override - public com.google.protobuf.ByteString getPlaceIdBytes() { + public com.google.protobuf.ByteString + getPlaceIdBytes() { java.lang.Object ref = placeId_; 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); placeId_ = b; return b; } else { @@ -294,7 +244,6 @@ public com.google.protobuf.ByteString getPlaceIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -306,7 +255,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 (geocoderStatus_ != null) { output.writeMessage(1, getGeocoderStatus()); } @@ -332,12 +282,12 @@ public int getSerializedSize() { size = 0; if (geocoderStatus_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGeocoderStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getGeocoderStatus()); } if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 2, intermediateWaypointRequestIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, intermediateWaypointRequestIndex_); } { int dataSize = 0; @@ -348,7 +298,8 @@ public int getSerializedSize() { size += 1 * getTypeList().size(); } if (partialMatch_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, partialMatch_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, partialMatch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(placeId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, placeId_); @@ -361,27 +312,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.maps.routing.v2.GeocodedWaypoint)) { return super.equals(obj); } - com.google.maps.routing.v2.GeocodedWaypoint other = - (com.google.maps.routing.v2.GeocodedWaypoint) obj; + com.google.maps.routing.v2.GeocodedWaypoint other = (com.google.maps.routing.v2.GeocodedWaypoint) obj; if (hasGeocoderStatus() != other.hasGeocoderStatus()) return false; if (hasGeocoderStatus()) { - if (!getGeocoderStatus().equals(other.getGeocoderStatus())) return false; + if (!getGeocoderStatus() + .equals(other.getGeocoderStatus())) return false; } - if (hasIntermediateWaypointRequestIndex() != other.hasIntermediateWaypointRequestIndex()) - return false; + if (hasIntermediateWaypointRequestIndex() != other.hasIntermediateWaypointRequestIndex()) return false; if (hasIntermediateWaypointRequestIndex()) { - if (getIntermediateWaypointRequestIndex() != other.getIntermediateWaypointRequestIndex()) - return false; - } - if (!getTypeList().equals(other.getTypeList())) return false; - if (getPartialMatch() != other.getPartialMatch()) return false; - if (!getPlaceId().equals(other.getPlaceId())) return false; + if (getIntermediateWaypointRequestIndex() + != other.getIntermediateWaypointRequestIndex()) return false; + } + if (!getTypeList() + .equals(other.getTypeList())) return false; + if (getPartialMatch() + != other.getPartialMatch()) return false; + if (!getPlaceId() + .equals(other.getPlaceId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -406,7 +359,8 @@ public int hashCode() { hash = (53 * hash) + getTypeList().hashCode(); } hash = (37 * hash) + PARTIAL_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPartialMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPartialMatch()); hash = (37 * hash) + PLACE_ID_FIELD_NUMBER; hash = (53 * hash) + getPlaceId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -414,104 +368,99 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.GeocodedWaypoint parseFrom(java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.GeocodedWaypoint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.GeocodedWaypoint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint 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; } /** - * - * *
    * Details about the locations used as waypoints. Only populated for address
    * waypoints. Includes details about the geocoding results for the purposes of
@@ -520,32 +469,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.maps.routing.v2.GeocodedWaypoint}
    */
-  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.maps.routing.v2.GeocodedWaypoint)
       com.google.maps.routing.v2.GeocodedWaypointOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.maps.routing.v2.GeocodingResultsProto
-          .internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.GeocodingResultsProto
-          .internal_static_google_maps_routing_v2_GeocodedWaypoint_fieldAccessorTable
+      return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodedWaypoint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.GeocodedWaypoint.class,
-              com.google.maps.routing.v2.GeocodedWaypoint.Builder.class);
+              com.google.maps.routing.v2.GeocodedWaypoint.class, com.google.maps.routing.v2.GeocodedWaypoint.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.GeocodedWaypoint.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();
@@ -556,16 +506,17 @@ public Builder clear() {
         geocoderStatusBuilder_ = null;
       }
       intermediateWaypointRequestIndex_ = 0;
-      type_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      type_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       partialMatch_ = false;
       placeId_ = "";
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.maps.routing.v2.GeocodingResultsProto
-          .internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor;
     }
 
     @java.lang.Override
@@ -584,11 +535,8 @@ public com.google.maps.routing.v2.GeocodedWaypoint build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.GeocodedWaypoint buildPartial() {
-      com.google.maps.routing.v2.GeocodedWaypoint result =
-          new com.google.maps.routing.v2.GeocodedWaypoint(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.maps.routing.v2.GeocodedWaypoint result = new com.google.maps.routing.v2.GeocodedWaypoint(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -596,8 +544,9 @@ public com.google.maps.routing.v2.GeocodedWaypoint buildPartial() {
     private void buildPartial0(com.google.maps.routing.v2.GeocodedWaypoint result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.geocoderStatus_ =
-            geocoderStatusBuilder_ == null ? geocoderStatus_ : geocoderStatusBuilder_.build();
+        result.geocoderStatus_ = geocoderStatusBuilder_ == null
+            ? geocoderStatus_
+            : geocoderStatusBuilder_.build();
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000002) != 0)) {
@@ -621,39 +570,38 @@ private void buildPartial0(com.google.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint) {
-        return mergeFrom((com.google.maps.routing.v2.GeocodedWaypoint) other);
+        return mergeFrom((com.google.maps.routing.v2.GeocodedWaypoint)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -712,44 +660,40 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getGeocoderStatusFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                intermediateWaypointRequestIndex_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureTypeIsMutable();
-                type_.add(s);
-                break;
-              } // case 26
-            case 32:
-              {
-                partialMatch_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 42:
-              {
-                placeId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getGeocoderStatusFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              intermediateWaypointRequestIndex_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureTypeIsMutable();
+              type_.add(s);
+              break;
+            } // case 26
+            case 32: {
+              partialMatch_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 42: {
+              placeId_ = 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) {
@@ -759,50 +703,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.rpc.Status geocoderStatus_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
-        geocoderStatusBuilder_;
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> geocoderStatusBuilder_;
     /**
-     *
-     *
      * 
      * Indicates the status code resulting from the geocoding operation.
      * 
* * .google.rpc.Status geocoder_status = 1; - * * @return Whether the geocoderStatus field is set. */ public boolean hasGeocoderStatus() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Indicates the status code resulting from the geocoding operation.
      * 
* * .google.rpc.Status geocoder_status = 1; - * * @return The geocoderStatus. */ public com.google.rpc.Status getGeocoderStatus() { if (geocoderStatusBuilder_ == null) { - return geocoderStatus_ == null - ? com.google.rpc.Status.getDefaultInstance() - : geocoderStatus_; + return geocoderStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : geocoderStatus_; } else { return geocoderStatusBuilder_.getMessage(); } } /** - * - * *
      * Indicates the status code resulting from the geocoding operation.
      * 
@@ -823,15 +755,14 @@ public Builder setGeocoderStatus(com.google.rpc.Status value) { return this; } /** - * - * *
      * Indicates the status code resulting from the geocoding operation.
      * 
* * .google.rpc.Status geocoder_status = 1; */ - public Builder setGeocoderStatus(com.google.rpc.Status.Builder builderForValue) { + public Builder setGeocoderStatus( + com.google.rpc.Status.Builder builderForValue) { if (geocoderStatusBuilder_ == null) { geocoderStatus_ = builderForValue.build(); } else { @@ -842,8 +773,6 @@ public Builder setGeocoderStatus(com.google.rpc.Status.Builder builderForValue) return this; } /** - * - * *
      * Indicates the status code resulting from the geocoding operation.
      * 
@@ -852,9 +781,9 @@ public Builder setGeocoderStatus(com.google.rpc.Status.Builder builderForValue) */ public Builder mergeGeocoderStatus(com.google.rpc.Status value) { if (geocoderStatusBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && geocoderStatus_ != null - && geocoderStatus_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + geocoderStatus_ != null && + geocoderStatus_ != com.google.rpc.Status.getDefaultInstance()) { getGeocoderStatusBuilder().mergeFrom(value); } else { geocoderStatus_ = value; @@ -867,8 +796,6 @@ public Builder mergeGeocoderStatus(com.google.rpc.Status value) { return this; } /** - * - * *
      * Indicates the status code resulting from the geocoding operation.
      * 
@@ -886,8 +813,6 @@ public Builder clearGeocoderStatus() { return this; } /** - * - * *
      * Indicates the status code resulting from the geocoding operation.
      * 
@@ -900,8 +825,6 @@ public com.google.rpc.Status.Builder getGeocoderStatusBuilder() { return getGeocoderStatusFieldBuilder().getBuilder(); } /** - * - * *
      * Indicates the status code resulting from the geocoding operation.
      * 
@@ -912,14 +835,11 @@ public com.google.rpc.StatusOrBuilder getGeocoderStatusOrBuilder() { if (geocoderStatusBuilder_ != null) { return geocoderStatusBuilder_.getMessageOrBuilder(); } else { - return geocoderStatus_ == null - ? com.google.rpc.Status.getDefaultInstance() - : geocoderStatus_; + return geocoderStatus_ == null ? + com.google.rpc.Status.getDefaultInstance() : geocoderStatus_; } } /** - * - * *
      * Indicates the status code resulting from the geocoding operation.
      * 
@@ -927,24 +847,21 @@ public com.google.rpc.StatusOrBuilder getGeocoderStatusOrBuilder() { * .google.rpc.Status geocoder_status = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getGeocoderStatusFieldBuilder() { if (geocoderStatusBuilder_ == null) { - geocoderStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - getGeocoderStatus(), getParentForChildren(), isClean()); + geocoderStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getGeocoderStatus(), + getParentForChildren(), + isClean()); geocoderStatus_ = null; } return geocoderStatusBuilder_; } - private int intermediateWaypointRequestIndex_; + private int intermediateWaypointRequestIndex_ ; /** - * - * *
      * The index of the corresponding intermediate waypoint in the request.
      * Only populated if the corresponding waypoint is an intermediate
@@ -952,7 +869,6 @@ public com.google.rpc.StatusOrBuilder getGeocoderStatusOrBuilder() {
      * 
* * optional int32 intermediate_waypoint_request_index = 2; - * * @return Whether the intermediateWaypointRequestIndex field is set. */ @java.lang.Override @@ -960,8 +876,6 @@ public boolean hasIntermediateWaypointRequestIndex() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The index of the corresponding intermediate waypoint in the request.
      * Only populated if the corresponding waypoint is an intermediate
@@ -969,7 +883,6 @@ public boolean hasIntermediateWaypointRequestIndex() {
      * 
* * optional int32 intermediate_waypoint_request_index = 2; - * * @return The intermediateWaypointRequestIndex. */ @java.lang.Override @@ -977,8 +890,6 @@ public int getIntermediateWaypointRequestIndex() { return intermediateWaypointRequestIndex_; } /** - * - * *
      * The index of the corresponding intermediate waypoint in the request.
      * Only populated if the corresponding waypoint is an intermediate
@@ -986,7 +897,6 @@ public int getIntermediateWaypointRequestIndex() {
      * 
* * optional int32 intermediate_waypoint_request_index = 2; - * * @param value The intermediateWaypointRequestIndex to set. * @return This builder for chaining. */ @@ -998,8 +908,6 @@ public Builder setIntermediateWaypointRequestIndex(int value) { return this; } /** - * - * *
      * The index of the corresponding intermediate waypoint in the request.
      * Only populated if the corresponding waypoint is an intermediate
@@ -1007,7 +915,6 @@ public Builder setIntermediateWaypointRequestIndex(int value) {
      * 
* * optional int32 intermediate_waypoint_request_index = 2; - * * @return This builder for chaining. */ public Builder clearIntermediateWaypointRequestIndex() { @@ -1019,7 +926,6 @@ public Builder clearIntermediateWaypointRequestIndex() { private com.google.protobuf.LazyStringArrayList type_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTypeIsMutable() { if (!type_.isModifiable()) { type_ = new com.google.protobuf.LazyStringArrayList(type_); @@ -1027,8 +933,6 @@ private void ensureTypeIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -1036,16 +940,14 @@ private void ensureTypeIsMutable() {
      * 
* * repeated string type = 3; - * * @return A list containing the type. */ - public com.google.protobuf.ProtocolStringList getTypeList() { + public com.google.protobuf.ProtocolStringList + getTypeList() { type_.makeImmutable(); return type_; } /** - * - * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -1053,15 +955,12 @@ public com.google.protobuf.ProtocolStringList getTypeList() {
      * 
* * repeated string type = 3; - * * @return The count of type. */ public int getTypeCount() { return type_.size(); } /** - * - * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -1069,7 +968,6 @@ public int getTypeCount() {
      * 
* * repeated string type = 3; - * * @param index The index of the element to return. * @return The type at the given index. */ @@ -1077,8 +975,6 @@ public java.lang.String getType(int index) { return type_.get(index); } /** - * - * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -1086,16 +982,14 @@ public java.lang.String getType(int index) {
      * 
* * repeated string type = 3; - * * @param index The index of the value to return. * @return The bytes of the type at the given index. */ - public com.google.protobuf.ByteString getTypeBytes(int index) { + public com.google.protobuf.ByteString + getTypeBytes(int index) { return type_.getByteString(index); } /** - * - * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -1103,15 +997,13 @@ public com.google.protobuf.ByteString getTypeBytes(int index) {
      * 
* * repeated string type = 3; - * * @param index The index to set the value at. * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setType( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTypeIsMutable(); type_.set(index, value); bitField0_ |= 0x00000004; @@ -1119,8 +1011,6 @@ public Builder setType(int index, java.lang.String value) { return this; } /** - * - * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -1128,14 +1018,12 @@ public Builder setType(int index, java.lang.String value) {
      * 
* * repeated string type = 3; - * * @param value The type to add. * @return This builder for chaining. */ - public Builder addType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTypeIsMutable(); type_.add(value); bitField0_ |= 0x00000004; @@ -1143,8 +1031,6 @@ public Builder addType(java.lang.String value) { return this; } /** - * - * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -1152,20 +1038,19 @@ public Builder addType(java.lang.String value) {
      * 
* * repeated string type = 3; - * * @param values The type to add. * @return This builder for chaining. */ - public Builder addAllType(java.lang.Iterable values) { + public Builder addAllType( + java.lang.Iterable values) { ensureTypeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, type_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, type_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -1173,19 +1058,16 @@ public Builder addAllType(java.lang.Iterable values) {
      * 
* * repeated string type = 3; - * * @return This builder for chaining. */ public Builder clearType() { - type_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + type_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -1193,14 +1075,12 @@ public Builder clearType() {
      * 
* * repeated string type = 3; - * * @param value The bytes of the type to add. * @return This builder for chaining. */ - public Builder addTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTypeIsMutable(); type_.add(value); @@ -1209,10 +1089,8 @@ public Builder addTypeBytes(com.google.protobuf.ByteString value) { return this; } - private boolean partialMatch_; + private boolean partialMatch_ ; /** - * - * *
      * Indicates that the geocoder did not return an exact match for the original
      * request, though it was able to match part of the requested address. You may
@@ -1221,7 +1099,6 @@ public Builder addTypeBytes(com.google.protobuf.ByteString value) {
      * 
* * bool partial_match = 4; - * * @return The partialMatch. */ @java.lang.Override @@ -1229,8 +1106,6 @@ public boolean getPartialMatch() { return partialMatch_; } /** - * - * *
      * Indicates that the geocoder did not return an exact match for the original
      * request, though it was able to match part of the requested address. You may
@@ -1239,7 +1114,6 @@ public boolean getPartialMatch() {
      * 
* * bool partial_match = 4; - * * @param value The partialMatch to set. * @return This builder for chaining. */ @@ -1251,8 +1125,6 @@ public Builder setPartialMatch(boolean value) { return this; } /** - * - * *
      * Indicates that the geocoder did not return an exact match for the original
      * request, though it was able to match part of the requested address. You may
@@ -1261,7 +1133,6 @@ public Builder setPartialMatch(boolean value) {
      * 
* * bool partial_match = 4; - * * @return This builder for chaining. */ public Builder clearPartialMatch() { @@ -1273,20 +1144,18 @@ public Builder clearPartialMatch() { private java.lang.Object placeId_ = ""; /** - * - * *
      * The place ID for this result.
      * 
* * string place_id = 5; - * * @return The placeId. */ public java.lang.String getPlaceId() { java.lang.Object ref = placeId_; 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(); placeId_ = s; return s; @@ -1295,21 +1164,20 @@ public java.lang.String getPlaceId() { } } /** - * - * *
      * The place ID for this result.
      * 
* * string place_id = 5; - * * @return The bytes for placeId. */ - public com.google.protobuf.ByteString getPlaceIdBytes() { + public com.google.protobuf.ByteString + getPlaceIdBytes() { java.lang.Object ref = placeId_; 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); placeId_ = b; return b; } else { @@ -1317,35 +1185,28 @@ public com.google.protobuf.ByteString getPlaceIdBytes() { } } /** - * - * *
      * The place ID for this result.
      * 
* * string place_id = 5; - * * @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(); } placeId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The place ID for this result.
      * 
* * string place_id = 5; - * * @return This builder for chaining. */ public Builder clearPlaceId() { @@ -1355,30 +1216,26 @@ public Builder clearPlaceId() { return this; } /** - * - * *
      * The place ID for this result.
      * 
* * string place_id = 5; - * * @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); placeId_ = 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); } @@ -1388,12 +1245,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.GeocodedWaypoint) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.GeocodedWaypoint) private static final com.google.maps.routing.v2.GeocodedWaypoint DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.GeocodedWaypoint(); } @@ -1402,27 +1259,27 @@ public static com.google.maps.routing.v2.GeocodedWaypoint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GeocodedWaypoint 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 GeocodedWaypoint 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; @@ -1437,4 +1294,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.GeocodedWaypoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypointOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypointOrBuilder.java similarity index 79% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypointOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypointOrBuilder.java index 22a7609e5ee8..57e36ef20ddb 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypointOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypointOrBuilder.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/maps/routing/v2/geocoding_results.proto package com.google.maps.routing.v2; -public interface GeocodedWaypointOrBuilder - extends +public interface GeocodedWaypointOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.GeocodedWaypoint) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Indicates the status code resulting from the geocoding operation.
    * 
* * .google.rpc.Status geocoder_status = 1; - * * @return Whether the geocoderStatus field is set. */ boolean hasGeocoderStatus(); /** - * - * *
    * Indicates the status code resulting from the geocoding operation.
    * 
* * .google.rpc.Status geocoder_status = 1; - * * @return The geocoderStatus. */ com.google.rpc.Status getGeocoderStatus(); /** - * - * *
    * Indicates the status code resulting from the geocoding operation.
    * 
@@ -59,8 +35,6 @@ public interface GeocodedWaypointOrBuilder com.google.rpc.StatusOrBuilder getGeocoderStatusOrBuilder(); /** - * - * *
    * The index of the corresponding intermediate waypoint in the request.
    * Only populated if the corresponding waypoint is an intermediate
@@ -68,13 +42,10 @@ public interface GeocodedWaypointOrBuilder
    * 
* * optional int32 intermediate_waypoint_request_index = 2; - * * @return Whether the intermediateWaypointRequestIndex field is set. */ boolean hasIntermediateWaypointRequestIndex(); /** - * - * *
    * The index of the corresponding intermediate waypoint in the request.
    * Only populated if the corresponding waypoint is an intermediate
@@ -82,14 +53,11 @@ public interface GeocodedWaypointOrBuilder
    * 
* * optional int32 intermediate_waypoint_request_index = 2; - * * @return The intermediateWaypointRequestIndex. */ int getIntermediateWaypointRequestIndex(); /** - * - * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -97,13 +65,11 @@ public interface GeocodedWaypointOrBuilder
    * 
* * repeated string type = 3; - * * @return A list containing the type. */ - java.util.List getTypeList(); + java.util.List + getTypeList(); /** - * - * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -111,13 +77,10 @@ public interface GeocodedWaypointOrBuilder
    * 
* * repeated string type = 3; - * * @return The count of type. */ int getTypeCount(); /** - * - * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -125,14 +88,11 @@ public interface GeocodedWaypointOrBuilder
    * 
* * repeated string type = 3; - * * @param index The index of the element to return. * @return The type at the given index. */ java.lang.String getType(int index); /** - * - * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -140,15 +100,13 @@ public interface GeocodedWaypointOrBuilder
    * 
* * repeated string type = 3; - * * @param index The index of the value to return. * @return The bytes of the type at the given index. */ - com.google.protobuf.ByteString getTypeBytes(int index); + com.google.protobuf.ByteString + getTypeBytes(int index); /** - * - * *
    * Indicates that the geocoder did not return an exact match for the original
    * request, though it was able to match part of the requested address. You may
@@ -157,33 +115,27 @@ public interface GeocodedWaypointOrBuilder
    * 
* * bool partial_match = 4; - * * @return The partialMatch. */ boolean getPartialMatch(); /** - * - * *
    * The place ID for this result.
    * 
* * string place_id = 5; - * * @return The placeId. */ java.lang.String getPlaceId(); /** - * - * *
    * The place ID for this result.
    * 
* * string place_id = 5; - * * @return The bytes for placeId. */ - com.google.protobuf.ByteString getPlaceIdBytes(); + com.google.protobuf.ByteString + getPlaceIdBytes(); } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResults.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResults.java similarity index 73% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResults.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResults.java index 1e4fc07399a4..e5df7fb012b2 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResults.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResults.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/maps/routing/v2/geocoding_results.proto package com.google.maps.routing.v2; /** - * - * *
  * Contains [GeocodedWaypoints][google.maps.routing.v2.GeocodedWaypoint] for
  * origin, destination and intermediate waypoints. Only populated for address
@@ -29,52 +12,47 @@
  *
  * Protobuf type {@code google.maps.routing.v2.GeocodingResults}
  */
-public final class GeocodingResults extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GeocodingResults extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.GeocodingResults)
     GeocodingResultsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GeocodingResults.newBuilder() to construct.
   private GeocodingResults(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GeocodingResults() {
     intermediates_ = 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 GeocodingResults();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.maps.routing.v2.GeocodingResultsProto
-        .internal_static_google_maps_routing_v2_GeocodingResults_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodingResults_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.GeocodingResultsProto
-        .internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable
+    return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.GeocodingResults.class,
-            com.google.maps.routing.v2.GeocodingResults.Builder.class);
+            com.google.maps.routing.v2.GeocodingResults.class, com.google.maps.routing.v2.GeocodingResults.Builder.class);
   }
 
   public static final int ORIGIN_FIELD_NUMBER = 1;
   private com.google.maps.routing.v2.GeocodedWaypoint origin_;
   /**
-   *
-   *
    * 
    * Origin geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint origin = 1; - * * @return Whether the origin field is set. */ @java.lang.Override @@ -82,25 +60,18 @@ public boolean hasOrigin() { return origin_ != null; } /** - * - * *
    * Origin geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint origin = 1; - * * @return The origin. */ @java.lang.Override public com.google.maps.routing.v2.GeocodedWaypoint getOrigin() { - return origin_ == null - ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() - : origin_; + return origin_ == null ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : origin_; } /** - * - * *
    * Origin geocoded waypoint.
    * 
@@ -109,22 +80,17 @@ public com.google.maps.routing.v2.GeocodedWaypoint getOrigin() { */ @java.lang.Override public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getOriginOrBuilder() { - return origin_ == null - ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() - : origin_; + return origin_ == null ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : origin_; } public static final int DESTINATION_FIELD_NUMBER = 2; private com.google.maps.routing.v2.GeocodedWaypoint destination_; /** - * - * *
    * Destination geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint destination = 2; - * * @return Whether the destination field is set. */ @java.lang.Override @@ -132,25 +98,18 @@ public boolean hasDestination() { return destination_ != null; } /** - * - * *
    * Destination geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint destination = 2; - * * @return The destination. */ @java.lang.Override public com.google.maps.routing.v2.GeocodedWaypoint getDestination() { - return destination_ == null - ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() - : destination_; + return destination_ == null ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : destination_; } /** - * - * *
    * Destination geocoded waypoint.
    * 
@@ -159,18 +118,13 @@ public com.google.maps.routing.v2.GeocodedWaypoint getDestination() { */ @java.lang.Override public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getDestinationOrBuilder() { - return destination_ == null - ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() - : destination_; + return destination_ == null ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : destination_; } public static final int INTERMEDIATES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List intermediates_; /** - * - * *
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -184,8 +138,6 @@ public java.util.List getIntermedia
     return intermediates_;
   }
   /**
-   *
-   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -195,13 +147,11 @@ public java.util.List getIntermedia
    * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getIntermediatesOrBuilderList() {
     return intermediates_;
   }
   /**
-   *
-   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -215,8 +165,6 @@ public int getIntermediatesCount() {
     return intermediates_.size();
   }
   /**
-   *
-   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -230,8 +178,6 @@ public com.google.maps.routing.v2.GeocodedWaypoint getIntermediates(int index) {
     return intermediates_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -241,12 +187,12 @@ public com.google.maps.routing.v2.GeocodedWaypoint getIntermediates(int index) {
    * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    */
   @java.lang.Override
-  public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBuilder(int index) {
+  public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBuilder(
+      int index) {
     return intermediates_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -258,7 +204,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 (origin_ != null) {
       output.writeMessage(1, getOrigin());
     }
@@ -278,13 +225,16 @@ public int getSerializedSize() {
 
     size = 0;
     if (origin_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOrigin());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getOrigin());
     }
     if (destination_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDestination());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getDestination());
     }
     for (int i = 0; i < intermediates_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, intermediates_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, intermediates_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -294,23 +244,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.maps.routing.v2.GeocodingResults)) {
       return super.equals(obj);
     }
-    com.google.maps.routing.v2.GeocodingResults other =
-        (com.google.maps.routing.v2.GeocodingResults) obj;
+    com.google.maps.routing.v2.GeocodingResults other = (com.google.maps.routing.v2.GeocodingResults) obj;
 
     if (hasOrigin() != other.hasOrigin()) return false;
     if (hasOrigin()) {
-      if (!getOrigin().equals(other.getOrigin())) return false;
+      if (!getOrigin()
+          .equals(other.getOrigin())) return false;
     }
     if (hasDestination() != other.hasDestination()) return false;
     if (hasDestination()) {
-      if (!getDestination().equals(other.getDestination())) return false;
+      if (!getDestination()
+          .equals(other.getDestination())) return false;
     }
-    if (!getIntermediatesList().equals(other.getIntermediatesList())) return false;
+    if (!getIntermediatesList()
+        .equals(other.getIntermediatesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -339,104 +291,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.maps.routing.v2.GeocodingResults parseFrom(java.nio.ByteBuffer data)
+  public static com.google.maps.routing.v2.GeocodingResults parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.maps.routing.v2.GeocodingResults parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults 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;
   }
   /**
-   *
-   *
    * 
    * Contains [GeocodedWaypoints][google.maps.routing.v2.GeocodedWaypoint] for
    * origin, destination and intermediate waypoints. Only populated for address
@@ -445,32 +392,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.maps.routing.v2.GeocodingResults}
    */
-  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.maps.routing.v2.GeocodingResults)
       com.google.maps.routing.v2.GeocodingResultsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.maps.routing.v2.GeocodingResultsProto
-          .internal_static_google_maps_routing_v2_GeocodingResults_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodingResults_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.GeocodingResultsProto
-          .internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable
+      return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.GeocodingResults.class,
-              com.google.maps.routing.v2.GeocodingResults.Builder.class);
+              com.google.maps.routing.v2.GeocodingResults.class, com.google.maps.routing.v2.GeocodingResults.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.GeocodingResults.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();
@@ -496,9 +444,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.maps.routing.v2.GeocodingResultsProto
-          .internal_static_google_maps_routing_v2_GeocodingResults_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodingResults_descriptor;
     }
 
     @java.lang.Override
@@ -517,12 +465,9 @@ public com.google.maps.routing.v2.GeocodingResults build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.GeocodingResults buildPartial() {
-      com.google.maps.routing.v2.GeocodingResults result =
-          new com.google.maps.routing.v2.GeocodingResults(this);
+      com.google.maps.routing.v2.GeocodingResults result = new com.google.maps.routing.v2.GeocodingResults(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -542,11 +487,14 @@ private void buildPartialRepeatedFields(com.google.maps.routing.v2.GeocodingResu
     private void buildPartial0(com.google.maps.routing.v2.GeocodingResults result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.origin_ = originBuilder_ == null ? origin_ : originBuilder_.build();
+        result.origin_ = originBuilder_ == null
+            ? origin_
+            : originBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.destination_ =
-            destinationBuilder_ == null ? destination_ : destinationBuilder_.build();
+        result.destination_ = destinationBuilder_ == null
+            ? destination_
+            : destinationBuilder_.build();
       }
     }
 
@@ -554,39 +502,38 @@ private void buildPartial0(com.google.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults) {
-        return mergeFrom((com.google.maps.routing.v2.GeocodingResults) other);
+        return mergeFrom((com.google.maps.routing.v2.GeocodingResults)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -619,10 +566,9 @@ public Builder mergeFrom(com.google.maps.routing.v2.GeocodingResults other) {
             intermediatesBuilder_ = null;
             intermediates_ = other.intermediates_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            intermediatesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getIntermediatesFieldBuilder()
-                    : null;
+            intermediatesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getIntermediatesFieldBuilder() : null;
           } else {
             intermediatesBuilder_.addAllMessages(other.intermediates_);
           }
@@ -654,38 +600,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getOriginFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.maps.routing.v2.GeocodedWaypoint m =
-                    input.readMessage(
-                        com.google.maps.routing.v2.GeocodedWaypoint.parser(), extensionRegistry);
-                if (intermediatesBuilder_ == null) {
-                  ensureIntermediatesIsMutable();
-                  intermediates_.add(m);
-                } else {
-                  intermediatesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getOriginFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getDestinationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              com.google.maps.routing.v2.GeocodedWaypoint m =
+                  input.readMessage(
+                      com.google.maps.routing.v2.GeocodedWaypoint.parser(),
+                      extensionRegistry);
+              if (intermediatesBuilder_ == null) {
+                ensureIntermediatesIsMutable();
+                intermediates_.add(m);
+              } else {
+                intermediatesBuilder_.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) {
@@ -695,52 +642,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.maps.routing.v2.GeocodedWaypoint origin_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.GeocodedWaypoint,
-            com.google.maps.routing.v2.GeocodedWaypoint.Builder,
-            com.google.maps.routing.v2.GeocodedWaypointOrBuilder>
-        originBuilder_;
+        com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder> originBuilder_;
     /**
-     *
-     *
      * 
      * Origin geocoded waypoint.
      * 
* * .google.maps.routing.v2.GeocodedWaypoint origin = 1; - * * @return Whether the origin field is set. */ public boolean hasOrigin() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Origin geocoded waypoint.
      * 
* * .google.maps.routing.v2.GeocodedWaypoint origin = 1; - * * @return The origin. */ public com.google.maps.routing.v2.GeocodedWaypoint getOrigin() { if (originBuilder_ == null) { - return origin_ == null - ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() - : origin_; + return origin_ == null ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : origin_; } else { return originBuilder_.getMessage(); } } /** - * - * *
      * Origin geocoded waypoint.
      * 
@@ -761,15 +694,14 @@ public Builder setOrigin(com.google.maps.routing.v2.GeocodedWaypoint value) { return this; } /** - * - * *
      * Origin geocoded waypoint.
      * 
* * .google.maps.routing.v2.GeocodedWaypoint origin = 1; */ - public Builder setOrigin(com.google.maps.routing.v2.GeocodedWaypoint.Builder builderForValue) { + public Builder setOrigin( + com.google.maps.routing.v2.GeocodedWaypoint.Builder builderForValue) { if (originBuilder_ == null) { origin_ = builderForValue.build(); } else { @@ -780,8 +712,6 @@ public Builder setOrigin(com.google.maps.routing.v2.GeocodedWaypoint.Builder bui return this; } /** - * - * *
      * Origin geocoded waypoint.
      * 
@@ -790,9 +720,9 @@ public Builder setOrigin(com.google.maps.routing.v2.GeocodedWaypoint.Builder bui */ public Builder mergeOrigin(com.google.maps.routing.v2.GeocodedWaypoint value) { if (originBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && origin_ != null - && origin_ != com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + origin_ != null && + origin_ != com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance()) { getOriginBuilder().mergeFrom(value); } else { origin_ = value; @@ -805,8 +735,6 @@ public Builder mergeOrigin(com.google.maps.routing.v2.GeocodedWaypoint value) { return this; } /** - * - * *
      * Origin geocoded waypoint.
      * 
@@ -824,8 +752,6 @@ public Builder clearOrigin() { return this; } /** - * - * *
      * Origin geocoded waypoint.
      * 
@@ -838,8 +764,6 @@ public com.google.maps.routing.v2.GeocodedWaypoint.Builder getOriginBuilder() { return getOriginFieldBuilder().getBuilder(); } /** - * - * *
      * Origin geocoded waypoint.
      * 
@@ -850,14 +774,11 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getOriginOrBuilder() if (originBuilder_ != null) { return originBuilder_.getMessageOrBuilder(); } else { - return origin_ == null - ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() - : origin_; + return origin_ == null ? + com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : origin_; } } /** - * - * *
      * Origin geocoded waypoint.
      * 
@@ -865,17 +786,14 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getOriginOrBuilder() * .google.maps.routing.v2.GeocodedWaypoint origin = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.GeocodedWaypoint, - com.google.maps.routing.v2.GeocodedWaypoint.Builder, - com.google.maps.routing.v2.GeocodedWaypointOrBuilder> + com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder> getOriginFieldBuilder() { if (originBuilder_ == null) { - originBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.GeocodedWaypoint, - com.google.maps.routing.v2.GeocodedWaypoint.Builder, - com.google.maps.routing.v2.GeocodedWaypointOrBuilder>( - getOrigin(), getParentForChildren(), isClean()); + originBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder>( + getOrigin(), + getParentForChildren(), + isClean()); origin_ = null; } return originBuilder_; @@ -883,47 +801,34 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getOriginOrBuilder() private com.google.maps.routing.v2.GeocodedWaypoint destination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.GeocodedWaypoint, - com.google.maps.routing.v2.GeocodedWaypoint.Builder, - com.google.maps.routing.v2.GeocodedWaypointOrBuilder> - destinationBuilder_; + com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder> destinationBuilder_; /** - * - * *
      * Destination geocoded waypoint.
      * 
* * .google.maps.routing.v2.GeocodedWaypoint destination = 2; - * * @return Whether the destination field is set. */ public boolean hasDestination() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Destination geocoded waypoint.
      * 
* * .google.maps.routing.v2.GeocodedWaypoint destination = 2; - * * @return The destination. */ public com.google.maps.routing.v2.GeocodedWaypoint getDestination() { if (destinationBuilder_ == null) { - return destination_ == null - ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() - : destination_; + return destination_ == null ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : destination_; } else { return destinationBuilder_.getMessage(); } } /** - * - * *
      * Destination geocoded waypoint.
      * 
@@ -944,8 +849,6 @@ public Builder setDestination(com.google.maps.routing.v2.GeocodedWaypoint value) return this; } /** - * - * *
      * Destination geocoded waypoint.
      * 
@@ -964,8 +867,6 @@ public Builder setDestination( return this; } /** - * - * *
      * Destination geocoded waypoint.
      * 
@@ -974,9 +875,9 @@ public Builder setDestination( */ public Builder mergeDestination(com.google.maps.routing.v2.GeocodedWaypoint value) { if (destinationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && destination_ != null - && destination_ != com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + destination_ != null && + destination_ != com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance()) { getDestinationBuilder().mergeFrom(value); } else { destination_ = value; @@ -989,8 +890,6 @@ public Builder mergeDestination(com.google.maps.routing.v2.GeocodedWaypoint valu return this; } /** - * - * *
      * Destination geocoded waypoint.
      * 
@@ -1008,8 +907,6 @@ public Builder clearDestination() { return this; } /** - * - * *
      * Destination geocoded waypoint.
      * 
@@ -1022,8 +919,6 @@ public com.google.maps.routing.v2.GeocodedWaypoint.Builder getDestinationBuilder return getDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Destination geocoded waypoint.
      * 
@@ -1034,14 +929,11 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getDestinationOrBuil if (destinationBuilder_ != null) { return destinationBuilder_.getMessageOrBuilder(); } else { - return destination_ == null - ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() - : destination_; + return destination_ == null ? + com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : destination_; } } /** - * - * *
      * Destination geocoded waypoint.
      * 
@@ -1049,42 +941,32 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getDestinationOrBuil * .google.maps.routing.v2.GeocodedWaypoint destination = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.GeocodedWaypoint, - com.google.maps.routing.v2.GeocodedWaypoint.Builder, - com.google.maps.routing.v2.GeocodedWaypointOrBuilder> + com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder> getDestinationFieldBuilder() { if (destinationBuilder_ == null) { - destinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.GeocodedWaypoint, - com.google.maps.routing.v2.GeocodedWaypoint.Builder, - com.google.maps.routing.v2.GeocodedWaypointOrBuilder>( - getDestination(), getParentForChildren(), isClean()); + destinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder>( + getDestination(), + getParentForChildren(), + isClean()); destination_ = null; } return destinationBuilder_; } private java.util.List intermediates_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureIntermediatesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - intermediates_ = - new java.util.ArrayList(intermediates_); + intermediates_ = new java.util.ArrayList(intermediates_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.GeocodedWaypoint, - com.google.maps.routing.v2.GeocodedWaypoint.Builder, - com.google.maps.routing.v2.GeocodedWaypointOrBuilder> - intermediatesBuilder_; + com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder> intermediatesBuilder_; /** - * - * *
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1101,8 +983,6 @@ public java.util.List getIntermedia
       }
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1119,8 +999,6 @@ public int getIntermediatesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1137,8 +1015,6 @@ public com.google.maps.routing.v2.GeocodedWaypoint getIntermediates(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1147,7 +1023,8 @@ public com.google.maps.routing.v2.GeocodedWaypoint getIntermediates(int index) {
      *
      * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      */
-    public Builder setIntermediates(int index, com.google.maps.routing.v2.GeocodedWaypoint value) {
+    public Builder setIntermediates(
+        int index, com.google.maps.routing.v2.GeocodedWaypoint value) {
       if (intermediatesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1161,8 +1038,6 @@ public Builder setIntermediates(int index, com.google.maps.routing.v2.GeocodedWa
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1183,8 +1058,6 @@ public Builder setIntermediates(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1207,8 +1080,6 @@ public Builder addIntermediates(com.google.maps.routing.v2.GeocodedWaypoint valu
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1217,7 +1088,8 @@ public Builder addIntermediates(com.google.maps.routing.v2.GeocodedWaypoint valu
      *
      * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      */
-    public Builder addIntermediates(int index, com.google.maps.routing.v2.GeocodedWaypoint value) {
+    public Builder addIntermediates(
+        int index, com.google.maps.routing.v2.GeocodedWaypoint value) {
       if (intermediatesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1231,8 +1103,6 @@ public Builder addIntermediates(int index, com.google.maps.routing.v2.GeocodedWa
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1253,8 +1123,6 @@ public Builder addIntermediates(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1275,8 +1143,6 @@ public Builder addIntermediates(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1289,7 +1155,8 @@ public Builder addAllIntermediates(
         java.lang.Iterable values) {
       if (intermediatesBuilder_ == null) {
         ensureIntermediatesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, intermediates_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, intermediates_);
         onChanged();
       } else {
         intermediatesBuilder_.addAllMessages(values);
@@ -1297,8 +1164,6 @@ public Builder addAllIntermediates(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1318,8 +1183,6 @@ public Builder clearIntermediates() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1339,8 +1202,6 @@ public Builder removeIntermediates(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1349,12 +1210,11 @@ public Builder removeIntermediates(int index) {
      *
      * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      */
-    public com.google.maps.routing.v2.GeocodedWaypoint.Builder getIntermediatesBuilder(int index) {
+    public com.google.maps.routing.v2.GeocodedWaypoint.Builder getIntermediatesBuilder(
+        int index) {
       return getIntermediatesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1366,14 +1226,11 @@ public com.google.maps.routing.v2.GeocodedWaypoint.Builder getIntermediatesBuild
     public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBuilder(
         int index) {
       if (intermediatesBuilder_ == null) {
-        return intermediates_.get(index);
-      } else {
+        return intermediates_.get(index);  } else {
         return intermediatesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1382,8 +1239,8 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBu
      *
      * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      */
-    public java.util.List
-        getIntermediatesOrBuilderList() {
+    public java.util.List 
+         getIntermediatesOrBuilderList() {
       if (intermediatesBuilder_ != null) {
         return intermediatesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1391,8 +1248,6 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBu
       }
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1402,12 +1257,10 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBu
      * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      */
     public com.google.maps.routing.v2.GeocodedWaypoint.Builder addIntermediatesBuilder() {
-      return getIntermediatesFieldBuilder()
-          .addBuilder(com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance());
+      return getIntermediatesFieldBuilder().addBuilder(
+          com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1416,13 +1269,12 @@ public com.google.maps.routing.v2.GeocodedWaypoint.Builder addIntermediatesBuild
      *
      * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      */
-    public com.google.maps.routing.v2.GeocodedWaypoint.Builder addIntermediatesBuilder(int index) {
-      return getIntermediatesFieldBuilder()
-          .addBuilder(index, com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance());
+    public com.google.maps.routing.v2.GeocodedWaypoint.Builder addIntermediatesBuilder(
+        int index) {
+      return getIntermediatesFieldBuilder().addBuilder(
+          index, com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1431,22 +1283,16 @@ public com.google.maps.routing.v2.GeocodedWaypoint.Builder addIntermediatesBuild
      *
      * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      */
-    public java.util.List
-        getIntermediatesBuilderList() {
+    public java.util.List 
+         getIntermediatesBuilderList() {
       return getIntermediatesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.maps.routing.v2.GeocodedWaypoint,
-            com.google.maps.routing.v2.GeocodedWaypoint.Builder,
-            com.google.maps.routing.v2.GeocodedWaypointOrBuilder>
+        com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder> 
         getIntermediatesFieldBuilder() {
       if (intermediatesBuilder_ == null) {
-        intermediatesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.maps.routing.v2.GeocodedWaypoint,
-                com.google.maps.routing.v2.GeocodedWaypoint.Builder,
-                com.google.maps.routing.v2.GeocodedWaypointOrBuilder>(
+        intermediatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder>(
                 intermediates_,
                 ((bitField0_ & 0x00000004) != 0),
                 getParentForChildren(),
@@ -1455,9 +1301,9 @@ public com.google.maps.routing.v2.GeocodedWaypoint.Builder addIntermediatesBuild
       }
       return intermediatesBuilder_;
     }
-
     @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);
     }
 
@@ -1467,12 +1313,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.GeocodingResults)
   }
 
   // @@protoc_insertion_point(class_scope:google.maps.routing.v2.GeocodingResults)
   private static final com.google.maps.routing.v2.GeocodingResults DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.maps.routing.v2.GeocodingResults();
   }
@@ -1481,27 +1327,27 @@ public static com.google.maps.routing.v2.GeocodingResults getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GeocodingResults 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 GeocodingResults 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;
@@ -1516,4 +1362,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.maps.routing.v2.GeocodingResults getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsOrBuilder.java
similarity index 79%
rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsOrBuilder.java
rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsOrBuilder.java
index eff2bd28b68c..0a5d73d091d7 100644
--- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsOrBuilder.java
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsOrBuilder.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/maps/routing/v2/geocoding_results.proto
 
 package com.google.maps.routing.v2;
 
-public interface GeocodingResultsOrBuilder
-    extends
+public interface GeocodingResultsOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.GeocodingResults)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Origin geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint origin = 1; - * * @return Whether the origin field is set. */ boolean hasOrigin(); /** - * - * *
    * Origin geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint origin = 1; - * * @return The origin. */ com.google.maps.routing.v2.GeocodedWaypoint getOrigin(); /** - * - * *
    * Origin geocoded waypoint.
    * 
@@ -59,32 +35,24 @@ public interface GeocodingResultsOrBuilder com.google.maps.routing.v2.GeocodedWaypointOrBuilder getOriginOrBuilder(); /** - * - * *
    * Destination geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint destination = 2; - * * @return Whether the destination field is set. */ boolean hasDestination(); /** - * - * *
    * Destination geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint destination = 2; - * * @return The destination. */ com.google.maps.routing.v2.GeocodedWaypoint getDestination(); /** - * - * *
    * Destination geocoded waypoint.
    * 
@@ -94,8 +62,6 @@ public interface GeocodingResultsOrBuilder com.google.maps.routing.v2.GeocodedWaypointOrBuilder getDestinationOrBuilder(); /** - * - * *
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -104,10 +70,9 @@ public interface GeocodingResultsOrBuilder
    *
    * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    */
-  java.util.List getIntermediatesList();
+  java.util.List 
+      getIntermediatesList();
   /**
-   *
-   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -118,8 +83,6 @@ public interface GeocodingResultsOrBuilder
    */
   com.google.maps.routing.v2.GeocodedWaypoint getIntermediates(int index);
   /**
-   *
-   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -130,8 +93,6 @@ public interface GeocodingResultsOrBuilder
    */
   int getIntermediatesCount();
   /**
-   *
-   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -140,11 +101,9 @@ public interface GeocodingResultsOrBuilder
    *
    * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    */
-  java.util.List
+  java.util.List 
       getIntermediatesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -153,5 +112,6 @@ public interface GeocodingResultsOrBuilder
    *
    * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    */
-  com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBuilder(int index);
+  com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBuilder(
+      int index);
 }
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java
new file mode 100644
index 000000000000..b7ea98259052
--- /dev/null
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java
@@ -0,0 +1,77 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/maps/routing/v2/geocoding_results.proto
+
+package com.google.maps.routing.v2;
+
+public final class GeocodingResultsProto {
+  private GeocodingResultsProto() {}
+  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_maps_routing_v2_GeocodingResults_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_maps_routing_v2_GeocodedWaypoint_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/maps/routing/v2/geocoding_resul" +
+      "ts.proto\022\026google.maps.routing.v2\032\027google" +
+      "/rpc/status.proto\"\314\001\n\020GeocodingResults\0228" +
+      "\n\006origin\030\001 \001(\0132(.google.maps.routing.v2." +
+      "GeocodedWaypoint\022=\n\013destination\030\002 \001(\0132(." +
+      "google.maps.routing.v2.GeocodedWaypoint\022" +
+      "?\n\rintermediates\030\003 \003(\0132(.google.maps.rou" +
+      "ting.v2.GeocodedWaypoint\"\320\001\n\020GeocodedWay" +
+      "point\022+\n\017geocoder_status\030\001 \001(\0132\022.google." +
+      "rpc.Status\0220\n#intermediate_waypoint_requ" +
+      "est_index\030\002 \001(\005H\000\210\001\001\022\014\n\004type\030\003 \003(\t\022\025\n\rpa" +
+      "rtial_match\030\004 \001(\010\022\020\n\010place_id\030\005 \001(\tB&\n$_" +
+      "intermediate_waypoint_request_indexB\312\001\n\032" +
+      "com.google.maps.routing.v2B\025GeocodingRes" +
+      "ultsProtoP\001Z:cloud.google.com/go/maps/ro" +
+      "uting/apiv2/routingpb;routingpb\370\001\001\242\002\005GMR" +
+      "V2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Map" +
+      "s\\Routing\\V2\352\002\031Google::Maps::Routing::V2" +
+      "b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.rpc.StatusProto.getDescriptor(),
+        });
+    internal_static_google_maps_routing_v2_GeocodingResults_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_maps_routing_v2_GeocodingResults_descriptor,
+        new java.lang.String[] { "Origin", "Destination", "Intermediates", });
+    internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_maps_routing_v2_GeocodedWaypoint_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor,
+        new java.lang.String[] { "GeocoderStatus", "IntermediateWaypointRequestIndex", "Type", "PartialMatch", "PlaceId", "IntermediateWaypointRequestIndex", });
+    com.google.rpc.StatusProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTime.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTime.java
new file mode 100644
index 000000000000..2742bf89825a
--- /dev/null
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTime.java
@@ -0,0 +1,820 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/maps/routing/v2/localized_time.proto
+
+package com.google.maps.routing.v2;
+
+/**
+ * 
+ * Localized description of time.
+ * 
+ * + * Protobuf type {@code google.maps.routing.v2.LocalizedTime} + */ +public final class LocalizedTime extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.LocalizedTime) + LocalizedTimeOrBuilder { +private static final long serialVersionUID = 0L; + // Use LocalizedTime.newBuilder() to construct. + private LocalizedTime(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LocalizedTime() { + timeZone_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LocalizedTime(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.LocalizedTimeProto.internal_static_google_maps_routing_v2_LocalizedTime_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.LocalizedTimeProto.internal_static_google_maps_routing_v2_LocalizedTime_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.LocalizedTime.class, com.google.maps.routing.v2.LocalizedTime.Builder.class); + } + + public static final int TIME_FIELD_NUMBER = 1; + private com.google.type.LocalizedText time_; + /** + *
+   * The time specified as a string in a given time zone.
+   * 
+ * + * .google.type.LocalizedText time = 1; + * @return Whether the time field is set. + */ + @java.lang.Override + public boolean hasTime() { + return time_ != null; + } + /** + *
+   * The time specified as a string in a given time zone.
+   * 
+ * + * .google.type.LocalizedText time = 1; + * @return The time. + */ + @java.lang.Override + public com.google.type.LocalizedText getTime() { + return time_ == null ? com.google.type.LocalizedText.getDefaultInstance() : time_; + } + /** + *
+   * The time specified as a string in a given time zone.
+   * 
+ * + * .google.type.LocalizedText time = 1; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getTimeOrBuilder() { + return time_ == null ? com.google.type.LocalizedText.getDefaultInstance() : time_; + } + + public static final int TIME_ZONE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; + /** + *
+   * Contains the time zone. The value is the name of the time zone as defined
+   * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
+   * "America/New_York".
+   * 
+ * + * string time_zone = 2; + * @return The timeZone. + */ + @java.lang.Override + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } + } + /** + *
+   * Contains the time zone. The value is the name of the time zone as defined
+   * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
+   * "America/New_York".
+   * 
+ * + * string time_zone = 2; + * @return The bytes for timeZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (time_ != null) { + output.writeMessage(1, getTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, timeZone_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (time_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, timeZone_); + } + 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.maps.routing.v2.LocalizedTime)) { + return super.equals(obj); + } + com.google.maps.routing.v2.LocalizedTime other = (com.google.maps.routing.v2.LocalizedTime) obj; + + if (hasTime() != other.hasTime()) return false; + if (hasTime()) { + if (!getTime() + .equals(other.getTime())) return false; + } + if (!getTimeZone() + .equals(other.getTimeZone())) 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(); + if (hasTime()) { + hash = (37 * hash) + TIME_FIELD_NUMBER; + hash = (53 * hash) + getTime().hashCode(); + } + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.LocalizedTime parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.LocalizedTime parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.LocalizedTime parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.LocalizedTime 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.maps.routing.v2.LocalizedTime parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.LocalizedTime parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.LocalizedTime parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.LocalizedTime 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.maps.routing.v2.LocalizedTime parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.LocalizedTime 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.maps.routing.v2.LocalizedTime parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.LocalizedTime 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.maps.routing.v2.LocalizedTime 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; + } + /** + *
+   * Localized description of time.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.LocalizedTime} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.LocalizedTime) + com.google.maps.routing.v2.LocalizedTimeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.LocalizedTimeProto.internal_static_google_maps_routing_v2_LocalizedTime_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.LocalizedTimeProto.internal_static_google_maps_routing_v2_LocalizedTime_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.LocalizedTime.class, com.google.maps.routing.v2.LocalizedTime.Builder.class); + } + + // Construct using com.google.maps.routing.v2.LocalizedTime.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + time_ = null; + if (timeBuilder_ != null) { + timeBuilder_.dispose(); + timeBuilder_ = null; + } + timeZone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.LocalizedTimeProto.internal_static_google_maps_routing_v2_LocalizedTime_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.LocalizedTime getDefaultInstanceForType() { + return com.google.maps.routing.v2.LocalizedTime.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.LocalizedTime build() { + com.google.maps.routing.v2.LocalizedTime result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.LocalizedTime buildPartial() { + com.google.maps.routing.v2.LocalizedTime result = new com.google.maps.routing.v2.LocalizedTime(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.LocalizedTime result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.time_ = timeBuilder_ == null + ? time_ + : timeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.timeZone_ = timeZone_; + } + } + + @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.maps.routing.v2.LocalizedTime) { + return mergeFrom((com.google.maps.routing.v2.LocalizedTime)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.LocalizedTime other) { + if (other == com.google.maps.routing.v2.LocalizedTime.getDefaultInstance()) return this; + if (other.hasTime()) { + mergeTime(other.getTime()); + } + if (!other.getTimeZone().isEmpty()) { + timeZone_ = other.timeZone_; + bitField0_ |= 0x00000002; + onChanged(); + } + 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 10: { + input.readMessage( + getTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + timeZone_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.type.LocalizedText time_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> timeBuilder_; + /** + *
+     * The time specified as a string in a given time zone.
+     * 
+ * + * .google.type.LocalizedText time = 1; + * @return Whether the time field is set. + */ + public boolean hasTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The time specified as a string in a given time zone.
+     * 
+ * + * .google.type.LocalizedText time = 1; + * @return The time. + */ + public com.google.type.LocalizedText getTime() { + if (timeBuilder_ == null) { + return time_ == null ? com.google.type.LocalizedText.getDefaultInstance() : time_; + } else { + return timeBuilder_.getMessage(); + } + } + /** + *
+     * The time specified as a string in a given time zone.
+     * 
+ * + * .google.type.LocalizedText time = 1; + */ + public Builder setTime(com.google.type.LocalizedText value) { + if (timeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + time_ = value; + } else { + timeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The time specified as a string in a given time zone.
+     * 
+ * + * .google.type.LocalizedText time = 1; + */ + public Builder setTime( + com.google.type.LocalizedText.Builder builderForValue) { + if (timeBuilder_ == null) { + time_ = builderForValue.build(); + } else { + timeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The time specified as a string in a given time zone.
+     * 
+ * + * .google.type.LocalizedText time = 1; + */ + public Builder mergeTime(com.google.type.LocalizedText value) { + if (timeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + time_ != null && + time_ != com.google.type.LocalizedText.getDefaultInstance()) { + getTimeBuilder().mergeFrom(value); + } else { + time_ = value; + } + } else { + timeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The time specified as a string in a given time zone.
+     * 
+ * + * .google.type.LocalizedText time = 1; + */ + public Builder clearTime() { + bitField0_ = (bitField0_ & ~0x00000001); + time_ = null; + if (timeBuilder_ != null) { + timeBuilder_.dispose(); + timeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The time specified as a string in a given time zone.
+     * 
+ * + * .google.type.LocalizedText time = 1; + */ + public com.google.type.LocalizedText.Builder getTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The time specified as a string in a given time zone.
+     * 
+ * + * .google.type.LocalizedText time = 1; + */ + public com.google.type.LocalizedTextOrBuilder getTimeOrBuilder() { + if (timeBuilder_ != null) { + return timeBuilder_.getMessageOrBuilder(); + } else { + return time_ == null ? + com.google.type.LocalizedText.getDefaultInstance() : time_; + } + } + /** + *
+     * The time specified as a string in a given time zone.
+     * 
+ * + * .google.type.LocalizedText time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + getTimeFieldBuilder() { + if (timeBuilder_ == null) { + timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( + getTime(), + getParentForChildren(), + isClean()); + time_ = null; + } + return timeBuilder_; + } + + private java.lang.Object timeZone_ = ""; + /** + *
+     * Contains the time zone. The value is the name of the time zone as defined
+     * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
+     * "America/New_York".
+     * 
+ * + * string time_zone = 2; + * @return The timeZone. + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Contains the time zone. The value is the name of the time zone as defined
+     * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
+     * "America/New_York".
+     * 
+ * + * string time_zone = 2; + * @return The bytes for timeZone. + */ + public com.google.protobuf.ByteString + getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Contains the time zone. The value is the name of the time zone as defined
+     * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
+     * "America/New_York".
+     * 
+ * + * string time_zone = 2; + * @param value The timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZone( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + timeZone_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Contains the time zone. The value is the name of the time zone as defined
+     * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
+     * "America/New_York".
+     * 
+ * + * string time_zone = 2; + * @return This builder for chaining. + */ + public Builder clearTimeZone() { + timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Contains the time zone. The value is the name of the time zone as defined
+     * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
+     * "America/New_York".
+     * 
+ * + * string time_zone = 2; + * @param value The bytes for timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + timeZone_ = value; + bitField0_ |= 0x00000002; + 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.maps.routing.v2.LocalizedTime) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.LocalizedTime) + private static final com.google.maps.routing.v2.LocalizedTime DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.LocalizedTime(); + } + + public static com.google.maps.routing.v2.LocalizedTime getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocalizedTime 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.maps.routing.v2.LocalizedTime getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeOrBuilder.java new file mode 100644 index 000000000000..685398dce180 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/localized_time.proto + +package com.google.maps.routing.v2; + +public interface LocalizedTimeOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.LocalizedTime) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The time specified as a string in a given time zone.
+   * 
+ * + * .google.type.LocalizedText time = 1; + * @return Whether the time field is set. + */ + boolean hasTime(); + /** + *
+   * The time specified as a string in a given time zone.
+   * 
+ * + * .google.type.LocalizedText time = 1; + * @return The time. + */ + com.google.type.LocalizedText getTime(); + /** + *
+   * The time specified as a string in a given time zone.
+   * 
+ * + * .google.type.LocalizedText time = 1; + */ + com.google.type.LocalizedTextOrBuilder getTimeOrBuilder(); + + /** + *
+   * Contains the time zone. The value is the name of the time zone as defined
+   * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
+   * "America/New_York".
+   * 
+ * + * string time_zone = 2; + * @return The timeZone. + */ + java.lang.String getTimeZone(); + /** + *
+   * Contains the time zone. The value is the name of the time zone as defined
+   * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
+   * "America/New_York".
+   * 
+ * + * string time_zone = 2; + * @return The bytes for timeZone. + */ + com.google.protobuf.ByteString + getTimeZoneBytes(); +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java new file mode 100644 index 000000000000..19e156eb5391 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/localized_time.proto + +package com.google.maps.routing.v2; + +public final class LocalizedTimeProto { + private LocalizedTimeProto() {} + 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_maps_routing_v2_LocalizedTime_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_LocalizedTime_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/maps/routing/v2/localized_time." + + "proto\022\026google.maps.routing.v2\032 google/ty" + + "pe/localized_text.proto\"L\n\rLocalizedTime" + + "\022(\n\004time\030\001 \001(\0132\032.google.type.LocalizedTe" + + "xt\022\021\n\ttime_zone\030\002 \001(\tB\307\001\n\032com.google.map" + + "s.routing.v2B\022LocalizedTimeProtoP\001Z:clou" + + "d.google.com/go/maps/routing/apiv2/routi" + + "ngpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps." + + "Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Go" + + "ogle::Maps::Routing::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.type.LocalizedTextProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_LocalizedTime_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_LocalizedTime_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_LocalizedTime_descriptor, + new java.lang.String[] { "Time", "TimeZone", }); + com.google.type.LocalizedTextProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Location.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Location.java similarity index 63% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Location.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Location.java index 4011b52184c2..7d1fed4e3860 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Location.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Location.java @@ -1,76 +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/maps/routing/v2/location.proto package com.google.maps.routing.v2; /** - * - * *
  * Encapsulates a location (a geographic point, and an optional heading).
  * 
* * Protobuf type {@code google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.LocationProto - .internal_static_google_maps_routing_v2_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.LocationProto.internal_static_google_maps_routing_v2_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.LocationProto - .internal_static_google_maps_routing_v2_Location_fieldAccessorTable + return com.google.maps.routing.v2.LocationProto.internal_static_google_maps_routing_v2_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.Location.class, - com.google.maps.routing.v2.Location.Builder.class); + com.google.maps.routing.v2.Location.class, com.google.maps.routing.v2.Location.Builder.class); } 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 @@ -78,14 +57,11 @@ public boolean hasLatLng() { return latLng_ != null; } /** - * - * *
    * The waypoint's geographic coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; - * * @return The latLng. */ @java.lang.Override @@ -93,8 +69,6 @@ public com.google.type.LatLng getLatLng() { return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } /** - * - * *
    * The waypoint's geographic coordinates.
    * 
@@ -109,19 +83,16 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { public static final int HEADING_FIELD_NUMBER = 2; private com.google.protobuf.Int32Value 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
-   * drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
-   * of due North, 90 specifies a heading of due East, etc. You can use this
-   * field only for `DRIVE` and `TWO_WHEELER`
+   * This value specifies the side of the road for pickup and drop-off. Heading
+   * values can be from 0 to 360, where 0 specifies a heading of due North, 90
+   * specifies a heading of due East, and so on. You can use this field only for
+   * `DRIVE` and `TWO_WHEELER`
    * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * .google.protobuf.Int32Value heading = 2; - * * @return Whether the heading field is set. */ @java.lang.Override @@ -129,19 +100,16 @@ public boolean hasHeading() { return heading_ != null; } /** - * - * *
    * 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
-   * drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
-   * of due North, 90 specifies a heading of due East, etc. You can use this
-   * field only for `DRIVE` and `TWO_WHEELER`
+   * This value specifies the side of the road for pickup and drop-off. Heading
+   * values can be from 0 to 360, where 0 specifies a heading of due North, 90
+   * specifies a heading of due East, and so on. You can use this field only for
+   * `DRIVE` and `TWO_WHEELER`
    * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * .google.protobuf.Int32Value heading = 2; - * * @return The heading. */ @java.lang.Override @@ -149,14 +117,12 @@ public com.google.protobuf.Int32Value getHeading() { return heading_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : 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
-   * drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
-   * of due North, 90 specifies a heading of due East, etc. You can use this
-   * field only for `DRIVE` and `TWO_WHEELER`
+   * This value specifies the side of the road for pickup and drop-off. Heading
+   * values can be from 0 to 360, where 0 specifies a heading of due North, 90
+   * specifies a heading of due East, and so on. You can use this field only for
+   * `DRIVE` and `TWO_WHEELER`
    * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* @@ -168,7 +134,6 @@ public com.google.protobuf.Int32ValueOrBuilder getHeadingOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,7 +145,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()); } @@ -197,10 +163,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 (heading_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHeading()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHeading()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -210,7 +178,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.maps.routing.v2.Location)) { return super.equals(obj); @@ -219,11 +187,13 @@ public boolean equals(final java.lang.Object 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().equals(other.getHeading())) return false; + if (!getHeading() + .equals(other.getHeading())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -249,135 +219,132 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.Location parseFrom(java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.Location parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.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.maps.routing.v2.Location parseFrom(com.google.protobuf.ByteString data) + public static com.google.maps.routing.v2.Location parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.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.maps.routing.v2.Location parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.Location parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.Location) com.google.maps.routing.v2.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.LocationProto - .internal_static_google_maps_routing_v2_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.LocationProto.internal_static_google_maps_routing_v2_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.LocationProto - .internal_static_google_maps_routing_v2_Location_fieldAccessorTable + return com.google.maps.routing.v2.LocationProto.internal_static_google_maps_routing_v2_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.Location.class, - com.google.maps.routing.v2.Location.Builder.class); + com.google.maps.routing.v2.Location.class, com.google.maps.routing.v2.Location.Builder.class); } // Construct using com.google.maps.routing.v2.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(); @@ -396,9 +363,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.routing.v2.LocationProto - .internal_static_google_maps_routing_v2_Location_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.LocationProto.internal_static_google_maps_routing_v2_Location_descriptor; } @java.lang.Override @@ -418,9 +385,7 @@ public com.google.maps.routing.v2.Location build() { @java.lang.Override public com.google.maps.routing.v2.Location buildPartial() { com.google.maps.routing.v2.Location result = new com.google.maps.routing.v2.Location(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -428,10 +393,14 @@ public com.google.maps.routing.v2.Location buildPartial() { private void buildPartial0(com.google.maps.routing.v2.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(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.heading_ = headingBuilder_ == null ? heading_ : headingBuilder_.build(); + result.heading_ = headingBuilder_ == null + ? heading_ + : headingBuilder_.build(); } } @@ -439,39 +408,38 @@ private void buildPartial0(com.google.maps.routing.v2.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.maps.routing.v2.Location) { - return mergeFrom((com.google.maps.routing.v2.Location) other); + return mergeFrom((com.google.maps.routing.v2.Location)other); } else { super.mergeFrom(other); return this; @@ -512,25 +480,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getLatLngFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getHeadingFieldBuilder().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( + getLatLngFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getHeadingFieldBuilder().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) { @@ -540,36 +509,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() { @@ -580,8 +541,6 @@ public com.google.type.LatLng getLatLng() { } } /** - * - * *
      * The waypoint's geographic coordinates.
      * 
@@ -602,15 +561,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 { @@ -621,8 +579,6 @@ public Builder setLatLng(com.google.type.LatLng.Builder builderForValue) { return this; } /** - * - * *
      * The waypoint's geographic coordinates.
      * 
@@ -631,9 +587,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; @@ -646,8 +602,6 @@ public Builder mergeLatLng(com.google.type.LatLng value) { return this; } /** - * - * *
      * The waypoint's geographic coordinates.
      * 
@@ -665,8 +619,6 @@ public Builder clearLatLng() { return this; } /** - * - * *
      * The waypoint's geographic coordinates.
      * 
@@ -679,8 +631,6 @@ public com.google.type.LatLng.Builder getLatLngBuilder() { return getLatLngFieldBuilder().getBuilder(); } /** - * - * *
      * The waypoint's geographic coordinates.
      * 
@@ -691,12 +641,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.
      * 
@@ -704,14 +653,14 @@ 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_; @@ -719,43 +668,34 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { private com.google.protobuf.Int32Value heading_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, - com.google.protobuf.Int32Value.Builder, - com.google.protobuf.Int32ValueOrBuilder> - headingBuilder_; + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> headingBuilder_; /** - * - * *
      * 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
-     * drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
-     * of due North, 90 specifies a heading of due East, etc. You can use this
-     * field only for `DRIVE` and `TWO_WHEELER`
+     * This value specifies the side of the road for pickup and drop-off. Heading
+     * values can be from 0 to 360, where 0 specifies a heading of due North, 90
+     * specifies a heading of due East, and so on. You can use this field only for
+     * `DRIVE` and `TWO_WHEELER`
      * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * .google.protobuf.Int32Value heading = 2; - * * @return Whether the heading field is set. */ 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
-     * drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
-     * of due North, 90 specifies a heading of due East, etc. You can use this
-     * field only for `DRIVE` and `TWO_WHEELER`
+     * This value specifies the side of the road for pickup and drop-off. Heading
+     * values can be from 0 to 360, where 0 specifies a heading of due North, 90
+     * specifies a heading of due East, and so on. You can use this field only for
+     * `DRIVE` and `TWO_WHEELER`
      * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * .google.protobuf.Int32Value heading = 2; - * * @return The heading. */ public com.google.protobuf.Int32Value getHeading() { @@ -766,14 +706,12 @@ public com.google.protobuf.Int32Value getHeading() { } } /** - * - * *
      * 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
-     * drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
-     * of due North, 90 specifies a heading of due East, etc. You can use this
-     * field only for `DRIVE` and `TWO_WHEELER`
+     * This value specifies the side of the road for pickup and drop-off. Heading
+     * values can be from 0 to 360, where 0 specifies a heading of due North, 90
+     * specifies a heading of due East, and so on. You can use this field only for
+     * `DRIVE` and `TWO_WHEELER`
      * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* @@ -793,20 +731,19 @@ public Builder setHeading(com.google.protobuf.Int32Value 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
-     * drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
-     * of due North, 90 specifies a heading of due East, etc. You can use this
-     * field only for `DRIVE` and `TWO_WHEELER`
+     * This value specifies the side of the road for pickup and drop-off. Heading
+     * values can be from 0 to 360, where 0 specifies a heading of due North, 90
+     * specifies a heading of due East, and so on. You can use this field only for
+     * `DRIVE` and `TWO_WHEELER`
      * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * .google.protobuf.Int32Value heading = 2; */ - public Builder setHeading(com.google.protobuf.Int32Value.Builder builderForValue) { + public Builder setHeading( + com.google.protobuf.Int32Value.Builder builderForValue) { if (headingBuilder_ == null) { heading_ = builderForValue.build(); } else { @@ -817,14 +754,12 @@ public Builder setHeading(com.google.protobuf.Int32Value.Builder builderForValue 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
-     * drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
-     * of due North, 90 specifies a heading of due East, etc. You can use this
-     * field only for `DRIVE` and `TWO_WHEELER`
+     * This value specifies the side of the road for pickup and drop-off. Heading
+     * values can be from 0 to 360, where 0 specifies a heading of due North, 90
+     * specifies a heading of due East, and so on. You can use this field only for
+     * `DRIVE` and `TWO_WHEELER`
      * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* @@ -832,9 +767,9 @@ public Builder setHeading(com.google.protobuf.Int32Value.Builder builderForValue */ public Builder mergeHeading(com.google.protobuf.Int32Value value) { if (headingBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && heading_ != null - && heading_ != com.google.protobuf.Int32Value.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + heading_ != null && + heading_ != com.google.protobuf.Int32Value.getDefaultInstance()) { getHeadingBuilder().mergeFrom(value); } else { heading_ = value; @@ -847,14 +782,12 @@ public Builder mergeHeading(com.google.protobuf.Int32Value 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
-     * drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
-     * of due North, 90 specifies a heading of due East, etc. You can use this
-     * field only for `DRIVE` and `TWO_WHEELER`
+     * This value specifies the side of the road for pickup and drop-off. Heading
+     * values can be from 0 to 360, where 0 specifies a heading of due North, 90
+     * specifies a heading of due East, and so on. You can use this field only for
+     * `DRIVE` and `TWO_WHEELER`
      * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* @@ -871,14 +804,12 @@ public Builder clearHeading() { 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
-     * drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
-     * of due North, 90 specifies a heading of due East, etc. You can use this
-     * field only for `DRIVE` and `TWO_WHEELER`
+     * This value specifies the side of the road for pickup and drop-off. Heading
+     * values can be from 0 to 360, where 0 specifies a heading of due North, 90
+     * specifies a heading of due East, and so on. You can use this field only for
+     * `DRIVE` and `TWO_WHEELER`
      * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* @@ -890,14 +821,12 @@ public com.google.protobuf.Int32Value.Builder getHeadingBuilder() { return getHeadingFieldBuilder().getBuilder(); } /** - * - * *
      * 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
-     * drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
-     * of due North, 90 specifies a heading of due East, etc. You can use this
-     * field only for `DRIVE` and `TWO_WHEELER`
+     * This value specifies the side of the road for pickup and drop-off. Heading
+     * values can be from 0 to 360, where 0 specifies a heading of due North, 90
+     * specifies a heading of due East, and so on. You can use this field only for
+     * `DRIVE` and `TWO_WHEELER`
      * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* @@ -907,42 +836,38 @@ public com.google.protobuf.Int32ValueOrBuilder getHeadingOrBuilder() { if (headingBuilder_ != null) { return headingBuilder_.getMessageOrBuilder(); } else { - return heading_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : heading_; + return heading_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : 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
-     * drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
-     * of due North, 90 specifies a heading of due East, etc. You can use this
-     * field only for `DRIVE` and `TWO_WHEELER`
+     * This value specifies the side of the road for pickup and drop-off. Heading
+     * values can be from 0 to 360, where 0 specifies a heading of due North, 90
+     * specifies a heading of due East, and so on. You can use this field only for
+     * `DRIVE` and `TWO_WHEELER`
      * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * .google.protobuf.Int32Value heading = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, - com.google.protobuf.Int32Value.Builder, - com.google.protobuf.Int32ValueOrBuilder> + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getHeadingFieldBuilder() { if (headingBuilder_ == null) { - headingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, - com.google.protobuf.Int32Value.Builder, - com.google.protobuf.Int32ValueOrBuilder>( - getHeading(), getParentForChildren(), isClean()); + headingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getHeading(), + getParentForChildren(), + isClean()); heading_ = null; } return headingBuilder_; } - @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); } @@ -952,12 +877,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.Location) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.Location) private static final com.google.maps.routing.v2.Location DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.Location(); } @@ -966,27 +891,27 @@ public static com.google.maps.routing.v2.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; @@ -1001,4 +926,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.Location getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationOrBuilder.java similarity index 53% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationOrBuilder.java index 7cbc557d602c..7c51eab0c750 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/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/maps/routing/v2/location.proto package com.google.maps.routing.v2; -public interface LocationOrBuilder - extends +public interface LocationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.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,48 +35,40 @@ 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
-   * drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
-   * of due North, 90 specifies a heading of due East, etc. You can use this
-   * field only for `DRIVE` and `TWO_WHEELER`
+   * This value specifies the side of the road for pickup and drop-off. Heading
+   * values can be from 0 to 360, where 0 specifies a heading of due North, 90
+   * specifies a heading of due East, and so on. You can use this field only for
+   * `DRIVE` and `TWO_WHEELER`
    * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * .google.protobuf.Int32Value 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
-   * drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
-   * of due North, 90 specifies a heading of due East, etc. You can use this
-   * field only for `DRIVE` and `TWO_WHEELER`
+   * This value specifies the side of the road for pickup and drop-off. Heading
+   * values can be from 0 to 360, where 0 specifies a heading of due North, 90
+   * specifies a heading of due East, and so on. You can use this field only for
+   * `DRIVE` and `TWO_WHEELER`
    * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * .google.protobuf.Int32Value heading = 2; - * * @return The heading. */ com.google.protobuf.Int32Value getHeading(); /** - * - * *
    * 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
-   * drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
-   * of due North, 90 specifies a heading of due East, etc. You can use this
-   * field only for `DRIVE` and `TWO_WHEELER`
+   * This value specifies the side of the road for pickup and drop-off. Heading
+   * values can be from 0 to 360, where 0 specifies a heading of due North, 90
+   * specifies a heading of due East, and so on. You can use this field only for
+   * `DRIVE` and `TWO_WHEELER`
    * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java new file mode 100644 index 000000000000..13c127c5f89f --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/location.proto + +package com.google.maps.routing.v2; + +public final class LocationProto { + private LocationProto() {} + 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_maps_routing_v2_Location_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_Location_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/maps/routing/v2/location.proto\022" + + "\026google.maps.routing.v2\032\036google/protobuf" + + "/wrappers.proto\032\030google/type/latlng.prot" + + "o\"^\n\010Location\022$\n\007lat_lng\030\001 \001(\0132\023.google." + + "type.LatLng\022,\n\007heading\030\002 \001(\0132\033.google.pr" + + "otobuf.Int32ValueB\302\001\n\032com.google.maps.ro" + + "uting.v2B\rLocationProtoP\001Z:cloud.google." + + "com/go/maps/routing/apiv2/routingpb;rout" + + "ingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Routing.V" + + "2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Google::Map" + + "s::Routing::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.type.LatLngProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_Location_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_Location_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_Location_descriptor, + new java.lang.String[] { "LatLng", "Heading", }); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.type.LatLngProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Maneuver.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Maneuver.java similarity index 75% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Maneuver.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Maneuver.java index ab73130a79dd..f577277c1dec 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Maneuver.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Maneuver.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/maps/routing/v2/maneuver.proto package com.google.maps.routing.v2; /** - * - * *
  * A set of values that specify the navigation action to take for the current
  * step (e.g., turn left, merge, straight, etc.).
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.maps.routing.v2.Maneuver}
  */
-public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum {
+public enum Maneuver
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Not used.
    * 
@@ -40,8 +22,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ MANEUVER_UNSPECIFIED(0), /** - * - * *
    * Turn slightly to the left.
    * 
@@ -50,8 +30,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ TURN_SLIGHT_LEFT(1), /** - * - * *
    * Turn sharply to the left.
    * 
@@ -60,8 +38,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ TURN_SHARP_LEFT(2), /** - * - * *
    * Make a left u-turn.
    * 
@@ -70,8 +46,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ UTURN_LEFT(3), /** - * - * *
    * Turn left.
    * 
@@ -80,8 +54,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ TURN_LEFT(4), /** - * - * *
    * Turn slightly to the right.
    * 
@@ -90,8 +62,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ TURN_SLIGHT_RIGHT(5), /** - * - * *
    * Turn sharply to the right.
    * 
@@ -100,8 +70,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ TURN_SHARP_RIGHT(6), /** - * - * *
    * Make a right u-turn.
    * 
@@ -110,8 +78,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ UTURN_RIGHT(7), /** - * - * *
    * Turn right.
    * 
@@ -120,8 +86,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ TURN_RIGHT(8), /** - * - * *
    * Go straight.
    * 
@@ -130,8 +94,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ STRAIGHT(9), /** - * - * *
    * Take the left ramp.
    * 
@@ -140,8 +102,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ RAMP_LEFT(10), /** - * - * *
    * Take the right ramp.
    * 
@@ -150,8 +110,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ RAMP_RIGHT(11), /** - * - * *
    * Merge into traffic.
    * 
@@ -160,8 +118,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ MERGE(12), /** - * - * *
    * Take the left fork.
    * 
@@ -170,8 +126,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ FORK_LEFT(13), /** - * - * *
    * Take the right fork.
    * 
@@ -180,8 +134,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ FORK_RIGHT(14), /** - * - * *
    * Take the ferry.
    * 
@@ -190,8 +142,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ FERRY(15), /** - * - * *
    * Take the train leading onto the ferry.
    * 
@@ -200,8 +150,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ FERRY_TRAIN(16), /** - * - * *
    * Turn left at the roundabout.
    * 
@@ -210,8 +158,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ ROUNDABOUT_LEFT(17), /** - * - * *
    * Turn right at the roundabout.
    * 
@@ -219,12 +165,26 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { * ROUNDABOUT_RIGHT = 18; */ ROUNDABOUT_RIGHT(18), + /** + *
+   * Initial maneuver.
+   * 
+ * + * DEPART = 19; + */ + DEPART(19), + /** + *
+   * Used to indicate a street name change.
+   * 
+ * + * NAME_CHANGE = 20; + */ + NAME_CHANGE(20), UNRECOGNIZED(-1), ; /** - * - * *
    * Not used.
    * 
@@ -233,8 +193,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MANEUVER_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Turn slightly to the left.
    * 
@@ -243,8 +201,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TURN_SLIGHT_LEFT_VALUE = 1; /** - * - * *
    * Turn sharply to the left.
    * 
@@ -253,8 +209,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TURN_SHARP_LEFT_VALUE = 2; /** - * - * *
    * Make a left u-turn.
    * 
@@ -263,8 +217,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UTURN_LEFT_VALUE = 3; /** - * - * *
    * Turn left.
    * 
@@ -273,8 +225,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TURN_LEFT_VALUE = 4; /** - * - * *
    * Turn slightly to the right.
    * 
@@ -283,8 +233,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TURN_SLIGHT_RIGHT_VALUE = 5; /** - * - * *
    * Turn sharply to the right.
    * 
@@ -293,8 +241,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TURN_SHARP_RIGHT_VALUE = 6; /** - * - * *
    * Make a right u-turn.
    * 
@@ -303,8 +249,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UTURN_RIGHT_VALUE = 7; /** - * - * *
    * Turn right.
    * 
@@ -313,8 +257,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TURN_RIGHT_VALUE = 8; /** - * - * *
    * Go straight.
    * 
@@ -323,8 +265,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STRAIGHT_VALUE = 9; /** - * - * *
    * Take the left ramp.
    * 
@@ -333,8 +273,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RAMP_LEFT_VALUE = 10; /** - * - * *
    * Take the right ramp.
    * 
@@ -343,8 +281,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RAMP_RIGHT_VALUE = 11; /** - * - * *
    * Merge into traffic.
    * 
@@ -353,8 +289,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MERGE_VALUE = 12; /** - * - * *
    * Take the left fork.
    * 
@@ -363,8 +297,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FORK_LEFT_VALUE = 13; /** - * - * *
    * Take the right fork.
    * 
@@ -373,8 +305,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FORK_RIGHT_VALUE = 14; /** - * - * *
    * Take the ferry.
    * 
@@ -383,8 +313,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FERRY_VALUE = 15; /** - * - * *
    * Take the train leading onto the ferry.
    * 
@@ -393,8 +321,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FERRY_TRAIN_VALUE = 16; /** - * - * *
    * Turn left at the roundabout.
    * 
@@ -403,8 +329,6 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROUNDABOUT_LEFT_VALUE = 17; /** - * - * *
    * Turn right at the roundabout.
    * 
@@ -412,6 +336,23 @@ public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum { * ROUNDABOUT_RIGHT = 18; */ public static final int ROUNDABOUT_RIGHT_VALUE = 18; + /** + *
+   * Initial maneuver.
+   * 
+ * + * DEPART = 19; + */ + public static final int DEPART_VALUE = 19; + /** + *
+   * Used to indicate a street name change.
+   * 
+ * + * NAME_CHANGE = 20; + */ + public static final int NAME_CHANGE_VALUE = 20; + public final int getNumber() { if (this == UNRECOGNIZED) { @@ -437,81 +378,67 @@ public static Maneuver valueOf(int value) { */ public static Maneuver forNumber(int value) { switch (value) { - case 0: - return MANEUVER_UNSPECIFIED; - case 1: - return TURN_SLIGHT_LEFT; - case 2: - return TURN_SHARP_LEFT; - case 3: - return UTURN_LEFT; - case 4: - return TURN_LEFT; - case 5: - return TURN_SLIGHT_RIGHT; - case 6: - return TURN_SHARP_RIGHT; - case 7: - return UTURN_RIGHT; - case 8: - return TURN_RIGHT; - case 9: - return STRAIGHT; - case 10: - return RAMP_LEFT; - case 11: - return RAMP_RIGHT; - case 12: - return MERGE; - case 13: - return FORK_LEFT; - case 14: - return FORK_RIGHT; - case 15: - return FERRY; - case 16: - return FERRY_TRAIN; - case 17: - return ROUNDABOUT_LEFT; - case 18: - return ROUNDABOUT_RIGHT; - default: - return null; + case 0: return MANEUVER_UNSPECIFIED; + case 1: return TURN_SLIGHT_LEFT; + case 2: return TURN_SHARP_LEFT; + case 3: return UTURN_LEFT; + case 4: return TURN_LEFT; + case 5: return TURN_SLIGHT_RIGHT; + case 6: return TURN_SHARP_RIGHT; + case 7: return UTURN_RIGHT; + case 8: return TURN_RIGHT; + case 9: return STRAIGHT; + case 10: return RAMP_LEFT; + case 11: return RAMP_RIGHT; + case 12: return MERGE; + case 13: return FORK_LEFT; + case 14: return FORK_RIGHT; + case 15: return FERRY; + case 16: return FERRY_TRAIN; + case 17: return ROUNDABOUT_LEFT; + case 18: return ROUNDABOUT_RIGHT; + case 19: return DEPART; + case 20: return NAME_CHANGE; + 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< + Maneuver> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Maneuver findValueByNumber(int number) { + return Maneuver.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Maneuver findValueByNumber(int number) { - return Maneuver.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.maps.routing.v2.ManeuverProto.getDescriptor().getEnumTypes().get(0); } private static final Maneuver[] VALUES = values(); - public static Maneuver valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Maneuver 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; @@ -527,3 +454,4 @@ private Maneuver(int value) { // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.Maneuver) } + diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java new file mode 100644 index 000000000000..3361ac89603f --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/maneuver.proto + +package com.google.maps.routing.v2; + +public final class ManeuverProto { + private ManeuverProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + 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/maps/routing/v2/maneuver.proto\022" + + "\026google.maps.routing.v2*\367\002\n\010Maneuver\022\030\n\024" + + "MANEUVER_UNSPECIFIED\020\000\022\024\n\020TURN_SLIGHT_LE" + + "FT\020\001\022\023\n\017TURN_SHARP_LEFT\020\002\022\016\n\nUTURN_LEFT\020" + + "\003\022\r\n\tTURN_LEFT\020\004\022\025\n\021TURN_SLIGHT_RIGHT\020\005\022" + + "\024\n\020TURN_SHARP_RIGHT\020\006\022\017\n\013UTURN_RIGHT\020\007\022\016" + + "\n\nTURN_RIGHT\020\010\022\014\n\010STRAIGHT\020\t\022\r\n\tRAMP_LEF" + + "T\020\n\022\016\n\nRAMP_RIGHT\020\013\022\t\n\005MERGE\020\014\022\r\n\tFORK_L" + + "EFT\020\r\022\016\n\nFORK_RIGHT\020\016\022\t\n\005FERRY\020\017\022\017\n\013FERR" + + "Y_TRAIN\020\020\022\023\n\017ROUNDABOUT_LEFT\020\021\022\024\n\020ROUNDA" + + "BOUT_RIGHT\020\022\022\n\n\006DEPART\020\023\022\017\n\013NAME_CHANGE\020" + + "\024B\302\001\n\032com.google.maps.routing.v2B\rManeuv" + + "erProtoP\001Z:cloud.google.com/go/maps/rout" + + "ing/apiv2/routingpb;routingpb\370\001\001\242\002\005GMRV2" + + "\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Maps\\" + + "Routing\\V2\352\002\031Google::Maps::Routing::V2b\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstruction.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstruction.java similarity index 70% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstruction.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstruction.java index fbfa973cdb2f..21cea899a524 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstruction.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstruction.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/maps/routing/v2/navigation_instruction.proto package com.google.maps.routing.v2; /** - * - * *
  * Encapsulates navigation instructions for a
  * [RouteLegStep][google.maps.routing.v2.RouteLegStep]
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.maps.routing.v2.NavigationInstruction}
  */
-public final class NavigationInstruction extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class NavigationInstruction extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.NavigationInstruction)
     NavigationInstructionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use NavigationInstruction.newBuilder() to construct.
   private NavigationInstruction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private NavigationInstruction() {
     maneuver_ = 0;
     instructions_ = "";
@@ -45,75 +27,61 @@ private NavigationInstruction() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new NavigationInstruction();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.maps.routing.v2.NavigationInstructionProto
-        .internal_static_google_maps_routing_v2_NavigationInstruction_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.maps.routing.v2.NavigationInstructionProto.internal_static_google_maps_routing_v2_NavigationInstruction_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.NavigationInstructionProto
-        .internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable
+    return com.google.maps.routing.v2.NavigationInstructionProto.internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.NavigationInstruction.class,
-            com.google.maps.routing.v2.NavigationInstruction.Builder.class);
+            com.google.maps.routing.v2.NavigationInstruction.class, com.google.maps.routing.v2.NavigationInstruction.Builder.class);
   }
 
   public static final int MANEUVER_FIELD_NUMBER = 1;
   private int maneuver_ = 0;
   /**
-   *
-   *
    * 
    * Encapsulates the navigation instructions for the current step (e.g., turn
    * left, merge, straight, etc.). This field determines which icon to display.
    * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; - * * @return The enum numeric value on the wire for maneuver. */ - @java.lang.Override - public int getManeuverValue() { + @java.lang.Override public int getManeuverValue() { return maneuver_; } /** - * - * *
    * Encapsulates the navigation instructions for the current step (e.g., turn
    * left, merge, straight, etc.). This field determines which icon to display.
    * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; - * * @return The maneuver. */ - @java.lang.Override - public com.google.maps.routing.v2.Maneuver getManeuver() { - com.google.maps.routing.v2.Maneuver result = - com.google.maps.routing.v2.Maneuver.forNumber(maneuver_); + @java.lang.Override public com.google.maps.routing.v2.Maneuver getManeuver() { + com.google.maps.routing.v2.Maneuver result = com.google.maps.routing.v2.Maneuver.forNumber(maneuver_); return result == null ? com.google.maps.routing.v2.Maneuver.UNRECOGNIZED : result; } public static final int INSTRUCTIONS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object instructions_ = ""; /** - * - * *
    * Instructions for navigating this step.
    * 
* * string instructions = 2; - * * @return The instructions. */ @java.lang.Override @@ -122,29 +90,29 @@ public java.lang.String getInstructions() { 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(); instructions_ = s; return s; } } /** - * - * *
    * Instructions for navigating this step.
    * 
* * string instructions = 2; - * * @return The bytes for instructions. */ @java.lang.Override - public com.google.protobuf.ByteString getInstructionsBytes() { + public com.google.protobuf.ByteString + getInstructionsBytes() { java.lang.Object ref = instructions_; 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); instructions_ = b; return b; } else { @@ -153,7 +121,6 @@ public com.google.protobuf.ByteString getInstructionsBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,7 +132,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 (maneuver_ != com.google.maps.routing.v2.Maneuver.MANEUVER_UNSPECIFIED.getNumber()) { output.writeEnum(1, maneuver_); } @@ -182,7 +150,8 @@ public int getSerializedSize() { size = 0; if (maneuver_ != com.google.maps.routing.v2.Maneuver.MANEUVER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, maneuver_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, maneuver_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instructions_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instructions_); @@ -195,16 +164,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.maps.routing.v2.NavigationInstruction)) { return super.equals(obj); } - com.google.maps.routing.v2.NavigationInstruction other = - (com.google.maps.routing.v2.NavigationInstruction) obj; + com.google.maps.routing.v2.NavigationInstruction other = (com.google.maps.routing.v2.NavigationInstruction) obj; if (maneuver_ != other.maneuver_) return false; - if (!getInstructions().equals(other.getInstructions())) return false; + if (!getInstructions() + .equals(other.getInstructions())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -225,104 +194,99 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.NavigationInstruction parseFrom(java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.NavigationInstruction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.maps.routing.v2.NavigationInstruction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.NavigationInstruction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction 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 navigation instructions for a
    * [RouteLegStep][google.maps.routing.v2.RouteLegStep]
@@ -330,32 +294,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.maps.routing.v2.NavigationInstruction}
    */
-  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.maps.routing.v2.NavigationInstruction)
       com.google.maps.routing.v2.NavigationInstructionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.maps.routing.v2.NavigationInstructionProto
-          .internal_static_google_maps_routing_v2_NavigationInstruction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.maps.routing.v2.NavigationInstructionProto.internal_static_google_maps_routing_v2_NavigationInstruction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.NavigationInstructionProto
-          .internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable
+      return com.google.maps.routing.v2.NavigationInstructionProto.internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.NavigationInstruction.class,
-              com.google.maps.routing.v2.NavigationInstruction.Builder.class);
+              com.google.maps.routing.v2.NavigationInstruction.class, com.google.maps.routing.v2.NavigationInstruction.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.NavigationInstruction.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();
@@ -366,9 +331,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.maps.routing.v2.NavigationInstructionProto
-          .internal_static_google_maps_routing_v2_NavigationInstruction_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.maps.routing.v2.NavigationInstructionProto.internal_static_google_maps_routing_v2_NavigationInstruction_descriptor;
     }
 
     @java.lang.Override
@@ -387,11 +352,8 @@ public com.google.maps.routing.v2.NavigationInstruction build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.NavigationInstruction buildPartial() {
-      com.google.maps.routing.v2.NavigationInstruction result =
-          new com.google.maps.routing.v2.NavigationInstruction(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.maps.routing.v2.NavigationInstruction result = new com.google.maps.routing.v2.NavigationInstruction(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -410,39 +372,38 @@ private void buildPartial0(com.google.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction) {
-        return mergeFrom((com.google.maps.routing.v2.NavigationInstruction) other);
+        return mergeFrom((com.google.maps.routing.v2.NavigationInstruction)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -450,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.maps.routing.v2.NavigationInstruction other) {
-      if (other == com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance())
-        return this;
+      if (other == com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance()) return this;
       if (other.maneuver_ != 0) {
         setManeuverValue(other.getManeuverValue());
       }
@@ -486,25 +446,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                maneuver_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                instructions_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              maneuver_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              instructions_ = 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) {
@@ -514,36 +471,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private int maneuver_ = 0;
     /**
-     *
-     *
      * 
      * Encapsulates the navigation instructions for the current step (e.g., turn
      * left, merge, straight, etc.). This field determines which icon to display.
      * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; - * * @return The enum numeric value on the wire for maneuver. */ - @java.lang.Override - public int getManeuverValue() { + @java.lang.Override public int getManeuverValue() { return maneuver_; } /** - * - * *
      * Encapsulates the navigation instructions for the current step (e.g., turn
      * left, merge, straight, etc.). This field determines which icon to display.
      * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; - * * @param value The enum numeric value on the wire for maneuver to set. * @return This builder for chaining. */ @@ -554,33 +503,26 @@ public Builder setManeuverValue(int value) { return this; } /** - * - * *
      * Encapsulates the navigation instructions for the current step (e.g., turn
      * left, merge, straight, etc.). This field determines which icon to display.
      * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; - * * @return The maneuver. */ @java.lang.Override public com.google.maps.routing.v2.Maneuver getManeuver() { - com.google.maps.routing.v2.Maneuver result = - com.google.maps.routing.v2.Maneuver.forNumber(maneuver_); + com.google.maps.routing.v2.Maneuver result = com.google.maps.routing.v2.Maneuver.forNumber(maneuver_); return result == null ? com.google.maps.routing.v2.Maneuver.UNRECOGNIZED : result; } /** - * - * *
      * Encapsulates the navigation instructions for the current step (e.g., turn
      * left, merge, straight, etc.). This field determines which icon to display.
      * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; - * * @param value The maneuver to set. * @return This builder for chaining. */ @@ -594,15 +536,12 @@ public Builder setManeuver(com.google.maps.routing.v2.Maneuver value) { return this; } /** - * - * *
      * Encapsulates the navigation instructions for the current step (e.g., turn
      * left, merge, straight, etc.). This field determines which icon to display.
      * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; - * * @return This builder for chaining. */ public Builder clearManeuver() { @@ -614,20 +553,18 @@ public Builder clearManeuver() { private java.lang.Object instructions_ = ""; /** - * - * *
      * Instructions for navigating this step.
      * 
* * string instructions = 2; - * * @return The instructions. */ public java.lang.String getInstructions() { java.lang.Object ref = instructions_; 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(); instructions_ = s; return s; @@ -636,21 +573,20 @@ public java.lang.String getInstructions() { } } /** - * - * *
      * Instructions for navigating this step.
      * 
* * string instructions = 2; - * * @return The bytes for instructions. */ - public com.google.protobuf.ByteString getInstructionsBytes() { + public com.google.protobuf.ByteString + getInstructionsBytes() { java.lang.Object ref = instructions_; 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); instructions_ = b; return b; } else { @@ -658,35 +594,28 @@ public com.google.protobuf.ByteString getInstructionsBytes() { } } /** - * - * *
      * Instructions for navigating this step.
      * 
* * string instructions = 2; - * * @param value The instructions to set. * @return This builder for chaining. */ - public Builder setInstructions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstructions( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instructions_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Instructions for navigating this step.
      * 
* * string instructions = 2; - * * @return This builder for chaining. */ public Builder clearInstructions() { @@ -696,30 +625,26 @@ public Builder clearInstructions() { return this; } /** - * - * *
      * Instructions for navigating this step.
      * 
* * string instructions = 2; - * * @param value The bytes for instructions to set. * @return This builder for chaining. */ - public Builder setInstructionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstructionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instructions_ = value; bitField0_ |= 0x00000002; 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 +654,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.NavigationInstruction) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.NavigationInstruction) private static final com.google.maps.routing.v2.NavigationInstruction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.NavigationInstruction(); } @@ -743,27 +668,27 @@ public static com.google.maps.routing.v2.NavigationInstruction getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NavigationInstruction 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 NavigationInstruction 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,4 +703,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.NavigationInstruction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionOrBuilder.java similarity index 63% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionOrBuilder.java index 43c40989d910..5cf285ee2a4a 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionOrBuilder.java @@ -1,77 +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/maps/routing/v2/navigation_instruction.proto package com.google.maps.routing.v2; -public interface NavigationInstructionOrBuilder - extends +public interface NavigationInstructionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.NavigationInstruction) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Encapsulates the navigation instructions for the current step (e.g., turn
    * left, merge, straight, etc.). This field determines which icon to display.
    * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; - * * @return The enum numeric value on the wire for maneuver. */ int getManeuverValue(); /** - * - * *
    * Encapsulates the navigation instructions for the current step (e.g., turn
    * left, merge, straight, etc.). This field determines which icon to display.
    * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; - * * @return The maneuver. */ com.google.maps.routing.v2.Maneuver getManeuver(); /** - * - * *
    * Instructions for navigating this step.
    * 
* * string instructions = 2; - * * @return The instructions. */ java.lang.String getInstructions(); /** - * - * *
    * Instructions for navigating this step.
    * 
* * string instructions = 2; - * * @return The bytes for instructions. */ - com.google.protobuf.ByteString getInstructionsBytes(); + com.google.protobuf.ByteString + getInstructionsBytes(); } diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java new file mode 100644 index 000000000000..5006ba348e2a --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/navigation_instruction.proto + +package com.google.maps.routing.v2; + +public final class NavigationInstructionProto { + private NavigationInstructionProto() {} + 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_maps_routing_v2_NavigationInstruction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/maps/routing/v2/navigation_inst" + + "ruction.proto\022\026google.maps.routing.v2\032%g" + + "oogle/maps/routing/v2/maneuver.proto\"a\n\025" + + "NavigationInstruction\0222\n\010maneuver\030\001 \001(\0162" + + " .google.maps.routing.v2.Maneuver\022\024\n\014ins" + + "tructions\030\002 \001(\tB\317\001\n\032com.google.maps.rout" + + "ing.v2B\032NavigationInstructionProtoP\001Z:cl" + + "oud.google.com/go/maps/routing/apiv2/rou" + + "tingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Map" + + "s.Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031" + + "Google::Maps::Routing::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.maps.routing.v2.ManeuverProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_NavigationInstruction_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_NavigationInstruction_descriptor, + new java.lang.String[] { "Maneuver", "Instructions", }); + com.google.maps.routing.v2.ManeuverProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Polyline.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Polyline.java similarity index 70% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Polyline.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Polyline.java index 88f0f6c19c8e..f491fcbc9149 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Polyline.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Polyline.java @@ -1,79 +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/maps/routing/v2/polyline.proto package com.google.maps.routing.v2; /** - * - * *
  * Encapsulates an encoded polyline.
  * 
* * Protobuf type {@code google.maps.routing.v2.Polyline} */ -public final class Polyline extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Polyline extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.Polyline) PolylineOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Polyline.newBuilder() to construct. private Polyline(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Polyline() {} + private Polyline() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Polyline(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.PolylineProto - .internal_static_google_maps_routing_v2_Polyline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.PolylineProto.internal_static_google_maps_routing_v2_Polyline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.PolylineProto - .internal_static_google_maps_routing_v2_Polyline_fieldAccessorTable + return com.google.maps.routing.v2.PolylineProto.internal_static_google_maps_routing_v2_Polyline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.Polyline.class, - com.google.maps.routing.v2.Polyline.Builder.class); + com.google.maps.routing.v2.Polyline.class, com.google.maps.routing.v2.Polyline.Builder.class); } private int polylineTypeCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object polylineType_; - public enum PolylineTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ENCODED_POLYLINE(1), GEO_JSON_LINESTRING(2), POLYLINETYPE_NOT_SET(0); private final int value; - private PolylineTypeCase(int value) { this.value = value; } @@ -89,52 +67,43 @@ public static PolylineTypeCase valueOf(int value) { public static PolylineTypeCase forNumber(int value) { switch (value) { - case 1: - return ENCODED_POLYLINE; - case 2: - return GEO_JSON_LINESTRING; - case 0: - return POLYLINETYPE_NOT_SET; - default: - return null; + case 1: return ENCODED_POLYLINE; + case 2: return GEO_JSON_LINESTRING; + case 0: return POLYLINETYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public PolylineTypeCase getPolylineTypeCase() { - return PolylineTypeCase.forNumber(polylineTypeCase_); + public PolylineTypeCase + getPolylineTypeCase() { + return PolylineTypeCase.forNumber( + polylineTypeCase_); } public static final int ENCODED_POLYLINE_FIELD_NUMBER = 1; /** - * - * *
    * The string encoding of the polyline using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    * 
* * string encoded_polyline = 1; - * * @return Whether the encodedPolyline field is set. */ public boolean hasEncodedPolyline() { return polylineTypeCase_ == 1; } /** - * - * *
    * The string encoding of the polyline using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    * 
* * string encoded_polyline = 1; - * * @return The encodedPolyline. */ public java.lang.String getEncodedPolyline() { @@ -145,7 +114,8 @@ public java.lang.String getEncodedPolyline() { 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 (polylineTypeCase_ == 1) { polylineType_ = s; @@ -154,25 +124,24 @@ public java.lang.String getEncodedPolyline() { } } /** - * - * *
    * The string encoding of the polyline using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    * 
* * string encoded_polyline = 1; - * * @return The bytes for encodedPolyline. */ - public com.google.protobuf.ByteString getEncodedPolylineBytes() { + public com.google.protobuf.ByteString + getEncodedPolylineBytes() { java.lang.Object ref = ""; if (polylineTypeCase_ == 1) { ref = polylineType_; } 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 (polylineTypeCase_ == 1) { polylineType_ = b; } @@ -184,15 +153,12 @@ public com.google.protobuf.ByteString getEncodedPolylineBytes() { public static final int GEO_JSON_LINESTRING_FIELD_NUMBER = 2; /** - * - * *
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
    * 
* * .google.protobuf.Struct geo_json_linestring = 2; - * * @return Whether the geoJsonLinestring field is set. */ @java.lang.Override @@ -200,27 +166,22 @@ public boolean hasGeoJsonLinestring() { return polylineTypeCase_ == 2; } /** - * - * *
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
    * 
* * .google.protobuf.Struct geo_json_linestring = 2; - * * @return The geoJsonLinestring. */ @java.lang.Override public com.google.protobuf.Struct getGeoJsonLinestring() { if (polylineTypeCase_ == 2) { - return (com.google.protobuf.Struct) polylineType_; + return (com.google.protobuf.Struct) polylineType_; } return com.google.protobuf.Struct.getDefaultInstance(); } /** - * - * *
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -231,13 +192,12 @@ public com.google.protobuf.Struct getGeoJsonLinestring() {
   @java.lang.Override
   public com.google.protobuf.StructOrBuilder getGeoJsonLinestringOrBuilder() {
     if (polylineTypeCase_ == 2) {
-      return (com.google.protobuf.Struct) polylineType_;
+       return (com.google.protobuf.Struct) polylineType_;
     }
     return com.google.protobuf.Struct.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -249,7 +209,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 (polylineTypeCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, polylineType_);
     }
@@ -269,9 +230,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, polylineType_);
     }
     if (polylineTypeCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.protobuf.Struct) polylineType_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.protobuf.Struct) polylineType_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -281,7 +241,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.maps.routing.v2.Polyline)) {
       return super.equals(obj);
@@ -291,10 +251,12 @@ public boolean equals(final java.lang.Object obj) {
     if (!getPolylineTypeCase().equals(other.getPolylineTypeCase())) return false;
     switch (polylineTypeCase_) {
       case 1:
-        if (!getEncodedPolyline().equals(other.getEncodedPolyline())) return false;
+        if (!getEncodedPolyline()
+            .equals(other.getEncodedPolyline())) return false;
         break;
       case 2:
-        if (!getGeoJsonLinestring().equals(other.getGeoJsonLinestring())) return false;
+        if (!getGeoJsonLinestring()
+            .equals(other.getGeoJsonLinestring())) return false;
         break;
       case 0:
       default:
@@ -327,135 +289,132 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.maps.routing.v2.Polyline parseFrom(java.nio.ByteBuffer data)
+  public static com.google.maps.routing.v2.Polyline parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.maps.routing.v2.Polyline parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline 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 an encoded polyline.
    * 
* * Protobuf type {@code google.maps.routing.v2.Polyline} */ - 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.maps.routing.v2.Polyline) com.google.maps.routing.v2.PolylineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.PolylineProto - .internal_static_google_maps_routing_v2_Polyline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.PolylineProto.internal_static_google_maps_routing_v2_Polyline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.PolylineProto - .internal_static_google_maps_routing_v2_Polyline_fieldAccessorTable + return com.google.maps.routing.v2.PolylineProto.internal_static_google_maps_routing_v2_Polyline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.Polyline.class, - com.google.maps.routing.v2.Polyline.Builder.class); + com.google.maps.routing.v2.Polyline.class, com.google.maps.routing.v2.Polyline.Builder.class); } // Construct using com.google.maps.routing.v2.Polyline.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(); @@ -469,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.routing.v2.PolylineProto - .internal_static_google_maps_routing_v2_Polyline_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.PolylineProto.internal_static_google_maps_routing_v2_Polyline_descriptor; } @java.lang.Override @@ -491,9 +450,7 @@ public com.google.maps.routing.v2.Polyline build() { @java.lang.Override public com.google.maps.routing.v2.Polyline buildPartial() { com.google.maps.routing.v2.Polyline result = new com.google.maps.routing.v2.Polyline(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -506,7 +463,8 @@ private void buildPartial0(com.google.maps.routing.v2.Polyline result) { private void buildPartialOneofs(com.google.maps.routing.v2.Polyline result) { result.polylineTypeCase_ = polylineTypeCase_; result.polylineType_ = this.polylineType_; - if (polylineTypeCase_ == 2 && geoJsonLinestringBuilder_ != null) { + if (polylineTypeCase_ == 2 && + geoJsonLinestringBuilder_ != null) { result.polylineType_ = geoJsonLinestringBuilder_.build(); } } @@ -515,39 +473,38 @@ private void buildPartialOneofs(com.google.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline) { - return mergeFrom((com.google.maps.routing.v2.Polyline) other); + return mergeFrom((com.google.maps.routing.v2.Polyline)other); } else { super.mergeFrom(other); return this; @@ -557,22 +514,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.maps.routing.v2.Polyline other) { if (other == com.google.maps.routing.v2.Polyline.getDefaultInstance()) return this; switch (other.getPolylineTypeCase()) { - case ENCODED_POLYLINE: - { - polylineTypeCase_ = 1; - polylineType_ = other.polylineType_; - onChanged(); - break; - } - case GEO_JSON_LINESTRING: - { - mergeGeoJsonLinestring(other.getGeoJsonLinestring()); - break; - } - case POLYLINETYPE_NOT_SET: - { - break; - } + case ENCODED_POLYLINE: { + polylineTypeCase_ = 1; + polylineType_ = other.polylineType_; + onChanged(); + break; + } + case GEO_JSON_LINESTRING: { + mergeGeoJsonLinestring(other.getGeoJsonLinestring()); + break; + } + case POLYLINETYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -600,27 +554,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - polylineTypeCase_ = 1; - polylineType_ = s; - break; - } // case 10 - case 18: - { - input.readMessage( - getGeoJsonLinestringFieldBuilder().getBuilder(), extensionRegistry); - polylineTypeCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + polylineTypeCase_ = 1; + polylineType_ = s; + break; + } // case 10 + case 18: { + input.readMessage( + getGeoJsonLinestringFieldBuilder().getBuilder(), + extensionRegistry); + polylineTypeCase_ = 2; + 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) { @@ -630,12 +582,12 @@ public Builder mergeFrom( } // finally return this; } - private int polylineTypeCase_ = 0; private java.lang.Object polylineType_; - - public PolylineTypeCase getPolylineTypeCase() { - return PolylineTypeCase.forNumber(polylineTypeCase_); + public PolylineTypeCase + getPolylineTypeCase() { + return PolylineTypeCase.forNumber( + polylineTypeCase_); } public Builder clearPolylineType() { @@ -648,15 +600,12 @@ public Builder clearPolylineType() { private int bitField0_; /** - * - * *
      * The string encoding of the polyline using the [polyline encoding
      * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
      * 
* * string encoded_polyline = 1; - * * @return Whether the encodedPolyline field is set. */ @java.lang.Override @@ -664,15 +613,12 @@ public boolean hasEncodedPolyline() { return polylineTypeCase_ == 1; } /** - * - * *
      * The string encoding of the polyline using the [polyline encoding
      * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
      * 
* * string encoded_polyline = 1; - * * @return The encodedPolyline. */ @java.lang.Override @@ -682,7 +628,8 @@ public java.lang.String getEncodedPolyline() { ref = polylineType_; } 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 (polylineTypeCase_ == 1) { polylineType_ = s; @@ -693,26 +640,25 @@ public java.lang.String getEncodedPolyline() { } } /** - * - * *
      * The string encoding of the polyline using the [polyline encoding
      * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
      * 
* * string encoded_polyline = 1; - * * @return The bytes for encodedPolyline. */ @java.lang.Override - public com.google.protobuf.ByteString getEncodedPolylineBytes() { + public com.google.protobuf.ByteString + getEncodedPolylineBytes() { java.lang.Object ref = ""; if (polylineTypeCase_ == 1) { ref = polylineType_; } 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 (polylineTypeCase_ == 1) { polylineType_ = b; } @@ -722,37 +668,30 @@ public com.google.protobuf.ByteString getEncodedPolylineBytes() { } } /** - * - * *
      * The string encoding of the polyline using the [polyline encoding
      * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
      * 
* * string encoded_polyline = 1; - * * @param value The encodedPolyline to set. * @return This builder for chaining. */ - public Builder setEncodedPolyline(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEncodedPolyline( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } polylineTypeCase_ = 1; polylineType_ = value; onChanged(); return this; } /** - * - * *
      * The string encoding of the polyline using the [polyline encoding
      * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
      * 
* * string encoded_polyline = 1; - * * @return This builder for chaining. */ public Builder clearEncodedPolyline() { @@ -764,22 +703,18 @@ public Builder clearEncodedPolyline() { return this; } /** - * - * *
      * The string encoding of the polyline using the [polyline encoding
      * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
      * 
* * string encoded_polyline = 1; - * * @param value The bytes for encodedPolyline to set. * @return This builder for chaining. */ - public Builder setEncodedPolylineBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEncodedPolylineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); polylineTypeCase_ = 1; polylineType_ = value; @@ -788,20 +723,14 @@ public Builder setEncodedPolylineBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - geoJsonLinestringBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> geoJsonLinestringBuilder_; /** - * - * *
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
      * 
* * .google.protobuf.Struct geo_json_linestring = 2; - * * @return Whether the geoJsonLinestring field is set. */ @java.lang.Override @@ -809,15 +738,12 @@ public boolean hasGeoJsonLinestring() { return polylineTypeCase_ == 2; } /** - * - * *
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
      * 
* * .google.protobuf.Struct geo_json_linestring = 2; - * * @return The geoJsonLinestring. */ @java.lang.Override @@ -835,8 +761,6 @@ public com.google.protobuf.Struct getGeoJsonLinestring() { } } /** - * - * *
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -858,8 +782,6 @@ public Builder setGeoJsonLinestring(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -867,7 +789,8 @@ public Builder setGeoJsonLinestring(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct geo_json_linestring = 2;
      */
-    public Builder setGeoJsonLinestring(com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setGeoJsonLinestring(
+        com.google.protobuf.Struct.Builder builderForValue) {
       if (geoJsonLinestringBuilder_ == null) {
         polylineType_ = builderForValue.build();
         onChanged();
@@ -878,8 +801,6 @@ public Builder setGeoJsonLinestring(com.google.protobuf.Struct.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -889,12 +810,10 @@ public Builder setGeoJsonLinestring(com.google.protobuf.Struct.Builder builderFo
      */
     public Builder mergeGeoJsonLinestring(com.google.protobuf.Struct value) {
       if (geoJsonLinestringBuilder_ == null) {
-        if (polylineTypeCase_ == 2
-            && polylineType_ != com.google.protobuf.Struct.getDefaultInstance()) {
-          polylineType_ =
-              com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) polylineType_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (polylineTypeCase_ == 2 &&
+            polylineType_ != com.google.protobuf.Struct.getDefaultInstance()) {
+          polylineType_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) polylineType_)
+              .mergeFrom(value).buildPartial();
         } else {
           polylineType_ = value;
         }
@@ -910,8 +829,6 @@ public Builder mergeGeoJsonLinestring(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -936,8 +853,6 @@ public Builder clearGeoJsonLinestring() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -949,8 +864,6 @@ public com.google.protobuf.Struct.Builder getGeoJsonLinestringBuilder() {
       return getGeoJsonLinestringFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -970,8 +883,6 @@ public com.google.protobuf.StructOrBuilder getGeoJsonLinestringOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -980,29 +891,26 @@ public com.google.protobuf.StructOrBuilder getGeoJsonLinestringOrBuilder() {
      * .google.protobuf.Struct geo_json_linestring = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct,
-            com.google.protobuf.Struct.Builder,
-            com.google.protobuf.StructOrBuilder>
+        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
         getGeoJsonLinestringFieldBuilder() {
       if (geoJsonLinestringBuilder_ == null) {
         if (!(polylineTypeCase_ == 2)) {
           polylineType_ = com.google.protobuf.Struct.getDefaultInstance();
         }
-        geoJsonLinestringBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Struct,
-                com.google.protobuf.Struct.Builder,
-                com.google.protobuf.StructOrBuilder>(
-                (com.google.protobuf.Struct) polylineType_, getParentForChildren(), isClean());
+        geoJsonLinestringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
+                (com.google.protobuf.Struct) polylineType_,
+                getParentForChildren(),
+                isClean());
         polylineType_ = null;
       }
       polylineTypeCase_ = 2;
       onChanged();
       return geoJsonLinestringBuilder_;
     }
-
     @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);
     }
 
@@ -1012,12 +920,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.Polyline)
   }
 
   // @@protoc_insertion_point(class_scope:google.maps.routing.v2.Polyline)
   private static final com.google.maps.routing.v2.Polyline DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.maps.routing.v2.Polyline();
   }
@@ -1026,27 +934,27 @@ public static com.google.maps.routing.v2.Polyline getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Polyline 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 Polyline 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;
@@ -1061,4 +969,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.maps.routing.v2.Polyline getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineEncoding.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineEncoding.java
similarity index 69%
rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineEncoding.java
rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineEncoding.java
index 77ff311eb86d..e6b196b85fa9 100644
--- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineEncoding.java
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineEncoding.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/maps/routing/v2/polyline.proto
 
 package com.google.maps.routing.v2;
 
 /**
- *
- *
  * 
  * Specifies the preferred type of polyline to be returned.
  * 
* * Protobuf enum {@code google.maps.routing.v2.PolylineEncoding} */ -public enum PolylineEncoding implements com.google.protobuf.ProtocolMessageEnum { +public enum PolylineEncoding + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * No polyline type preference specified. Defaults to `ENCODED_POLYLINE`.
    * 
@@ -39,8 +21,6 @@ public enum PolylineEncoding implements com.google.protobuf.ProtocolMessageEnum */ POLYLINE_ENCODING_UNSPECIFIED(0), /** - * - * *
    * Specifies a polyline encoded using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm).
@@ -50,8 +30,6 @@ public enum PolylineEncoding implements com.google.protobuf.ProtocolMessageEnum
    */
   ENCODED_POLYLINE(1),
   /**
-   *
-   *
    * 
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -64,8 +42,6 @@ public enum PolylineEncoding implements com.google.protobuf.ProtocolMessageEnum
   ;
 
   /**
-   *
-   *
    * 
    * No polyline type preference specified. Defaults to `ENCODED_POLYLINE`.
    * 
@@ -74,8 +50,6 @@ public enum PolylineEncoding implements com.google.protobuf.ProtocolMessageEnum */ public static final int POLYLINE_ENCODING_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Specifies a polyline encoded using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm).
@@ -85,8 +59,6 @@ public enum PolylineEncoding implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int ENCODED_POLYLINE_VALUE = 1;
   /**
-   *
-   *
    * 
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -96,6 +68,7 @@ public enum PolylineEncoding implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int GEO_JSON_LINESTRING_VALUE = 2;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -120,49 +93,49 @@ public static PolylineEncoding valueOf(int value) {
    */
   public static PolylineEncoding forNumber(int value) {
     switch (value) {
-      case 0:
-        return POLYLINE_ENCODING_UNSPECIFIED;
-      case 1:
-        return ENCODED_POLYLINE;
-      case 2:
-        return GEO_JSON_LINESTRING;
-      default:
-        return null;
+      case 0: return POLYLINE_ENCODING_UNSPECIFIED;
+      case 1: return ENCODED_POLYLINE;
+      case 2: return GEO_JSON_LINESTRING;
+      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 PolylineEncoding findValueByNumber(int number) {
-          return PolylineEncoding.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      PolylineEncoding> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public PolylineEncoding findValueByNumber(int number) {
+            return PolylineEncoding.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.maps.routing.v2.PolylineProto.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final PolylineEncoding[] VALUES = values();
 
-  public static PolylineEncoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static PolylineEncoding 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;
@@ -178,3 +151,4 @@ private PolylineEncoding(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.PolylineEncoding)
 }
+
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineOrBuilder.java
similarity index 74%
rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineOrBuilder.java
rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineOrBuilder.java
index ac9f2d8ec15b..6e943f540ea3 100644
--- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineOrBuilder.java
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineOrBuilder.java
@@ -1,97 +1,65 @@
-/*
- * 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/maps/routing/v2/polyline.proto
 
 package com.google.maps.routing.v2;
 
-public interface PolylineOrBuilder
-    extends
+public interface PolylineOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.Polyline)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The string encoding of the polyline using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    * 
* * string encoded_polyline = 1; - * * @return Whether the encodedPolyline field is set. */ boolean hasEncodedPolyline(); /** - * - * *
    * The string encoding of the polyline using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    * 
* * string encoded_polyline = 1; - * * @return The encodedPolyline. */ java.lang.String getEncodedPolyline(); /** - * - * *
    * The string encoding of the polyline using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    * 
* * string encoded_polyline = 1; - * * @return The bytes for encodedPolyline. */ - com.google.protobuf.ByteString getEncodedPolylineBytes(); + com.google.protobuf.ByteString + getEncodedPolylineBytes(); /** - * - * *
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
    * 
* * .google.protobuf.Struct geo_json_linestring = 2; - * * @return Whether the geoJsonLinestring field is set. */ boolean hasGeoJsonLinestring(); /** - * - * *
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
    * 
* * .google.protobuf.Struct geo_json_linestring = 2; - * * @return The geoJsonLinestring. */ com.google.protobuf.Struct getGeoJsonLinestring(); /** - * - * *
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java
new file mode 100644
index 000000000000..184fede313bc
--- /dev/null
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java
@@ -0,0 +1,62 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/maps/routing/v2/polyline.proto
+
+package com.google.maps.routing.v2;
+
+public final class PolylineProto {
+  private PolylineProto() {}
+  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_maps_routing_v2_Polyline_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_maps_routing_v2_Polyline_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/maps/routing/v2/polyline.proto\022" +
+      "\026google.maps.routing.v2\032\034google/protobuf" +
+      "/struct.proto\"o\n\010Polyline\022\032\n\020encoded_pol" +
+      "yline\030\001 \001(\tH\000\0226\n\023geo_json_linestring\030\002 \001" +
+      "(\0132\027.google.protobuf.StructH\000B\017\n\rpolylin" +
+      "e_type*S\n\017PolylineQuality\022 \n\034POLYLINE_QU" +
+      "ALITY_UNSPECIFIED\020\000\022\020\n\014HIGH_QUALITY\020\001\022\014\n" +
+      "\010OVERVIEW\020\002*d\n\020PolylineEncoding\022!\n\035POLYL" +
+      "INE_ENCODING_UNSPECIFIED\020\000\022\024\n\020ENCODED_PO" +
+      "LYLINE\020\001\022\027\n\023GEO_JSON_LINESTRING\020\002B\302\001\n\032co" +
+      "m.google.maps.routing.v2B\rPolylineProtoP" +
+      "\001Z:cloud.google.com/go/maps/routing/apiv" +
+      "2/routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Googl" +
+      "e.Maps.Routing.V2\312\002\026Google\\Maps\\Routing\\" +
+      "V2\352\002\031Google::Maps::Routing::V2b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.protobuf.StructProto.getDescriptor(),
+        });
+    internal_static_google_maps_routing_v2_Polyline_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_maps_routing_v2_Polyline_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_maps_routing_v2_Polyline_descriptor,
+        new java.lang.String[] { "EncodedPolyline", "GeoJsonLinestring", "PolylineType", });
+    com.google.protobuf.StructProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineQuality.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineQuality.java
similarity index 71%
rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineQuality.java
rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineQuality.java
index b5b2db578865..ab8ebe80a4f4 100644
--- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineQuality.java
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineQuality.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/maps/routing/v2/polyline.proto
 
 package com.google.maps.routing.v2;
 
 /**
- *
- *
  * 
  * A set of values that specify the quality of the polyline.
  * 
* * Protobuf enum {@code google.maps.routing.v2.PolylineQuality} */ -public enum PolylineQuality implements com.google.protobuf.ProtocolMessageEnum { +public enum PolylineQuality + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * No polyline quality preference specified. Defaults to `OVERVIEW`.
    * 
@@ -39,8 +21,6 @@ public enum PolylineQuality implements com.google.protobuf.ProtocolMessageEnum { */ POLYLINE_QUALITY_UNSPECIFIED(0), /** - * - * *
    * Specifies a high-quality polyline - which is composed using more points
    * than `OVERVIEW`, at the cost of increased response size. Use this value
@@ -51,8 +31,6 @@ public enum PolylineQuality implements com.google.protobuf.ProtocolMessageEnum {
    */
   HIGH_QUALITY(1),
   /**
-   *
-   *
    * 
    * Specifies an overview polyline - which is composed using a small number of
    * points. Use this value when displaying an overview of the route. Using this
@@ -67,8 +45,6 @@ public enum PolylineQuality implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * No polyline quality preference specified. Defaults to `OVERVIEW`.
    * 
@@ -77,8 +53,6 @@ public enum PolylineQuality implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POLYLINE_QUALITY_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Specifies a high-quality polyline - which is composed using more points
    * than `OVERVIEW`, at the cost of increased response size. Use this value
@@ -89,8 +63,6 @@ public enum PolylineQuality implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int HIGH_QUALITY_VALUE = 1;
   /**
-   *
-   *
    * 
    * Specifies an overview polyline - which is composed using a small number of
    * points. Use this value when displaying an overview of the route. Using this
@@ -102,6 +74,7 @@ public enum PolylineQuality implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int OVERVIEW_VALUE = 2;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -126,49 +99,49 @@ public static PolylineQuality valueOf(int value) {
    */
   public static PolylineQuality forNumber(int value) {
     switch (value) {
-      case 0:
-        return POLYLINE_QUALITY_UNSPECIFIED;
-      case 1:
-        return HIGH_QUALITY;
-      case 2:
-        return OVERVIEW;
-      default:
-        return null;
+      case 0: return POLYLINE_QUALITY_UNSPECIFIED;
+      case 1: return HIGH_QUALITY;
+      case 2: return OVERVIEW;
+      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 PolylineQuality findValueByNumber(int number) {
-          return PolylineQuality.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      PolylineQuality> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public PolylineQuality findValueByNumber(int number) {
+            return PolylineQuality.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.maps.routing.v2.PolylineProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final PolylineQuality[] VALUES = values();
 
-  public static PolylineQuality valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static PolylineQuality 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;
@@ -184,3 +157,4 @@ private PolylineQuality(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.PolylineQuality)
 }
+
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java
new file mode 100644
index 000000000000..a1c53eae0e4e
--- /dev/null
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java
@@ -0,0 +1,5266 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/maps/routing/v2/route.proto
+
+package com.google.maps.routing.v2;
+
+/**
+ * 
+ * Contains a route, which consists of a series of connected road segments
+ * that join beginning, ending, and intermediate waypoints.
+ * 
+ * + * Protobuf type {@code google.maps.routing.v2.Route} + */ +public final class Route extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.Route) + RouteOrBuilder { +private static final long serialVersionUID = 0L; + // Use Route.newBuilder() to construct. + private Route(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Route() { + routeLabels_ = java.util.Collections.emptyList(); + legs_ = java.util.Collections.emptyList(); + description_ = ""; + warnings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + optimizedIntermediateWaypointIndex_ = emptyIntList(); + routeToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Route(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.Route.class, com.google.maps.routing.v2.Route.Builder.class); + } + + public interface RouteLocalizedValuesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.Route.RouteLocalizedValues) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return Whether the distance field is set. + */ + boolean hasDistance(); + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return The distance. + */ + com.google.type.LocalizedText getDistance(); + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + */ + com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder(); + + /** + *
+     * Duration taking traffic conditions into consideration, represented in
+     * text form. Note: If you did not request traffic information, this value
+     * will be the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + * @return Whether the duration field is set. + */ + boolean hasDuration(); + /** + *
+     * Duration taking traffic conditions into consideration, represented in
+     * text form. Note: If you did not request traffic information, this value
+     * will be the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + * @return The duration. + */ + com.google.type.LocalizedText getDuration(); + /** + *
+     * Duration taking traffic conditions into consideration, represented in
+     * text form. Note: If you did not request traffic information, this value
+     * will be the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + */ + com.google.type.LocalizedTextOrBuilder getDurationOrBuilder(); + + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return Whether the staticDuration field is set. + */ + boolean hasStaticDuration(); + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return The staticDuration. + */ + com.google.type.LocalizedText getStaticDuration(); + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder(); + + /** + *
+     * Transit fare represented in text form.
+     * 
+ * + * .google.type.LocalizedText transit_fare = 4; + * @return Whether the transitFare field is set. + */ + boolean hasTransitFare(); + /** + *
+     * Transit fare represented in text form.
+     * 
+ * + * .google.type.LocalizedText transit_fare = 4; + * @return The transitFare. + */ + com.google.type.LocalizedText getTransitFare(); + /** + *
+     * Transit fare represented in text form.
+     * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + com.google.type.LocalizedTextOrBuilder getTransitFareOrBuilder(); + } + /** + *
+   * Text representations of certain properties.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.Route.RouteLocalizedValues} + */ + public static final class RouteLocalizedValues extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.Route.RouteLocalizedValues) + RouteLocalizedValuesOrBuilder { + private static final long serialVersionUID = 0L; + // Use RouteLocalizedValues.newBuilder() to construct. + private RouteLocalizedValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RouteLocalizedValues() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RouteLocalizedValues(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.Route.RouteLocalizedValues.class, com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder.class); + } + + public static final int DISTANCE_FIELD_NUMBER = 1; + private com.google.type.LocalizedText distance_; + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return distance_ != null; + } + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return The distance. + */ + @java.lang.Override + public com.google.type.LocalizedText getDistance() { + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; + } + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; + } + + public static final int DURATION_FIELD_NUMBER = 2; + private com.google.type.LocalizedText duration_; + /** + *
+     * Duration taking traffic conditions into consideration, represented in
+     * text form. Note: If you did not request traffic information, this value
+     * will be the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + * @return Whether the duration field is set. + */ + @java.lang.Override + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * Duration taking traffic conditions into consideration, represented in
+     * text form. Note: If you did not request traffic information, this value
+     * will be the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + * @return The duration. + */ + @java.lang.Override + public com.google.type.LocalizedText getDuration() { + return duration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : duration_; + } + /** + *
+     * Duration taking traffic conditions into consideration, represented in
+     * text form. Note: If you did not request traffic information, this value
+     * will be the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() { + return duration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : duration_; + } + + public static final int STATIC_DURATION_FIELD_NUMBER = 3; + private com.google.type.LocalizedText staticDuration_; + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return Whether the staticDuration field is set. + */ + @java.lang.Override + public boolean hasStaticDuration() { + return staticDuration_ != null; + } + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return The staticDuration. + */ + @java.lang.Override + public com.google.type.LocalizedText getStaticDuration() { + return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() { + return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } + + public static final int TRANSIT_FARE_FIELD_NUMBER = 4; + private com.google.type.LocalizedText transitFare_; + /** + *
+     * Transit fare represented in text form.
+     * 
+ * + * .google.type.LocalizedText transit_fare = 4; + * @return Whether the transitFare field is set. + */ + @java.lang.Override + public boolean hasTransitFare() { + return transitFare_ != null; + } + /** + *
+     * Transit fare represented in text form.
+     * 
+ * + * .google.type.LocalizedText transit_fare = 4; + * @return The transitFare. + */ + @java.lang.Override + public com.google.type.LocalizedText getTransitFare() { + return transitFare_ == null ? com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + } + /** + *
+     * Transit fare represented in text form.
+     * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getTransitFareOrBuilder() { + return transitFare_ == null ? com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + } + + 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 (distance_ != null) { + output.writeMessage(1, getDistance()); + } + if (duration_ != null) { + output.writeMessage(2, getDuration()); + } + if (staticDuration_ != null) { + output.writeMessage(3, getStaticDuration()); + } + if (transitFare_ != null) { + output.writeMessage(4, getTransitFare()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (distance_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDistance()); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDuration()); + } + if (staticDuration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStaticDuration()); + } + if (transitFare_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTransitFare()); + } + 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.maps.routing.v2.Route.RouteLocalizedValues)) { + return super.equals(obj); + } + com.google.maps.routing.v2.Route.RouteLocalizedValues other = (com.google.maps.routing.v2.Route.RouteLocalizedValues) obj; + + if (hasDistance() != other.hasDistance()) return false; + if (hasDistance()) { + if (!getDistance() + .equals(other.getDistance())) return false; + } + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) return false; + } + if (hasStaticDuration() != other.hasStaticDuration()) return false; + if (hasStaticDuration()) { + if (!getStaticDuration() + .equals(other.getStaticDuration())) return false; + } + if (hasTransitFare() != other.hasTransitFare()) return false; + if (hasTransitFare()) { + if (!getTransitFare() + .equals(other.getTransitFare())) 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(); + if (hasDistance()) { + hash = (37 * hash) + DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + getDistance().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasStaticDuration()) { + hash = (37 * hash) + STATIC_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getStaticDuration().hashCode(); + } + if (hasTransitFare()) { + hash = (37 * hash) + TRANSIT_FARE_FIELD_NUMBER; + hash = (53 * hash) + getTransitFare().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.Route.RouteLocalizedValues parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.Route.RouteLocalizedValues parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.Route.RouteLocalizedValues parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.Route.RouteLocalizedValues 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.maps.routing.v2.Route.RouteLocalizedValues parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.Route.RouteLocalizedValues parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.Route.RouteLocalizedValues parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.Route.RouteLocalizedValues 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.maps.routing.v2.Route.RouteLocalizedValues parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.Route.RouteLocalizedValues 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.maps.routing.v2.Route.RouteLocalizedValues parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.Route.RouteLocalizedValues 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.maps.routing.v2.Route.RouteLocalizedValues 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; + } + /** + *
+     * Text representations of certain properties.
+     * 
+ * + * Protobuf type {@code google.maps.routing.v2.Route.RouteLocalizedValues} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.Route.RouteLocalizedValues) + com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.Route.RouteLocalizedValues.class, com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder.class); + } + + // Construct using com.google.maps.routing.v2.Route.RouteLocalizedValues.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + distance_ = null; + if (distanceBuilder_ != null) { + distanceBuilder_.dispose(); + distanceBuilder_ = null; + } + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + transitFare_ = null; + if (transitFareBuilder_ != null) { + transitFareBuilder_.dispose(); + transitFareBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.Route.RouteLocalizedValues getDefaultInstanceForType() { + return com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.Route.RouteLocalizedValues build() { + com.google.maps.routing.v2.Route.RouteLocalizedValues result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.Route.RouteLocalizedValues buildPartial() { + com.google.maps.routing.v2.Route.RouteLocalizedValues result = new com.google.maps.routing.v2.Route.RouteLocalizedValues(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.Route.RouteLocalizedValues result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.distance_ = distanceBuilder_ == null + ? distance_ + : distanceBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.duration_ = durationBuilder_ == null + ? duration_ + : durationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.staticDuration_ = staticDurationBuilder_ == null + ? staticDuration_ + : staticDurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.transitFare_ = transitFareBuilder_ == null + ? transitFare_ + : transitFareBuilder_.build(); + } + } + + @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.maps.routing.v2.Route.RouteLocalizedValues) { + return mergeFrom((com.google.maps.routing.v2.Route.RouteLocalizedValues)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.Route.RouteLocalizedValues other) { + if (other == com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance()) return this; + if (other.hasDistance()) { + mergeDistance(other.getDistance()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasStaticDuration()) { + mergeStaticDuration(other.getStaticDuration()); + } + if (other.hasTransitFare()) { + mergeTransitFare(other.getTransitFare()); + } + 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 10: { + input.readMessage( + getDistanceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getStaticDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getTransitFareFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.type.LocalizedText distance_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> distanceBuilder_; + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + * @return Whether the distance field is set. + */ + public boolean hasDistance() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + * @return The distance. + */ + public com.google.type.LocalizedText getDistance() { + if (distanceBuilder_ == null) { + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; + } else { + return distanceBuilder_.getMessage(); + } + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder setDistance(com.google.type.LocalizedText value) { + if (distanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + distance_ = value; + } else { + distanceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder setDistance( + com.google.type.LocalizedText.Builder builderForValue) { + if (distanceBuilder_ == null) { + distance_ = builderForValue.build(); + } else { + distanceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder mergeDistance(com.google.type.LocalizedText value) { + if (distanceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + distance_ != null && + distance_ != com.google.type.LocalizedText.getDefaultInstance()) { + getDistanceBuilder().mergeFrom(value); + } else { + distance_ = value; + } + } else { + distanceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder clearDistance() { + bitField0_ = (bitField0_ & ~0x00000001); + distance_ = null; + if (distanceBuilder_ != null) { + distanceBuilder_.dispose(); + distanceBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public com.google.type.LocalizedText.Builder getDistanceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDistanceFieldBuilder().getBuilder(); + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { + if (distanceBuilder_ != null) { + return distanceBuilder_.getMessageOrBuilder(); + } else { + return distance_ == null ? + com.google.type.LocalizedText.getDefaultInstance() : distance_; + } + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + getDistanceFieldBuilder() { + if (distanceBuilder_ == null) { + distanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( + getDistance(), + getParentForChildren(), + isClean()); + distance_ = null; + } + return distanceBuilder_; + } + + private com.google.type.LocalizedText duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> durationBuilder_; + /** + *
+       * Duration taking traffic conditions into consideration, represented in
+       * text form. Note: If you did not request traffic information, this value
+       * will be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + * @return Whether the duration field is set. + */ + public boolean hasDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * Duration taking traffic conditions into consideration, represented in
+       * text form. Note: If you did not request traffic information, this value
+       * will be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + * @return The duration. + */ + public com.google.type.LocalizedText getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * Duration taking traffic conditions into consideration, represented in
+       * text form. Note: If you did not request traffic information, this value
+       * will be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public Builder setDuration(com.google.type.LocalizedText value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + } else { + durationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Duration taking traffic conditions into consideration, represented in
+       * text form. Note: If you did not request traffic information, this value
+       * will be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public Builder setDuration( + com.google.type.LocalizedText.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Duration taking traffic conditions into consideration, represented in
+       * text form. Note: If you did not request traffic information, this value
+       * will be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public Builder mergeDuration(com.google.type.LocalizedText value) { + if (durationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + duration_ != null && + duration_ != com.google.type.LocalizedText.getDefaultInstance()) { + getDurationBuilder().mergeFrom(value); + } else { + duration_ = value; + } + } else { + durationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Duration taking traffic conditions into consideration, represented in
+       * text form. Note: If you did not request traffic information, this value
+       * will be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public Builder clearDuration() { + bitField0_ = (bitField0_ & ~0x00000002); + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Duration taking traffic conditions into consideration, represented in
+       * text form. Note: If you did not request traffic information, this value
+       * will be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public com.google.type.LocalizedText.Builder getDurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * Duration taking traffic conditions into consideration, represented in
+       * text form. Note: If you did not request traffic information, this value
+       * will be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.type.LocalizedText.getDefaultInstance() : duration_; + } + } + /** + *
+       * Duration taking traffic conditions into consideration, represented in
+       * text form. Note: If you did not request traffic information, this value
+       * will be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + + private com.google.type.LocalizedText staticDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> staticDurationBuilder_; + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return Whether the staticDuration field is set. + */ + public boolean hasStaticDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return The staticDuration. + */ + public com.google.type.LocalizedText getStaticDuration() { + if (staticDurationBuilder_ == null) { + return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } else { + return staticDurationBuilder_.getMessage(); + } + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder setStaticDuration(com.google.type.LocalizedText value) { + if (staticDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + staticDuration_ = value; + } else { + staticDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder setStaticDuration( + com.google.type.LocalizedText.Builder builderForValue) { + if (staticDurationBuilder_ == null) { + staticDuration_ = builderForValue.build(); + } else { + staticDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder mergeStaticDuration(com.google.type.LocalizedText value) { + if (staticDurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + staticDuration_ != null && + staticDuration_ != com.google.type.LocalizedText.getDefaultInstance()) { + getStaticDurationBuilder().mergeFrom(value); + } else { + staticDuration_ = value; + } + } else { + staticDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder clearStaticDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public com.google.type.LocalizedText.Builder getStaticDurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStaticDurationFieldBuilder().getBuilder(); + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() { + if (staticDurationBuilder_ != null) { + return staticDurationBuilder_.getMessageOrBuilder(); + } else { + return staticDuration_ == null ? + com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + getStaticDurationFieldBuilder() { + if (staticDurationBuilder_ == null) { + staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( + getStaticDuration(), + getParentForChildren(), + isClean()); + staticDuration_ = null; + } + return staticDurationBuilder_; + } + + private com.google.type.LocalizedText transitFare_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> transitFareBuilder_; + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + * @return Whether the transitFare field is set. + */ + public boolean hasTransitFare() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + * @return The transitFare. + */ + public com.google.type.LocalizedText getTransitFare() { + if (transitFareBuilder_ == null) { + return transitFare_ == null ? com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + } else { + return transitFareBuilder_.getMessage(); + } + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + public Builder setTransitFare(com.google.type.LocalizedText value) { + if (transitFareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transitFare_ = value; + } else { + transitFareBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + public Builder setTransitFare( + com.google.type.LocalizedText.Builder builderForValue) { + if (transitFareBuilder_ == null) { + transitFare_ = builderForValue.build(); + } else { + transitFareBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + public Builder mergeTransitFare(com.google.type.LocalizedText value) { + if (transitFareBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + transitFare_ != null && + transitFare_ != com.google.type.LocalizedText.getDefaultInstance()) { + getTransitFareBuilder().mergeFrom(value); + } else { + transitFare_ = value; + } + } else { + transitFareBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + public Builder clearTransitFare() { + bitField0_ = (bitField0_ & ~0x00000008); + transitFare_ = null; + if (transitFareBuilder_ != null) { + transitFareBuilder_.dispose(); + transitFareBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + public com.google.type.LocalizedText.Builder getTransitFareBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getTransitFareFieldBuilder().getBuilder(); + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + public com.google.type.LocalizedTextOrBuilder getTransitFareOrBuilder() { + if (transitFareBuilder_ != null) { + return transitFareBuilder_.getMessageOrBuilder(); + } else { + return transitFare_ == null ? + com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + } + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + getTransitFareFieldBuilder() { + if (transitFareBuilder_ == null) { + transitFareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( + getTransitFare(), + getParentForChildren(), + isClean()); + transitFare_ = null; + } + return transitFareBuilder_; + } + @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.maps.routing.v2.Route.RouteLocalizedValues) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.Route.RouteLocalizedValues) + private static final com.google.maps.routing.v2.Route.RouteLocalizedValues DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.Route.RouteLocalizedValues(); + } + + public static com.google.maps.routing.v2.Route.RouteLocalizedValues getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouteLocalizedValues 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.maps.routing.v2.Route.RouteLocalizedValues getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int ROUTE_LABELS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private java.util.List routeLabels_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.maps.routing.v2.RouteLabel> routeLabels_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.maps.routing.v2.RouteLabel>() { + public com.google.maps.routing.v2.RouteLabel convert(java.lang.Integer from) { + com.google.maps.routing.v2.RouteLabel result = com.google.maps.routing.v2.RouteLabel.forNumber(from); + return result == null ? com.google.maps.routing.v2.RouteLabel.UNRECOGNIZED : result; + } + }; + /** + *
+   * Labels for the `Route` that are useful to identify specific properties
+   * of the route to compare against others.
+   * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @return A list containing the routeLabels. + */ + @java.lang.Override + public java.util.List getRouteLabelsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.maps.routing.v2.RouteLabel>(routeLabels_, routeLabels_converter_); + } + /** + *
+   * Labels for the `Route` that are useful to identify specific properties
+   * of the route to compare against others.
+   * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @return The count of routeLabels. + */ + @java.lang.Override + public int getRouteLabelsCount() { + return routeLabels_.size(); + } + /** + *
+   * Labels for the `Route` that are useful to identify specific properties
+   * of the route to compare against others.
+   * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @param index The index of the element to return. + * @return The routeLabels at the given index. + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLabel getRouteLabels(int index) { + return routeLabels_converter_.convert(routeLabels_.get(index)); + } + /** + *
+   * Labels for the `Route` that are useful to identify specific properties
+   * of the route to compare against others.
+   * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @return A list containing the enum numeric values on the wire for routeLabels. + */ + @java.lang.Override + public java.util.List + getRouteLabelsValueList() { + return routeLabels_; + } + /** + *
+   * Labels for the `Route` that are useful to identify specific properties
+   * of the route to compare against others.
+   * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of routeLabels at the given index. + */ + @java.lang.Override + public int getRouteLabelsValue(int index) { + return routeLabels_.get(index); + } + private int routeLabelsMemoizedSerializedSize; + + public static final int LEGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List legs_; + /** + *
+   * A collection of legs (path segments between waypoints) that make up the
+   * route. Each leg corresponds to the trip between two non-`via`
+   * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+   * intermediate waypoints has only one leg. A route that includes one
+   * non-`via` intermediate waypoint has two legs. A route that includes one
+   * `via` intermediate waypoint has one leg. The order of the legs matches the
+   * order of waypoints from `origin` to `intermediates` to `destination`.
+   * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + @java.lang.Override + public java.util.List getLegsList() { + return legs_; + } + /** + *
+   * A collection of legs (path segments between waypoints) that make up the
+   * route. Each leg corresponds to the trip between two non-`via`
+   * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+   * intermediate waypoints has only one leg. A route that includes one
+   * non-`via` intermediate waypoint has two legs. A route that includes one
+   * `via` intermediate waypoint has one leg. The order of the legs matches the
+   * order of waypoints from `origin` to `intermediates` to `destination`.
+   * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + @java.lang.Override + public java.util.List + getLegsOrBuilderList() { + return legs_; + } + /** + *
+   * A collection of legs (path segments between waypoints) that make up the
+   * route. Each leg corresponds to the trip between two non-`via`
+   * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+   * intermediate waypoints has only one leg. A route that includes one
+   * non-`via` intermediate waypoint has two legs. A route that includes one
+   * `via` intermediate waypoint has one leg. The order of the legs matches the
+   * order of waypoints from `origin` to `intermediates` to `destination`.
+   * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + @java.lang.Override + public int getLegsCount() { + return legs_.size(); + } + /** + *
+   * A collection of legs (path segments between waypoints) that make up the
+   * route. Each leg corresponds to the trip between two non-`via`
+   * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+   * intermediate waypoints has only one leg. A route that includes one
+   * non-`via` intermediate waypoint has two legs. A route that includes one
+   * `via` intermediate waypoint has one leg. The order of the legs matches the
+   * order of waypoints from `origin` to `intermediates` to `destination`.
+   * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg getLegs(int index) { + return legs_.get(index); + } + /** + *
+   * A collection of legs (path segments between waypoints) that make up the
+   * route. Each leg corresponds to the trip between two non-`via`
+   * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+   * intermediate waypoints has only one leg. A route that includes one
+   * non-`via` intermediate waypoint has two legs. A route that includes one
+   * `via` intermediate waypoint has one leg. The order of the legs matches the
+   * order of waypoints from `origin` to `intermediates` to `destination`.
+   * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder( + int index) { + return legs_.get(index); + } + + public static final int DISTANCE_METERS_FIELD_NUMBER = 2; + private int distanceMeters_ = 0; + /** + *
+   * The travel distance of the route, in meters.
+   * 
+ * + * int32 distance_meters = 2; + * @return The distanceMeters. + */ + @java.lang.Override + public int getDistanceMeters() { + return distanceMeters_; + } + + public static final int DURATION_FIELD_NUMBER = 3; + private com.google.protobuf.Duration duration_; + /** + *
+   * The length of time needed to navigate the route. If you set the
+   * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
+   * `static_duration`. If you set the `routing_preference` to either
+   * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
+   * taking traffic conditions into account.
+   * 
+ * + * .google.protobuf.Duration duration = 3; + * @return Whether the duration field is set. + */ + @java.lang.Override + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+   * The length of time needed to navigate the route. If you set the
+   * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
+   * `static_duration`. If you set the `routing_preference` to either
+   * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
+   * taking traffic conditions into account.
+   * 
+ * + * .google.protobuf.Duration duration = 3; + * @return The duration. + */ + @java.lang.Override + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+   * The length of time needed to navigate the route. If you set the
+   * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
+   * `static_duration`. If you set the `routing_preference` to either
+   * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
+   * taking traffic conditions into account.
+   * 
+ * + * .google.protobuf.Duration duration = 3; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + + public static final int STATIC_DURATION_FIELD_NUMBER = 4; + private com.google.protobuf.Duration staticDuration_; + /** + *
+   * The duration of travel through the route without taking traffic
+   * conditions into consideration.
+   * 
+ * + * .google.protobuf.Duration static_duration = 4; + * @return Whether the staticDuration field is set. + */ + @java.lang.Override + public boolean hasStaticDuration() { + return staticDuration_ != null; + } + /** + *
+   * The duration of travel through the route without taking traffic
+   * conditions into consideration.
+   * 
+ * + * .google.protobuf.Duration static_duration = 4; + * @return The staticDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getStaticDuration() { + return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } + /** + *
+   * The duration of travel through the route without taking traffic
+   * conditions into consideration.
+   * 
+ * + * .google.protobuf.Duration static_duration = 4; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { + return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } + + public static final int POLYLINE_FIELD_NUMBER = 5; + private com.google.maps.routing.v2.Polyline polyline_; + /** + *
+   * The overall route polyline. This polyline is the combined polyline of
+   * all `legs`.
+   * 
+ * + * .google.maps.routing.v2.Polyline polyline = 5; + * @return Whether the polyline field is set. + */ + @java.lang.Override + public boolean hasPolyline() { + return polyline_ != null; + } + /** + *
+   * The overall route polyline. This polyline is the combined polyline of
+   * all `legs`.
+   * 
+ * + * .google.maps.routing.v2.Polyline polyline = 5; + * @return The polyline. + */ + @java.lang.Override + public com.google.maps.routing.v2.Polyline getPolyline() { + return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + } + /** + *
+   * The overall route polyline. This polyline is the combined polyline of
+   * all `legs`.
+   * 
+ * + * .google.maps.routing.v2.Polyline polyline = 5; + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { + return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + *
+   * A description of the route.
+   * 
+ * + * string description = 6; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+   * A description of the route.
+   * 
+ * + * string description = 6; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WARNINGS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList warnings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + *
+   * An array of warnings to show when displaying the route.
+   * 
+ * + * repeated string warnings = 7; + * @return A list containing the warnings. + */ + public com.google.protobuf.ProtocolStringList + getWarningsList() { + return warnings_; + } + /** + *
+   * An array of warnings to show when displaying the route.
+   * 
+ * + * repeated string warnings = 7; + * @return The count of warnings. + */ + public int getWarningsCount() { + return warnings_.size(); + } + /** + *
+   * An array of warnings to show when displaying the route.
+   * 
+ * + * repeated string warnings = 7; + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + public java.lang.String getWarnings(int index) { + return warnings_.get(index); + } + /** + *
+   * An array of warnings to show when displaying the route.
+   * 
+ * + * repeated string warnings = 7; + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + public com.google.protobuf.ByteString + getWarningsBytes(int index) { + return warnings_.getByteString(index); + } + + public static final int VIEWPORT_FIELD_NUMBER = 8; + private com.google.geo.type.Viewport viewport_; + /** + *
+   * The viewport bounding box of the polyline.
+   * 
+ * + * .google.geo.type.Viewport viewport = 8; + * @return Whether the viewport field is set. + */ + @java.lang.Override + public boolean hasViewport() { + return viewport_ != null; + } + /** + *
+   * The viewport bounding box of the polyline.
+   * 
+ * + * .google.geo.type.Viewport viewport = 8; + * @return The viewport. + */ + @java.lang.Override + public com.google.geo.type.Viewport getViewport() { + return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; + } + /** + *
+   * The viewport bounding box of the polyline.
+   * 
+ * + * .google.geo.type.Viewport viewport = 8; + */ + @java.lang.Override + public com.google.geo.type.ViewportOrBuilder getViewportOrBuilder() { + return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; + } + + public static final int TRAVEL_ADVISORY_FIELD_NUMBER = 9; + private com.google.maps.routing.v2.RouteTravelAdvisory travelAdvisory_; + /** + *
+   * Additional information about the route.
+   * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + * @return Whether the travelAdvisory field is set. + */ + @java.lang.Override + public boolean hasTravelAdvisory() { + return travelAdvisory_ != null; + } + /** + *
+   * Additional information about the route.
+   * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + * @return The travelAdvisory. + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory() { + return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } + /** + *
+   * Additional information about the route.
+   * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() { + return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } + + public static final int OPTIMIZED_INTERMEDIATE_WAYPOINT_INDEX_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList optimizedIntermediateWaypointIndex_; + /** + *
+   * If you set
+   * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
+   * to true, this field contains the optimized ordering of intermediate
+   * waypoints. Otherwise, this field is empty.
+   * For example, if you give an input of Origin: LA; Intermediate waypoints:
+   * Dallas, Bangor, Phoenix; Destination: New York; and the optimized
+   * intermediate waypoint order is Phoenix, Dallas, Bangor, then this field
+   * contains the values [2, 0, 1]. The index starts with 0 for the first
+   * intermediate waypoint provided in the input.
+   * 
+ * + * repeated int32 optimized_intermediate_waypoint_index = 10; + * @return A list containing the optimizedIntermediateWaypointIndex. + */ + @java.lang.Override + public java.util.List + getOptimizedIntermediateWaypointIndexList() { + return optimizedIntermediateWaypointIndex_; + } + /** + *
+   * If you set
+   * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
+   * to true, this field contains the optimized ordering of intermediate
+   * waypoints. Otherwise, this field is empty.
+   * For example, if you give an input of Origin: LA; Intermediate waypoints:
+   * Dallas, Bangor, Phoenix; Destination: New York; and the optimized
+   * intermediate waypoint order is Phoenix, Dallas, Bangor, then this field
+   * contains the values [2, 0, 1]. The index starts with 0 for the first
+   * intermediate waypoint provided in the input.
+   * 
+ * + * repeated int32 optimized_intermediate_waypoint_index = 10; + * @return The count of optimizedIntermediateWaypointIndex. + */ + public int getOptimizedIntermediateWaypointIndexCount() { + return optimizedIntermediateWaypointIndex_.size(); + } + /** + *
+   * If you set
+   * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
+   * to true, this field contains the optimized ordering of intermediate
+   * waypoints. Otherwise, this field is empty.
+   * For example, if you give an input of Origin: LA; Intermediate waypoints:
+   * Dallas, Bangor, Phoenix; Destination: New York; and the optimized
+   * intermediate waypoint order is Phoenix, Dallas, Bangor, then this field
+   * contains the values [2, 0, 1]. The index starts with 0 for the first
+   * intermediate waypoint provided in the input.
+   * 
+ * + * repeated int32 optimized_intermediate_waypoint_index = 10; + * @param index The index of the element to return. + * @return The optimizedIntermediateWaypointIndex at the given index. + */ + public int getOptimizedIntermediateWaypointIndex(int index) { + return optimizedIntermediateWaypointIndex_.getInt(index); + } + private int optimizedIntermediateWaypointIndexMemoizedSerializedSize = -1; + + public static final int LOCALIZED_VALUES_FIELD_NUMBER = 11; + private com.google.maps.routing.v2.Route.RouteLocalizedValues localizedValues_; + /** + *
+   * Text representations of properties of the `Route`.
+   * 
+ * + * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + * @return Whether the localizedValues field is set. + */ + @java.lang.Override + public boolean hasLocalizedValues() { + return localizedValues_ != null; + } + /** + *
+   * Text representations of properties of the `Route`.
+   * 
+ * + * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + * @return The localizedValues. + */ + @java.lang.Override + public com.google.maps.routing.v2.Route.RouteLocalizedValues getLocalizedValues() { + return localizedValues_ == null ? com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance() : localizedValues_; + } + /** + *
+   * Text representations of properties of the `Route`.
+   * 
+ * + * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + */ + @java.lang.Override + public com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { + return localizedValues_ == null ? com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance() : localizedValues_; + } + + public static final int ROUTE_TOKEN_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object routeToken_ = ""; + /** + *
+   * A web-safe, base64-encoded route token that can be passed to the Navigation
+   * SDK, that allows the Navigation SDK to reconstruct the route during
+   * navigation, and, in the event of rerouting, honor the original intention
+   * when you created the route by calling ComputeRoutes. Customers should treat
+   * this token as an opaque blob. It is not meant for reading or mutating.
+   * NOTE: `Route.route_token` is only available for requests that have set
+   * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
+   * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
+   * that have Via waypoints.
+   * 
+ * + * string route_token = 12; + * @return The routeToken. + */ + @java.lang.Override + public java.lang.String getRouteToken() { + java.lang.Object ref = routeToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + routeToken_ = s; + return s; + } + } + /** + *
+   * A web-safe, base64-encoded route token that can be passed to the Navigation
+   * SDK, that allows the Navigation SDK to reconstruct the route during
+   * navigation, and, in the event of rerouting, honor the original intention
+   * when you created the route by calling ComputeRoutes. Customers should treat
+   * this token as an opaque blob. It is not meant for reading or mutating.
+   * NOTE: `Route.route_token` is only available for requests that have set
+   * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
+   * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
+   * that have Via waypoints.
+   * 
+ * + * string route_token = 12; + * @return The bytes for routeToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getRouteTokenBytes() { + java.lang.Object ref = routeToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + routeToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + getSerializedSize(); + for (int i = 0; i < legs_.size(); i++) { + output.writeMessage(1, legs_.get(i)); + } + if (distanceMeters_ != 0) { + output.writeInt32(2, distanceMeters_); + } + if (duration_ != null) { + output.writeMessage(3, getDuration()); + } + if (staticDuration_ != null) { + output.writeMessage(4, getStaticDuration()); + } + if (polyline_ != null) { + output.writeMessage(5, getPolyline()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, description_); + } + for (int i = 0; i < warnings_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, warnings_.getRaw(i)); + } + if (viewport_ != null) { + output.writeMessage(8, getViewport()); + } + if (travelAdvisory_ != null) { + output.writeMessage(9, getTravelAdvisory()); + } + if (getOptimizedIntermediateWaypointIndexList().size() > 0) { + output.writeUInt32NoTag(82); + output.writeUInt32NoTag(optimizedIntermediateWaypointIndexMemoizedSerializedSize); + } + for (int i = 0; i < optimizedIntermediateWaypointIndex_.size(); i++) { + output.writeInt32NoTag(optimizedIntermediateWaypointIndex_.getInt(i)); + } + if (localizedValues_ != null) { + output.writeMessage(11, getLocalizedValues()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, routeToken_); + } + if (getRouteLabelsList().size() > 0) { + output.writeUInt32NoTag(106); + output.writeUInt32NoTag(routeLabelsMemoizedSerializedSize); + } + for (int i = 0; i < routeLabels_.size(); i++) { + output.writeEnumNoTag(routeLabels_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < legs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, legs_.get(i)); + } + if (distanceMeters_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, distanceMeters_); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDuration()); + } + if (staticDuration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStaticDuration()); + } + if (polyline_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getPolyline()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); + } + { + int dataSize = 0; + for (int i = 0; i < warnings_.size(); i++) { + dataSize += computeStringSizeNoTag(warnings_.getRaw(i)); + } + size += dataSize; + size += 1 * getWarningsList().size(); + } + if (viewport_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getViewport()); + } + if (travelAdvisory_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getTravelAdvisory()); + } + { + int dataSize = 0; + for (int i = 0; i < optimizedIntermediateWaypointIndex_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(optimizedIntermediateWaypointIndex_.getInt(i)); + } + size += dataSize; + if (!getOptimizedIntermediateWaypointIndexList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + optimizedIntermediateWaypointIndexMemoizedSerializedSize = dataSize; + } + if (localizedValues_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getLocalizedValues()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, routeToken_); + } + { + int dataSize = 0; + for (int i = 0; i < routeLabels_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(routeLabels_.get(i)); + } + size += dataSize; + if (!getRouteLabelsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }routeLabelsMemoizedSerializedSize = dataSize; + } + 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.maps.routing.v2.Route)) { + return super.equals(obj); + } + com.google.maps.routing.v2.Route other = (com.google.maps.routing.v2.Route) obj; + + if (!routeLabels_.equals(other.routeLabels_)) return false; + if (!getLegsList() + .equals(other.getLegsList())) return false; + if (getDistanceMeters() + != other.getDistanceMeters()) return false; + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) return false; + } + if (hasStaticDuration() != other.hasStaticDuration()) return false; + if (hasStaticDuration()) { + if (!getStaticDuration() + .equals(other.getStaticDuration())) return false; + } + if (hasPolyline() != other.hasPolyline()) return false; + if (hasPolyline()) { + if (!getPolyline() + .equals(other.getPolyline())) return false; + } + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getWarningsList() + .equals(other.getWarningsList())) return false; + if (hasViewport() != other.hasViewport()) return false; + if (hasViewport()) { + if (!getViewport() + .equals(other.getViewport())) return false; + } + if (hasTravelAdvisory() != other.hasTravelAdvisory()) return false; + if (hasTravelAdvisory()) { + if (!getTravelAdvisory() + .equals(other.getTravelAdvisory())) return false; + } + if (!getOptimizedIntermediateWaypointIndexList() + .equals(other.getOptimizedIntermediateWaypointIndexList())) return false; + if (hasLocalizedValues() != other.hasLocalizedValues()) return false; + if (hasLocalizedValues()) { + if (!getLocalizedValues() + .equals(other.getLocalizedValues())) return false; + } + if (!getRouteToken() + .equals(other.getRouteToken())) 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(); + if (getRouteLabelsCount() > 0) { + hash = (37 * hash) + ROUTE_LABELS_FIELD_NUMBER; + hash = (53 * hash) + routeLabels_.hashCode(); + } + if (getLegsCount() > 0) { + hash = (37 * hash) + LEGS_FIELD_NUMBER; + hash = (53 * hash) + getLegsList().hashCode(); + } + hash = (37 * hash) + DISTANCE_METERS_FIELD_NUMBER; + hash = (53 * hash) + getDistanceMeters(); + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasStaticDuration()) { + hash = (37 * hash) + STATIC_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getStaticDuration().hashCode(); + } + if (hasPolyline()) { + hash = (37 * hash) + POLYLINE_FIELD_NUMBER; + hash = (53 * hash) + getPolyline().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getWarningsCount() > 0) { + hash = (37 * hash) + WARNINGS_FIELD_NUMBER; + hash = (53 * hash) + getWarningsList().hashCode(); + } + if (hasViewport()) { + hash = (37 * hash) + VIEWPORT_FIELD_NUMBER; + hash = (53 * hash) + getViewport().hashCode(); + } + if (hasTravelAdvisory()) { + hash = (37 * hash) + TRAVEL_ADVISORY_FIELD_NUMBER; + hash = (53 * hash) + getTravelAdvisory().hashCode(); + } + if (getOptimizedIntermediateWaypointIndexCount() > 0) { + hash = (37 * hash) + OPTIMIZED_INTERMEDIATE_WAYPOINT_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getOptimizedIntermediateWaypointIndexList().hashCode(); + } + if (hasLocalizedValues()) { + hash = (37 * hash) + LOCALIZED_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getLocalizedValues().hashCode(); + } + hash = (37 * hash) + ROUTE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getRouteToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.Route parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.Route parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.Route parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.Route 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.maps.routing.v2.Route parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.Route parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.Route parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.Route 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.maps.routing.v2.Route parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.Route 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.maps.routing.v2.Route parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.Route 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.maps.routing.v2.Route 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; + } + /** + *
+   * Contains a route, which consists of a series of connected road segments
+   * that join beginning, ending, and intermediate waypoints.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.Route} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.Route) + com.google.maps.routing.v2.RouteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.Route.class, com.google.maps.routing.v2.Route.Builder.class); + } + + // Construct using com.google.maps.routing.v2.Route.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + routeLabels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + if (legsBuilder_ == null) { + legs_ = java.util.Collections.emptyList(); + } else { + legs_ = null; + legsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + distanceMeters_ = 0; + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + polyline_ = null; + if (polylineBuilder_ != null) { + polylineBuilder_.dispose(); + polylineBuilder_ = null; + } + description_ = ""; + warnings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + viewport_ = null; + if (viewportBuilder_ != null) { + viewportBuilder_.dispose(); + viewportBuilder_ = null; + } + travelAdvisory_ = null; + if (travelAdvisoryBuilder_ != null) { + travelAdvisoryBuilder_.dispose(); + travelAdvisoryBuilder_ = null; + } + optimizedIntermediateWaypointIndex_ = emptyIntList(); + localizedValues_ = null; + if (localizedValuesBuilder_ != null) { + localizedValuesBuilder_.dispose(); + localizedValuesBuilder_ = null; + } + routeToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.Route getDefaultInstanceForType() { + return com.google.maps.routing.v2.Route.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.Route build() { + com.google.maps.routing.v2.Route result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.Route buildPartial() { + com.google.maps.routing.v2.Route result = new com.google.maps.routing.v2.Route(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.maps.routing.v2.Route result) { + if (((bitField0_ & 0x00000001) != 0)) { + routeLabels_ = java.util.Collections.unmodifiableList(routeLabels_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.routeLabels_ = routeLabels_; + if (legsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + legs_ = java.util.Collections.unmodifiableList(legs_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.legs_ = legs_; + } else { + result.legs_ = legsBuilder_.build(); + } + if (((bitField0_ & 0x00000400) != 0)) { + optimizedIntermediateWaypointIndex_.makeImmutable(); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.optimizedIntermediateWaypointIndex_ = optimizedIntermediateWaypointIndex_; + } + + private void buildPartial0(com.google.maps.routing.v2.Route result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.distanceMeters_ = distanceMeters_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.duration_ = durationBuilder_ == null + ? duration_ + : durationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.staticDuration_ = staticDurationBuilder_ == null + ? staticDuration_ + : staticDurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.polyline_ = polylineBuilder_ == null + ? polyline_ + : polylineBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + warnings_.makeImmutable(); + result.warnings_ = warnings_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.viewport_ = viewportBuilder_ == null + ? viewport_ + : viewportBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.travelAdvisory_ = travelAdvisoryBuilder_ == null + ? travelAdvisory_ + : travelAdvisoryBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.localizedValues_ = localizedValuesBuilder_ == null + ? localizedValues_ + : localizedValuesBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.routeToken_ = routeToken_; + } + } + + @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.maps.routing.v2.Route) { + return mergeFrom((com.google.maps.routing.v2.Route)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.Route other) { + if (other == com.google.maps.routing.v2.Route.getDefaultInstance()) return this; + if (!other.routeLabels_.isEmpty()) { + if (routeLabels_.isEmpty()) { + routeLabels_ = other.routeLabels_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRouteLabelsIsMutable(); + routeLabels_.addAll(other.routeLabels_); + } + onChanged(); + } + if (legsBuilder_ == null) { + if (!other.legs_.isEmpty()) { + if (legs_.isEmpty()) { + legs_ = other.legs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLegsIsMutable(); + legs_.addAll(other.legs_); + } + onChanged(); + } + } else { + if (!other.legs_.isEmpty()) { + if (legsBuilder_.isEmpty()) { + legsBuilder_.dispose(); + legsBuilder_ = null; + legs_ = other.legs_; + bitField0_ = (bitField0_ & ~0x00000002); + legsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getLegsFieldBuilder() : null; + } else { + legsBuilder_.addAllMessages(other.legs_); + } + } + } + if (other.getDistanceMeters() != 0) { + setDistanceMeters(other.getDistanceMeters()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasStaticDuration()) { + mergeStaticDuration(other.getStaticDuration()); + } + if (other.hasPolyline()) { + mergePolyline(other.getPolyline()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.warnings_.isEmpty()) { + if (warnings_.isEmpty()) { + warnings_ = other.warnings_; + bitField0_ |= 0x00000080; + } else { + ensureWarningsIsMutable(); + warnings_.addAll(other.warnings_); + } + onChanged(); + } + if (other.hasViewport()) { + mergeViewport(other.getViewport()); + } + if (other.hasTravelAdvisory()) { + mergeTravelAdvisory(other.getTravelAdvisory()); + } + if (!other.optimizedIntermediateWaypointIndex_.isEmpty()) { + if (optimizedIntermediateWaypointIndex_.isEmpty()) { + optimizedIntermediateWaypointIndex_ = other.optimizedIntermediateWaypointIndex_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureOptimizedIntermediateWaypointIndexIsMutable(); + optimizedIntermediateWaypointIndex_.addAll(other.optimizedIntermediateWaypointIndex_); + } + onChanged(); + } + if (other.hasLocalizedValues()) { + mergeLocalizedValues(other.getLocalizedValues()); + } + if (!other.getRouteToken().isEmpty()) { + routeToken_ = other.routeToken_; + bitField0_ |= 0x00001000; + onChanged(); + } + 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 10: { + com.google.maps.routing.v2.RouteLeg m = + input.readMessage( + com.google.maps.routing.v2.RouteLeg.parser(), + extensionRegistry); + if (legsBuilder_ == null) { + ensureLegsIsMutable(); + legs_.add(m); + } else { + legsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + distanceMeters_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 26: { + input.readMessage( + getDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: { + input.readMessage( + getStaticDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: { + input.readMessage( + getPolylineFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureWarningsIsMutable(); + warnings_.add(s); + break; + } // case 58 + case 66: { + input.readMessage( + getViewportFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: { + input.readMessage( + getTravelAdvisoryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 80: { + int v = input.readInt32(); + ensureOptimizedIntermediateWaypointIndexIsMutable(); + optimizedIntermediateWaypointIndex_.addInt(v); + break; + } // case 80 + case 82: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureOptimizedIntermediateWaypointIndexIsMutable(); + while (input.getBytesUntilLimit() > 0) { + optimizedIntermediateWaypointIndex_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 82 + case 90: { + input.readMessage( + getLocalizedValuesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 98: { + routeToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 98 + case 104: { + int tmpRaw = input.readEnum(); + ensureRouteLabelsIsMutable(); + routeLabels_.add(tmpRaw); + break; + } // case 104 + case 106: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureRouteLabelsIsMutable(); + routeLabels_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 106 + 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 java.util.List routeLabels_ = + java.util.Collections.emptyList(); + private void ensureRouteLabelsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + routeLabels_ = new java.util.ArrayList(routeLabels_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Labels for the `Route` that are useful to identify specific properties
+     * of the route to compare against others.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @return A list containing the routeLabels. + */ + public java.util.List getRouteLabelsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.maps.routing.v2.RouteLabel>(routeLabels_, routeLabels_converter_); + } + /** + *
+     * Labels for the `Route` that are useful to identify specific properties
+     * of the route to compare against others.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @return The count of routeLabels. + */ + public int getRouteLabelsCount() { + return routeLabels_.size(); + } + /** + *
+     * Labels for the `Route` that are useful to identify specific properties
+     * of the route to compare against others.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @param index The index of the element to return. + * @return The routeLabels at the given index. + */ + public com.google.maps.routing.v2.RouteLabel getRouteLabels(int index) { + return routeLabels_converter_.convert(routeLabels_.get(index)); + } + /** + *
+     * Labels for the `Route` that are useful to identify specific properties
+     * of the route to compare against others.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @param index The index to set the value at. + * @param value The routeLabels to set. + * @return This builder for chaining. + */ + public Builder setRouteLabels( + int index, com.google.maps.routing.v2.RouteLabel value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRouteLabelsIsMutable(); + routeLabels_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Labels for the `Route` that are useful to identify specific properties
+     * of the route to compare against others.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @param value The routeLabels to add. + * @return This builder for chaining. + */ + public Builder addRouteLabels(com.google.maps.routing.v2.RouteLabel value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRouteLabelsIsMutable(); + routeLabels_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * Labels for the `Route` that are useful to identify specific properties
+     * of the route to compare against others.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @param values The routeLabels to add. + * @return This builder for chaining. + */ + public Builder addAllRouteLabels( + java.lang.Iterable values) { + ensureRouteLabelsIsMutable(); + for (com.google.maps.routing.v2.RouteLabel value : values) { + routeLabels_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+     * Labels for the `Route` that are useful to identify specific properties
+     * of the route to compare against others.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @return This builder for chaining. + */ + public Builder clearRouteLabels() { + routeLabels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Labels for the `Route` that are useful to identify specific properties
+     * of the route to compare against others.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @return A list containing the enum numeric values on the wire for routeLabels. + */ + public java.util.List + getRouteLabelsValueList() { + return java.util.Collections.unmodifiableList(routeLabels_); + } + /** + *
+     * Labels for the `Route` that are useful to identify specific properties
+     * of the route to compare against others.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of routeLabels at the given index. + */ + public int getRouteLabelsValue(int index) { + return routeLabels_.get(index); + } + /** + *
+     * Labels for the `Route` that are useful to identify specific properties
+     * of the route to compare against others.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for routeLabels to set. + * @return This builder for chaining. + */ + public Builder setRouteLabelsValue( + int index, int value) { + ensureRouteLabelsIsMutable(); + routeLabels_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Labels for the `Route` that are useful to identify specific properties
+     * of the route to compare against others.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @param value The enum numeric value on the wire for routeLabels to add. + * @return This builder for chaining. + */ + public Builder addRouteLabelsValue(int value) { + ensureRouteLabelsIsMutable(); + routeLabels_.add(value); + onChanged(); + return this; + } + /** + *
+     * Labels for the `Route` that are useful to identify specific properties
+     * of the route to compare against others.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * @param values The enum numeric values on the wire for routeLabels to add. + * @return This builder for chaining. + */ + public Builder addAllRouteLabelsValue( + java.lang.Iterable values) { + ensureRouteLabelsIsMutable(); + for (int value : values) { + routeLabels_.add(value); + } + onChanged(); + return this; + } + + private java.util.List legs_ = + java.util.Collections.emptyList(); + private void ensureLegsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + legs_ = new java.util.ArrayList(legs_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.RouteLeg, com.google.maps.routing.v2.RouteLeg.Builder, com.google.maps.routing.v2.RouteLegOrBuilder> legsBuilder_; + + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public java.util.List getLegsList() { + if (legsBuilder_ == null) { + return java.util.Collections.unmodifiableList(legs_); + } else { + return legsBuilder_.getMessageList(); + } + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public int getLegsCount() { + if (legsBuilder_ == null) { + return legs_.size(); + } else { + return legsBuilder_.getCount(); + } + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public com.google.maps.routing.v2.RouteLeg getLegs(int index) { + if (legsBuilder_ == null) { + return legs_.get(index); + } else { + return legsBuilder_.getMessage(index); + } + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public Builder setLegs( + int index, com.google.maps.routing.v2.RouteLeg value) { + if (legsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLegsIsMutable(); + legs_.set(index, value); + onChanged(); + } else { + legsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public Builder setLegs( + int index, com.google.maps.routing.v2.RouteLeg.Builder builderForValue) { + if (legsBuilder_ == null) { + ensureLegsIsMutable(); + legs_.set(index, builderForValue.build()); + onChanged(); + } else { + legsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public Builder addLegs(com.google.maps.routing.v2.RouteLeg value) { + if (legsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLegsIsMutable(); + legs_.add(value); + onChanged(); + } else { + legsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public Builder addLegs( + int index, com.google.maps.routing.v2.RouteLeg value) { + if (legsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLegsIsMutable(); + legs_.add(index, value); + onChanged(); + } else { + legsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public Builder addLegs( + com.google.maps.routing.v2.RouteLeg.Builder builderForValue) { + if (legsBuilder_ == null) { + ensureLegsIsMutable(); + legs_.add(builderForValue.build()); + onChanged(); + } else { + legsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public Builder addLegs( + int index, com.google.maps.routing.v2.RouteLeg.Builder builderForValue) { + if (legsBuilder_ == null) { + ensureLegsIsMutable(); + legs_.add(index, builderForValue.build()); + onChanged(); + } else { + legsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public Builder addAllLegs( + java.lang.Iterable values) { + if (legsBuilder_ == null) { + ensureLegsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, legs_); + onChanged(); + } else { + legsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public Builder clearLegs() { + if (legsBuilder_ == null) { + legs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + legsBuilder_.clear(); + } + return this; + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public Builder removeLegs(int index) { + if (legsBuilder_ == null) { + ensureLegsIsMutable(); + legs_.remove(index); + onChanged(); + } else { + legsBuilder_.remove(index); + } + return this; + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public com.google.maps.routing.v2.RouteLeg.Builder getLegsBuilder( + int index) { + return getLegsFieldBuilder().getBuilder(index); + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder( + int index) { + if (legsBuilder_ == null) { + return legs_.get(index); } else { + return legsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public java.util.List + getLegsOrBuilderList() { + if (legsBuilder_ != null) { + return legsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(legs_); + } + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public com.google.maps.routing.v2.RouteLeg.Builder addLegsBuilder() { + return getLegsFieldBuilder().addBuilder( + com.google.maps.routing.v2.RouteLeg.getDefaultInstance()); + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public com.google.maps.routing.v2.RouteLeg.Builder addLegsBuilder( + int index) { + return getLegsFieldBuilder().addBuilder( + index, com.google.maps.routing.v2.RouteLeg.getDefaultInstance()); + } + /** + *
+     * A collection of legs (path segments between waypoints) that make up the
+     * route. Each leg corresponds to the trip between two non-`via`
+     * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
+     * intermediate waypoints has only one leg. A route that includes one
+     * non-`via` intermediate waypoint has two legs. A route that includes one
+     * `via` intermediate waypoint has one leg. The order of the legs matches the
+     * order of waypoints from `origin` to `intermediates` to `destination`.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg legs = 1; + */ + public java.util.List + getLegsBuilderList() { + return getLegsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.RouteLeg, com.google.maps.routing.v2.RouteLeg.Builder, com.google.maps.routing.v2.RouteLegOrBuilder> + getLegsFieldBuilder() { + if (legsBuilder_ == null) { + legsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.RouteLeg, com.google.maps.routing.v2.RouteLeg.Builder, com.google.maps.routing.v2.RouteLegOrBuilder>( + legs_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + legs_ = null; + } + return legsBuilder_; + } + + private int distanceMeters_ ; + /** + *
+     * The travel distance of the route, in meters.
+     * 
+ * + * int32 distance_meters = 2; + * @return The distanceMeters. + */ + @java.lang.Override + public int getDistanceMeters() { + return distanceMeters_; + } + /** + *
+     * The travel distance of the route, in meters.
+     * 
+ * + * int32 distance_meters = 2; + * @param value The distanceMeters to set. + * @return This builder for chaining. + */ + public Builder setDistanceMeters(int value) { + + distanceMeters_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The travel distance of the route, in meters.
+     * 
+ * + * int32 distance_meters = 2; + * @return This builder for chaining. + */ + public Builder clearDistanceMeters() { + bitField0_ = (bitField0_ & ~0x00000004); + distanceMeters_ = 0; + onChanged(); + return this; + } + + 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_; + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If you set the `routing_preference` to either
+     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
+     * taking traffic conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 3; + * @return Whether the duration field is set. + */ + public boolean hasDuration() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If you set the `routing_preference` to either
+     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
+     * taking traffic conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 3; + * @return The duration. + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If you set the `routing_preference` to either
+     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
+     * taking traffic conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 3; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + } else { + durationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If you set the `routing_preference` to either
+     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
+     * taking traffic conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 3; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If you set the `routing_preference` to either
+     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
+     * taking traffic conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 3; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + duration_ != null && + duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getDurationBuilder().mergeFrom(value); + } else { + duration_ = value; + } + } else { + durationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If you set the `routing_preference` to either
+     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
+     * taking traffic conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 3; + */ + public Builder clearDuration() { + bitField0_ = (bitField0_ & ~0x00000008); + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If you set the `routing_preference` to either
+     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
+     * taking traffic conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 3; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If you set the `routing_preference` to either
+     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
+     * taking traffic conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 3; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If you set the `routing_preference` to either
+     * `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
+     * taking traffic conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + duration_ = null; + } + return durationBuilder_; + } + + private com.google.protobuf.Duration staticDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> staticDurationBuilder_; + /** + *
+     * The duration of travel through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 4; + * @return Whether the staticDuration field is set. + */ + public boolean hasStaticDuration() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * The duration of travel through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 4; + * @return The staticDuration. + */ + public com.google.protobuf.Duration getStaticDuration() { + if (staticDurationBuilder_ == null) { + return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } else { + return staticDurationBuilder_.getMessage(); + } + } + /** + *
+     * The duration of travel through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 4; + */ + public Builder setStaticDuration(com.google.protobuf.Duration value) { + if (staticDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + staticDuration_ = value; + } else { + staticDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The duration of travel through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 4; + */ + public Builder setStaticDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (staticDurationBuilder_ == null) { + staticDuration_ = builderForValue.build(); + } else { + staticDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The duration of travel through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 4; + */ + public Builder mergeStaticDuration(com.google.protobuf.Duration value) { + if (staticDurationBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + staticDuration_ != null && + staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getStaticDurationBuilder().mergeFrom(value); + } else { + staticDuration_ = value; + } + } else { + staticDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The duration of travel through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 4; + */ + public Builder clearStaticDuration() { + bitField0_ = (bitField0_ & ~0x00000010); + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The duration of travel through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 4; + */ + public com.google.protobuf.Duration.Builder getStaticDurationBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getStaticDurationFieldBuilder().getBuilder(); + } + /** + *
+     * The duration of travel through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 4; + */ + public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { + if (staticDurationBuilder_ != null) { + return staticDurationBuilder_.getMessageOrBuilder(); + } else { + return staticDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } + } + /** + *
+     * The duration of travel through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getStaticDurationFieldBuilder() { + if (staticDurationBuilder_ == null) { + staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getStaticDuration(), + getParentForChildren(), + isClean()); + staticDuration_ = null; + } + return staticDurationBuilder_; + } + + private com.google.maps.routing.v2.Polyline polyline_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder> polylineBuilder_; + /** + *
+     * The overall route polyline. This polyline is the combined polyline of
+     * all `legs`.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 5; + * @return Whether the polyline field is set. + */ + public boolean hasPolyline() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * The overall route polyline. This polyline is the combined polyline of
+     * all `legs`.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 5; + * @return The polyline. + */ + public com.google.maps.routing.v2.Polyline getPolyline() { + if (polylineBuilder_ == null) { + return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + } else { + return polylineBuilder_.getMessage(); + } + } + /** + *
+     * The overall route polyline. This polyline is the combined polyline of
+     * all `legs`.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 5; + */ + public Builder setPolyline(com.google.maps.routing.v2.Polyline value) { + if (polylineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + polyline_ = value; + } else { + polylineBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The overall route polyline. This polyline is the combined polyline of
+     * all `legs`.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 5; + */ + public Builder setPolyline( + com.google.maps.routing.v2.Polyline.Builder builderForValue) { + if (polylineBuilder_ == null) { + polyline_ = builderForValue.build(); + } else { + polylineBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The overall route polyline. This polyline is the combined polyline of
+     * all `legs`.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 5; + */ + public Builder mergePolyline(com.google.maps.routing.v2.Polyline value) { + if (polylineBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + polyline_ != null && + polyline_ != com.google.maps.routing.v2.Polyline.getDefaultInstance()) { + getPolylineBuilder().mergeFrom(value); + } else { + polyline_ = value; + } + } else { + polylineBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The overall route polyline. This polyline is the combined polyline of
+     * all `legs`.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 5; + */ + public Builder clearPolyline() { + bitField0_ = (bitField0_ & ~0x00000020); + polyline_ = null; + if (polylineBuilder_ != null) { + polylineBuilder_.dispose(); + polylineBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The overall route polyline. This polyline is the combined polyline of
+     * all `legs`.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 5; + */ + public com.google.maps.routing.v2.Polyline.Builder getPolylineBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getPolylineFieldBuilder().getBuilder(); + } + /** + *
+     * The overall route polyline. This polyline is the combined polyline of
+     * all `legs`.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 5; + */ + public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { + if (polylineBuilder_ != null) { + return polylineBuilder_.getMessageOrBuilder(); + } else { + return polyline_ == null ? + com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + } + } + /** + *
+     * The overall route polyline. This polyline is the combined polyline of
+     * all `legs`.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder> + getPolylineFieldBuilder() { + if (polylineBuilder_ == null) { + polylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder>( + getPolyline(), + getParentForChildren(), + isClean()); + polyline_ = null; + } + return polylineBuilder_; + } + + private java.lang.Object description_ = ""; + /** + *
+     * A description of the route.
+     * 
+ * + * string description = 6; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A description of the route.
+     * 
+ * + * string description = 6; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A description of the route.
+     * 
+ * + * string description = 6; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * A description of the route.
+     * 
+ * + * string description = 6; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+     * A description of the route.
+     * 
+ * + * string description = 6; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList warnings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureWarningsIsMutable() { + if (!warnings_.isModifiable()) { + warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); + } + bitField0_ |= 0x00000080; + } + /** + *
+     * An array of warnings to show when displaying the route.
+     * 
+ * + * repeated string warnings = 7; + * @return A list containing the warnings. + */ + public com.google.protobuf.ProtocolStringList + getWarningsList() { + warnings_.makeImmutable(); + return warnings_; + } + /** + *
+     * An array of warnings to show when displaying the route.
+     * 
+ * + * repeated string warnings = 7; + * @return The count of warnings. + */ + public int getWarningsCount() { + return warnings_.size(); + } + /** + *
+     * An array of warnings to show when displaying the route.
+     * 
+ * + * repeated string warnings = 7; + * @param index The index of the element to return. + * @return The warnings at the given index. + */ + public java.lang.String getWarnings(int index) { + return warnings_.get(index); + } + /** + *
+     * An array of warnings to show when displaying the route.
+     * 
+ * + * repeated string warnings = 7; + * @param index The index of the value to return. + * @return The bytes of the warnings at the given index. + */ + public com.google.protobuf.ByteString + getWarningsBytes(int index) { + return warnings_.getByteString(index); + } + /** + *
+     * An array of warnings to show when displaying the route.
+     * 
+ * + * repeated string warnings = 7; + * @param index The index to set the value at. + * @param value The warnings to set. + * @return This builder for chaining. + */ + public Builder setWarnings( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureWarningsIsMutable(); + warnings_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * An array of warnings to show when displaying the route.
+     * 
+ * + * repeated string warnings = 7; + * @param value The warnings to add. + * @return This builder for chaining. + */ + public Builder addWarnings( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureWarningsIsMutable(); + warnings_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * An array of warnings to show when displaying the route.
+     * 
+ * + * repeated string warnings = 7; + * @param values The warnings to add. + * @return This builder for chaining. + */ + public Builder addAllWarnings( + java.lang.Iterable values) { + ensureWarningsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, warnings_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * An array of warnings to show when displaying the route.
+     * 
+ * + * repeated string warnings = 7; + * @return This builder for chaining. + */ + public Builder clearWarnings() { + warnings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080);; + onChanged(); + return this; + } + /** + *
+     * An array of warnings to show when displaying the route.
+     * 
+ * + * repeated string warnings = 7; + * @param value The bytes of the warnings to add. + * @return This builder for chaining. + */ + public Builder addWarningsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureWarningsIsMutable(); + warnings_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.geo.type.Viewport viewport_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.geo.type.Viewport, com.google.geo.type.Viewport.Builder, com.google.geo.type.ViewportOrBuilder> viewportBuilder_; + /** + *
+     * The viewport bounding box of the polyline.
+     * 
+ * + * .google.geo.type.Viewport viewport = 8; + * @return Whether the viewport field is set. + */ + public boolean hasViewport() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * The viewport bounding box of the polyline.
+     * 
+ * + * .google.geo.type.Viewport viewport = 8; + * @return The viewport. + */ + public com.google.geo.type.Viewport getViewport() { + if (viewportBuilder_ == null) { + return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; + } else { + return viewportBuilder_.getMessage(); + } + } + /** + *
+     * The viewport bounding box of the polyline.
+     * 
+ * + * .google.geo.type.Viewport viewport = 8; + */ + public Builder setViewport(com.google.geo.type.Viewport value) { + if (viewportBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + viewport_ = value; + } else { + viewportBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * The viewport bounding box of the polyline.
+     * 
+ * + * .google.geo.type.Viewport viewport = 8; + */ + public Builder setViewport( + com.google.geo.type.Viewport.Builder builderForValue) { + if (viewportBuilder_ == null) { + viewport_ = builderForValue.build(); + } else { + viewportBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * The viewport bounding box of the polyline.
+     * 
+ * + * .google.geo.type.Viewport viewport = 8; + */ + public Builder mergeViewport(com.google.geo.type.Viewport value) { + if (viewportBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + viewport_ != null && + viewport_ != com.google.geo.type.Viewport.getDefaultInstance()) { + getViewportBuilder().mergeFrom(value); + } else { + viewport_ = value; + } + } else { + viewportBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * The viewport bounding box of the polyline.
+     * 
+ * + * .google.geo.type.Viewport viewport = 8; + */ + public Builder clearViewport() { + bitField0_ = (bitField0_ & ~0x00000100); + viewport_ = null; + if (viewportBuilder_ != null) { + viewportBuilder_.dispose(); + viewportBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The viewport bounding box of the polyline.
+     * 
+ * + * .google.geo.type.Viewport viewport = 8; + */ + public com.google.geo.type.Viewport.Builder getViewportBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getViewportFieldBuilder().getBuilder(); + } + /** + *
+     * The viewport bounding box of the polyline.
+     * 
+ * + * .google.geo.type.Viewport viewport = 8; + */ + public com.google.geo.type.ViewportOrBuilder getViewportOrBuilder() { + if (viewportBuilder_ != null) { + return viewportBuilder_.getMessageOrBuilder(); + } else { + return viewport_ == null ? + com.google.geo.type.Viewport.getDefaultInstance() : viewport_; + } + } + /** + *
+     * The viewport bounding box of the polyline.
+     * 
+ * + * .google.geo.type.Viewport viewport = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.geo.type.Viewport, com.google.geo.type.Viewport.Builder, com.google.geo.type.ViewportOrBuilder> + getViewportFieldBuilder() { + if (viewportBuilder_ == null) { + viewportBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.geo.type.Viewport, com.google.geo.type.Viewport.Builder, com.google.geo.type.ViewportOrBuilder>( + getViewport(), + getParentForChildren(), + isClean()); + viewport_ = null; + } + return viewportBuilder_; + } + + private com.google.maps.routing.v2.RouteTravelAdvisory travelAdvisory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteTravelAdvisory, com.google.maps.routing.v2.RouteTravelAdvisory.Builder, com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder> travelAdvisoryBuilder_; + /** + *
+     * Additional information about the route.
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + * @return Whether the travelAdvisory field is set. + */ + public boolean hasTravelAdvisory() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+     * Additional information about the route.
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + * @return The travelAdvisory. + */ + public com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory() { + if (travelAdvisoryBuilder_ == null) { + return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } else { + return travelAdvisoryBuilder_.getMessage(); + } + } + /** + *
+     * Additional information about the route.
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + */ + public Builder setTravelAdvisory(com.google.maps.routing.v2.RouteTravelAdvisory value) { + if (travelAdvisoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + travelAdvisory_ = value; + } else { + travelAdvisoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Additional information about the route.
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + */ + public Builder setTravelAdvisory( + com.google.maps.routing.v2.RouteTravelAdvisory.Builder builderForValue) { + if (travelAdvisoryBuilder_ == null) { + travelAdvisory_ = builderForValue.build(); + } else { + travelAdvisoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Additional information about the route.
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + */ + public Builder mergeTravelAdvisory(com.google.maps.routing.v2.RouteTravelAdvisory value) { + if (travelAdvisoryBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + travelAdvisory_ != null && + travelAdvisory_ != com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance()) { + getTravelAdvisoryBuilder().mergeFrom(value); + } else { + travelAdvisory_ = value; + } + } else { + travelAdvisoryBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Additional information about the route.
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + */ + public Builder clearTravelAdvisory() { + bitField0_ = (bitField0_ & ~0x00000200); + travelAdvisory_ = null; + if (travelAdvisoryBuilder_ != null) { + travelAdvisoryBuilder_.dispose(); + travelAdvisoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Additional information about the route.
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + */ + public com.google.maps.routing.v2.RouteTravelAdvisory.Builder getTravelAdvisoryBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getTravelAdvisoryFieldBuilder().getBuilder(); + } + /** + *
+     * Additional information about the route.
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + */ + public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() { + if (travelAdvisoryBuilder_ != null) { + return travelAdvisoryBuilder_.getMessageOrBuilder(); + } else { + return travelAdvisory_ == null ? + com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } + } + /** + *
+     * Additional information about the route.
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteTravelAdvisory, com.google.maps.routing.v2.RouteTravelAdvisory.Builder, com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder> + getTravelAdvisoryFieldBuilder() { + if (travelAdvisoryBuilder_ == null) { + travelAdvisoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteTravelAdvisory, com.google.maps.routing.v2.RouteTravelAdvisory.Builder, com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder>( + getTravelAdvisory(), + getParentForChildren(), + isClean()); + travelAdvisory_ = null; + } + return travelAdvisoryBuilder_; + } + + private com.google.protobuf.Internal.IntList optimizedIntermediateWaypointIndex_ = emptyIntList(); + private void ensureOptimizedIntermediateWaypointIndexIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + optimizedIntermediateWaypointIndex_ = mutableCopy(optimizedIntermediateWaypointIndex_); + bitField0_ |= 0x00000400; + } + } + /** + *
+     * If you set
+     * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
+     * to true, this field contains the optimized ordering of intermediate
+     * waypoints. Otherwise, this field is empty.
+     * For example, if you give an input of Origin: LA; Intermediate waypoints:
+     * Dallas, Bangor, Phoenix; Destination: New York; and the optimized
+     * intermediate waypoint order is Phoenix, Dallas, Bangor, then this field
+     * contains the values [2, 0, 1]. The index starts with 0 for the first
+     * intermediate waypoint provided in the input.
+     * 
+ * + * repeated int32 optimized_intermediate_waypoint_index = 10; + * @return A list containing the optimizedIntermediateWaypointIndex. + */ + public java.util.List + getOptimizedIntermediateWaypointIndexList() { + return ((bitField0_ & 0x00000400) != 0) ? + java.util.Collections.unmodifiableList(optimizedIntermediateWaypointIndex_) : optimizedIntermediateWaypointIndex_; + } + /** + *
+     * If you set
+     * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
+     * to true, this field contains the optimized ordering of intermediate
+     * waypoints. Otherwise, this field is empty.
+     * For example, if you give an input of Origin: LA; Intermediate waypoints:
+     * Dallas, Bangor, Phoenix; Destination: New York; and the optimized
+     * intermediate waypoint order is Phoenix, Dallas, Bangor, then this field
+     * contains the values [2, 0, 1]. The index starts with 0 for the first
+     * intermediate waypoint provided in the input.
+     * 
+ * + * repeated int32 optimized_intermediate_waypoint_index = 10; + * @return The count of optimizedIntermediateWaypointIndex. + */ + public int getOptimizedIntermediateWaypointIndexCount() { + return optimizedIntermediateWaypointIndex_.size(); + } + /** + *
+     * If you set
+     * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
+     * to true, this field contains the optimized ordering of intermediate
+     * waypoints. Otherwise, this field is empty.
+     * For example, if you give an input of Origin: LA; Intermediate waypoints:
+     * Dallas, Bangor, Phoenix; Destination: New York; and the optimized
+     * intermediate waypoint order is Phoenix, Dallas, Bangor, then this field
+     * contains the values [2, 0, 1]. The index starts with 0 for the first
+     * intermediate waypoint provided in the input.
+     * 
+ * + * repeated int32 optimized_intermediate_waypoint_index = 10; + * @param index The index of the element to return. + * @return The optimizedIntermediateWaypointIndex at the given index. + */ + public int getOptimizedIntermediateWaypointIndex(int index) { + return optimizedIntermediateWaypointIndex_.getInt(index); + } + /** + *
+     * If you set
+     * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
+     * to true, this field contains the optimized ordering of intermediate
+     * waypoints. Otherwise, this field is empty.
+     * For example, if you give an input of Origin: LA; Intermediate waypoints:
+     * Dallas, Bangor, Phoenix; Destination: New York; and the optimized
+     * intermediate waypoint order is Phoenix, Dallas, Bangor, then this field
+     * contains the values [2, 0, 1]. The index starts with 0 for the first
+     * intermediate waypoint provided in the input.
+     * 
+ * + * repeated int32 optimized_intermediate_waypoint_index = 10; + * @param index The index to set the value at. + * @param value The optimizedIntermediateWaypointIndex to set. + * @return This builder for chaining. + */ + public Builder setOptimizedIntermediateWaypointIndex( + int index, int value) { + + ensureOptimizedIntermediateWaypointIndexIsMutable(); + optimizedIntermediateWaypointIndex_.setInt(index, value); + onChanged(); + return this; + } + /** + *
+     * If you set
+     * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
+     * to true, this field contains the optimized ordering of intermediate
+     * waypoints. Otherwise, this field is empty.
+     * For example, if you give an input of Origin: LA; Intermediate waypoints:
+     * Dallas, Bangor, Phoenix; Destination: New York; and the optimized
+     * intermediate waypoint order is Phoenix, Dallas, Bangor, then this field
+     * contains the values [2, 0, 1]. The index starts with 0 for the first
+     * intermediate waypoint provided in the input.
+     * 
+ * + * repeated int32 optimized_intermediate_waypoint_index = 10; + * @param value The optimizedIntermediateWaypointIndex to add. + * @return This builder for chaining. + */ + public Builder addOptimizedIntermediateWaypointIndex(int value) { + + ensureOptimizedIntermediateWaypointIndexIsMutable(); + optimizedIntermediateWaypointIndex_.addInt(value); + onChanged(); + return this; + } + /** + *
+     * If you set
+     * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
+     * to true, this field contains the optimized ordering of intermediate
+     * waypoints. Otherwise, this field is empty.
+     * For example, if you give an input of Origin: LA; Intermediate waypoints:
+     * Dallas, Bangor, Phoenix; Destination: New York; and the optimized
+     * intermediate waypoint order is Phoenix, Dallas, Bangor, then this field
+     * contains the values [2, 0, 1]. The index starts with 0 for the first
+     * intermediate waypoint provided in the input.
+     * 
+ * + * repeated int32 optimized_intermediate_waypoint_index = 10; + * @param values The optimizedIntermediateWaypointIndex to add. + * @return This builder for chaining. + */ + public Builder addAllOptimizedIntermediateWaypointIndex( + java.lang.Iterable values) { + ensureOptimizedIntermediateWaypointIndexIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, optimizedIntermediateWaypointIndex_); + onChanged(); + return this; + } + /** + *
+     * If you set
+     * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
+     * to true, this field contains the optimized ordering of intermediate
+     * waypoints. Otherwise, this field is empty.
+     * For example, if you give an input of Origin: LA; Intermediate waypoints:
+     * Dallas, Bangor, Phoenix; Destination: New York; and the optimized
+     * intermediate waypoint order is Phoenix, Dallas, Bangor, then this field
+     * contains the values [2, 0, 1]. The index starts with 0 for the first
+     * intermediate waypoint provided in the input.
+     * 
+ * + * repeated int32 optimized_intermediate_waypoint_index = 10; + * @return This builder for chaining. + */ + public Builder clearOptimizedIntermediateWaypointIndex() { + optimizedIntermediateWaypointIndex_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + private com.google.maps.routing.v2.Route.RouteLocalizedValues localizedValues_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Route.RouteLocalizedValues, com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder, com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder> localizedValuesBuilder_; + /** + *
+     * Text representations of properties of the `Route`.
+     * 
+ * + * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + * @return Whether the localizedValues field is set. + */ + public boolean hasLocalizedValues() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + *
+     * Text representations of properties of the `Route`.
+     * 
+ * + * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + * @return The localizedValues. + */ + public com.google.maps.routing.v2.Route.RouteLocalizedValues getLocalizedValues() { + if (localizedValuesBuilder_ == null) { + return localizedValues_ == null ? com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance() : localizedValues_; + } else { + return localizedValuesBuilder_.getMessage(); + } + } + /** + *
+     * Text representations of properties of the `Route`.
+     * 
+ * + * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + */ + public Builder setLocalizedValues(com.google.maps.routing.v2.Route.RouteLocalizedValues value) { + if (localizedValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + localizedValues_ = value; + } else { + localizedValuesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `Route`.
+     * 
+ * + * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + */ + public Builder setLocalizedValues( + com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder builderForValue) { + if (localizedValuesBuilder_ == null) { + localizedValues_ = builderForValue.build(); + } else { + localizedValuesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `Route`.
+     * 
+ * + * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + */ + public Builder mergeLocalizedValues(com.google.maps.routing.v2.Route.RouteLocalizedValues value) { + if (localizedValuesBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) && + localizedValues_ != null && + localizedValues_ != com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance()) { + getLocalizedValuesBuilder().mergeFrom(value); + } else { + localizedValues_ = value; + } + } else { + localizedValuesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `Route`.
+     * 
+ * + * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + */ + public Builder clearLocalizedValues() { + bitField0_ = (bitField0_ & ~0x00000800); + localizedValues_ = null; + if (localizedValuesBuilder_ != null) { + localizedValuesBuilder_.dispose(); + localizedValuesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `Route`.
+     * 
+ * + * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + */ + public com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder getLocalizedValuesBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getLocalizedValuesFieldBuilder().getBuilder(); + } + /** + *
+     * Text representations of properties of the `Route`.
+     * 
+ * + * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + */ + public com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { + if (localizedValuesBuilder_ != null) { + return localizedValuesBuilder_.getMessageOrBuilder(); + } else { + return localizedValues_ == null ? + com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance() : localizedValues_; + } + } + /** + *
+     * Text representations of properties of the `Route`.
+     * 
+ * + * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Route.RouteLocalizedValues, com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder, com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder> + getLocalizedValuesFieldBuilder() { + if (localizedValuesBuilder_ == null) { + localizedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Route.RouteLocalizedValues, com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder, com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder>( + getLocalizedValues(), + getParentForChildren(), + isClean()); + localizedValues_ = null; + } + return localizedValuesBuilder_; + } + + private java.lang.Object routeToken_ = ""; + /** + *
+     * A web-safe, base64-encoded route token that can be passed to the Navigation
+     * SDK, that allows the Navigation SDK to reconstruct the route during
+     * navigation, and, in the event of rerouting, honor the original intention
+     * when you created the route by calling ComputeRoutes. Customers should treat
+     * this token as an opaque blob. It is not meant for reading or mutating.
+     * NOTE: `Route.route_token` is only available for requests that have set
+     * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
+     * that have Via waypoints.
+     * 
+ * + * string route_token = 12; + * @return The routeToken. + */ + public java.lang.String getRouteToken() { + java.lang.Object ref = routeToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + routeToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A web-safe, base64-encoded route token that can be passed to the Navigation
+     * SDK, that allows the Navigation SDK to reconstruct the route during
+     * navigation, and, in the event of rerouting, honor the original intention
+     * when you created the route by calling ComputeRoutes. Customers should treat
+     * this token as an opaque blob. It is not meant for reading or mutating.
+     * NOTE: `Route.route_token` is only available for requests that have set
+     * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
+     * that have Via waypoints.
+     * 
+ * + * string route_token = 12; + * @return The bytes for routeToken. + */ + public com.google.protobuf.ByteString + getRouteTokenBytes() { + java.lang.Object ref = routeToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + routeToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A web-safe, base64-encoded route token that can be passed to the Navigation
+     * SDK, that allows the Navigation SDK to reconstruct the route during
+     * navigation, and, in the event of rerouting, honor the original intention
+     * when you created the route by calling ComputeRoutes. Customers should treat
+     * this token as an opaque blob. It is not meant for reading or mutating.
+     * NOTE: `Route.route_token` is only available for requests that have set
+     * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
+     * that have Via waypoints.
+     * 
+ * + * string route_token = 12; + * @param value The routeToken to set. + * @return This builder for chaining. + */ + public Builder setRouteToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + routeToken_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + *
+     * A web-safe, base64-encoded route token that can be passed to the Navigation
+     * SDK, that allows the Navigation SDK to reconstruct the route during
+     * navigation, and, in the event of rerouting, honor the original intention
+     * when you created the route by calling ComputeRoutes. Customers should treat
+     * this token as an opaque blob. It is not meant for reading or mutating.
+     * NOTE: `Route.route_token` is only available for requests that have set
+     * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
+     * that have Via waypoints.
+     * 
+ * + * string route_token = 12; + * @return This builder for chaining. + */ + public Builder clearRouteToken() { + routeToken_ = getDefaultInstance().getRouteToken(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + *
+     * A web-safe, base64-encoded route token that can be passed to the Navigation
+     * SDK, that allows the Navigation SDK to reconstruct the route during
+     * navigation, and, in the event of rerouting, honor the original intention
+     * when you created the route by calling ComputeRoutes. Customers should treat
+     * this token as an opaque blob. It is not meant for reading or mutating.
+     * NOTE: `Route.route_token` is only available for requests that have set
+     * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
+     * that have Via waypoints.
+     * 
+ * + * string route_token = 12; + * @param value The bytes for routeToken to set. + * @return This builder for chaining. + */ + public Builder setRouteTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + routeToken_ = value; + bitField0_ |= 0x00001000; + 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.maps.routing.v2.Route) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.Route) + private static final com.google.maps.routing.v2.Route DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.Route(); + } + + public static com.google.maps.routing.v2.Route getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Route 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.maps.routing.v2.Route getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java similarity index 72% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java index a1723376878e..40e3f9dde37a 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.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/maps/routing/v2/route_label.proto package com.google.maps.routing.v2; /** - * - * *
  * Labels for the [Route][google.maps.routing.v2.Route] that are useful to
  * identify specific properties of the route to compare against others.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.maps.routing.v2.RouteLabel}
  */
-public enum RouteLabel implements com.google.protobuf.ProtocolMessageEnum {
+public enum RouteLabel
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Default - not used.
    * 
@@ -40,8 +22,6 @@ public enum RouteLabel implements com.google.protobuf.ProtocolMessageEnum { */ ROUTE_LABEL_UNSPECIFIED(0), /** - * - * *
    * The default "best" route returned for the route computation.
    * 
@@ -50,8 +30,6 @@ public enum RouteLabel implements com.google.protobuf.ProtocolMessageEnum { */ DEFAULT_ROUTE(1), /** - * - * *
    * An alternative to the default "best" route. Routes like this will be
    * returned when
@@ -63,8 +41,6 @@ public enum RouteLabel implements com.google.protobuf.ProtocolMessageEnum {
    */
   DEFAULT_ROUTE_ALTERNATE(2),
   /**
-   *
-   *
    * 
    * Fuel efficient route. Routes labeled with this value are determined to be
    * optimized for Eco parameters such as fuel consumption.
@@ -77,8 +53,6 @@ public enum RouteLabel implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * Default - not used.
    * 
@@ -87,8 +61,6 @@ public enum RouteLabel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROUTE_LABEL_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The default "best" route returned for the route computation.
    * 
@@ -97,8 +69,6 @@ public enum RouteLabel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEFAULT_ROUTE_VALUE = 1; /** - * - * *
    * An alternative to the default "best" route. Routes like this will be
    * returned when
@@ -110,8 +80,6 @@ public enum RouteLabel implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int DEFAULT_ROUTE_ALTERNATE_VALUE = 2;
   /**
-   *
-   *
    * 
    * Fuel efficient route. Routes labeled with this value are determined to be
    * optimized for Eco parameters such as fuel consumption.
@@ -121,6 +89,7 @@ public enum RouteLabel implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int FUEL_EFFICIENT_VALUE = 3;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -145,51 +114,50 @@ public static RouteLabel valueOf(int value) {
    */
   public static RouteLabel forNumber(int value) {
     switch (value) {
-      case 0:
-        return ROUTE_LABEL_UNSPECIFIED;
-      case 1:
-        return DEFAULT_ROUTE;
-      case 2:
-        return DEFAULT_ROUTE_ALTERNATE;
-      case 3:
-        return FUEL_EFFICIENT;
-      default:
-        return null;
+      case 0: return ROUTE_LABEL_UNSPECIFIED;
+      case 1: return DEFAULT_ROUTE;
+      case 2: return DEFAULT_ROUTE_ALTERNATE;
+      case 3: return FUEL_EFFICIENT;
+      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 RouteLabel findValueByNumber(int number) {
-          return RouteLabel.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      RouteLabel> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public RouteLabel findValueByNumber(int number) {
+            return RouteLabel.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.maps.routing.v2.RouteLabelProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final RouteLabel[] VALUES = values();
 
-  public static RouteLabel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static RouteLabel 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;
@@ -205,3 +173,4 @@ private RouteLabel(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.RouteLabel)
 }
+
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java
new file mode 100644
index 000000000000..97c4a2c34b4c
--- /dev/null
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java
@@ -0,0 +1,44 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/maps/routing/v2/route_label.proto
+
+package com.google.maps.routing.v2;
+
+public final class RouteLabelProto {
+  private RouteLabelProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  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/maps/routing/v2/route_label.pro" +
+      "to\022\026google.maps.routing.v2*m\n\nRouteLabel" +
+      "\022\033\n\027ROUTE_LABEL_UNSPECIFIED\020\000\022\021\n\rDEFAULT" +
+      "_ROUTE\020\001\022\033\n\027DEFAULT_ROUTE_ALTERNATE\020\002\022\022\n" +
+      "\016FUEL_EFFICIENT\020\003B\304\001\n\032com.google.maps.ro" +
+      "uting.v2B\017RouteLabelProtoP\001Z:cloud.googl" +
+      "e.com/go/maps/routing/apiv2/routingpb;ro" +
+      "utingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Routing" +
+      ".V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Google::M" +
+      "aps::Routing::V2b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+        });
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java
new file mode 100644
index 000000000000..14669a09fecf
--- /dev/null
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java
@@ -0,0 +1,6221 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/maps/routing/v2/route.proto
+
+package com.google.maps.routing.v2;
+
+/**
+ * 
+ * Contains a segment between non-`via` waypoints.
+ * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLeg} + */ +public final class RouteLeg extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLeg) + RouteLegOrBuilder { +private static final long serialVersionUID = 0L; + // Use RouteLeg.newBuilder() to construct. + private RouteLeg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RouteLeg() { + steps_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RouteLeg(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLeg.class, com.google.maps.routing.v2.RouteLeg.Builder.class); + } + + public interface RouteLegLocalizedValuesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return Whether the distance field is set. + */ + boolean hasDistance(); + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return The distance. + */ + com.google.type.LocalizedText getDistance(); + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + */ + com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder(); + + /** + *
+     * Duration taking traffic conditions into consideration represented in text
+     * form. Note: If you did not request traffic information, this value will
+     * be the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + * @return Whether the duration field is set. + */ + boolean hasDuration(); + /** + *
+     * Duration taking traffic conditions into consideration represented in text
+     * form. Note: If you did not request traffic information, this value will
+     * be the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + * @return The duration. + */ + com.google.type.LocalizedText getDuration(); + /** + *
+     * Duration taking traffic conditions into consideration represented in text
+     * form. Note: If you did not request traffic information, this value will
+     * be the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + */ + com.google.type.LocalizedTextOrBuilder getDurationOrBuilder(); + + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return Whether the staticDuration field is set. + */ + boolean hasStaticDuration(); + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return The staticDuration. + */ + com.google.type.LocalizedText getStaticDuration(); + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder(); + } + /** + *
+   * Text representations of certain properties.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues} + */ + public static final class RouteLegLocalizedValues extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues) + RouteLegLocalizedValuesOrBuilder { + private static final long serialVersionUID = 0L; + // Use RouteLegLocalizedValues.newBuilder() to construct. + private RouteLegLocalizedValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RouteLegLocalizedValues() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RouteLegLocalizedValues(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.class, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder.class); + } + + public static final int DISTANCE_FIELD_NUMBER = 1; + private com.google.type.LocalizedText distance_; + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return distance_ != null; + } + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return The distance. + */ + @java.lang.Override + public com.google.type.LocalizedText getDistance() { + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; + } + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; + } + + public static final int DURATION_FIELD_NUMBER = 2; + private com.google.type.LocalizedText duration_; + /** + *
+     * Duration taking traffic conditions into consideration represented in text
+     * form. Note: If you did not request traffic information, this value will
+     * be the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + * @return Whether the duration field is set. + */ + @java.lang.Override + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * Duration taking traffic conditions into consideration represented in text
+     * form. Note: If you did not request traffic information, this value will
+     * be the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + * @return The duration. + */ + @java.lang.Override + public com.google.type.LocalizedText getDuration() { + return duration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : duration_; + } + /** + *
+     * Duration taking traffic conditions into consideration represented in text
+     * form. Note: If you did not request traffic information, this value will
+     * be the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() { + return duration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : duration_; + } + + public static final int STATIC_DURATION_FIELD_NUMBER = 3; + private com.google.type.LocalizedText staticDuration_; + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return Whether the staticDuration field is set. + */ + @java.lang.Override + public boolean hasStaticDuration() { + return staticDuration_ != null; + } + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return The staticDuration. + */ + @java.lang.Override + public com.google.type.LocalizedText getStaticDuration() { + return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() { + return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } + + 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 (distance_ != null) { + output.writeMessage(1, getDistance()); + } + if (duration_ != null) { + output.writeMessage(2, getDuration()); + } + if (staticDuration_ != null) { + output.writeMessage(3, getStaticDuration()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (distance_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDistance()); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDuration()); + } + if (staticDuration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStaticDuration()); + } + 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues)) { + return super.equals(obj); + } + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues other = (com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues) obj; + + if (hasDistance() != other.hasDistance()) return false; + if (hasDistance()) { + if (!getDistance() + .equals(other.getDistance())) return false; + } + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) return false; + } + if (hasStaticDuration() != other.hasStaticDuration()) return false; + if (hasStaticDuration()) { + if (!getStaticDuration() + .equals(other.getStaticDuration())) 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(); + if (hasDistance()) { + hash = (37 * hash) + DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + getDistance().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasStaticDuration()) { + hash = (37 * hash) + STATIC_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getStaticDuration().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues 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; + } + /** + *
+     * Text representations of certain properties.
+     * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues) + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.class, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder.class); + } + + // Construct using com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + distance_ = null; + if (distanceBuilder_ != null) { + distanceBuilder_.dispose(); + distanceBuilder_ = null; + } + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues getDefaultInstanceForType() { + return com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues build() { + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues buildPartial() { + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues result = new com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.distance_ = distanceBuilder_ == null + ? distance_ + : distanceBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.duration_ = durationBuilder_ == null + ? duration_ + : durationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.staticDuration_ = staticDurationBuilder_ == null + ? staticDuration_ + : staticDurationBuilder_.build(); + } + } + + @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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues) { + return mergeFrom((com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues other) { + if (other == com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance()) return this; + if (other.hasDistance()) { + mergeDistance(other.getDistance()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasStaticDuration()) { + mergeStaticDuration(other.getStaticDuration()); + } + 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 10: { + input.readMessage( + getDistanceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getStaticDurationFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.type.LocalizedText distance_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> distanceBuilder_; + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + * @return Whether the distance field is set. + */ + public boolean hasDistance() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + * @return The distance. + */ + public com.google.type.LocalizedText getDistance() { + if (distanceBuilder_ == null) { + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; + } else { + return distanceBuilder_.getMessage(); + } + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder setDistance(com.google.type.LocalizedText value) { + if (distanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + distance_ = value; + } else { + distanceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder setDistance( + com.google.type.LocalizedText.Builder builderForValue) { + if (distanceBuilder_ == null) { + distance_ = builderForValue.build(); + } else { + distanceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder mergeDistance(com.google.type.LocalizedText value) { + if (distanceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + distance_ != null && + distance_ != com.google.type.LocalizedText.getDefaultInstance()) { + getDistanceBuilder().mergeFrom(value); + } else { + distance_ = value; + } + } else { + distanceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder clearDistance() { + bitField0_ = (bitField0_ & ~0x00000001); + distance_ = null; + if (distanceBuilder_ != null) { + distanceBuilder_.dispose(); + distanceBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public com.google.type.LocalizedText.Builder getDistanceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDistanceFieldBuilder().getBuilder(); + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { + if (distanceBuilder_ != null) { + return distanceBuilder_.getMessageOrBuilder(); + } else { + return distance_ == null ? + com.google.type.LocalizedText.getDefaultInstance() : distance_; + } + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + getDistanceFieldBuilder() { + if (distanceBuilder_ == null) { + distanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( + getDistance(), + getParentForChildren(), + isClean()); + distance_ = null; + } + return distanceBuilder_; + } + + private com.google.type.LocalizedText duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> durationBuilder_; + /** + *
+       * Duration taking traffic conditions into consideration represented in text
+       * form. Note: If you did not request traffic information, this value will
+       * be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + * @return Whether the duration field is set. + */ + public boolean hasDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * Duration taking traffic conditions into consideration represented in text
+       * form. Note: If you did not request traffic information, this value will
+       * be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + * @return The duration. + */ + public com.google.type.LocalizedText getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * Duration taking traffic conditions into consideration represented in text
+       * form. Note: If you did not request traffic information, this value will
+       * be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public Builder setDuration(com.google.type.LocalizedText value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + } else { + durationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Duration taking traffic conditions into consideration represented in text
+       * form. Note: If you did not request traffic information, this value will
+       * be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public Builder setDuration( + com.google.type.LocalizedText.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Duration taking traffic conditions into consideration represented in text
+       * form. Note: If you did not request traffic information, this value will
+       * be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public Builder mergeDuration(com.google.type.LocalizedText value) { + if (durationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + duration_ != null && + duration_ != com.google.type.LocalizedText.getDefaultInstance()) { + getDurationBuilder().mergeFrom(value); + } else { + duration_ = value; + } + } else { + durationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Duration taking traffic conditions into consideration represented in text
+       * form. Note: If you did not request traffic information, this value will
+       * be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public Builder clearDuration() { + bitField0_ = (bitField0_ & ~0x00000002); + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Duration taking traffic conditions into consideration represented in text
+       * form. Note: If you did not request traffic information, this value will
+       * be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public com.google.type.LocalizedText.Builder getDurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * Duration taking traffic conditions into consideration represented in text
+       * form. Note: If you did not request traffic information, this value will
+       * be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.type.LocalizedText.getDefaultInstance() : duration_; + } + } + /** + *
+       * Duration taking traffic conditions into consideration represented in text
+       * form. Note: If you did not request traffic information, this value will
+       * be the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + + private com.google.type.LocalizedText staticDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> staticDurationBuilder_; + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return Whether the staticDuration field is set. + */ + public boolean hasStaticDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return The staticDuration. + */ + public com.google.type.LocalizedText getStaticDuration() { + if (staticDurationBuilder_ == null) { + return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } else { + return staticDurationBuilder_.getMessage(); + } + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder setStaticDuration(com.google.type.LocalizedText value) { + if (staticDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + staticDuration_ = value; + } else { + staticDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder setStaticDuration( + com.google.type.LocalizedText.Builder builderForValue) { + if (staticDurationBuilder_ == null) { + staticDuration_ = builderForValue.build(); + } else { + staticDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder mergeStaticDuration(com.google.type.LocalizedText value) { + if (staticDurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + staticDuration_ != null && + staticDuration_ != com.google.type.LocalizedText.getDefaultInstance()) { + getStaticDurationBuilder().mergeFrom(value); + } else { + staticDuration_ = value; + } + } else { + staticDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder clearStaticDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public com.google.type.LocalizedText.Builder getStaticDurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStaticDurationFieldBuilder().getBuilder(); + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() { + if (staticDurationBuilder_ != null) { + return staticDurationBuilder_.getMessageOrBuilder(); + } else { + return staticDuration_ == null ? + com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + getStaticDurationFieldBuilder() { + if (staticDurationBuilder_ == null) { + staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( + getStaticDuration(), + getParentForChildren(), + isClean()); + staticDuration_ = null; + } + return staticDurationBuilder_; + } + @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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues) + private static final com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues(); + } + + public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouteLegLocalizedValues 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StepsOverviewOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLeg.StepsOverview) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Summarized information about different multi-modal segments of
+     * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+     * not contain any multi-modal segments in the steps.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + java.util.List + getMultiModalSegmentsList(); + /** + *
+     * Summarized information about different multi-modal segments of
+     * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+     * not contain any multi-modal segments in the steps.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment getMultiModalSegments(int index); + /** + *
+     * Summarized information about different multi-modal segments of
+     * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+     * not contain any multi-modal segments in the steps.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + int getMultiModalSegmentsCount(); + /** + *
+     * Summarized information about different multi-modal segments of
+     * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+     * not contain any multi-modal segments in the steps.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + java.util.List + getMultiModalSegmentsOrBuilderList(); + /** + *
+     * Summarized information about different multi-modal segments of
+     * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+     * not contain any multi-modal segments in the steps.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder getMultiModalSegmentsOrBuilder( + int index); + } + /** + *
+   * Provides overview information about a list of `RouteLegStep`s.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLeg.StepsOverview} + */ + public static final class StepsOverview extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLeg.StepsOverview) + StepsOverviewOrBuilder { + private static final long serialVersionUID = 0L; + // Use StepsOverview.newBuilder() to construct. + private StepsOverview(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StepsOverview() { + multiModalSegments_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StepsOverview(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLeg.StepsOverview.class, com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder.class); + } + + public interface MultiModalSegmentOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment) + com.google.protobuf.MessageOrBuilder { + + /** + *
+       * The corresponding `RouteLegStep` index that is the start of a
+       * multi-modal segment.
+       * 
+ * + * optional int32 step_start_index = 1; + * @return Whether the stepStartIndex field is set. + */ + boolean hasStepStartIndex(); + /** + *
+       * The corresponding `RouteLegStep` index that is the start of a
+       * multi-modal segment.
+       * 
+ * + * optional int32 step_start_index = 1; + * @return The stepStartIndex. + */ + int getStepStartIndex(); + + /** + *
+       * The corresponding `RouteLegStep` index that is the end of a
+       * multi-modal segment.
+       * 
+ * + * optional int32 step_end_index = 2; + * @return Whether the stepEndIndex field is set. + */ + boolean hasStepEndIndex(); + /** + *
+       * The corresponding `RouteLegStep` index that is the end of a
+       * multi-modal segment.
+       * 
+ * + * optional int32 step_end_index = 2; + * @return The stepEndIndex. + */ + int getStepEndIndex(); + + /** + *
+       * NavigationInstruction for the multi-modal segment.
+       * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + * @return Whether the navigationInstruction field is set. + */ + boolean hasNavigationInstruction(); + /** + *
+       * NavigationInstruction for the multi-modal segment.
+       * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + * @return The navigationInstruction. + */ + com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction(); + /** + *
+       * NavigationInstruction for the multi-modal segment.
+       * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + */ + com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationInstructionOrBuilder(); + + /** + *
+       * The travel mode of the multi-modal segment.
+       * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * @return The enum numeric value on the wire for travelMode. + */ + int getTravelModeValue(); + /** + *
+       * The travel mode of the multi-modal segment.
+       * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * @return The travelMode. + */ + com.google.maps.routing.v2.RouteTravelMode getTravelMode(); + } + /** + *
+     * Provides summarized information about different multi-modal segments of
+     * the `RouteLeg.steps`. A multi-modal segment is defined as one or more
+     * contiguous `RouteLegStep` that have the same `RouteTravelMode`.
+     * This field is not populated if the `RouteLeg` does not contain any
+     * multi-modal segments in the steps.
+     * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment} + */ + public static final class MultiModalSegment extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment) + MultiModalSegmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use MultiModalSegment.newBuilder() to construct. + private MultiModalSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MultiModalSegment() { + travelMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MultiModalSegment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.class, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder.class); + } + + private int bitField0_; + public static final int STEP_START_INDEX_FIELD_NUMBER = 1; + private int stepStartIndex_ = 0; + /** + *
+       * The corresponding `RouteLegStep` index that is the start of a
+       * multi-modal segment.
+       * 
+ * + * optional int32 step_start_index = 1; + * @return Whether the stepStartIndex field is set. + */ + @java.lang.Override + public boolean hasStepStartIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * The corresponding `RouteLegStep` index that is the start of a
+       * multi-modal segment.
+       * 
+ * + * optional int32 step_start_index = 1; + * @return The stepStartIndex. + */ + @java.lang.Override + public int getStepStartIndex() { + return stepStartIndex_; + } + + public static final int STEP_END_INDEX_FIELD_NUMBER = 2; + private int stepEndIndex_ = 0; + /** + *
+       * The corresponding `RouteLegStep` index that is the end of a
+       * multi-modal segment.
+       * 
+ * + * optional int32 step_end_index = 2; + * @return Whether the stepEndIndex field is set. + */ + @java.lang.Override + public boolean hasStepEndIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * The corresponding `RouteLegStep` index that is the end of a
+       * multi-modal segment.
+       * 
+ * + * optional int32 step_end_index = 2; + * @return The stepEndIndex. + */ + @java.lang.Override + public int getStepEndIndex() { + return stepEndIndex_; + } + + public static final int NAVIGATION_INSTRUCTION_FIELD_NUMBER = 3; + private com.google.maps.routing.v2.NavigationInstruction navigationInstruction_; + /** + *
+       * NavigationInstruction for the multi-modal segment.
+       * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + * @return Whether the navigationInstruction field is set. + */ + @java.lang.Override + public boolean hasNavigationInstruction() { + return navigationInstruction_ != null; + } + /** + *
+       * NavigationInstruction for the multi-modal segment.
+       * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + * @return The navigationInstruction. + */ + @java.lang.Override + public com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction() { + return navigationInstruction_ == null ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + } + /** + *
+       * NavigationInstruction for the multi-modal segment.
+       * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + */ + @java.lang.Override + public com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationInstructionOrBuilder() { + return navigationInstruction_ == null ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + } + + public static final int TRAVEL_MODE_FIELD_NUMBER = 4; + private int travelMode_ = 0; + /** + *
+       * The travel mode of the multi-modal segment.
+       * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * @return The enum numeric value on the wire for travelMode. + */ + @java.lang.Override public int getTravelModeValue() { + return travelMode_; + } + /** + *
+       * The travel mode of the multi-modal segment.
+       * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * @return The travelMode. + */ + @java.lang.Override public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { + com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, stepStartIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(2, stepEndIndex_); + } + if (navigationInstruction_ != null) { + output.writeMessage(3, getNavigationInstruction()); + } + if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, travelMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, stepStartIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, stepEndIndex_); + } + if (navigationInstruction_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getNavigationInstruction()); + } + if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, travelMode_); + } + 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment)) { + return super.equals(obj); + } + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment other = (com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment) obj; + + if (hasStepStartIndex() != other.hasStepStartIndex()) return false; + if (hasStepStartIndex()) { + if (getStepStartIndex() + != other.getStepStartIndex()) return false; + } + if (hasStepEndIndex() != other.hasStepEndIndex()) return false; + if (hasStepEndIndex()) { + if (getStepEndIndex() + != other.getStepEndIndex()) return false; + } + if (hasNavigationInstruction() != other.hasNavigationInstruction()) return false; + if (hasNavigationInstruction()) { + if (!getNavigationInstruction() + .equals(other.getNavigationInstruction())) return false; + } + if (travelMode_ != other.travelMode_) 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(); + if (hasStepStartIndex()) { + hash = (37 * hash) + STEP_START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getStepStartIndex(); + } + if (hasStepEndIndex()) { + hash = (37 * hash) + STEP_END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getStepEndIndex(); + } + if (hasNavigationInstruction()) { + hash = (37 * hash) + NAVIGATION_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getNavigationInstruction().hashCode(); + } + hash = (37 * hash) + TRAVEL_MODE_FIELD_NUMBER; + hash = (53 * hash) + travelMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment 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; + } + /** + *
+       * Provides summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. A multi-modal segment is defined as one or more
+       * contiguous `RouteLegStep` that have the same `RouteTravelMode`.
+       * This field is not populated if the `RouteLeg` does not contain any
+       * multi-modal segments in the steps.
+       * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment) + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.class, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder.class); + } + + // Construct using com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + stepStartIndex_ = 0; + stepEndIndex_ = 0; + navigationInstruction_ = null; + if (navigationInstructionBuilder_ != null) { + navigationInstructionBuilder_.dispose(); + navigationInstructionBuilder_ = null; + } + travelMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment getDefaultInstanceForType() { + return com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment build() { + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment buildPartial() { + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment result = new com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.stepStartIndex_ = stepStartIndex_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.stepEndIndex_ = stepEndIndex_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.navigationInstruction_ = navigationInstructionBuilder_ == null + ? navigationInstruction_ + : navigationInstructionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.travelMode_ = travelMode_; + } + result.bitField0_ |= to_bitField0_; + } + + @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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment) { + return mergeFrom((com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment other) { + if (other == com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.getDefaultInstance()) return this; + if (other.hasStepStartIndex()) { + setStepStartIndex(other.getStepStartIndex()); + } + if (other.hasStepEndIndex()) { + setStepEndIndex(other.getStepEndIndex()); + } + if (other.hasNavigationInstruction()) { + mergeNavigationInstruction(other.getNavigationInstruction()); + } + if (other.travelMode_ != 0) { + setTravelModeValue(other.getTravelModeValue()); + } + 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 8: { + stepStartIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + stepEndIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getNavigationInstructionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + travelMode_ = input.readEnum(); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int stepStartIndex_ ; + /** + *
+         * The corresponding `RouteLegStep` index that is the start of a
+         * multi-modal segment.
+         * 
+ * + * optional int32 step_start_index = 1; + * @return Whether the stepStartIndex field is set. + */ + @java.lang.Override + public boolean hasStepStartIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+         * The corresponding `RouteLegStep` index that is the start of a
+         * multi-modal segment.
+         * 
+ * + * optional int32 step_start_index = 1; + * @return The stepStartIndex. + */ + @java.lang.Override + public int getStepStartIndex() { + return stepStartIndex_; + } + /** + *
+         * The corresponding `RouteLegStep` index that is the start of a
+         * multi-modal segment.
+         * 
+ * + * optional int32 step_start_index = 1; + * @param value The stepStartIndex to set. + * @return This builder for chaining. + */ + public Builder setStepStartIndex(int value) { + + stepStartIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+         * The corresponding `RouteLegStep` index that is the start of a
+         * multi-modal segment.
+         * 
+ * + * optional int32 step_start_index = 1; + * @return This builder for chaining. + */ + public Builder clearStepStartIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + stepStartIndex_ = 0; + onChanged(); + return this; + } + + private int stepEndIndex_ ; + /** + *
+         * The corresponding `RouteLegStep` index that is the end of a
+         * multi-modal segment.
+         * 
+ * + * optional int32 step_end_index = 2; + * @return Whether the stepEndIndex field is set. + */ + @java.lang.Override + public boolean hasStepEndIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+         * The corresponding `RouteLegStep` index that is the end of a
+         * multi-modal segment.
+         * 
+ * + * optional int32 step_end_index = 2; + * @return The stepEndIndex. + */ + @java.lang.Override + public int getStepEndIndex() { + return stepEndIndex_; + } + /** + *
+         * The corresponding `RouteLegStep` index that is the end of a
+         * multi-modal segment.
+         * 
+ * + * optional int32 step_end_index = 2; + * @param value The stepEndIndex to set. + * @return This builder for chaining. + */ + public Builder setStepEndIndex(int value) { + + stepEndIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+         * The corresponding `RouteLegStep` index that is the end of a
+         * multi-modal segment.
+         * 
+ * + * optional int32 step_end_index = 2; + * @return This builder for chaining. + */ + public Builder clearStepEndIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + stepEndIndex_ = 0; + onChanged(); + return this; + } + + private com.google.maps.routing.v2.NavigationInstruction navigationInstruction_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.NavigationInstruction, com.google.maps.routing.v2.NavigationInstruction.Builder, com.google.maps.routing.v2.NavigationInstructionOrBuilder> navigationInstructionBuilder_; + /** + *
+         * NavigationInstruction for the multi-modal segment.
+         * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + * @return Whether the navigationInstruction field is set. + */ + public boolean hasNavigationInstruction() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+         * NavigationInstruction for the multi-modal segment.
+         * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + * @return The navigationInstruction. + */ + public com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction() { + if (navigationInstructionBuilder_ == null) { + return navigationInstruction_ == null ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + } else { + return navigationInstructionBuilder_.getMessage(); + } + } + /** + *
+         * NavigationInstruction for the multi-modal segment.
+         * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + */ + public Builder setNavigationInstruction(com.google.maps.routing.v2.NavigationInstruction value) { + if (navigationInstructionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + navigationInstruction_ = value; + } else { + navigationInstructionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * NavigationInstruction for the multi-modal segment.
+         * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + */ + public Builder setNavigationInstruction( + com.google.maps.routing.v2.NavigationInstruction.Builder builderForValue) { + if (navigationInstructionBuilder_ == null) { + navigationInstruction_ = builderForValue.build(); + } else { + navigationInstructionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * NavigationInstruction for the multi-modal segment.
+         * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + */ + public Builder mergeNavigationInstruction(com.google.maps.routing.v2.NavigationInstruction value) { + if (navigationInstructionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + navigationInstruction_ != null && + navigationInstruction_ != com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance()) { + getNavigationInstructionBuilder().mergeFrom(value); + } else { + navigationInstruction_ = value; + } + } else { + navigationInstructionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+         * NavigationInstruction for the multi-modal segment.
+         * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + */ + public Builder clearNavigationInstruction() { + bitField0_ = (bitField0_ & ~0x00000004); + navigationInstruction_ = null; + if (navigationInstructionBuilder_ != null) { + navigationInstructionBuilder_.dispose(); + navigationInstructionBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+         * NavigationInstruction for the multi-modal segment.
+         * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + */ + public com.google.maps.routing.v2.NavigationInstruction.Builder getNavigationInstructionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getNavigationInstructionFieldBuilder().getBuilder(); + } + /** + *
+         * NavigationInstruction for the multi-modal segment.
+         * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + */ + public com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationInstructionOrBuilder() { + if (navigationInstructionBuilder_ != null) { + return navigationInstructionBuilder_.getMessageOrBuilder(); + } else { + return navigationInstruction_ == null ? + com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + } + } + /** + *
+         * NavigationInstruction for the multi-modal segment.
+         * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.NavigationInstruction, com.google.maps.routing.v2.NavigationInstruction.Builder, com.google.maps.routing.v2.NavigationInstructionOrBuilder> + getNavigationInstructionFieldBuilder() { + if (navigationInstructionBuilder_ == null) { + navigationInstructionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.NavigationInstruction, com.google.maps.routing.v2.NavigationInstruction.Builder, com.google.maps.routing.v2.NavigationInstructionOrBuilder>( + getNavigationInstruction(), + getParentForChildren(), + isClean()); + navigationInstruction_ = null; + } + return navigationInstructionBuilder_; + } + + private int travelMode_ = 0; + /** + *
+         * The travel mode of the multi-modal segment.
+         * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * @return The enum numeric value on the wire for travelMode. + */ + @java.lang.Override public int getTravelModeValue() { + return travelMode_; + } + /** + *
+         * The travel mode of the multi-modal segment.
+         * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * @param value The enum numeric value on the wire for travelMode to set. + * @return This builder for chaining. + */ + public Builder setTravelModeValue(int value) { + travelMode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+         * The travel mode of the multi-modal segment.
+         * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * @return The travelMode. + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { + com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; + } + /** + *
+         * The travel mode of the multi-modal segment.
+         * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * @param value The travelMode to set. + * @return This builder for chaining. + */ + public Builder setTravelMode(com.google.maps.routing.v2.RouteTravelMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + travelMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+         * The travel mode of the multi-modal segment.
+         * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * @return This builder for chaining. + */ + public Builder clearTravelMode() { + bitField0_ = (bitField0_ & ~0x00000008); + travelMode_ = 0; + 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment) + private static final com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment(); + } + + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiModalSegment 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int MULTI_MODAL_SEGMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List multiModalSegments_; + /** + *
+     * Summarized information about different multi-modal segments of
+     * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+     * not contain any multi-modal segments in the steps.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + @java.lang.Override + public java.util.List getMultiModalSegmentsList() { + return multiModalSegments_; + } + /** + *
+     * Summarized information about different multi-modal segments of
+     * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+     * not contain any multi-modal segments in the steps.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + @java.lang.Override + public java.util.List + getMultiModalSegmentsOrBuilderList() { + return multiModalSegments_; + } + /** + *
+     * Summarized information about different multi-modal segments of
+     * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+     * not contain any multi-modal segments in the steps.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + @java.lang.Override + public int getMultiModalSegmentsCount() { + return multiModalSegments_.size(); + } + /** + *
+     * Summarized information about different multi-modal segments of
+     * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+     * not contain any multi-modal segments in the steps.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment getMultiModalSegments(int index) { + return multiModalSegments_.get(index); + } + /** + *
+     * Summarized information about different multi-modal segments of
+     * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+     * not contain any multi-modal segments in the steps.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder getMultiModalSegmentsOrBuilder( + int index) { + return multiModalSegments_.get(index); + } + + 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 { + for (int i = 0; i < multiModalSegments_.size(); i++) { + output.writeMessage(1, multiModalSegments_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < multiModalSegments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, multiModalSegments_.get(i)); + } + 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.maps.routing.v2.RouteLeg.StepsOverview)) { + return super.equals(obj); + } + com.google.maps.routing.v2.RouteLeg.StepsOverview other = (com.google.maps.routing.v2.RouteLeg.StepsOverview) obj; + + if (!getMultiModalSegmentsList() + .equals(other.getMultiModalSegmentsList())) 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(); + if (getMultiModalSegmentsCount() > 0) { + hash = (37 * hash) + MULTI_MODAL_SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getMultiModalSegmentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.RouteLeg.StepsOverview parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview 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.maps.routing.v2.RouteLeg.StepsOverview parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview 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.maps.routing.v2.RouteLeg.StepsOverview parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.RouteLeg.StepsOverview 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.maps.routing.v2.RouteLeg.StepsOverview parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview 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.maps.routing.v2.RouteLeg.StepsOverview 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; + } + /** + *
+     * Provides overview information about a list of `RouteLegStep`s.
+     * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLeg.StepsOverview} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.RouteLeg.StepsOverview) + com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLeg.StepsOverview.class, com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder.class); + } + + // Construct using com.google.maps.routing.v2.RouteLeg.StepsOverview.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (multiModalSegmentsBuilder_ == null) { + multiModalSegments_ = java.util.Collections.emptyList(); + } else { + multiModalSegments_ = null; + multiModalSegmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg.StepsOverview getDefaultInstanceForType() { + return com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg.StepsOverview build() { + com.google.maps.routing.v2.RouteLeg.StepsOverview result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg.StepsOverview buildPartial() { + com.google.maps.routing.v2.RouteLeg.StepsOverview result = new com.google.maps.routing.v2.RouteLeg.StepsOverview(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.maps.routing.v2.RouteLeg.StepsOverview result) { + if (multiModalSegmentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + multiModalSegments_ = java.util.Collections.unmodifiableList(multiModalSegments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.multiModalSegments_ = multiModalSegments_; + } else { + result.multiModalSegments_ = multiModalSegmentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.maps.routing.v2.RouteLeg.StepsOverview result) { + int from_bitField0_ = bitField0_; + } + + @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.maps.routing.v2.RouteLeg.StepsOverview) { + return mergeFrom((com.google.maps.routing.v2.RouteLeg.StepsOverview)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.RouteLeg.StepsOverview other) { + if (other == com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance()) return this; + if (multiModalSegmentsBuilder_ == null) { + if (!other.multiModalSegments_.isEmpty()) { + if (multiModalSegments_.isEmpty()) { + multiModalSegments_ = other.multiModalSegments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMultiModalSegmentsIsMutable(); + multiModalSegments_.addAll(other.multiModalSegments_); + } + onChanged(); + } + } else { + if (!other.multiModalSegments_.isEmpty()) { + if (multiModalSegmentsBuilder_.isEmpty()) { + multiModalSegmentsBuilder_.dispose(); + multiModalSegmentsBuilder_ = null; + multiModalSegments_ = other.multiModalSegments_; + bitField0_ = (bitField0_ & ~0x00000001); + multiModalSegmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMultiModalSegmentsFieldBuilder() : null; + } else { + multiModalSegmentsBuilder_.addAllMessages(other.multiModalSegments_); + } + } + } + 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 10: { + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment m = + input.readMessage( + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.parser(), + extensionRegistry); + if (multiModalSegmentsBuilder_ == null) { + ensureMultiModalSegmentsIsMutable(); + multiModalSegments_.add(m); + } else { + multiModalSegmentsBuilder_.addMessage(m); + } + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List multiModalSegments_ = + java.util.Collections.emptyList(); + private void ensureMultiModalSegmentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + multiModalSegments_ = new java.util.ArrayList(multiModalSegments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder> multiModalSegmentsBuilder_; + + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public java.util.List getMultiModalSegmentsList() { + if (multiModalSegmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(multiModalSegments_); + } else { + return multiModalSegmentsBuilder_.getMessageList(); + } + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public int getMultiModalSegmentsCount() { + if (multiModalSegmentsBuilder_ == null) { + return multiModalSegments_.size(); + } else { + return multiModalSegmentsBuilder_.getCount(); + } + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment getMultiModalSegments(int index) { + if (multiModalSegmentsBuilder_ == null) { + return multiModalSegments_.get(index); + } else { + return multiModalSegmentsBuilder_.getMessage(index); + } + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public Builder setMultiModalSegments( + int index, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment value) { + if (multiModalSegmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMultiModalSegmentsIsMutable(); + multiModalSegments_.set(index, value); + onChanged(); + } else { + multiModalSegmentsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public Builder setMultiModalSegments( + int index, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder builderForValue) { + if (multiModalSegmentsBuilder_ == null) { + ensureMultiModalSegmentsIsMutable(); + multiModalSegments_.set(index, builderForValue.build()); + onChanged(); + } else { + multiModalSegmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public Builder addMultiModalSegments(com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment value) { + if (multiModalSegmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMultiModalSegmentsIsMutable(); + multiModalSegments_.add(value); + onChanged(); + } else { + multiModalSegmentsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public Builder addMultiModalSegments( + int index, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment value) { + if (multiModalSegmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMultiModalSegmentsIsMutable(); + multiModalSegments_.add(index, value); + onChanged(); + } else { + multiModalSegmentsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public Builder addMultiModalSegments( + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder builderForValue) { + if (multiModalSegmentsBuilder_ == null) { + ensureMultiModalSegmentsIsMutable(); + multiModalSegments_.add(builderForValue.build()); + onChanged(); + } else { + multiModalSegmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public Builder addMultiModalSegments( + int index, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder builderForValue) { + if (multiModalSegmentsBuilder_ == null) { + ensureMultiModalSegmentsIsMutable(); + multiModalSegments_.add(index, builderForValue.build()); + onChanged(); + } else { + multiModalSegmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public Builder addAllMultiModalSegments( + java.lang.Iterable values) { + if (multiModalSegmentsBuilder_ == null) { + ensureMultiModalSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, multiModalSegments_); + onChanged(); + } else { + multiModalSegmentsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public Builder clearMultiModalSegments() { + if (multiModalSegmentsBuilder_ == null) { + multiModalSegments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + multiModalSegmentsBuilder_.clear(); + } + return this; + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public Builder removeMultiModalSegments(int index) { + if (multiModalSegmentsBuilder_ == null) { + ensureMultiModalSegmentsIsMutable(); + multiModalSegments_.remove(index); + onChanged(); + } else { + multiModalSegmentsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder getMultiModalSegmentsBuilder( + int index) { + return getMultiModalSegmentsFieldBuilder().getBuilder(index); + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder getMultiModalSegmentsOrBuilder( + int index) { + if (multiModalSegmentsBuilder_ == null) { + return multiModalSegments_.get(index); } else { + return multiModalSegmentsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public java.util.List + getMultiModalSegmentsOrBuilderList() { + if (multiModalSegmentsBuilder_ != null) { + return multiModalSegmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(multiModalSegments_); + } + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder addMultiModalSegmentsBuilder() { + return getMultiModalSegmentsFieldBuilder().addBuilder( + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.getDefaultInstance()); + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder addMultiModalSegmentsBuilder( + int index) { + return getMultiModalSegmentsFieldBuilder().addBuilder( + index, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.getDefaultInstance()); + } + /** + *
+       * Summarized information about different multi-modal segments of
+       * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
+       * not contain any multi-modal segments in the steps.
+       * 
+ * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + */ + public java.util.List + getMultiModalSegmentsBuilderList() { + return getMultiModalSegmentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder> + getMultiModalSegmentsFieldBuilder() { + if (multiModalSegmentsBuilder_ == null) { + multiModalSegmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder>( + multiModalSegments_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + multiModalSegments_ = null; + } + return multiModalSegmentsBuilder_; + } + @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.maps.routing.v2.RouteLeg.StepsOverview) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLeg.StepsOverview) + private static final com.google.maps.routing.v2.RouteLeg.StepsOverview DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLeg.StepsOverview(); + } + + public static com.google.maps.routing.v2.RouteLeg.StepsOverview getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StepsOverview 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.maps.routing.v2.RouteLeg.StepsOverview getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int DISTANCE_METERS_FIELD_NUMBER = 1; + private int distanceMeters_ = 0; + /** + *
+   * The travel distance of the route leg, in meters.
+   * 
+ * + * int32 distance_meters = 1; + * @return The distanceMeters. + */ + @java.lang.Override + public int getDistanceMeters() { + return distanceMeters_; + } + + public static final int DURATION_FIELD_NUMBER = 2; + private com.google.protobuf.Duration duration_; + /** + *
+   * The length of time needed to navigate the leg. If the `route_preference`
+   * is set to `TRAFFIC_UNAWARE`, then this value is the same as
+   * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
+   * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+   * conditions into account.
+   * 
+ * + * .google.protobuf.Duration duration = 2; + * @return Whether the duration field is set. + */ + @java.lang.Override + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+   * The length of time needed to navigate the leg. If the `route_preference`
+   * is set to `TRAFFIC_UNAWARE`, then this value is the same as
+   * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
+   * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+   * conditions into account.
+   * 
+ * + * .google.protobuf.Duration duration = 2; + * @return The duration. + */ + @java.lang.Override + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+   * The length of time needed to navigate the leg. If the `route_preference`
+   * is set to `TRAFFIC_UNAWARE`, then this value is the same as
+   * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
+   * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+   * conditions into account.
+   * 
+ * + * .google.protobuf.Duration duration = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + + public static final int STATIC_DURATION_FIELD_NUMBER = 3; + private com.google.protobuf.Duration staticDuration_; + /** + *
+   * The duration of travel through the leg, calculated without taking
+   * traffic conditions into consideration.
+   * 
+ * + * .google.protobuf.Duration static_duration = 3; + * @return Whether the staticDuration field is set. + */ + @java.lang.Override + public boolean hasStaticDuration() { + return staticDuration_ != null; + } + /** + *
+   * The duration of travel through the leg, calculated without taking
+   * traffic conditions into consideration.
+   * 
+ * + * .google.protobuf.Duration static_duration = 3; + * @return The staticDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getStaticDuration() { + return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } + /** + *
+   * The duration of travel through the leg, calculated without taking
+   * traffic conditions into consideration.
+   * 
+ * + * .google.protobuf.Duration static_duration = 3; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { + return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } + + public static final int POLYLINE_FIELD_NUMBER = 4; + private com.google.maps.routing.v2.Polyline polyline_; + /** + *
+   * The overall polyline for this leg that includes each `step`'s
+   * polyline.
+   * 
+ * + * .google.maps.routing.v2.Polyline polyline = 4; + * @return Whether the polyline field is set. + */ + @java.lang.Override + public boolean hasPolyline() { + return polyline_ != null; + } + /** + *
+   * The overall polyline for this leg that includes each `step`'s
+   * polyline.
+   * 
+ * + * .google.maps.routing.v2.Polyline polyline = 4; + * @return The polyline. + */ + @java.lang.Override + public com.google.maps.routing.v2.Polyline getPolyline() { + return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + } + /** + *
+   * The overall polyline for this leg that includes each `step`'s
+   * polyline.
+   * 
+ * + * .google.maps.routing.v2.Polyline polyline = 4; + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { + return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + } + + public static final int START_LOCATION_FIELD_NUMBER = 5; + private com.google.maps.routing.v2.Location startLocation_; + /** + *
+   * The start location of this leg. This location might be different from the
+   * provided `origin`. For example, when the provided `origin` is not near a
+   * road, this is a point on the road.
+   * 
+ * + * .google.maps.routing.v2.Location start_location = 5; + * @return Whether the startLocation field is set. + */ + @java.lang.Override + public boolean hasStartLocation() { + return startLocation_ != null; + } + /** + *
+   * The start location of this leg. This location might be different from the
+   * provided `origin`. For example, when the provided `origin` is not near a
+   * road, this is a point on the road.
+   * 
+ * + * .google.maps.routing.v2.Location start_location = 5; + * @return The startLocation. + */ + @java.lang.Override + public com.google.maps.routing.v2.Location getStartLocation() { + return startLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_; + } + /** + *
+   * The start location of this leg. This location might be different from the
+   * provided `origin`. For example, when the provided `origin` is not near a
+   * road, this is a point on the road.
+   * 
+ * + * .google.maps.routing.v2.Location start_location = 5; + */ + @java.lang.Override + public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder() { + return startLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_; + } + + public static final int END_LOCATION_FIELD_NUMBER = 6; + private com.google.maps.routing.v2.Location endLocation_; + /** + *
+   * The end location of this leg. This location might be different from the
+   * provided `destination`. For example, when the provided `destination` is not
+   * near a road, this is a point on the road.
+   * 
+ * + * .google.maps.routing.v2.Location end_location = 6; + * @return Whether the endLocation field is set. + */ + @java.lang.Override + public boolean hasEndLocation() { + return endLocation_ != null; + } + /** + *
+   * The end location of this leg. This location might be different from the
+   * provided `destination`. For example, when the provided `destination` is not
+   * near a road, this is a point on the road.
+   * 
+ * + * .google.maps.routing.v2.Location end_location = 6; + * @return The endLocation. + */ + @java.lang.Override + public com.google.maps.routing.v2.Location getEndLocation() { + return endLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_; + } + /** + *
+   * The end location of this leg. This location might be different from the
+   * provided `destination`. For example, when the provided `destination` is not
+   * near a road, this is a point on the road.
+   * 
+ * + * .google.maps.routing.v2.Location end_location = 6; + */ + @java.lang.Override + public com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder() { + return endLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_; + } + + public static final int STEPS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private java.util.List steps_; + /** + *
+   * An array of steps denoting segments within this leg. Each step represents
+   * one navigation instruction.
+   * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + @java.lang.Override + public java.util.List getStepsList() { + return steps_; + } + /** + *
+   * An array of steps denoting segments within this leg. Each step represents
+   * one navigation instruction.
+   * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + @java.lang.Override + public java.util.List + getStepsOrBuilderList() { + return steps_; + } + /** + *
+   * An array of steps denoting segments within this leg. Each step represents
+   * one navigation instruction.
+   * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + @java.lang.Override + public int getStepsCount() { + return steps_.size(); + } + /** + *
+   * An array of steps denoting segments within this leg. Each step represents
+   * one navigation instruction.
+   * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStep getSteps(int index) { + return steps_.get(index); + } + /** + *
+   * An array of steps denoting segments within this leg. Each step represents
+   * one navigation instruction.
+   * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder( + int index) { + return steps_.get(index); + } + + public static final int TRAVEL_ADVISORY_FIELD_NUMBER = 8; + private com.google.maps.routing.v2.RouteLegTravelAdvisory travelAdvisory_; + /** + *
+   * Contains the additional information that the user should be informed
+   * about, such as possible traffic zone restrictions, on a route leg.
+   * 
+ * + * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + * @return Whether the travelAdvisory field is set. + */ + @java.lang.Override + public boolean hasTravelAdvisory() { + return travelAdvisory_ != null; + } + /** + *
+   * Contains the additional information that the user should be informed
+   * about, such as possible traffic zone restrictions, on a route leg.
+   * 
+ * + * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + * @return The travelAdvisory. + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLegTravelAdvisory getTravelAdvisory() { + return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } + /** + *
+   * Contains the additional information that the user should be informed
+   * about, such as possible traffic zone restrictions, on a route leg.
+   * 
+ * + * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() { + return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } + + public static final int LOCALIZED_VALUES_FIELD_NUMBER = 9; + private com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localizedValues_; + /** + *
+   * Text representations of properties of the `RouteLeg`.
+   * 
+ * + * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + * @return Whether the localizedValues field is set. + */ + @java.lang.Override + public boolean hasLocalizedValues() { + return localizedValues_ != null; + } + /** + *
+   * Text representations of properties of the `RouteLeg`.
+   * 
+ * + * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + * @return The localizedValues. + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues getLocalizedValues() { + return localizedValues_ == null ? com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance() : localizedValues_; + } + /** + *
+   * Text representations of properties of the `RouteLeg`.
+   * 
+ * + * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { + return localizedValues_ == null ? com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance() : localizedValues_; + } + + public static final int STEPS_OVERVIEW_FIELD_NUMBER = 10; + private com.google.maps.routing.v2.RouteLeg.StepsOverview stepsOverview_; + /** + *
+   * Overview information about the steps in this `RouteLeg`. This field is only
+   * populated for TRANSIT routes.
+   * 
+ * + * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + * @return Whether the stepsOverview field is set. + */ + @java.lang.Override + public boolean hasStepsOverview() { + return stepsOverview_ != null; + } + /** + *
+   * Overview information about the steps in this `RouteLeg`. This field is only
+   * populated for TRANSIT routes.
+   * 
+ * + * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + * @return The stepsOverview. + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg.StepsOverview getStepsOverview() { + return stepsOverview_ == null ? com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance() : stepsOverview_; + } + /** + *
+   * Overview information about the steps in this `RouteLeg`. This field is only
+   * populated for TRANSIT routes.
+   * 
+ * + * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder getStepsOverviewOrBuilder() { + return stepsOverview_ == null ? com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance() : stepsOverview_; + } + + 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 (distanceMeters_ != 0) { + output.writeInt32(1, distanceMeters_); + } + if (duration_ != null) { + output.writeMessage(2, getDuration()); + } + if (staticDuration_ != null) { + output.writeMessage(3, getStaticDuration()); + } + if (polyline_ != null) { + output.writeMessage(4, getPolyline()); + } + if (startLocation_ != null) { + output.writeMessage(5, getStartLocation()); + } + if (endLocation_ != null) { + output.writeMessage(6, getEndLocation()); + } + for (int i = 0; i < steps_.size(); i++) { + output.writeMessage(7, steps_.get(i)); + } + if (travelAdvisory_ != null) { + output.writeMessage(8, getTravelAdvisory()); + } + if (localizedValues_ != null) { + output.writeMessage(9, getLocalizedValues()); + } + if (stepsOverview_ != null) { + output.writeMessage(10, getStepsOverview()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (distanceMeters_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, distanceMeters_); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDuration()); + } + if (staticDuration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStaticDuration()); + } + if (polyline_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPolyline()); + } + if (startLocation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getStartLocation()); + } + if (endLocation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getEndLocation()); + } + for (int i = 0; i < steps_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, steps_.get(i)); + } + if (travelAdvisory_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getTravelAdvisory()); + } + if (localizedValues_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getLocalizedValues()); + } + if (stepsOverview_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getStepsOverview()); + } + 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.maps.routing.v2.RouteLeg)) { + return super.equals(obj); + } + com.google.maps.routing.v2.RouteLeg other = (com.google.maps.routing.v2.RouteLeg) obj; + + if (getDistanceMeters() + != other.getDistanceMeters()) return false; + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) return false; + } + if (hasStaticDuration() != other.hasStaticDuration()) return false; + if (hasStaticDuration()) { + if (!getStaticDuration() + .equals(other.getStaticDuration())) return false; + } + if (hasPolyline() != other.hasPolyline()) return false; + if (hasPolyline()) { + if (!getPolyline() + .equals(other.getPolyline())) return false; + } + if (hasStartLocation() != other.hasStartLocation()) return false; + if (hasStartLocation()) { + if (!getStartLocation() + .equals(other.getStartLocation())) return false; + } + if (hasEndLocation() != other.hasEndLocation()) return false; + if (hasEndLocation()) { + if (!getEndLocation() + .equals(other.getEndLocation())) return false; + } + if (!getStepsList() + .equals(other.getStepsList())) return false; + if (hasTravelAdvisory() != other.hasTravelAdvisory()) return false; + if (hasTravelAdvisory()) { + if (!getTravelAdvisory() + .equals(other.getTravelAdvisory())) return false; + } + if (hasLocalizedValues() != other.hasLocalizedValues()) return false; + if (hasLocalizedValues()) { + if (!getLocalizedValues() + .equals(other.getLocalizedValues())) return false; + } + if (hasStepsOverview() != other.hasStepsOverview()) return false; + if (hasStepsOverview()) { + if (!getStepsOverview() + .equals(other.getStepsOverview())) 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) + DISTANCE_METERS_FIELD_NUMBER; + hash = (53 * hash) + getDistanceMeters(); + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasStaticDuration()) { + hash = (37 * hash) + STATIC_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getStaticDuration().hashCode(); + } + if (hasPolyline()) { + hash = (37 * hash) + POLYLINE_FIELD_NUMBER; + hash = (53 * hash) + getPolyline().hashCode(); + } + if (hasStartLocation()) { + hash = (37 * hash) + START_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getStartLocation().hashCode(); + } + if (hasEndLocation()) { + hash = (37 * hash) + END_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getEndLocation().hashCode(); + } + if (getStepsCount() > 0) { + hash = (37 * hash) + STEPS_FIELD_NUMBER; + hash = (53 * hash) + getStepsList().hashCode(); + } + if (hasTravelAdvisory()) { + hash = (37 * hash) + TRAVEL_ADVISORY_FIELD_NUMBER; + hash = (53 * hash) + getTravelAdvisory().hashCode(); + } + if (hasLocalizedValues()) { + hash = (37 * hash) + LOCALIZED_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getLocalizedValues().hashCode(); + } + if (hasStepsOverview()) { + hash = (37 * hash) + STEPS_OVERVIEW_FIELD_NUMBER; + hash = (53 * hash) + getStepsOverview().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.RouteLeg parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLeg parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLeg parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLeg parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLeg parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg 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; + } + /** + *
+   * Contains a segment between non-`via` waypoints.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLeg} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.RouteLeg) + com.google.maps.routing.v2.RouteLegOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLeg.class, com.google.maps.routing.v2.RouteLeg.Builder.class); + } + + // Construct using com.google.maps.routing.v2.RouteLeg.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + distanceMeters_ = 0; + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + polyline_ = null; + if (polylineBuilder_ != null) { + polylineBuilder_.dispose(); + polylineBuilder_ = null; + } + startLocation_ = null; + if (startLocationBuilder_ != null) { + startLocationBuilder_.dispose(); + startLocationBuilder_ = null; + } + endLocation_ = null; + if (endLocationBuilder_ != null) { + endLocationBuilder_.dispose(); + endLocationBuilder_ = null; + } + if (stepsBuilder_ == null) { + steps_ = java.util.Collections.emptyList(); + } else { + steps_ = null; + stepsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + travelAdvisory_ = null; + if (travelAdvisoryBuilder_ != null) { + travelAdvisoryBuilder_.dispose(); + travelAdvisoryBuilder_ = null; + } + localizedValues_ = null; + if (localizedValuesBuilder_ != null) { + localizedValuesBuilder_.dispose(); + localizedValuesBuilder_ = null; + } + stepsOverview_ = null; + if (stepsOverviewBuilder_ != null) { + stepsOverviewBuilder_.dispose(); + stepsOverviewBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg getDefaultInstanceForType() { + return com.google.maps.routing.v2.RouteLeg.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg build() { + com.google.maps.routing.v2.RouteLeg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLeg buildPartial() { + com.google.maps.routing.v2.RouteLeg result = new com.google.maps.routing.v2.RouteLeg(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.maps.routing.v2.RouteLeg result) { + if (stepsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + steps_ = java.util.Collections.unmodifiableList(steps_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.steps_ = steps_; + } else { + result.steps_ = stepsBuilder_.build(); + } + } + + private void buildPartial0(com.google.maps.routing.v2.RouteLeg result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.distanceMeters_ = distanceMeters_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.duration_ = durationBuilder_ == null + ? duration_ + : durationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.staticDuration_ = staticDurationBuilder_ == null + ? staticDuration_ + : staticDurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.polyline_ = polylineBuilder_ == null + ? polyline_ + : polylineBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.startLocation_ = startLocationBuilder_ == null + ? startLocation_ + : startLocationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.endLocation_ = endLocationBuilder_ == null + ? endLocation_ + : endLocationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.travelAdvisory_ = travelAdvisoryBuilder_ == null + ? travelAdvisory_ + : travelAdvisoryBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.localizedValues_ = localizedValuesBuilder_ == null + ? localizedValues_ + : localizedValuesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.stepsOverview_ = stepsOverviewBuilder_ == null + ? stepsOverview_ + : stepsOverviewBuilder_.build(); + } + } + + @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.maps.routing.v2.RouteLeg) { + return mergeFrom((com.google.maps.routing.v2.RouteLeg)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.RouteLeg other) { + if (other == com.google.maps.routing.v2.RouteLeg.getDefaultInstance()) return this; + if (other.getDistanceMeters() != 0) { + setDistanceMeters(other.getDistanceMeters()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasStaticDuration()) { + mergeStaticDuration(other.getStaticDuration()); + } + if (other.hasPolyline()) { + mergePolyline(other.getPolyline()); + } + if (other.hasStartLocation()) { + mergeStartLocation(other.getStartLocation()); + } + if (other.hasEndLocation()) { + mergeEndLocation(other.getEndLocation()); + } + if (stepsBuilder_ == null) { + if (!other.steps_.isEmpty()) { + if (steps_.isEmpty()) { + steps_ = other.steps_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureStepsIsMutable(); + steps_.addAll(other.steps_); + } + onChanged(); + } + } else { + if (!other.steps_.isEmpty()) { + if (stepsBuilder_.isEmpty()) { + stepsBuilder_.dispose(); + stepsBuilder_ = null; + steps_ = other.steps_; + bitField0_ = (bitField0_ & ~0x00000040); + stepsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStepsFieldBuilder() : null; + } else { + stepsBuilder_.addAllMessages(other.steps_); + } + } + } + if (other.hasTravelAdvisory()) { + mergeTravelAdvisory(other.getTravelAdvisory()); + } + if (other.hasLocalizedValues()) { + mergeLocalizedValues(other.getLocalizedValues()); + } + if (other.hasStepsOverview()) { + mergeStepsOverview(other.getStepsOverview()); + } + 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 8: { + distanceMeters_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getStaticDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getPolylineFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getStartLocationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getEndLocationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + com.google.maps.routing.v2.RouteLegStep m = + input.readMessage( + com.google.maps.routing.v2.RouteLegStep.parser(), + extensionRegistry); + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(m); + } else { + stepsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: { + input.readMessage( + getTravelAdvisoryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + input.readMessage( + getLocalizedValuesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + input.readMessage( + getStepsOverviewFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int distanceMeters_ ; + /** + *
+     * The travel distance of the route leg, in meters.
+     * 
+ * + * int32 distance_meters = 1; + * @return The distanceMeters. + */ + @java.lang.Override + public int getDistanceMeters() { + return distanceMeters_; + } + /** + *
+     * The travel distance of the route leg, in meters.
+     * 
+ * + * int32 distance_meters = 1; + * @param value The distanceMeters to set. + * @return This builder for chaining. + */ + public Builder setDistanceMeters(int value) { + + distanceMeters_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The travel distance of the route leg, in meters.
+     * 
+ * + * int32 distance_meters = 1; + * @return This builder for chaining. + */ + public Builder clearDistanceMeters() { + bitField0_ = (bitField0_ & ~0x00000001); + distanceMeters_ = 0; + onChanged(); + return this; + } + + 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_; + /** + *
+     * The length of time needed to navigate the leg. If the `route_preference`
+     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 2; + * @return Whether the duration field is set. + */ + public boolean hasDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * The length of time needed to navigate the leg. If the `route_preference`
+     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 2; + * @return The duration. + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+     * The length of time needed to navigate the leg. If the `route_preference`
+     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + } else { + durationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The length of time needed to navigate the leg. If the `route_preference`
+     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The length of time needed to navigate the leg. If the `route_preference`
+     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + duration_ != null && + duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getDurationBuilder().mergeFrom(value); + } else { + duration_ = value; + } + } else { + durationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The length of time needed to navigate the leg. If the `route_preference`
+     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public Builder clearDuration() { + bitField0_ = (bitField0_ & ~0x00000002); + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The length of time needed to navigate the leg. If the `route_preference`
+     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+     * The length of time needed to navigate the leg. If the `route_preference`
+     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+     * The length of time needed to navigate the leg. If the `route_preference`
+     * is set to `TRAFFIC_UNAWARE`, then this value is the same as
+     * `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + duration_ = null; + } + return durationBuilder_; + } + + private com.google.protobuf.Duration staticDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> staticDurationBuilder_; + /** + *
+     * The duration of travel through the leg, calculated without taking
+     * traffic conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 3; + * @return Whether the staticDuration field is set. + */ + public boolean hasStaticDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * The duration of travel through the leg, calculated without taking
+     * traffic conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 3; + * @return The staticDuration. + */ + public com.google.protobuf.Duration getStaticDuration() { + if (staticDurationBuilder_ == null) { + return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } else { + return staticDurationBuilder_.getMessage(); + } + } + /** + *
+     * The duration of travel through the leg, calculated without taking
+     * traffic conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 3; + */ + public Builder setStaticDuration(com.google.protobuf.Duration value) { + if (staticDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + staticDuration_ = value; + } else { + staticDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The duration of travel through the leg, calculated without taking
+     * traffic conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 3; + */ + public Builder setStaticDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (staticDurationBuilder_ == null) { + staticDuration_ = builderForValue.build(); + } else { + staticDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The duration of travel through the leg, calculated without taking
+     * traffic conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 3; + */ + public Builder mergeStaticDuration(com.google.protobuf.Duration value) { + if (staticDurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + staticDuration_ != null && + staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getStaticDurationBuilder().mergeFrom(value); + } else { + staticDuration_ = value; + } + } else { + staticDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The duration of travel through the leg, calculated without taking
+     * traffic conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 3; + */ + public Builder clearStaticDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The duration of travel through the leg, calculated without taking
+     * traffic conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 3; + */ + public com.google.protobuf.Duration.Builder getStaticDurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStaticDurationFieldBuilder().getBuilder(); + } + /** + *
+     * The duration of travel through the leg, calculated without taking
+     * traffic conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 3; + */ + public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { + if (staticDurationBuilder_ != null) { + return staticDurationBuilder_.getMessageOrBuilder(); + } else { + return staticDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } + } + /** + *
+     * The duration of travel through the leg, calculated without taking
+     * traffic conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getStaticDurationFieldBuilder() { + if (staticDurationBuilder_ == null) { + staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getStaticDuration(), + getParentForChildren(), + isClean()); + staticDuration_ = null; + } + return staticDurationBuilder_; + } + + private com.google.maps.routing.v2.Polyline polyline_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder> polylineBuilder_; + /** + *
+     * The overall polyline for this leg that includes each `step`'s
+     * polyline.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 4; + * @return Whether the polyline field is set. + */ + public boolean hasPolyline() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * The overall polyline for this leg that includes each `step`'s
+     * polyline.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 4; + * @return The polyline. + */ + public com.google.maps.routing.v2.Polyline getPolyline() { + if (polylineBuilder_ == null) { + return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + } else { + return polylineBuilder_.getMessage(); + } + } + /** + *
+     * The overall polyline for this leg that includes each `step`'s
+     * polyline.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 4; + */ + public Builder setPolyline(com.google.maps.routing.v2.Polyline value) { + if (polylineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + polyline_ = value; + } else { + polylineBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The overall polyline for this leg that includes each `step`'s
+     * polyline.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 4; + */ + public Builder setPolyline( + com.google.maps.routing.v2.Polyline.Builder builderForValue) { + if (polylineBuilder_ == null) { + polyline_ = builderForValue.build(); + } else { + polylineBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The overall polyline for this leg that includes each `step`'s
+     * polyline.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 4; + */ + public Builder mergePolyline(com.google.maps.routing.v2.Polyline value) { + if (polylineBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + polyline_ != null && + polyline_ != com.google.maps.routing.v2.Polyline.getDefaultInstance()) { + getPolylineBuilder().mergeFrom(value); + } else { + polyline_ = value; + } + } else { + polylineBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The overall polyline for this leg that includes each `step`'s
+     * polyline.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 4; + */ + public Builder clearPolyline() { + bitField0_ = (bitField0_ & ~0x00000008); + polyline_ = null; + if (polylineBuilder_ != null) { + polylineBuilder_.dispose(); + polylineBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The overall polyline for this leg that includes each `step`'s
+     * polyline.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 4; + */ + public com.google.maps.routing.v2.Polyline.Builder getPolylineBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getPolylineFieldBuilder().getBuilder(); + } + /** + *
+     * The overall polyline for this leg that includes each `step`'s
+     * polyline.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 4; + */ + public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { + if (polylineBuilder_ != null) { + return polylineBuilder_.getMessageOrBuilder(); + } else { + return polyline_ == null ? + com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + } + } + /** + *
+     * The overall polyline for this leg that includes each `step`'s
+     * polyline.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder> + getPolylineFieldBuilder() { + if (polylineBuilder_ == null) { + polylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder>( + getPolyline(), + getParentForChildren(), + isClean()); + polyline_ = null; + } + return polylineBuilder_; + } + + private com.google.maps.routing.v2.Location startLocation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> startLocationBuilder_; + /** + *
+     * The start location of this leg. This location might be different from the
+     * provided `origin`. For example, when the provided `origin` is not near a
+     * road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 5; + * @return Whether the startLocation field is set. + */ + public boolean hasStartLocation() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * The start location of this leg. This location might be different from the
+     * provided `origin`. For example, when the provided `origin` is not near a
+     * road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 5; + * @return The startLocation. + */ + public com.google.maps.routing.v2.Location getStartLocation() { + if (startLocationBuilder_ == null) { + return startLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_; + } else { + return startLocationBuilder_.getMessage(); + } + } + /** + *
+     * The start location of this leg. This location might be different from the
+     * provided `origin`. For example, when the provided `origin` is not near a
+     * road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 5; + */ + public Builder setStartLocation(com.google.maps.routing.v2.Location value) { + if (startLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startLocation_ = value; + } else { + startLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The start location of this leg. This location might be different from the
+     * provided `origin`. For example, when the provided `origin` is not near a
+     * road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 5; + */ + public Builder setStartLocation( + com.google.maps.routing.v2.Location.Builder builderForValue) { + if (startLocationBuilder_ == null) { + startLocation_ = builderForValue.build(); + } else { + startLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The start location of this leg. This location might be different from the
+     * provided `origin`. For example, when the provided `origin` is not near a
+     * road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 5; + */ + public Builder mergeStartLocation(com.google.maps.routing.v2.Location value) { + if (startLocationBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + startLocation_ != null && + startLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) { + getStartLocationBuilder().mergeFrom(value); + } else { + startLocation_ = value; + } + } else { + startLocationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The start location of this leg. This location might be different from the
+     * provided `origin`. For example, when the provided `origin` is not near a
+     * road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 5; + */ + public Builder clearStartLocation() { + bitField0_ = (bitField0_ & ~0x00000010); + startLocation_ = null; + if (startLocationBuilder_ != null) { + startLocationBuilder_.dispose(); + startLocationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The start location of this leg. This location might be different from the
+     * provided `origin`. For example, when the provided `origin` is not near a
+     * road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 5; + */ + public com.google.maps.routing.v2.Location.Builder getStartLocationBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getStartLocationFieldBuilder().getBuilder(); + } + /** + *
+     * The start location of this leg. This location might be different from the
+     * provided `origin`. For example, when the provided `origin` is not near a
+     * road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 5; + */ + public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder() { + if (startLocationBuilder_ != null) { + return startLocationBuilder_.getMessageOrBuilder(); + } else { + return startLocation_ == null ? + com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_; + } + } + /** + *
+     * The start location of this leg. This location might be different from the
+     * provided `origin`. For example, when the provided `origin` is not near a
+     * road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> + getStartLocationFieldBuilder() { + if (startLocationBuilder_ == null) { + startLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder>( + getStartLocation(), + getParentForChildren(), + isClean()); + startLocation_ = null; + } + return startLocationBuilder_; + } + + private com.google.maps.routing.v2.Location endLocation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> endLocationBuilder_; + /** + *
+     * The end location of this leg. This location might be different from the
+     * provided `destination`. For example, when the provided `destination` is not
+     * near a road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 6; + * @return Whether the endLocation field is set. + */ + public boolean hasEndLocation() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * The end location of this leg. This location might be different from the
+     * provided `destination`. For example, when the provided `destination` is not
+     * near a road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 6; + * @return The endLocation. + */ + public com.google.maps.routing.v2.Location getEndLocation() { + if (endLocationBuilder_ == null) { + return endLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_; + } else { + return endLocationBuilder_.getMessage(); + } + } + /** + *
+     * The end location of this leg. This location might be different from the
+     * provided `destination`. For example, when the provided `destination` is not
+     * near a road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 6; + */ + public Builder setEndLocation(com.google.maps.routing.v2.Location value) { + if (endLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endLocation_ = value; + } else { + endLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The end location of this leg. This location might be different from the
+     * provided `destination`. For example, when the provided `destination` is not
+     * near a road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 6; + */ + public Builder setEndLocation( + com.google.maps.routing.v2.Location.Builder builderForValue) { + if (endLocationBuilder_ == null) { + endLocation_ = builderForValue.build(); + } else { + endLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The end location of this leg. This location might be different from the
+     * provided `destination`. For example, when the provided `destination` is not
+     * near a road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 6; + */ + public Builder mergeEndLocation(com.google.maps.routing.v2.Location value) { + if (endLocationBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + endLocation_ != null && + endLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) { + getEndLocationBuilder().mergeFrom(value); + } else { + endLocation_ = value; + } + } else { + endLocationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The end location of this leg. This location might be different from the
+     * provided `destination`. For example, when the provided `destination` is not
+     * near a road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 6; + */ + public Builder clearEndLocation() { + bitField0_ = (bitField0_ & ~0x00000020); + endLocation_ = null; + if (endLocationBuilder_ != null) { + endLocationBuilder_.dispose(); + endLocationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The end location of this leg. This location might be different from the
+     * provided `destination`. For example, when the provided `destination` is not
+     * near a road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 6; + */ + public com.google.maps.routing.v2.Location.Builder getEndLocationBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getEndLocationFieldBuilder().getBuilder(); + } + /** + *
+     * The end location of this leg. This location might be different from the
+     * provided `destination`. For example, when the provided `destination` is not
+     * near a road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 6; + */ + public com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder() { + if (endLocationBuilder_ != null) { + return endLocationBuilder_.getMessageOrBuilder(); + } else { + return endLocation_ == null ? + com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_; + } + } + /** + *
+     * The end location of this leg. This location might be different from the
+     * provided `destination`. For example, when the provided `destination` is not
+     * near a road, this is a point on the road.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> + getEndLocationFieldBuilder() { + if (endLocationBuilder_ == null) { + endLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder>( + getEndLocation(), + getParentForChildren(), + isClean()); + endLocation_ = null; + } + return endLocationBuilder_; + } + + private java.util.List steps_ = + java.util.Collections.emptyList(); + private void ensureStepsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + steps_ = new java.util.ArrayList(steps_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStep, com.google.maps.routing.v2.RouteLegStep.Builder, com.google.maps.routing.v2.RouteLegStepOrBuilder> stepsBuilder_; + + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public java.util.List getStepsList() { + if (stepsBuilder_ == null) { + return java.util.Collections.unmodifiableList(steps_); + } else { + return stepsBuilder_.getMessageList(); + } + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public int getStepsCount() { + if (stepsBuilder_ == null) { + return steps_.size(); + } else { + return stepsBuilder_.getCount(); + } + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public com.google.maps.routing.v2.RouteLegStep getSteps(int index) { + if (stepsBuilder_ == null) { + return steps_.get(index); + } else { + return stepsBuilder_.getMessage(index); + } + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public Builder setSteps( + int index, com.google.maps.routing.v2.RouteLegStep value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.set(index, value); + onChanged(); + } else { + stepsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public Builder setSteps( + int index, com.google.maps.routing.v2.RouteLegStep.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.set(index, builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public Builder addSteps(com.google.maps.routing.v2.RouteLegStep value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.add(value); + onChanged(); + } else { + stepsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public Builder addSteps( + int index, com.google.maps.routing.v2.RouteLegStep value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.add(index, value); + onChanged(); + } else { + stepsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public Builder addSteps( + com.google.maps.routing.v2.RouteLegStep.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public Builder addSteps( + int index, com.google.maps.routing.v2.RouteLegStep.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(index, builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public Builder addAllSteps( + java.lang.Iterable values) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, steps_); + onChanged(); + } else { + stepsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public Builder clearSteps() { + if (stepsBuilder_ == null) { + steps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + stepsBuilder_.clear(); + } + return this; + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public Builder removeSteps(int index) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.remove(index); + onChanged(); + } else { + stepsBuilder_.remove(index); + } + return this; + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public com.google.maps.routing.v2.RouteLegStep.Builder getStepsBuilder( + int index) { + return getStepsFieldBuilder().getBuilder(index); + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder( + int index) { + if (stepsBuilder_ == null) { + return steps_.get(index); } else { + return stepsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public java.util.List + getStepsOrBuilderList() { + if (stepsBuilder_ != null) { + return stepsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(steps_); + } + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public com.google.maps.routing.v2.RouteLegStep.Builder addStepsBuilder() { + return getStepsFieldBuilder().addBuilder( + com.google.maps.routing.v2.RouteLegStep.getDefaultInstance()); + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public com.google.maps.routing.v2.RouteLegStep.Builder addStepsBuilder( + int index) { + return getStepsFieldBuilder().addBuilder( + index, com.google.maps.routing.v2.RouteLegStep.getDefaultInstance()); + } + /** + *
+     * An array of steps denoting segments within this leg. Each step represents
+     * one navigation instruction.
+     * 
+ * + * repeated .google.maps.routing.v2.RouteLegStep steps = 7; + */ + public java.util.List + getStepsBuilderList() { + return getStepsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStep, com.google.maps.routing.v2.RouteLegStep.Builder, com.google.maps.routing.v2.RouteLegStepOrBuilder> + getStepsFieldBuilder() { + if (stepsBuilder_ == null) { + stepsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStep, com.google.maps.routing.v2.RouteLegStep.Builder, com.google.maps.routing.v2.RouteLegStepOrBuilder>( + steps_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + steps_ = null; + } + return stepsBuilder_; + } + + private com.google.maps.routing.v2.RouteLegTravelAdvisory travelAdvisory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegTravelAdvisory, com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder, com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder> travelAdvisoryBuilder_; + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a route leg.
+     * 
+ * + * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + * @return Whether the travelAdvisory field is set. + */ + public boolean hasTravelAdvisory() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a route leg.
+     * 
+ * + * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + * @return The travelAdvisory. + */ + public com.google.maps.routing.v2.RouteLegTravelAdvisory getTravelAdvisory() { + if (travelAdvisoryBuilder_ == null) { + return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } else { + return travelAdvisoryBuilder_.getMessage(); + } + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a route leg.
+     * 
+ * + * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + */ + public Builder setTravelAdvisory(com.google.maps.routing.v2.RouteLegTravelAdvisory value) { + if (travelAdvisoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + travelAdvisory_ = value; + } else { + travelAdvisoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a route leg.
+     * 
+ * + * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + */ + public Builder setTravelAdvisory( + com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder builderForValue) { + if (travelAdvisoryBuilder_ == null) { + travelAdvisory_ = builderForValue.build(); + } else { + travelAdvisoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a route leg.
+     * 
+ * + * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + */ + public Builder mergeTravelAdvisory(com.google.maps.routing.v2.RouteLegTravelAdvisory value) { + if (travelAdvisoryBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + travelAdvisory_ != null && + travelAdvisory_ != com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance()) { + getTravelAdvisoryBuilder().mergeFrom(value); + } else { + travelAdvisory_ = value; + } + } else { + travelAdvisoryBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a route leg.
+     * 
+ * + * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + */ + public Builder clearTravelAdvisory() { + bitField0_ = (bitField0_ & ~0x00000080); + travelAdvisory_ = null; + if (travelAdvisoryBuilder_ != null) { + travelAdvisoryBuilder_.dispose(); + travelAdvisoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a route leg.
+     * 
+ * + * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + */ + public com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder getTravelAdvisoryBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getTravelAdvisoryFieldBuilder().getBuilder(); + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a route leg.
+     * 
+ * + * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + */ + public com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() { + if (travelAdvisoryBuilder_ != null) { + return travelAdvisoryBuilder_.getMessageOrBuilder(); + } else { + return travelAdvisory_ == null ? + com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a route leg.
+     * 
+ * + * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegTravelAdvisory, com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder, com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder> + getTravelAdvisoryFieldBuilder() { + if (travelAdvisoryBuilder_ == null) { + travelAdvisoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegTravelAdvisory, com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder, com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder>( + getTravelAdvisory(), + getParentForChildren(), + isClean()); + travelAdvisory_ = null; + } + return travelAdvisoryBuilder_; + } + + private com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localizedValues_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder> localizedValuesBuilder_; + /** + *
+     * Text representations of properties of the `RouteLeg`.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + * @return Whether the localizedValues field is set. + */ + public boolean hasLocalizedValues() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * Text representations of properties of the `RouteLeg`.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + * @return The localizedValues. + */ + public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues getLocalizedValues() { + if (localizedValuesBuilder_ == null) { + return localizedValues_ == null ? com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance() : localizedValues_; + } else { + return localizedValuesBuilder_.getMessage(); + } + } + /** + *
+     * Text representations of properties of the `RouteLeg`.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + */ + public Builder setLocalizedValues(com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues value) { + if (localizedValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + localizedValues_ = value; + } else { + localizedValuesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteLeg`.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + */ + public Builder setLocalizedValues( + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder builderForValue) { + if (localizedValuesBuilder_ == null) { + localizedValues_ = builderForValue.build(); + } else { + localizedValuesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteLeg`.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + */ + public Builder mergeLocalizedValues(com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues value) { + if (localizedValuesBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + localizedValues_ != null && + localizedValues_ != com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance()) { + getLocalizedValuesBuilder().mergeFrom(value); + } else { + localizedValues_ = value; + } + } else { + localizedValuesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteLeg`.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + */ + public Builder clearLocalizedValues() { + bitField0_ = (bitField0_ & ~0x00000100); + localizedValues_ = null; + if (localizedValuesBuilder_ != null) { + localizedValuesBuilder_.dispose(); + localizedValuesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteLeg`.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + */ + public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder getLocalizedValuesBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getLocalizedValuesFieldBuilder().getBuilder(); + } + /** + *
+     * Text representations of properties of the `RouteLeg`.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + */ + public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { + if (localizedValuesBuilder_ != null) { + return localizedValuesBuilder_.getMessageOrBuilder(); + } else { + return localizedValues_ == null ? + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance() : localizedValues_; + } + } + /** + *
+     * Text representations of properties of the `RouteLeg`.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder> + getLocalizedValuesFieldBuilder() { + if (localizedValuesBuilder_ == null) { + localizedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder>( + getLocalizedValues(), + getParentForChildren(), + isClean()); + localizedValues_ = null; + } + return localizedValuesBuilder_; + } + + private com.google.maps.routing.v2.RouteLeg.StepsOverview stepsOverview_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLeg.StepsOverview, com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder, com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder> stepsOverviewBuilder_; + /** + *
+     * Overview information about the steps in this `RouteLeg`. This field is only
+     * populated for TRANSIT routes.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + * @return Whether the stepsOverview field is set. + */ + public boolean hasStepsOverview() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+     * Overview information about the steps in this `RouteLeg`. This field is only
+     * populated for TRANSIT routes.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + * @return The stepsOverview. + */ + public com.google.maps.routing.v2.RouteLeg.StepsOverview getStepsOverview() { + if (stepsOverviewBuilder_ == null) { + return stepsOverview_ == null ? com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance() : stepsOverview_; + } else { + return stepsOverviewBuilder_.getMessage(); + } + } + /** + *
+     * Overview information about the steps in this `RouteLeg`. This field is only
+     * populated for TRANSIT routes.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + */ + public Builder setStepsOverview(com.google.maps.routing.v2.RouteLeg.StepsOverview value) { + if (stepsOverviewBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepsOverview_ = value; + } else { + stepsOverviewBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Overview information about the steps in this `RouteLeg`. This field is only
+     * populated for TRANSIT routes.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + */ + public Builder setStepsOverview( + com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder builderForValue) { + if (stepsOverviewBuilder_ == null) { + stepsOverview_ = builderForValue.build(); + } else { + stepsOverviewBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Overview information about the steps in this `RouteLeg`. This field is only
+     * populated for TRANSIT routes.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + */ + public Builder mergeStepsOverview(com.google.maps.routing.v2.RouteLeg.StepsOverview value) { + if (stepsOverviewBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + stepsOverview_ != null && + stepsOverview_ != com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance()) { + getStepsOverviewBuilder().mergeFrom(value); + } else { + stepsOverview_ = value; + } + } else { + stepsOverviewBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Overview information about the steps in this `RouteLeg`. This field is only
+     * populated for TRANSIT routes.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + */ + public Builder clearStepsOverview() { + bitField0_ = (bitField0_ & ~0x00000200); + stepsOverview_ = null; + if (stepsOverviewBuilder_ != null) { + stepsOverviewBuilder_.dispose(); + stepsOverviewBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Overview information about the steps in this `RouteLeg`. This field is only
+     * populated for TRANSIT routes.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + */ + public com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder getStepsOverviewBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getStepsOverviewFieldBuilder().getBuilder(); + } + /** + *
+     * Overview information about the steps in this `RouteLeg`. This field is only
+     * populated for TRANSIT routes.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + */ + public com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder getStepsOverviewOrBuilder() { + if (stepsOverviewBuilder_ != null) { + return stepsOverviewBuilder_.getMessageOrBuilder(); + } else { + return stepsOverview_ == null ? + com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance() : stepsOverview_; + } + } + /** + *
+     * Overview information about the steps in this `RouteLeg`. This field is only
+     * populated for TRANSIT routes.
+     * 
+ * + * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLeg.StepsOverview, com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder, com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder> + getStepsOverviewFieldBuilder() { + if (stepsOverviewBuilder_ == null) { + stepsOverviewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLeg.StepsOverview, com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder, com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder>( + getStepsOverview(), + getParentForChildren(), + isClean()); + stepsOverview_ = null; + } + return stepsOverviewBuilder_; + } + @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.maps.routing.v2.RouteLeg) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLeg) + private static final com.google.maps.routing.v2.RouteLeg DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLeg(); + } + + public static com.google.maps.routing.v2.RouteLeg getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouteLeg 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.maps.routing.v2.RouteLeg getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegOrBuilder.java similarity index 62% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegOrBuilder.java index 9229caa1916a..fe8ae85002f7 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegOrBuilder.java @@ -1,44 +1,23 @@ -/* - * 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/maps/routing/v2/route.proto package com.google.maps.routing.v2; -public interface RouteLegOrBuilder - extends +public interface RouteLegOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLeg) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The travel distance of the route leg, in meters.
    * 
* * int32 distance_meters = 1; - * * @return The distanceMeters. */ int getDistanceMeters(); /** - * - * *
    * The length of time needed to navigate the leg. If the `route_preference`
    * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -48,13 +27,10 @@ public interface RouteLegOrBuilder
    * 
* * .google.protobuf.Duration duration = 2; - * * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
    * The length of time needed to navigate the leg. If the `route_preference`
    * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -64,13 +40,10 @@ public interface RouteLegOrBuilder
    * 
* * .google.protobuf.Duration duration = 2; - * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
    * The length of time needed to navigate the leg. If the `route_preference`
    * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -84,36 +57,28 @@ public interface RouteLegOrBuilder
   com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
 
   /**
-   *
-   *
    * 
-   * The duration of traveling through the leg, calculated without taking
+   * The duration of travel through the leg, calculated without taking
    * traffic conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 3; - * * @return Whether the staticDuration field is set. */ boolean hasStaticDuration(); /** - * - * *
-   * The duration of traveling through the leg, calculated without taking
+   * The duration of travel through the leg, calculated without taking
    * traffic conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 3; - * * @return The staticDuration. */ com.google.protobuf.Duration getStaticDuration(); /** - * - * *
-   * The duration of traveling through the leg, calculated without taking
+   * The duration of travel through the leg, calculated without taking
    * traffic conditions into consideration.
    * 
* @@ -122,36 +87,28 @@ public interface RouteLegOrBuilder com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder(); /** - * - * *
-   * The overall polyline for this leg. This includes that each `step`'s
+   * The overall polyline for this leg that includes each `step`'s
    * polyline.
    * 
* * .google.maps.routing.v2.Polyline polyline = 4; - * * @return Whether the polyline field is set. */ boolean hasPolyline(); /** - * - * *
-   * The overall polyline for this leg. This includes that each `step`'s
+   * The overall polyline for this leg that includes each `step`'s
    * polyline.
    * 
* * .google.maps.routing.v2.Polyline polyline = 4; - * * @return The polyline. */ com.google.maps.routing.v2.Polyline getPolyline(); /** - * - * *
-   * The overall polyline for this leg. This includes that each `step`'s
+   * The overall polyline for this leg that includes each `step`'s
    * polyline.
    * 
* @@ -160,40 +117,32 @@ public interface RouteLegOrBuilder com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder(); /** - * - * *
-   * The start location of this leg. This might be different from the provided
-   * `origin`. For example, when the provided `origin` is not near a road, this
-   * is a point on the road.
+   * The start location of this leg. This location might be different from the
+   * provided `origin`. For example, when the provided `origin` is not near a
+   * road, this is a point on the road.
    * 
* * .google.maps.routing.v2.Location start_location = 5; - * * @return Whether the startLocation field is set. */ boolean hasStartLocation(); /** - * - * *
-   * The start location of this leg. This might be different from the provided
-   * `origin`. For example, when the provided `origin` is not near a road, this
-   * is a point on the road.
+   * The start location of this leg. This location might be different from the
+   * provided `origin`. For example, when the provided `origin` is not near a
+   * road, this is a point on the road.
    * 
* * .google.maps.routing.v2.Location start_location = 5; - * * @return The startLocation. */ com.google.maps.routing.v2.Location getStartLocation(); /** - * - * *
-   * The start location of this leg. This might be different from the provided
-   * `origin`. For example, when the provided `origin` is not near a road, this
-   * is a point on the road.
+   * The start location of this leg. This location might be different from the
+   * provided `origin`. For example, when the provided `origin` is not near a
+   * road, this is a point on the road.
    * 
* * .google.maps.routing.v2.Location start_location = 5; @@ -201,40 +150,32 @@ public interface RouteLegOrBuilder com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder(); /** - * - * *
-   * The end location of this leg. This might be different from the provided
-   * `destination`. For example, when the provided `destination` is not near a
-   * road, this is a point on the road.
+   * The end location of this leg. This location might be different from the
+   * provided `destination`. For example, when the provided `destination` is not
+   * near a road, this is a point on the road.
    * 
* * .google.maps.routing.v2.Location end_location = 6; - * * @return Whether the endLocation field is set. */ boolean hasEndLocation(); /** - * - * *
-   * The end location of this leg. This might be different from the provided
-   * `destination`. For example, when the provided `destination` is not near a
-   * road, this is a point on the road.
+   * The end location of this leg. This location might be different from the
+   * provided `destination`. For example, when the provided `destination` is not
+   * near a road, this is a point on the road.
    * 
* * .google.maps.routing.v2.Location end_location = 6; - * * @return The endLocation. */ com.google.maps.routing.v2.Location getEndLocation(); /** - * - * *
-   * The end location of this leg. This might be different from the provided
-   * `destination`. For example, when the provided `destination` is not near a
-   * road, this is a point on the road.
+   * The end location of this leg. This location might be different from the
+   * provided `destination`. For example, when the provided `destination` is not
+   * near a road, this is a point on the road.
    * 
* * .google.maps.routing.v2.Location end_location = 6; @@ -242,8 +183,6 @@ public interface RouteLegOrBuilder com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder(); /** - * - * *
    * An array of steps denoting segments within this leg. Each step represents
    * one navigation instruction.
@@ -251,10 +190,9 @@ public interface RouteLegOrBuilder
    *
    * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
    */
-  java.util.List getStepsList();
+  java.util.List 
+      getStepsList();
   /**
-   *
-   *
    * 
    * An array of steps denoting segments within this leg. Each step represents
    * one navigation instruction.
@@ -264,8 +202,6 @@ public interface RouteLegOrBuilder
    */
   com.google.maps.routing.v2.RouteLegStep getSteps(int index);
   /**
-   *
-   *
    * 
    * An array of steps denoting segments within this leg. Each step represents
    * one navigation instruction.
@@ -275,8 +211,6 @@ public interface RouteLegOrBuilder
    */
   int getStepsCount();
   /**
-   *
-   *
    * 
    * An array of steps denoting segments within this leg. Each step represents
    * one navigation instruction.
@@ -284,11 +218,9 @@ public interface RouteLegOrBuilder
    *
    * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
    */
-  java.util.List
+  java.util.List 
       getStepsOrBuilderList();
   /**
-   *
-   *
    * 
    * An array of steps denoting segments within this leg. Each step represents
    * one navigation instruction.
@@ -296,43 +228,93 @@ public interface RouteLegOrBuilder
    *
    * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
    */
-  com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder(int index);
+  com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
-   * Encapsulates the additional information that the user should be informed
-   * about, such as possible traffic zone restriction etc. on a route leg.
+   * Contains the additional information that the user should be informed
+   * about, such as possible traffic zone restrictions, on a route leg.
    * 
* * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; - * * @return Whether the travelAdvisory field is set. */ boolean hasTravelAdvisory(); /** - * - * *
-   * Encapsulates the additional information that the user should be informed
-   * about, such as possible traffic zone restriction etc. on a route leg.
+   * Contains the additional information that the user should be informed
+   * about, such as possible traffic zone restrictions, on a route leg.
    * 
* * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; - * * @return The travelAdvisory. */ com.google.maps.routing.v2.RouteLegTravelAdvisory getTravelAdvisory(); /** - * - * *
-   * Encapsulates the additional information that the user should be informed
-   * about, such as possible traffic zone restriction etc. on a route leg.
+   * Contains the additional information that the user should be informed
+   * about, such as possible traffic zone restrictions, on a route leg.
    * 
* * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; */ com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder(); + + /** + *
+   * Text representations of properties of the `RouteLeg`.
+   * 
+ * + * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + * @return Whether the localizedValues field is set. + */ + boolean hasLocalizedValues(); + /** + *
+   * Text representations of properties of the `RouteLeg`.
+   * 
+ * + * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + * @return The localizedValues. + */ + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues getLocalizedValues(); + /** + *
+   * Text representations of properties of the `RouteLeg`.
+   * 
+ * + * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + */ + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder getLocalizedValuesOrBuilder(); + + /** + *
+   * Overview information about the steps in this `RouteLeg`. This field is only
+   * populated for TRANSIT routes.
+   * 
+ * + * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + * @return Whether the stepsOverview field is set. + */ + boolean hasStepsOverview(); + /** + *
+   * Overview information about the steps in this `RouteLeg`. This field is only
+   * populated for TRANSIT routes.
+   * 
+ * + * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + * @return The stepsOverview. + */ + com.google.maps.routing.v2.RouteLeg.StepsOverview getStepsOverview(); + /** + *
+   * Overview information about the steps in this `RouteLeg`. This field is only
+   * populated for TRANSIT routes.
+   * 
+ * + * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + */ + com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder getStepsOverviewOrBuilder(); } diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStep.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStep.java new file mode 100644 index 000000000000..8bad92588ff4 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStep.java @@ -0,0 +1,3432 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/route.proto + +package com.google.maps.routing.v2; + +/** + *
+ * Contains a segment of a [RouteLeg][google.maps.routing.v2.RouteLeg]. A
+ * step corresponds to a single navigation instruction. Route legs are made up
+ * of steps.
+ * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLegStep} + */ +public final class RouteLegStep extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLegStep) + RouteLegStepOrBuilder { +private static final long serialVersionUID = 0L; + // Use RouteLegStep.newBuilder() to construct. + private RouteLegStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RouteLegStep() { + travelMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RouteLegStep(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLegStep.class, com.google.maps.routing.v2.RouteLegStep.Builder.class); + } + + public interface RouteLegStepLocalizedValuesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return Whether the distance field is set. + */ + boolean hasDistance(); + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return The distance. + */ + com.google.type.LocalizedText getDistance(); + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + */ + com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder(); + + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return Whether the staticDuration field is set. + */ + boolean hasStaticDuration(); + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return The staticDuration. + */ + com.google.type.LocalizedText getStaticDuration(); + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder(); + } + /** + *
+   * Text representations of certain properties.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues} + */ + public static final class RouteLegStepLocalizedValues extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues) + RouteLegStepLocalizedValuesOrBuilder { + private static final long serialVersionUID = 0L; + // Use RouteLegStepLocalizedValues.newBuilder() to construct. + private RouteLegStepLocalizedValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RouteLegStepLocalizedValues() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RouteLegStepLocalizedValues(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.class, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder.class); + } + + public static final int DISTANCE_FIELD_NUMBER = 1; + private com.google.type.LocalizedText distance_; + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return distance_ != null; + } + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return The distance. + */ + @java.lang.Override + public com.google.type.LocalizedText getDistance() { + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; + } + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; + } + + public static final int STATIC_DURATION_FIELD_NUMBER = 3; + private com.google.type.LocalizedText staticDuration_; + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return Whether the staticDuration field is set. + */ + @java.lang.Override + public boolean hasStaticDuration() { + return staticDuration_ != null; + } + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return The staticDuration. + */ + @java.lang.Override + public com.google.type.LocalizedText getStaticDuration() { + return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } + /** + *
+     * Duration without taking traffic conditions into
+     * consideration, represented in text form.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() { + return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } + + 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 (distance_ != null) { + output.writeMessage(1, getDistance()); + } + if (staticDuration_ != null) { + output.writeMessage(3, getStaticDuration()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (distance_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDistance()); + } + if (staticDuration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStaticDuration()); + } + 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues)) { + return super.equals(obj); + } + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues other = (com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues) obj; + + if (hasDistance() != other.hasDistance()) return false; + if (hasDistance()) { + if (!getDistance() + .equals(other.getDistance())) return false; + } + if (hasStaticDuration() != other.hasStaticDuration()) return false; + if (hasStaticDuration()) { + if (!getStaticDuration() + .equals(other.getStaticDuration())) 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(); + if (hasDistance()) { + hash = (37 * hash) + DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + getDistance().hashCode(); + } + if (hasStaticDuration()) { + hash = (37 * hash) + STATIC_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getStaticDuration().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues 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; + } + /** + *
+     * Text representations of certain properties.
+     * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues) + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.class, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder.class); + } + + // Construct using com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + distance_ = null; + if (distanceBuilder_ != null) { + distanceBuilder_.dispose(); + distanceBuilder_ = null; + } + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues getDefaultInstanceForType() { + return com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues build() { + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues buildPartial() { + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues result = new com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.distance_ = distanceBuilder_ == null + ? distance_ + : distanceBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.staticDuration_ = staticDurationBuilder_ == null + ? staticDuration_ + : staticDurationBuilder_.build(); + } + } + + @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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues) { + return mergeFrom((com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues other) { + if (other == com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance()) return this; + if (other.hasDistance()) { + mergeDistance(other.getDistance()); + } + if (other.hasStaticDuration()) { + mergeStaticDuration(other.getStaticDuration()); + } + 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 10: { + input.readMessage( + getDistanceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + input.readMessage( + getStaticDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.type.LocalizedText distance_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> distanceBuilder_; + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + * @return Whether the distance field is set. + */ + public boolean hasDistance() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + * @return The distance. + */ + public com.google.type.LocalizedText getDistance() { + if (distanceBuilder_ == null) { + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; + } else { + return distanceBuilder_.getMessage(); + } + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder setDistance(com.google.type.LocalizedText value) { + if (distanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + distance_ = value; + } else { + distanceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder setDistance( + com.google.type.LocalizedText.Builder builderForValue) { + if (distanceBuilder_ == null) { + distance_ = builderForValue.build(); + } else { + distanceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder mergeDistance(com.google.type.LocalizedText value) { + if (distanceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + distance_ != null && + distance_ != com.google.type.LocalizedText.getDefaultInstance()) { + getDistanceBuilder().mergeFrom(value); + } else { + distance_ = value; + } + } else { + distanceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder clearDistance() { + bitField0_ = (bitField0_ & ~0x00000001); + distance_ = null; + if (distanceBuilder_ != null) { + distanceBuilder_.dispose(); + distanceBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public com.google.type.LocalizedText.Builder getDistanceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDistanceFieldBuilder().getBuilder(); + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { + if (distanceBuilder_ != null) { + return distanceBuilder_.getMessageOrBuilder(); + } else { + return distance_ == null ? + com.google.type.LocalizedText.getDefaultInstance() : distance_; + } + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + getDistanceFieldBuilder() { + if (distanceBuilder_ == null) { + distanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( + getDistance(), + getParentForChildren(), + isClean()); + distance_ = null; + } + return distanceBuilder_; + } + + private com.google.type.LocalizedText staticDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> staticDurationBuilder_; + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return Whether the staticDuration field is set. + */ + public boolean hasStaticDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return The staticDuration. + */ + public com.google.type.LocalizedText getStaticDuration() { + if (staticDurationBuilder_ == null) { + return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } else { + return staticDurationBuilder_.getMessage(); + } + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder setStaticDuration(com.google.type.LocalizedText value) { + if (staticDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + staticDuration_ = value; + } else { + staticDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder setStaticDuration( + com.google.type.LocalizedText.Builder builderForValue) { + if (staticDurationBuilder_ == null) { + staticDuration_ = builderForValue.build(); + } else { + staticDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder mergeStaticDuration(com.google.type.LocalizedText value) { + if (staticDurationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + staticDuration_ != null && + staticDuration_ != com.google.type.LocalizedText.getDefaultInstance()) { + getStaticDurationBuilder().mergeFrom(value); + } else { + staticDuration_ = value; + } + } else { + staticDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder clearStaticDuration() { + bitField0_ = (bitField0_ & ~0x00000002); + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public com.google.type.LocalizedText.Builder getStaticDurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStaticDurationFieldBuilder().getBuilder(); + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() { + if (staticDurationBuilder_ != null) { + return staticDurationBuilder_.getMessageOrBuilder(); + } else { + return staticDuration_ == null ? + com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } + } + /** + *
+       * Duration without taking traffic conditions into
+       * consideration, represented in text form.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + getStaticDurationFieldBuilder() { + if (staticDurationBuilder_ == null) { + staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( + getStaticDuration(), + getParentForChildren(), + isClean()); + staticDuration_ = null; + } + return staticDurationBuilder_; + } + @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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues) + private static final com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues(); + } + + public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouteLegStepLocalizedValues 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int DISTANCE_METERS_FIELD_NUMBER = 1; + private int distanceMeters_ = 0; + /** + *
+   * The travel distance of this step, in meters. In some circumstances, this
+   * field might not have a value.
+   * 
+ * + * int32 distance_meters = 1; + * @return The distanceMeters. + */ + @java.lang.Override + public int getDistanceMeters() { + return distanceMeters_; + } + + public static final int STATIC_DURATION_FIELD_NUMBER = 2; + private com.google.protobuf.Duration staticDuration_; + /** + *
+   * The duration of travel through this step without taking traffic conditions
+   * into consideration. In some circumstances, this field might not have a
+   * value.
+   * 
+ * + * .google.protobuf.Duration static_duration = 2; + * @return Whether the staticDuration field is set. + */ + @java.lang.Override + public boolean hasStaticDuration() { + return staticDuration_ != null; + } + /** + *
+   * The duration of travel through this step without taking traffic conditions
+   * into consideration. In some circumstances, this field might not have a
+   * value.
+   * 
+ * + * .google.protobuf.Duration static_duration = 2; + * @return The staticDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getStaticDuration() { + return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } + /** + *
+   * The duration of travel through this step without taking traffic conditions
+   * into consideration. In some circumstances, this field might not have a
+   * value.
+   * 
+ * + * .google.protobuf.Duration static_duration = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { + return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } + + public static final int POLYLINE_FIELD_NUMBER = 3; + private com.google.maps.routing.v2.Polyline polyline_; + /** + *
+   * The polyline associated with this step.
+   * 
+ * + * .google.maps.routing.v2.Polyline polyline = 3; + * @return Whether the polyline field is set. + */ + @java.lang.Override + public boolean hasPolyline() { + return polyline_ != null; + } + /** + *
+   * The polyline associated with this step.
+   * 
+ * + * .google.maps.routing.v2.Polyline polyline = 3; + * @return The polyline. + */ + @java.lang.Override + public com.google.maps.routing.v2.Polyline getPolyline() { + return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + } + /** + *
+   * The polyline associated with this step.
+   * 
+ * + * .google.maps.routing.v2.Polyline polyline = 3; + */ + @java.lang.Override + public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { + return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + } + + public static final int START_LOCATION_FIELD_NUMBER = 4; + private com.google.maps.routing.v2.Location startLocation_; + /** + *
+   * The start location of this step.
+   * 
+ * + * .google.maps.routing.v2.Location start_location = 4; + * @return Whether the startLocation field is set. + */ + @java.lang.Override + public boolean hasStartLocation() { + return startLocation_ != null; + } + /** + *
+   * The start location of this step.
+   * 
+ * + * .google.maps.routing.v2.Location start_location = 4; + * @return The startLocation. + */ + @java.lang.Override + public com.google.maps.routing.v2.Location getStartLocation() { + return startLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_; + } + /** + *
+   * The start location of this step.
+   * 
+ * + * .google.maps.routing.v2.Location start_location = 4; + */ + @java.lang.Override + public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder() { + return startLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_; + } + + public static final int END_LOCATION_FIELD_NUMBER = 5; + private com.google.maps.routing.v2.Location endLocation_; + /** + *
+   * The end location of this step.
+   * 
+ * + * .google.maps.routing.v2.Location end_location = 5; + * @return Whether the endLocation field is set. + */ + @java.lang.Override + public boolean hasEndLocation() { + return endLocation_ != null; + } + /** + *
+   * The end location of this step.
+   * 
+ * + * .google.maps.routing.v2.Location end_location = 5; + * @return The endLocation. + */ + @java.lang.Override + public com.google.maps.routing.v2.Location getEndLocation() { + return endLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_; + } + /** + *
+   * The end location of this step.
+   * 
+ * + * .google.maps.routing.v2.Location end_location = 5; + */ + @java.lang.Override + public com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder() { + return endLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_; + } + + public static final int NAVIGATION_INSTRUCTION_FIELD_NUMBER = 6; + private com.google.maps.routing.v2.NavigationInstruction navigationInstruction_; + /** + *
+   * Navigation instructions.
+   * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + * @return Whether the navigationInstruction field is set. + */ + @java.lang.Override + public boolean hasNavigationInstruction() { + return navigationInstruction_ != null; + } + /** + *
+   * Navigation instructions.
+   * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + * @return The navigationInstruction. + */ + @java.lang.Override + public com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction() { + return navigationInstruction_ == null ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + } + /** + *
+   * Navigation instructions.
+   * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + */ + @java.lang.Override + public com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationInstructionOrBuilder() { + return navigationInstruction_ == null ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + } + + public static final int TRAVEL_ADVISORY_FIELD_NUMBER = 7; + private com.google.maps.routing.v2.RouteLegStepTravelAdvisory travelAdvisory_; + /** + *
+   * Contains the additional information that the user should be informed
+   * about, such as possible traffic zone restrictions, on a leg step.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + * @return Whether the travelAdvisory field is set. + */ + @java.lang.Override + public boolean hasTravelAdvisory() { + return travelAdvisory_ != null; + } + /** + *
+   * Contains the additional information that the user should be informed
+   * about, such as possible traffic zone restrictions, on a leg step.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + * @return The travelAdvisory. + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTravelAdvisory getTravelAdvisory() { + return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } + /** + *
+   * Contains the additional information that the user should be informed
+   * about, such as possible traffic zone restrictions, on a leg step.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() { + return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } + + public static final int LOCALIZED_VALUES_FIELD_NUMBER = 8; + private com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localizedValues_; + /** + *
+   * Text representations of properties of the `RouteLegStep`.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * @return Whether the localizedValues field is set. + */ + @java.lang.Override + public boolean hasLocalizedValues() { + return localizedValues_ != null; + } + /** + *
+   * Text representations of properties of the `RouteLegStep`.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * @return The localizedValues. + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues getLocalizedValues() { + return localizedValues_ == null ? com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance() : localizedValues_; + } + /** + *
+   * Text representations of properties of the `RouteLegStep`.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { + return localizedValues_ == null ? com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance() : localizedValues_; + } + + public static final int TRANSIT_DETAILS_FIELD_NUMBER = 9; + private com.google.maps.routing.v2.RouteLegStepTransitDetails transitDetails_; + /** + *
+   * Details pertaining to this step if the travel mode is `TRANSIT`.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + * @return Whether the transitDetails field is set. + */ + @java.lang.Override + public boolean hasTransitDetails() { + return transitDetails_ != null; + } + /** + *
+   * Details pertaining to this step if the travel mode is `TRANSIT`.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + * @return The transitDetails. + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTransitDetails getTransitDetails() { + return transitDetails_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance() : transitDetails_; + } + /** + *
+   * Details pertaining to this step if the travel mode is `TRANSIT`.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder getTransitDetailsOrBuilder() { + return transitDetails_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance() : transitDetails_; + } + + public static final int TRAVEL_MODE_FIELD_NUMBER = 10; + private int travelMode_ = 0; + /** + *
+   * The travel mode used for this step.
+   * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * @return The enum numeric value on the wire for travelMode. + */ + @java.lang.Override public int getTravelModeValue() { + return travelMode_; + } + /** + *
+   * The travel mode used for this step.
+   * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * @return The travelMode. + */ + @java.lang.Override public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { + com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; + } + + 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 (distanceMeters_ != 0) { + output.writeInt32(1, distanceMeters_); + } + if (staticDuration_ != null) { + output.writeMessage(2, getStaticDuration()); + } + if (polyline_ != null) { + output.writeMessage(3, getPolyline()); + } + if (startLocation_ != null) { + output.writeMessage(4, getStartLocation()); + } + if (endLocation_ != null) { + output.writeMessage(5, getEndLocation()); + } + if (navigationInstruction_ != null) { + output.writeMessage(6, getNavigationInstruction()); + } + if (travelAdvisory_ != null) { + output.writeMessage(7, getTravelAdvisory()); + } + if (localizedValues_ != null) { + output.writeMessage(8, getLocalizedValues()); + } + if (transitDetails_ != null) { + output.writeMessage(9, getTransitDetails()); + } + if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(10, travelMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (distanceMeters_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, distanceMeters_); + } + if (staticDuration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStaticDuration()); + } + if (polyline_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPolyline()); + } + if (startLocation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartLocation()); + } + if (endLocation_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEndLocation()); + } + if (navigationInstruction_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getNavigationInstruction()); + } + if (travelAdvisory_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getTravelAdvisory()); + } + if (localizedValues_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getLocalizedValues()); + } + if (transitDetails_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getTransitDetails()); + } + if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, travelMode_); + } + 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.maps.routing.v2.RouteLegStep)) { + return super.equals(obj); + } + com.google.maps.routing.v2.RouteLegStep other = (com.google.maps.routing.v2.RouteLegStep) obj; + + if (getDistanceMeters() + != other.getDistanceMeters()) return false; + if (hasStaticDuration() != other.hasStaticDuration()) return false; + if (hasStaticDuration()) { + if (!getStaticDuration() + .equals(other.getStaticDuration())) return false; + } + if (hasPolyline() != other.hasPolyline()) return false; + if (hasPolyline()) { + if (!getPolyline() + .equals(other.getPolyline())) return false; + } + if (hasStartLocation() != other.hasStartLocation()) return false; + if (hasStartLocation()) { + if (!getStartLocation() + .equals(other.getStartLocation())) return false; + } + if (hasEndLocation() != other.hasEndLocation()) return false; + if (hasEndLocation()) { + if (!getEndLocation() + .equals(other.getEndLocation())) return false; + } + if (hasNavigationInstruction() != other.hasNavigationInstruction()) return false; + if (hasNavigationInstruction()) { + if (!getNavigationInstruction() + .equals(other.getNavigationInstruction())) return false; + } + if (hasTravelAdvisory() != other.hasTravelAdvisory()) return false; + if (hasTravelAdvisory()) { + if (!getTravelAdvisory() + .equals(other.getTravelAdvisory())) return false; + } + if (hasLocalizedValues() != other.hasLocalizedValues()) return false; + if (hasLocalizedValues()) { + if (!getLocalizedValues() + .equals(other.getLocalizedValues())) return false; + } + if (hasTransitDetails() != other.hasTransitDetails()) return false; + if (hasTransitDetails()) { + if (!getTransitDetails() + .equals(other.getTransitDetails())) return false; + } + if (travelMode_ != other.travelMode_) 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) + DISTANCE_METERS_FIELD_NUMBER; + hash = (53 * hash) + getDistanceMeters(); + if (hasStaticDuration()) { + hash = (37 * hash) + STATIC_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getStaticDuration().hashCode(); + } + if (hasPolyline()) { + hash = (37 * hash) + POLYLINE_FIELD_NUMBER; + hash = (53 * hash) + getPolyline().hashCode(); + } + if (hasStartLocation()) { + hash = (37 * hash) + START_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getStartLocation().hashCode(); + } + if (hasEndLocation()) { + hash = (37 * hash) + END_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getEndLocation().hashCode(); + } + if (hasNavigationInstruction()) { + hash = (37 * hash) + NAVIGATION_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getNavigationInstruction().hashCode(); + } + if (hasTravelAdvisory()) { + hash = (37 * hash) + TRAVEL_ADVISORY_FIELD_NUMBER; + hash = (53 * hash) + getTravelAdvisory().hashCode(); + } + if (hasLocalizedValues()) { + hash = (37 * hash) + LOCALIZED_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getLocalizedValues().hashCode(); + } + if (hasTransitDetails()) { + hash = (37 * hash) + TRANSIT_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getTransitDetails().hashCode(); + } + hash = (37 * hash) + TRAVEL_MODE_FIELD_NUMBER; + hash = (53 * hash) + travelMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.RouteLegStep parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLegStep parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLegStep parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLegStep parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLegStep parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep 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; + } + /** + *
+   * Contains a segment of a [RouteLeg][google.maps.routing.v2.RouteLeg]. A
+   * step corresponds to a single navigation instruction. Route legs are made up
+   * of steps.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLegStep} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.RouteLegStep) + com.google.maps.routing.v2.RouteLegStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLegStep.class, com.google.maps.routing.v2.RouteLegStep.Builder.class); + } + + // Construct using com.google.maps.routing.v2.RouteLegStep.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + distanceMeters_ = 0; + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + polyline_ = null; + if (polylineBuilder_ != null) { + polylineBuilder_.dispose(); + polylineBuilder_ = null; + } + startLocation_ = null; + if (startLocationBuilder_ != null) { + startLocationBuilder_.dispose(); + startLocationBuilder_ = null; + } + endLocation_ = null; + if (endLocationBuilder_ != null) { + endLocationBuilder_.dispose(); + endLocationBuilder_ = null; + } + navigationInstruction_ = null; + if (navigationInstructionBuilder_ != null) { + navigationInstructionBuilder_.dispose(); + navigationInstructionBuilder_ = null; + } + travelAdvisory_ = null; + if (travelAdvisoryBuilder_ != null) { + travelAdvisoryBuilder_.dispose(); + travelAdvisoryBuilder_ = null; + } + localizedValues_ = null; + if (localizedValuesBuilder_ != null) { + localizedValuesBuilder_.dispose(); + localizedValuesBuilder_ = null; + } + transitDetails_ = null; + if (transitDetailsBuilder_ != null) { + transitDetailsBuilder_.dispose(); + transitDetailsBuilder_ = null; + } + travelMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStep getDefaultInstanceForType() { + return com.google.maps.routing.v2.RouteLegStep.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStep build() { + com.google.maps.routing.v2.RouteLegStep result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStep buildPartial() { + com.google.maps.routing.v2.RouteLegStep result = new com.google.maps.routing.v2.RouteLegStep(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.RouteLegStep result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.distanceMeters_ = distanceMeters_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.staticDuration_ = staticDurationBuilder_ == null + ? staticDuration_ + : staticDurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.polyline_ = polylineBuilder_ == null + ? polyline_ + : polylineBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.startLocation_ = startLocationBuilder_ == null + ? startLocation_ + : startLocationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.endLocation_ = endLocationBuilder_ == null + ? endLocation_ + : endLocationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.navigationInstruction_ = navigationInstructionBuilder_ == null + ? navigationInstruction_ + : navigationInstructionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.travelAdvisory_ = travelAdvisoryBuilder_ == null + ? travelAdvisory_ + : travelAdvisoryBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.localizedValues_ = localizedValuesBuilder_ == null + ? localizedValues_ + : localizedValuesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.transitDetails_ = transitDetailsBuilder_ == null + ? transitDetails_ + : transitDetailsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.travelMode_ = travelMode_; + } + } + + @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.maps.routing.v2.RouteLegStep) { + return mergeFrom((com.google.maps.routing.v2.RouteLegStep)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.RouteLegStep other) { + if (other == com.google.maps.routing.v2.RouteLegStep.getDefaultInstance()) return this; + if (other.getDistanceMeters() != 0) { + setDistanceMeters(other.getDistanceMeters()); + } + if (other.hasStaticDuration()) { + mergeStaticDuration(other.getStaticDuration()); + } + if (other.hasPolyline()) { + mergePolyline(other.getPolyline()); + } + if (other.hasStartLocation()) { + mergeStartLocation(other.getStartLocation()); + } + if (other.hasEndLocation()) { + mergeEndLocation(other.getEndLocation()); + } + if (other.hasNavigationInstruction()) { + mergeNavigationInstruction(other.getNavigationInstruction()); + } + if (other.hasTravelAdvisory()) { + mergeTravelAdvisory(other.getTravelAdvisory()); + } + if (other.hasLocalizedValues()) { + mergeLocalizedValues(other.getLocalizedValues()); + } + if (other.hasTransitDetails()) { + mergeTransitDetails(other.getTransitDetails()); + } + if (other.travelMode_ != 0) { + setTravelModeValue(other.getTravelModeValue()); + } + 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 8: { + distanceMeters_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getStaticDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getPolylineFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getStartLocationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getEndLocationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getNavigationInstructionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getTravelAdvisoryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getLocalizedValuesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + input.readMessage( + getTransitDetailsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 80: { + travelMode_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 + 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 int distanceMeters_ ; + /** + *
+     * The travel distance of this step, in meters. In some circumstances, this
+     * field might not have a value.
+     * 
+ * + * int32 distance_meters = 1; + * @return The distanceMeters. + */ + @java.lang.Override + public int getDistanceMeters() { + return distanceMeters_; + } + /** + *
+     * The travel distance of this step, in meters. In some circumstances, this
+     * field might not have a value.
+     * 
+ * + * int32 distance_meters = 1; + * @param value The distanceMeters to set. + * @return This builder for chaining. + */ + public Builder setDistanceMeters(int value) { + + distanceMeters_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The travel distance of this step, in meters. In some circumstances, this
+     * field might not have a value.
+     * 
+ * + * int32 distance_meters = 1; + * @return This builder for chaining. + */ + public Builder clearDistanceMeters() { + bitField0_ = (bitField0_ & ~0x00000001); + distanceMeters_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration staticDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> staticDurationBuilder_; + /** + *
+     * The duration of travel through this step without taking traffic conditions
+     * into consideration. In some circumstances, this field might not have a
+     * value.
+     * 
+ * + * .google.protobuf.Duration static_duration = 2; + * @return Whether the staticDuration field is set. + */ + public boolean hasStaticDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * The duration of travel through this step without taking traffic conditions
+     * into consideration. In some circumstances, this field might not have a
+     * value.
+     * 
+ * + * .google.protobuf.Duration static_duration = 2; + * @return The staticDuration. + */ + public com.google.protobuf.Duration getStaticDuration() { + if (staticDurationBuilder_ == null) { + return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } else { + return staticDurationBuilder_.getMessage(); + } + } + /** + *
+     * The duration of travel through this step without taking traffic conditions
+     * into consideration. In some circumstances, this field might not have a
+     * value.
+     * 
+ * + * .google.protobuf.Duration static_duration = 2; + */ + public Builder setStaticDuration(com.google.protobuf.Duration value) { + if (staticDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + staticDuration_ = value; + } else { + staticDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The duration of travel through this step without taking traffic conditions
+     * into consideration. In some circumstances, this field might not have a
+     * value.
+     * 
+ * + * .google.protobuf.Duration static_duration = 2; + */ + public Builder setStaticDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (staticDurationBuilder_ == null) { + staticDuration_ = builderForValue.build(); + } else { + staticDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The duration of travel through this step without taking traffic conditions
+     * into consideration. In some circumstances, this field might not have a
+     * value.
+     * 
+ * + * .google.protobuf.Duration static_duration = 2; + */ + public Builder mergeStaticDuration(com.google.protobuf.Duration value) { + if (staticDurationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + staticDuration_ != null && + staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getStaticDurationBuilder().mergeFrom(value); + } else { + staticDuration_ = value; + } + } else { + staticDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The duration of travel through this step without taking traffic conditions
+     * into consideration. In some circumstances, this field might not have a
+     * value.
+     * 
+ * + * .google.protobuf.Duration static_duration = 2; + */ + public Builder clearStaticDuration() { + bitField0_ = (bitField0_ & ~0x00000002); + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The duration of travel through this step without taking traffic conditions
+     * into consideration. In some circumstances, this field might not have a
+     * value.
+     * 
+ * + * .google.protobuf.Duration static_duration = 2; + */ + public com.google.protobuf.Duration.Builder getStaticDurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStaticDurationFieldBuilder().getBuilder(); + } + /** + *
+     * The duration of travel through this step without taking traffic conditions
+     * into consideration. In some circumstances, this field might not have a
+     * value.
+     * 
+ * + * .google.protobuf.Duration static_duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { + if (staticDurationBuilder_ != null) { + return staticDurationBuilder_.getMessageOrBuilder(); + } else { + return staticDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } + } + /** + *
+     * The duration of travel through this step without taking traffic conditions
+     * into consideration. In some circumstances, this field might not have a
+     * value.
+     * 
+ * + * .google.protobuf.Duration static_duration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getStaticDurationFieldBuilder() { + if (staticDurationBuilder_ == null) { + staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getStaticDuration(), + getParentForChildren(), + isClean()); + staticDuration_ = null; + } + return staticDurationBuilder_; + } + + private com.google.maps.routing.v2.Polyline polyline_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder> polylineBuilder_; + /** + *
+     * The polyline associated with this step.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 3; + * @return Whether the polyline field is set. + */ + public boolean hasPolyline() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * The polyline associated with this step.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 3; + * @return The polyline. + */ + public com.google.maps.routing.v2.Polyline getPolyline() { + if (polylineBuilder_ == null) { + return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + } else { + return polylineBuilder_.getMessage(); + } + } + /** + *
+     * The polyline associated with this step.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 3; + */ + public Builder setPolyline(com.google.maps.routing.v2.Polyline value) { + if (polylineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + polyline_ = value; + } else { + polylineBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The polyline associated with this step.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 3; + */ + public Builder setPolyline( + com.google.maps.routing.v2.Polyline.Builder builderForValue) { + if (polylineBuilder_ == null) { + polyline_ = builderForValue.build(); + } else { + polylineBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The polyline associated with this step.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 3; + */ + public Builder mergePolyline(com.google.maps.routing.v2.Polyline value) { + if (polylineBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + polyline_ != null && + polyline_ != com.google.maps.routing.v2.Polyline.getDefaultInstance()) { + getPolylineBuilder().mergeFrom(value); + } else { + polyline_ = value; + } + } else { + polylineBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The polyline associated with this step.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 3; + */ + public Builder clearPolyline() { + bitField0_ = (bitField0_ & ~0x00000004); + polyline_ = null; + if (polylineBuilder_ != null) { + polylineBuilder_.dispose(); + polylineBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The polyline associated with this step.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 3; + */ + public com.google.maps.routing.v2.Polyline.Builder getPolylineBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPolylineFieldBuilder().getBuilder(); + } + /** + *
+     * The polyline associated with this step.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 3; + */ + public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { + if (polylineBuilder_ != null) { + return polylineBuilder_.getMessageOrBuilder(); + } else { + return polyline_ == null ? + com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + } + } + /** + *
+     * The polyline associated with this step.
+     * 
+ * + * .google.maps.routing.v2.Polyline polyline = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder> + getPolylineFieldBuilder() { + if (polylineBuilder_ == null) { + polylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder>( + getPolyline(), + getParentForChildren(), + isClean()); + polyline_ = null; + } + return polylineBuilder_; + } + + private com.google.maps.routing.v2.Location startLocation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> startLocationBuilder_; + /** + *
+     * The start location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 4; + * @return Whether the startLocation field is set. + */ + public boolean hasStartLocation() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * The start location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 4; + * @return The startLocation. + */ + public com.google.maps.routing.v2.Location getStartLocation() { + if (startLocationBuilder_ == null) { + return startLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_; + } else { + return startLocationBuilder_.getMessage(); + } + } + /** + *
+     * The start location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 4; + */ + public Builder setStartLocation(com.google.maps.routing.v2.Location value) { + if (startLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startLocation_ = value; + } else { + startLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The start location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 4; + */ + public Builder setStartLocation( + com.google.maps.routing.v2.Location.Builder builderForValue) { + if (startLocationBuilder_ == null) { + startLocation_ = builderForValue.build(); + } else { + startLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The start location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 4; + */ + public Builder mergeStartLocation(com.google.maps.routing.v2.Location value) { + if (startLocationBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + startLocation_ != null && + startLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) { + getStartLocationBuilder().mergeFrom(value); + } else { + startLocation_ = value; + } + } else { + startLocationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The start location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 4; + */ + public Builder clearStartLocation() { + bitField0_ = (bitField0_ & ~0x00000008); + startLocation_ = null; + if (startLocationBuilder_ != null) { + startLocationBuilder_.dispose(); + startLocationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The start location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 4; + */ + public com.google.maps.routing.v2.Location.Builder getStartLocationBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getStartLocationFieldBuilder().getBuilder(); + } + /** + *
+     * The start location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 4; + */ + public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder() { + if (startLocationBuilder_ != null) { + return startLocationBuilder_.getMessageOrBuilder(); + } else { + return startLocation_ == null ? + com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_; + } + } + /** + *
+     * The start location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location start_location = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> + getStartLocationFieldBuilder() { + if (startLocationBuilder_ == null) { + startLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder>( + getStartLocation(), + getParentForChildren(), + isClean()); + startLocation_ = null; + } + return startLocationBuilder_; + } + + private com.google.maps.routing.v2.Location endLocation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> endLocationBuilder_; + /** + *
+     * The end location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 5; + * @return Whether the endLocation field is set. + */ + public boolean hasEndLocation() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * The end location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 5; + * @return The endLocation. + */ + public com.google.maps.routing.v2.Location getEndLocation() { + if (endLocationBuilder_ == null) { + return endLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_; + } else { + return endLocationBuilder_.getMessage(); + } + } + /** + *
+     * The end location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 5; + */ + public Builder setEndLocation(com.google.maps.routing.v2.Location value) { + if (endLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endLocation_ = value; + } else { + endLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The end location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 5; + */ + public Builder setEndLocation( + com.google.maps.routing.v2.Location.Builder builderForValue) { + if (endLocationBuilder_ == null) { + endLocation_ = builderForValue.build(); + } else { + endLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The end location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 5; + */ + public Builder mergeEndLocation(com.google.maps.routing.v2.Location value) { + if (endLocationBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + endLocation_ != null && + endLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) { + getEndLocationBuilder().mergeFrom(value); + } else { + endLocation_ = value; + } + } else { + endLocationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The end location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 5; + */ + public Builder clearEndLocation() { + bitField0_ = (bitField0_ & ~0x00000010); + endLocation_ = null; + if (endLocationBuilder_ != null) { + endLocationBuilder_.dispose(); + endLocationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The end location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 5; + */ + public com.google.maps.routing.v2.Location.Builder getEndLocationBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getEndLocationFieldBuilder().getBuilder(); + } + /** + *
+     * The end location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 5; + */ + public com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder() { + if (endLocationBuilder_ != null) { + return endLocationBuilder_.getMessageOrBuilder(); + } else { + return endLocation_ == null ? + com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_; + } + } + /** + *
+     * The end location of this step.
+     * 
+ * + * .google.maps.routing.v2.Location end_location = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> + getEndLocationFieldBuilder() { + if (endLocationBuilder_ == null) { + endLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder>( + getEndLocation(), + getParentForChildren(), + isClean()); + endLocation_ = null; + } + return endLocationBuilder_; + } + + private com.google.maps.routing.v2.NavigationInstruction navigationInstruction_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.NavigationInstruction, com.google.maps.routing.v2.NavigationInstruction.Builder, com.google.maps.routing.v2.NavigationInstructionOrBuilder> navigationInstructionBuilder_; + /** + *
+     * Navigation instructions.
+     * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + * @return Whether the navigationInstruction field is set. + */ + public boolean hasNavigationInstruction() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * Navigation instructions.
+     * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + * @return The navigationInstruction. + */ + public com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction() { + if (navigationInstructionBuilder_ == null) { + return navigationInstruction_ == null ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + } else { + return navigationInstructionBuilder_.getMessage(); + } + } + /** + *
+     * Navigation instructions.
+     * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + */ + public Builder setNavigationInstruction(com.google.maps.routing.v2.NavigationInstruction value) { + if (navigationInstructionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + navigationInstruction_ = value; + } else { + navigationInstructionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Navigation instructions.
+     * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + */ + public Builder setNavigationInstruction( + com.google.maps.routing.v2.NavigationInstruction.Builder builderForValue) { + if (navigationInstructionBuilder_ == null) { + navigationInstruction_ = builderForValue.build(); + } else { + navigationInstructionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Navigation instructions.
+     * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + */ + public Builder mergeNavigationInstruction(com.google.maps.routing.v2.NavigationInstruction value) { + if (navigationInstructionBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + navigationInstruction_ != null && + navigationInstruction_ != com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance()) { + getNavigationInstructionBuilder().mergeFrom(value); + } else { + navigationInstruction_ = value; + } + } else { + navigationInstructionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Navigation instructions.
+     * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + */ + public Builder clearNavigationInstruction() { + bitField0_ = (bitField0_ & ~0x00000020); + navigationInstruction_ = null; + if (navigationInstructionBuilder_ != null) { + navigationInstructionBuilder_.dispose(); + navigationInstructionBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Navigation instructions.
+     * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + */ + public com.google.maps.routing.v2.NavigationInstruction.Builder getNavigationInstructionBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getNavigationInstructionFieldBuilder().getBuilder(); + } + /** + *
+     * Navigation instructions.
+     * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + */ + public com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationInstructionOrBuilder() { + if (navigationInstructionBuilder_ != null) { + return navigationInstructionBuilder_.getMessageOrBuilder(); + } else { + return navigationInstruction_ == null ? + com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + } + } + /** + *
+     * Navigation instructions.
+     * 
+ * + * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.NavigationInstruction, com.google.maps.routing.v2.NavigationInstruction.Builder, com.google.maps.routing.v2.NavigationInstructionOrBuilder> + getNavigationInstructionFieldBuilder() { + if (navigationInstructionBuilder_ == null) { + navigationInstructionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.NavigationInstruction, com.google.maps.routing.v2.NavigationInstruction.Builder, com.google.maps.routing.v2.NavigationInstructionOrBuilder>( + getNavigationInstruction(), + getParentForChildren(), + isClean()); + navigationInstruction_ = null; + } + return navigationInstructionBuilder_; + } + + private com.google.maps.routing.v2.RouteLegStepTravelAdvisory travelAdvisory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStepTravelAdvisory, com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder, com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder> travelAdvisoryBuilder_; + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a leg step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + * @return Whether the travelAdvisory field is set. + */ + public boolean hasTravelAdvisory() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a leg step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + * @return The travelAdvisory. + */ + public com.google.maps.routing.v2.RouteLegStepTravelAdvisory getTravelAdvisory() { + if (travelAdvisoryBuilder_ == null) { + return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } else { + return travelAdvisoryBuilder_.getMessage(); + } + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a leg step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + */ + public Builder setTravelAdvisory(com.google.maps.routing.v2.RouteLegStepTravelAdvisory value) { + if (travelAdvisoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + travelAdvisory_ = value; + } else { + travelAdvisoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a leg step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + */ + public Builder setTravelAdvisory( + com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder builderForValue) { + if (travelAdvisoryBuilder_ == null) { + travelAdvisory_ = builderForValue.build(); + } else { + travelAdvisoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a leg step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + */ + public Builder mergeTravelAdvisory(com.google.maps.routing.v2.RouteLegStepTravelAdvisory value) { + if (travelAdvisoryBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + travelAdvisory_ != null && + travelAdvisory_ != com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance()) { + getTravelAdvisoryBuilder().mergeFrom(value); + } else { + travelAdvisory_ = value; + } + } else { + travelAdvisoryBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a leg step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + */ + public Builder clearTravelAdvisory() { + bitField0_ = (bitField0_ & ~0x00000040); + travelAdvisory_ = null; + if (travelAdvisoryBuilder_ != null) { + travelAdvisoryBuilder_.dispose(); + travelAdvisoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a leg step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + */ + public com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder getTravelAdvisoryBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getTravelAdvisoryFieldBuilder().getBuilder(); + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a leg step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + */ + public com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() { + if (travelAdvisoryBuilder_ != null) { + return travelAdvisoryBuilder_.getMessageOrBuilder(); + } else { + return travelAdvisory_ == null ? + com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } + } + /** + *
+     * Contains the additional information that the user should be informed
+     * about, such as possible traffic zone restrictions, on a leg step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStepTravelAdvisory, com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder, com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder> + getTravelAdvisoryFieldBuilder() { + if (travelAdvisoryBuilder_ == null) { + travelAdvisoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStepTravelAdvisory, com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder, com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder>( + getTravelAdvisory(), + getParentForChildren(), + isClean()); + travelAdvisory_ = null; + } + return travelAdvisoryBuilder_; + } + + private com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localizedValues_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder> localizedValuesBuilder_; + /** + *
+     * Text representations of properties of the `RouteLegStep`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * @return Whether the localizedValues field is set. + */ + public boolean hasLocalizedValues() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * Text representations of properties of the `RouteLegStep`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * @return The localizedValues. + */ + public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues getLocalizedValues() { + if (localizedValuesBuilder_ == null) { + return localizedValues_ == null ? com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance() : localizedValues_; + } else { + return localizedValuesBuilder_.getMessage(); + } + } + /** + *
+     * Text representations of properties of the `RouteLegStep`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + */ + public Builder setLocalizedValues(com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues value) { + if (localizedValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + localizedValues_ = value; + } else { + localizedValuesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteLegStep`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + */ + public Builder setLocalizedValues( + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder builderForValue) { + if (localizedValuesBuilder_ == null) { + localizedValues_ = builderForValue.build(); + } else { + localizedValuesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteLegStep`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + */ + public Builder mergeLocalizedValues(com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues value) { + if (localizedValuesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + localizedValues_ != null && + localizedValues_ != com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance()) { + getLocalizedValuesBuilder().mergeFrom(value); + } else { + localizedValues_ = value; + } + } else { + localizedValuesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteLegStep`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + */ + public Builder clearLocalizedValues() { + bitField0_ = (bitField0_ & ~0x00000080); + localizedValues_ = null; + if (localizedValuesBuilder_ != null) { + localizedValuesBuilder_.dispose(); + localizedValuesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteLegStep`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + */ + public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder getLocalizedValuesBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getLocalizedValuesFieldBuilder().getBuilder(); + } + /** + *
+     * Text representations of properties of the `RouteLegStep`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + */ + public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { + if (localizedValuesBuilder_ != null) { + return localizedValuesBuilder_.getMessageOrBuilder(); + } else { + return localizedValues_ == null ? + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance() : localizedValues_; + } + } + /** + *
+     * Text representations of properties of the `RouteLegStep`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder> + getLocalizedValuesFieldBuilder() { + if (localizedValuesBuilder_ == null) { + localizedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder>( + getLocalizedValues(), + getParentForChildren(), + isClean()); + localizedValues_ = null; + } + return localizedValuesBuilder_; + } + + private com.google.maps.routing.v2.RouteLegStepTransitDetails transitDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStepTransitDetails, com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder> transitDetailsBuilder_; + /** + *
+     * Details pertaining to this step if the travel mode is `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + * @return Whether the transitDetails field is set. + */ + public boolean hasTransitDetails() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * Details pertaining to this step if the travel mode is `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + * @return The transitDetails. + */ + public com.google.maps.routing.v2.RouteLegStepTransitDetails getTransitDetails() { + if (transitDetailsBuilder_ == null) { + return transitDetails_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance() : transitDetails_; + } else { + return transitDetailsBuilder_.getMessage(); + } + } + /** + *
+     * Details pertaining to this step if the travel mode is `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + */ + public Builder setTransitDetails(com.google.maps.routing.v2.RouteLegStepTransitDetails value) { + if (transitDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transitDetails_ = value; + } else { + transitDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Details pertaining to this step if the travel mode is `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + */ + public Builder setTransitDetails( + com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder builderForValue) { + if (transitDetailsBuilder_ == null) { + transitDetails_ = builderForValue.build(); + } else { + transitDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Details pertaining to this step if the travel mode is `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + */ + public Builder mergeTransitDetails(com.google.maps.routing.v2.RouteLegStepTransitDetails value) { + if (transitDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + transitDetails_ != null && + transitDetails_ != com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance()) { + getTransitDetailsBuilder().mergeFrom(value); + } else { + transitDetails_ = value; + } + } else { + transitDetailsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * Details pertaining to this step if the travel mode is `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + */ + public Builder clearTransitDetails() { + bitField0_ = (bitField0_ & ~0x00000100); + transitDetails_ = null; + if (transitDetailsBuilder_ != null) { + transitDetailsBuilder_.dispose(); + transitDetailsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Details pertaining to this step if the travel mode is `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + */ + public com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder getTransitDetailsBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getTransitDetailsFieldBuilder().getBuilder(); + } + /** + *
+     * Details pertaining to this step if the travel mode is `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + */ + public com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder getTransitDetailsOrBuilder() { + if (transitDetailsBuilder_ != null) { + return transitDetailsBuilder_.getMessageOrBuilder(); + } else { + return transitDetails_ == null ? + com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance() : transitDetails_; + } + } + /** + *
+     * Details pertaining to this step if the travel mode is `TRANSIT`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStepTransitDetails, com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder> + getTransitDetailsFieldBuilder() { + if (transitDetailsBuilder_ == null) { + transitDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStepTransitDetails, com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder>( + getTransitDetails(), + getParentForChildren(), + isClean()); + transitDetails_ = null; + } + return transitDetailsBuilder_; + } + + private int travelMode_ = 0; + /** + *
+     * The travel mode used for this step.
+     * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * @return The enum numeric value on the wire for travelMode. + */ + @java.lang.Override public int getTravelModeValue() { + return travelMode_; + } + /** + *
+     * The travel mode used for this step.
+     * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * @param value The enum numeric value on the wire for travelMode to set. + * @return This builder for chaining. + */ + public Builder setTravelModeValue(int value) { + travelMode_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * The travel mode used for this step.
+     * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * @return The travelMode. + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { + com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; + } + /** + *
+     * The travel mode used for this step.
+     * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * @param value The travelMode to set. + * @return This builder for chaining. + */ + public Builder setTravelMode(com.google.maps.routing.v2.RouteTravelMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + travelMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The travel mode used for this step.
+     * 
+ * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * @return This builder for chaining. + */ + public Builder clearTravelMode() { + bitField0_ = (bitField0_ & ~0x00000200); + travelMode_ = 0; + 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.maps.routing.v2.RouteLegStep) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLegStep) + private static final com.google.maps.routing.v2.RouteLegStep DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLegStep(); + } + + public static com.google.maps.routing.v2.RouteLegStep getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouteLegStep 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.maps.routing.v2.RouteLegStep getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepOrBuilder.java similarity index 65% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepOrBuilder.java index 6b0887bfc178..ef01b887415e 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepOrBuilder.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/maps/routing/v2/route.proto package com.google.maps.routing.v2; -public interface RouteLegStepOrBuilder - extends +public interface RouteLegStepOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLegStep) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The travel distance of this step, in meters. In some circumstances, this
    * field might not have a value.
    * 
* * int32 distance_meters = 1; - * * @return The distanceMeters. */ int getDistanceMeters(); /** - * - * *
    * The duration of travel through this step without taking traffic conditions
    * into consideration. In some circumstances, this field might not have a
@@ -47,13 +26,10 @@ public interface RouteLegStepOrBuilder
    * 
* * .google.protobuf.Duration static_duration = 2; - * * @return Whether the staticDuration field is set. */ boolean hasStaticDuration(); /** - * - * *
    * The duration of travel through this step without taking traffic conditions
    * into consideration. In some circumstances, this field might not have a
@@ -61,13 +37,10 @@ public interface RouteLegStepOrBuilder
    * 
* * .google.protobuf.Duration static_duration = 2; - * * @return The staticDuration. */ com.google.protobuf.Duration getStaticDuration(); /** - * - * *
    * The duration of travel through this step without taking traffic conditions
    * into consideration. In some circumstances, this field might not have a
@@ -79,32 +52,24 @@ public interface RouteLegStepOrBuilder
   com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * The polyline associated with this step.
    * 
* * .google.maps.routing.v2.Polyline polyline = 3; - * * @return Whether the polyline field is set. */ boolean hasPolyline(); /** - * - * *
    * The polyline associated with this step.
    * 
* * .google.maps.routing.v2.Polyline polyline = 3; - * * @return The polyline. */ com.google.maps.routing.v2.Polyline getPolyline(); /** - * - * *
    * The polyline associated with this step.
    * 
@@ -114,32 +79,24 @@ public interface RouteLegStepOrBuilder com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder(); /** - * - * *
    * The start location of this step.
    * 
* * .google.maps.routing.v2.Location start_location = 4; - * * @return Whether the startLocation field is set. */ boolean hasStartLocation(); /** - * - * *
    * The start location of this step.
    * 
* * .google.maps.routing.v2.Location start_location = 4; - * * @return The startLocation. */ com.google.maps.routing.v2.Location getStartLocation(); /** - * - * *
    * The start location of this step.
    * 
@@ -149,32 +106,24 @@ public interface RouteLegStepOrBuilder com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder(); /** - * - * *
    * The end location of this step.
    * 
* * .google.maps.routing.v2.Location end_location = 5; - * * @return Whether the endLocation field is set. */ boolean hasEndLocation(); /** - * - * *
    * The end location of this step.
    * 
* * .google.maps.routing.v2.Location end_location = 5; - * * @return The endLocation. */ com.google.maps.routing.v2.Location getEndLocation(); /** - * - * *
    * The end location of this step.
    * 
@@ -184,32 +133,24 @@ public interface RouteLegStepOrBuilder com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder(); /** - * - * *
    * Navigation instructions.
    * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; - * * @return Whether the navigationInstruction field is set. */ boolean hasNavigationInstruction(); /** - * - * *
    * Navigation instructions.
    * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; - * * @return The navigationInstruction. */ com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction(); /** - * - * *
    * Navigation instructions.
    * 
@@ -219,40 +160,105 @@ public interface RouteLegStepOrBuilder com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationInstructionOrBuilder(); /** + *
+   * Contains the additional information that the user should be informed
+   * about, such as possible traffic zone restrictions, on a leg step.
+   * 
* + * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + * @return Whether the travelAdvisory field is set. + */ + boolean hasTravelAdvisory(); + /** + *
+   * Contains the additional information that the user should be informed
+   * about, such as possible traffic zone restrictions, on a leg step.
+   * 
* + * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + * @return The travelAdvisory. + */ + com.google.maps.routing.v2.RouteLegStepTravelAdvisory getTravelAdvisory(); + /** *
-   * Encapsulates the additional information that the user should be informed
-   * about, such as possible traffic zone restriction on a leg step.
+   * Contains the additional information that the user should be informed
+   * about, such as possible traffic zone restrictions, on a leg step.
    * 
* * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + */ + com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder(); + + /** + *
+   * Text representations of properties of the `RouteLegStep`.
+   * 
* - * @return Whether the travelAdvisory field is set. + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * @return Whether the localizedValues field is set. */ - boolean hasTravelAdvisory(); + boolean hasLocalizedValues(); /** + *
+   * Text representations of properties of the `RouteLegStep`.
+   * 
* + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * @return The localizedValues. + */ + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues getLocalizedValues(); + /** + *
+   * Text representations of properties of the `RouteLegStep`.
+   * 
* + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + */ + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder getLocalizedValuesOrBuilder(); + + /** *
-   * Encapsulates the additional information that the user should be informed
-   * about, such as possible traffic zone restriction on a leg step.
+   * Details pertaining to this step if the travel mode is `TRANSIT`.
    * 
* - * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + * @return Whether the transitDetails field is set. + */ + boolean hasTransitDetails(); + /** + *
+   * Details pertaining to this step if the travel mode is `TRANSIT`.
+   * 
* - * @return The travelAdvisory. + * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + * @return The transitDetails. */ - com.google.maps.routing.v2.RouteLegStepTravelAdvisory getTravelAdvisory(); + com.google.maps.routing.v2.RouteLegStepTransitDetails getTransitDetails(); /** + *
+   * Details pertaining to this step if the travel mode is `TRANSIT`.
+   * 
* + * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + */ + com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder getTransitDetailsOrBuilder(); + + /** + *
+   * The travel mode used for this step.
+   * 
* + * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * @return The enum numeric value on the wire for travelMode. + */ + int getTravelModeValue(); + /** *
-   * Encapsulates the additional information that the user should be informed
-   * about, such as possible traffic zone restriction on a leg step.
+   * The travel mode used for this step.
    * 
* - * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * @return The travelMode. */ - com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder(); + com.google.maps.routing.v2.RouteTravelMode getTravelMode(); } diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetails.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetails.java new file mode 100644 index 000000000000..3788c2ac32eb --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetails.java @@ -0,0 +1,4170 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/route.proto + +package com.google.maps.routing.v2; + +/** + *
+ * Additional information for the `RouteLegStep` related to `TRANSIT` routes.
+ * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLegStepTransitDetails} + */ +public final class RouteLegStepTransitDetails extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLegStepTransitDetails) + RouteLegStepTransitDetailsOrBuilder { +private static final long serialVersionUID = 0L; + // Use RouteLegStepTransitDetails.newBuilder() to construct. + private RouteLegStepTransitDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RouteLegStepTransitDetails() { + headsign_ = ""; + tripShortText_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RouteLegStepTransitDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLegStepTransitDetails.class, com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder.class); + } + + public interface TransitStopDetailsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Information about the arrival stop for the step.
+     * 
+ * + * .google.maps.routing.v2.TransitStop arrival_stop = 1; + * @return Whether the arrivalStop field is set. + */ + boolean hasArrivalStop(); + /** + *
+     * Information about the arrival stop for the step.
+     * 
+ * + * .google.maps.routing.v2.TransitStop arrival_stop = 1; + * @return The arrivalStop. + */ + com.google.maps.routing.v2.TransitStop getArrivalStop(); + /** + *
+     * Information about the arrival stop for the step.
+     * 
+ * + * .google.maps.routing.v2.TransitStop arrival_stop = 1; + */ + com.google.maps.routing.v2.TransitStopOrBuilder getArrivalStopOrBuilder(); + + /** + *
+     * The estimated time of arrival for the step.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 2; + * @return Whether the arrivalTime field is set. + */ + boolean hasArrivalTime(); + /** + *
+     * The estimated time of arrival for the step.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 2; + * @return The arrivalTime. + */ + com.google.protobuf.Timestamp getArrivalTime(); + /** + *
+     * The estimated time of arrival for the step.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder(); + + /** + *
+     * Information about the departure stop for the step.
+     * 
+ * + * .google.maps.routing.v2.TransitStop departure_stop = 3; + * @return Whether the departureStop field is set. + */ + boolean hasDepartureStop(); + /** + *
+     * Information about the departure stop for the step.
+     * 
+ * + * .google.maps.routing.v2.TransitStop departure_stop = 3; + * @return The departureStop. + */ + com.google.maps.routing.v2.TransitStop getDepartureStop(); + /** + *
+     * Information about the departure stop for the step.
+     * 
+ * + * .google.maps.routing.v2.TransitStop departure_stop = 3; + */ + com.google.maps.routing.v2.TransitStopOrBuilder getDepartureStopOrBuilder(); + + /** + *
+     * The estimated time of departure for the step.
+     * 
+ * + * .google.protobuf.Timestamp departure_time = 4; + * @return Whether the departureTime field is set. + */ + boolean hasDepartureTime(); + /** + *
+     * The estimated time of departure for the step.
+     * 
+ * + * .google.protobuf.Timestamp departure_time = 4; + * @return The departureTime. + */ + com.google.protobuf.Timestamp getDepartureTime(); + /** + *
+     * The estimated time of departure for the step.
+     * 
+ * + * .google.protobuf.Timestamp departure_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder(); + } + /** + *
+   * Details about the transit stops for the `RouteLegStep`
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails} + */ + public static final class TransitStopDetails extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) + TransitStopDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use TransitStopDetails.newBuilder() to construct. + private TransitStopDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TransitStopDetails() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TransitStopDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.class, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder.class); + } + + public static final int ARRIVAL_STOP_FIELD_NUMBER = 1; + private com.google.maps.routing.v2.TransitStop arrivalStop_; + /** + *
+     * Information about the arrival stop for the step.
+     * 
+ * + * .google.maps.routing.v2.TransitStop arrival_stop = 1; + * @return Whether the arrivalStop field is set. + */ + @java.lang.Override + public boolean hasArrivalStop() { + return arrivalStop_ != null; + } + /** + *
+     * Information about the arrival stop for the step.
+     * 
+ * + * .google.maps.routing.v2.TransitStop arrival_stop = 1; + * @return The arrivalStop. + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitStop getArrivalStop() { + return arrivalStop_ == null ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() : arrivalStop_; + } + /** + *
+     * Information about the arrival stop for the step.
+     * 
+ * + * .google.maps.routing.v2.TransitStop arrival_stop = 1; + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitStopOrBuilder getArrivalStopOrBuilder() { + return arrivalStop_ == null ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() : arrivalStop_; + } + + public static final int ARRIVAL_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp arrivalTime_; + /** + *
+     * The estimated time of arrival for the step.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 2; + * @return Whether the arrivalTime field is set. + */ + @java.lang.Override + public boolean hasArrivalTime() { + return arrivalTime_ != null; + } + /** + *
+     * The estimated time of arrival for the step.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 2; + * @return The arrivalTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getArrivalTime() { + return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + } + /** + *
+     * The estimated time of arrival for the step.
+     * 
+ * + * .google.protobuf.Timestamp arrival_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { + return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + } + + public static final int DEPARTURE_STOP_FIELD_NUMBER = 3; + private com.google.maps.routing.v2.TransitStop departureStop_; + /** + *
+     * Information about the departure stop for the step.
+     * 
+ * + * .google.maps.routing.v2.TransitStop departure_stop = 3; + * @return Whether the departureStop field is set. + */ + @java.lang.Override + public boolean hasDepartureStop() { + return departureStop_ != null; + } + /** + *
+     * Information about the departure stop for the step.
+     * 
+ * + * .google.maps.routing.v2.TransitStop departure_stop = 3; + * @return The departureStop. + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitStop getDepartureStop() { + return departureStop_ == null ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() : departureStop_; + } + /** + *
+     * Information about the departure stop for the step.
+     * 
+ * + * .google.maps.routing.v2.TransitStop departure_stop = 3; + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitStopOrBuilder getDepartureStopOrBuilder() { + return departureStop_ == null ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() : departureStop_; + } + + public static final int DEPARTURE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp departureTime_; + /** + *
+     * The estimated time of departure for the step.
+     * 
+ * + * .google.protobuf.Timestamp departure_time = 4; + * @return Whether the departureTime field is set. + */ + @java.lang.Override + public boolean hasDepartureTime() { + return departureTime_ != null; + } + /** + *
+     * The estimated time of departure for the step.
+     * 
+ * + * .google.protobuf.Timestamp departure_time = 4; + * @return The departureTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDepartureTime() { + return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + } + /** + *
+     * The estimated time of departure for the step.
+     * 
+ * + * .google.protobuf.Timestamp departure_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { + return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + } + + 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 (arrivalStop_ != null) { + output.writeMessage(1, getArrivalStop()); + } + if (arrivalTime_ != null) { + output.writeMessage(2, getArrivalTime()); + } + if (departureStop_ != null) { + output.writeMessage(3, getDepartureStop()); + } + if (departureTime_ != null) { + output.writeMessage(4, getDepartureTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (arrivalStop_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getArrivalStop()); + } + if (arrivalTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getArrivalTime()); + } + if (departureStop_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDepartureStop()); + } + if (departureTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDepartureTime()); + } + 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails)) { + return super.equals(obj); + } + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails other = (com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) obj; + + if (hasArrivalStop() != other.hasArrivalStop()) return false; + if (hasArrivalStop()) { + if (!getArrivalStop() + .equals(other.getArrivalStop())) return false; + } + if (hasArrivalTime() != other.hasArrivalTime()) return false; + if (hasArrivalTime()) { + if (!getArrivalTime() + .equals(other.getArrivalTime())) return false; + } + if (hasDepartureStop() != other.hasDepartureStop()) return false; + if (hasDepartureStop()) { + if (!getDepartureStop() + .equals(other.getDepartureStop())) return false; + } + if (hasDepartureTime() != other.hasDepartureTime()) return false; + if (hasDepartureTime()) { + if (!getDepartureTime() + .equals(other.getDepartureTime())) 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(); + if (hasArrivalStop()) { + hash = (37 * hash) + ARRIVAL_STOP_FIELD_NUMBER; + hash = (53 * hash) + getArrivalStop().hashCode(); + } + if (hasArrivalTime()) { + hash = (37 * hash) + ARRIVAL_TIME_FIELD_NUMBER; + hash = (53 * hash) + getArrivalTime().hashCode(); + } + if (hasDepartureStop()) { + hash = (37 * hash) + DEPARTURE_STOP_FIELD_NUMBER; + hash = (53 * hash) + getDepartureStop().hashCode(); + } + if (hasDepartureTime()) { + hash = (37 * hash) + DEPARTURE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDepartureTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails 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; + } + /** + *
+     * Details about the transit stops for the `RouteLegStep`
+     * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.class, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder.class); + } + + // Construct using com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + arrivalStop_ = null; + if (arrivalStopBuilder_ != null) { + arrivalStopBuilder_.dispose(); + arrivalStopBuilder_ = null; + } + arrivalTime_ = null; + if (arrivalTimeBuilder_ != null) { + arrivalTimeBuilder_.dispose(); + arrivalTimeBuilder_ = null; + } + departureStop_ = null; + if (departureStopBuilder_ != null) { + departureStopBuilder_.dispose(); + departureStopBuilder_ = null; + } + departureTime_ = null; + if (departureTimeBuilder_ != null) { + departureTimeBuilder_.dispose(); + departureTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails getDefaultInstanceForType() { + return com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails build() { + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails buildPartial() { + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails result = new com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.arrivalStop_ = arrivalStopBuilder_ == null + ? arrivalStop_ + : arrivalStopBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.arrivalTime_ = arrivalTimeBuilder_ == null + ? arrivalTime_ + : arrivalTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.departureStop_ = departureStopBuilder_ == null + ? departureStop_ + : departureStopBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.departureTime_ = departureTimeBuilder_ == null + ? departureTime_ + : departureTimeBuilder_.build(); + } + } + + @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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) { + return mergeFrom((com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails other) { + if (other == com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.getDefaultInstance()) return this; + if (other.hasArrivalStop()) { + mergeArrivalStop(other.getArrivalStop()); + } + if (other.hasArrivalTime()) { + mergeArrivalTime(other.getArrivalTime()); + } + if (other.hasDepartureStop()) { + mergeDepartureStop(other.getDepartureStop()); + } + if (other.hasDepartureTime()) { + mergeDepartureTime(other.getDepartureTime()); + } + 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 10: { + input.readMessage( + getArrivalStopFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getArrivalTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getDepartureStopFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getDepartureTimeFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.maps.routing.v2.TransitStop arrivalStop_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitStop, com.google.maps.routing.v2.TransitStop.Builder, com.google.maps.routing.v2.TransitStopOrBuilder> arrivalStopBuilder_; + /** + *
+       * Information about the arrival stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop arrival_stop = 1; + * @return Whether the arrivalStop field is set. + */ + public boolean hasArrivalStop() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * Information about the arrival stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop arrival_stop = 1; + * @return The arrivalStop. + */ + public com.google.maps.routing.v2.TransitStop getArrivalStop() { + if (arrivalStopBuilder_ == null) { + return arrivalStop_ == null ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() : arrivalStop_; + } else { + return arrivalStopBuilder_.getMessage(); + } + } + /** + *
+       * Information about the arrival stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop arrival_stop = 1; + */ + public Builder setArrivalStop(com.google.maps.routing.v2.TransitStop value) { + if (arrivalStopBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + arrivalStop_ = value; + } else { + arrivalStopBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Information about the arrival stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop arrival_stop = 1; + */ + public Builder setArrivalStop( + com.google.maps.routing.v2.TransitStop.Builder builderForValue) { + if (arrivalStopBuilder_ == null) { + arrivalStop_ = builderForValue.build(); + } else { + arrivalStopBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Information about the arrival stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop arrival_stop = 1; + */ + public Builder mergeArrivalStop(com.google.maps.routing.v2.TransitStop value) { + if (arrivalStopBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + arrivalStop_ != null && + arrivalStop_ != com.google.maps.routing.v2.TransitStop.getDefaultInstance()) { + getArrivalStopBuilder().mergeFrom(value); + } else { + arrivalStop_ = value; + } + } else { + arrivalStopBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Information about the arrival stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop arrival_stop = 1; + */ + public Builder clearArrivalStop() { + bitField0_ = (bitField0_ & ~0x00000001); + arrivalStop_ = null; + if (arrivalStopBuilder_ != null) { + arrivalStopBuilder_.dispose(); + arrivalStopBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Information about the arrival stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop arrival_stop = 1; + */ + public com.google.maps.routing.v2.TransitStop.Builder getArrivalStopBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getArrivalStopFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the arrival stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop arrival_stop = 1; + */ + public com.google.maps.routing.v2.TransitStopOrBuilder getArrivalStopOrBuilder() { + if (arrivalStopBuilder_ != null) { + return arrivalStopBuilder_.getMessageOrBuilder(); + } else { + return arrivalStop_ == null ? + com.google.maps.routing.v2.TransitStop.getDefaultInstance() : arrivalStop_; + } + } + /** + *
+       * Information about the arrival stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop arrival_stop = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitStop, com.google.maps.routing.v2.TransitStop.Builder, com.google.maps.routing.v2.TransitStopOrBuilder> + getArrivalStopFieldBuilder() { + if (arrivalStopBuilder_ == null) { + arrivalStopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitStop, com.google.maps.routing.v2.TransitStop.Builder, com.google.maps.routing.v2.TransitStopOrBuilder>( + getArrivalStop(), + getParentForChildren(), + isClean()); + arrivalStop_ = null; + } + return arrivalStopBuilder_; + } + + private com.google.protobuf.Timestamp arrivalTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> arrivalTimeBuilder_; + /** + *
+       * The estimated time of arrival for the step.
+       * 
+ * + * .google.protobuf.Timestamp arrival_time = 2; + * @return Whether the arrivalTime field is set. + */ + public boolean hasArrivalTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * The estimated time of arrival for the step.
+       * 
+ * + * .google.protobuf.Timestamp arrival_time = 2; + * @return The arrivalTime. + */ + public com.google.protobuf.Timestamp getArrivalTime() { + if (arrivalTimeBuilder_ == null) { + return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + } else { + return arrivalTimeBuilder_.getMessage(); + } + } + /** + *
+       * The estimated time of arrival for the step.
+       * 
+ * + * .google.protobuf.Timestamp arrival_time = 2; + */ + public Builder setArrivalTime(com.google.protobuf.Timestamp value) { + if (arrivalTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + arrivalTime_ = value; + } else { + arrivalTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The estimated time of arrival for the step.
+       * 
+ * + * .google.protobuf.Timestamp arrival_time = 2; + */ + public Builder setArrivalTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (arrivalTimeBuilder_ == null) { + arrivalTime_ = builderForValue.build(); + } else { + arrivalTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The estimated time of arrival for the step.
+       * 
+ * + * .google.protobuf.Timestamp arrival_time = 2; + */ + public Builder mergeArrivalTime(com.google.protobuf.Timestamp value) { + if (arrivalTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + arrivalTime_ != null && + arrivalTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getArrivalTimeBuilder().mergeFrom(value); + } else { + arrivalTime_ = value; + } + } else { + arrivalTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * The estimated time of arrival for the step.
+       * 
+ * + * .google.protobuf.Timestamp arrival_time = 2; + */ + public Builder clearArrivalTime() { + bitField0_ = (bitField0_ & ~0x00000002); + arrivalTime_ = null; + if (arrivalTimeBuilder_ != null) { + arrivalTimeBuilder_.dispose(); + arrivalTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * The estimated time of arrival for the step.
+       * 
+ * + * .google.protobuf.Timestamp arrival_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getArrivalTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getArrivalTimeFieldBuilder().getBuilder(); + } + /** + *
+       * The estimated time of arrival for the step.
+       * 
+ * + * .google.protobuf.Timestamp arrival_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { + if (arrivalTimeBuilder_ != null) { + return arrivalTimeBuilder_.getMessageOrBuilder(); + } else { + return arrivalTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + } + } + /** + *
+       * The estimated time of arrival for the step.
+       * 
+ * + * .google.protobuf.Timestamp arrival_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getArrivalTimeFieldBuilder() { + if (arrivalTimeBuilder_ == null) { + arrivalTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getArrivalTime(), + getParentForChildren(), + isClean()); + arrivalTime_ = null; + } + return arrivalTimeBuilder_; + } + + private com.google.maps.routing.v2.TransitStop departureStop_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitStop, com.google.maps.routing.v2.TransitStop.Builder, com.google.maps.routing.v2.TransitStopOrBuilder> departureStopBuilder_; + /** + *
+       * Information about the departure stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop departure_stop = 3; + * @return Whether the departureStop field is set. + */ + public boolean hasDepartureStop() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Information about the departure stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop departure_stop = 3; + * @return The departureStop. + */ + public com.google.maps.routing.v2.TransitStop getDepartureStop() { + if (departureStopBuilder_ == null) { + return departureStop_ == null ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() : departureStop_; + } else { + return departureStopBuilder_.getMessage(); + } + } + /** + *
+       * Information about the departure stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop departure_stop = 3; + */ + public Builder setDepartureStop(com.google.maps.routing.v2.TransitStop value) { + if (departureStopBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + departureStop_ = value; + } else { + departureStopBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Information about the departure stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop departure_stop = 3; + */ + public Builder setDepartureStop( + com.google.maps.routing.v2.TransitStop.Builder builderForValue) { + if (departureStopBuilder_ == null) { + departureStop_ = builderForValue.build(); + } else { + departureStopBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Information about the departure stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop departure_stop = 3; + */ + public Builder mergeDepartureStop(com.google.maps.routing.v2.TransitStop value) { + if (departureStopBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + departureStop_ != null && + departureStop_ != com.google.maps.routing.v2.TransitStop.getDefaultInstance()) { + getDepartureStopBuilder().mergeFrom(value); + } else { + departureStop_ = value; + } + } else { + departureStopBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Information about the departure stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop departure_stop = 3; + */ + public Builder clearDepartureStop() { + bitField0_ = (bitField0_ & ~0x00000004); + departureStop_ = null; + if (departureStopBuilder_ != null) { + departureStopBuilder_.dispose(); + departureStopBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Information about the departure stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop departure_stop = 3; + */ + public com.google.maps.routing.v2.TransitStop.Builder getDepartureStopBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDepartureStopFieldBuilder().getBuilder(); + } + /** + *
+       * Information about the departure stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop departure_stop = 3; + */ + public com.google.maps.routing.v2.TransitStopOrBuilder getDepartureStopOrBuilder() { + if (departureStopBuilder_ != null) { + return departureStopBuilder_.getMessageOrBuilder(); + } else { + return departureStop_ == null ? + com.google.maps.routing.v2.TransitStop.getDefaultInstance() : departureStop_; + } + } + /** + *
+       * Information about the departure stop for the step.
+       * 
+ * + * .google.maps.routing.v2.TransitStop departure_stop = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitStop, com.google.maps.routing.v2.TransitStop.Builder, com.google.maps.routing.v2.TransitStopOrBuilder> + getDepartureStopFieldBuilder() { + if (departureStopBuilder_ == null) { + departureStopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitStop, com.google.maps.routing.v2.TransitStop.Builder, com.google.maps.routing.v2.TransitStopOrBuilder>( + getDepartureStop(), + getParentForChildren(), + isClean()); + departureStop_ = null; + } + return departureStopBuilder_; + } + + private com.google.protobuf.Timestamp departureTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> departureTimeBuilder_; + /** + *
+       * The estimated time of departure for the step.
+       * 
+ * + * .google.protobuf.Timestamp departure_time = 4; + * @return Whether the departureTime field is set. + */ + public boolean hasDepartureTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * The estimated time of departure for the step.
+       * 
+ * + * .google.protobuf.Timestamp departure_time = 4; + * @return The departureTime. + */ + public com.google.protobuf.Timestamp getDepartureTime() { + if (departureTimeBuilder_ == null) { + return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + } else { + return departureTimeBuilder_.getMessage(); + } + } + /** + *
+       * The estimated time of departure for the step.
+       * 
+ * + * .google.protobuf.Timestamp departure_time = 4; + */ + public Builder setDepartureTime(com.google.protobuf.Timestamp value) { + if (departureTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + departureTime_ = value; + } else { + departureTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * The estimated time of departure for the step.
+       * 
+ * + * .google.protobuf.Timestamp departure_time = 4; + */ + public Builder setDepartureTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (departureTimeBuilder_ == null) { + departureTime_ = builderForValue.build(); + } else { + departureTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * The estimated time of departure for the step.
+       * 
+ * + * .google.protobuf.Timestamp departure_time = 4; + */ + public Builder mergeDepartureTime(com.google.protobuf.Timestamp value) { + if (departureTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + departureTime_ != null && + departureTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDepartureTimeBuilder().mergeFrom(value); + } else { + departureTime_ = value; + } + } else { + departureTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * The estimated time of departure for the step.
+       * 
+ * + * .google.protobuf.Timestamp departure_time = 4; + */ + public Builder clearDepartureTime() { + bitField0_ = (bitField0_ & ~0x00000008); + departureTime_ = null; + if (departureTimeBuilder_ != null) { + departureTimeBuilder_.dispose(); + departureTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * The estimated time of departure for the step.
+       * 
+ * + * .google.protobuf.Timestamp departure_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getDepartureTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getDepartureTimeFieldBuilder().getBuilder(); + } + /** + *
+       * The estimated time of departure for the step.
+       * 
+ * + * .google.protobuf.Timestamp departure_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { + if (departureTimeBuilder_ != null) { + return departureTimeBuilder_.getMessageOrBuilder(); + } else { + return departureTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + } + } + /** + *
+       * The estimated time of departure for the step.
+       * 
+ * + * .google.protobuf.Timestamp departure_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getDepartureTimeFieldBuilder() { + if (departureTimeBuilder_ == null) { + departureTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDepartureTime(), + getParentForChildren(), + isClean()); + departureTime_ = null; + } + return departureTimeBuilder_; + } + @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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) + private static final com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails(); + } + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransitStopDetails 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TransitDetailsLocalizedValuesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Time in its formatted text representation with a corresponding time zone.
+     * 
+ * + * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + * @return Whether the arrivalTime field is set. + */ + boolean hasArrivalTime(); + /** + *
+     * Time in its formatted text representation with a corresponding time zone.
+     * 
+ * + * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + * @return The arrivalTime. + */ + com.google.maps.routing.v2.LocalizedTime getArrivalTime(); + /** + *
+     * Time in its formatted text representation with a corresponding time zone.
+     * 
+ * + * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + */ + com.google.maps.routing.v2.LocalizedTimeOrBuilder getArrivalTimeOrBuilder(); + + /** + *
+     * Time in its formatted text representation with a corresponding time zone.
+     * 
+ * + * .google.maps.routing.v2.LocalizedTime departure_time = 2; + * @return Whether the departureTime field is set. + */ + boolean hasDepartureTime(); + /** + *
+     * Time in its formatted text representation with a corresponding time zone.
+     * 
+ * + * .google.maps.routing.v2.LocalizedTime departure_time = 2; + * @return The departureTime. + */ + com.google.maps.routing.v2.LocalizedTime getDepartureTime(); + /** + *
+     * Time in its formatted text representation with a corresponding time zone.
+     * 
+ * + * .google.maps.routing.v2.LocalizedTime departure_time = 2; + */ + com.google.maps.routing.v2.LocalizedTimeOrBuilder getDepartureTimeOrBuilder(); + } + /** + *
+   * Localized descriptions of values for RouteTransitDetails.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues} + */ + public static final class TransitDetailsLocalizedValues extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) + TransitDetailsLocalizedValuesOrBuilder { + private static final long serialVersionUID = 0L; + // Use TransitDetailsLocalizedValues.newBuilder() to construct. + private TransitDetailsLocalizedValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TransitDetailsLocalizedValues() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TransitDetailsLocalizedValues(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.class, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder.class); + } + + public static final int ARRIVAL_TIME_FIELD_NUMBER = 1; + private com.google.maps.routing.v2.LocalizedTime arrivalTime_; + /** + *
+     * Time in its formatted text representation with a corresponding time zone.
+     * 
+ * + * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + * @return Whether the arrivalTime field is set. + */ + @java.lang.Override + public boolean hasArrivalTime() { + return arrivalTime_ != null; + } + /** + *
+     * Time in its formatted text representation with a corresponding time zone.
+     * 
+ * + * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + * @return The arrivalTime. + */ + @java.lang.Override + public com.google.maps.routing.v2.LocalizedTime getArrivalTime() { + return arrivalTime_ == null ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : arrivalTime_; + } + /** + *
+     * Time in its formatted text representation with a corresponding time zone.
+     * 
+ * + * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + */ + @java.lang.Override + public com.google.maps.routing.v2.LocalizedTimeOrBuilder getArrivalTimeOrBuilder() { + return arrivalTime_ == null ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : arrivalTime_; + } + + public static final int DEPARTURE_TIME_FIELD_NUMBER = 2; + private com.google.maps.routing.v2.LocalizedTime departureTime_; + /** + *
+     * Time in its formatted text representation with a corresponding time zone.
+     * 
+ * + * .google.maps.routing.v2.LocalizedTime departure_time = 2; + * @return Whether the departureTime field is set. + */ + @java.lang.Override + public boolean hasDepartureTime() { + return departureTime_ != null; + } + /** + *
+     * Time in its formatted text representation with a corresponding time zone.
+     * 
+ * + * .google.maps.routing.v2.LocalizedTime departure_time = 2; + * @return The departureTime. + */ + @java.lang.Override + public com.google.maps.routing.v2.LocalizedTime getDepartureTime() { + return departureTime_ == null ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : departureTime_; + } + /** + *
+     * Time in its formatted text representation with a corresponding time zone.
+     * 
+ * + * .google.maps.routing.v2.LocalizedTime departure_time = 2; + */ + @java.lang.Override + public com.google.maps.routing.v2.LocalizedTimeOrBuilder getDepartureTimeOrBuilder() { + return departureTime_ == null ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : departureTime_; + } + + 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 (arrivalTime_ != null) { + output.writeMessage(1, getArrivalTime()); + } + if (departureTime_ != null) { + output.writeMessage(2, getDepartureTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (arrivalTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getArrivalTime()); + } + if (departureTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDepartureTime()); + } + 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.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues)) { + return super.equals(obj); + } + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues other = (com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) obj; + + if (hasArrivalTime() != other.hasArrivalTime()) return false; + if (hasArrivalTime()) { + if (!getArrivalTime() + .equals(other.getArrivalTime())) return false; + } + if (hasDepartureTime() != other.hasDepartureTime()) return false; + if (hasDepartureTime()) { + if (!getDepartureTime() + .equals(other.getDepartureTime())) 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(); + if (hasArrivalTime()) { + hash = (37 * hash) + ARRIVAL_TIME_FIELD_NUMBER; + hash = (53 * hash) + getArrivalTime().hashCode(); + } + if (hasDepartureTime()) { + hash = (37 * hash) + DEPARTURE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDepartureTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues 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.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues 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.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues 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.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues 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.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues 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; + } + /** + *
+     * Localized descriptions of values for RouteTransitDetails.
+     * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.class, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder.class); + } + + // Construct using com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + arrivalTime_ = null; + if (arrivalTimeBuilder_ != null) { + arrivalTimeBuilder_.dispose(); + arrivalTimeBuilder_ = null; + } + departureTime_ = null; + if (departureTimeBuilder_ != null) { + departureTimeBuilder_.dispose(); + departureTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues getDefaultInstanceForType() { + return com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues build() { + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues buildPartial() { + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues result = new com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.arrivalTime_ = arrivalTimeBuilder_ == null + ? arrivalTime_ + : arrivalTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.departureTime_ = departureTimeBuilder_ == null + ? departureTime_ + : departureTimeBuilder_.build(); + } + } + + @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.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) { + return mergeFrom((com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues other) { + if (other == com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.getDefaultInstance()) return this; + if (other.hasArrivalTime()) { + mergeArrivalTime(other.getArrivalTime()); + } + if (other.hasDepartureTime()) { + mergeDepartureTime(other.getDepartureTime()); + } + 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 10: { + input.readMessage( + getArrivalTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDepartureTimeFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.maps.routing.v2.LocalizedTime arrivalTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.LocalizedTime, com.google.maps.routing.v2.LocalizedTime.Builder, com.google.maps.routing.v2.LocalizedTimeOrBuilder> arrivalTimeBuilder_; + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + * @return Whether the arrivalTime field is set. + */ + public boolean hasArrivalTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + * @return The arrivalTime. + */ + public com.google.maps.routing.v2.LocalizedTime getArrivalTime() { + if (arrivalTimeBuilder_ == null) { + return arrivalTime_ == null ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : arrivalTime_; + } else { + return arrivalTimeBuilder_.getMessage(); + } + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + */ + public Builder setArrivalTime(com.google.maps.routing.v2.LocalizedTime value) { + if (arrivalTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + arrivalTime_ = value; + } else { + arrivalTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + */ + public Builder setArrivalTime( + com.google.maps.routing.v2.LocalizedTime.Builder builderForValue) { + if (arrivalTimeBuilder_ == null) { + arrivalTime_ = builderForValue.build(); + } else { + arrivalTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + */ + public Builder mergeArrivalTime(com.google.maps.routing.v2.LocalizedTime value) { + if (arrivalTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + arrivalTime_ != null && + arrivalTime_ != com.google.maps.routing.v2.LocalizedTime.getDefaultInstance()) { + getArrivalTimeBuilder().mergeFrom(value); + } else { + arrivalTime_ = value; + } + } else { + arrivalTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + */ + public Builder clearArrivalTime() { + bitField0_ = (bitField0_ & ~0x00000001); + arrivalTime_ = null; + if (arrivalTimeBuilder_ != null) { + arrivalTimeBuilder_.dispose(); + arrivalTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + */ + public com.google.maps.routing.v2.LocalizedTime.Builder getArrivalTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getArrivalTimeFieldBuilder().getBuilder(); + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + */ + public com.google.maps.routing.v2.LocalizedTimeOrBuilder getArrivalTimeOrBuilder() { + if (arrivalTimeBuilder_ != null) { + return arrivalTimeBuilder_.getMessageOrBuilder(); + } else { + return arrivalTime_ == null ? + com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : arrivalTime_; + } + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.LocalizedTime, com.google.maps.routing.v2.LocalizedTime.Builder, com.google.maps.routing.v2.LocalizedTimeOrBuilder> + getArrivalTimeFieldBuilder() { + if (arrivalTimeBuilder_ == null) { + arrivalTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.LocalizedTime, com.google.maps.routing.v2.LocalizedTime.Builder, com.google.maps.routing.v2.LocalizedTimeOrBuilder>( + getArrivalTime(), + getParentForChildren(), + isClean()); + arrivalTime_ = null; + } + return arrivalTimeBuilder_; + } + + private com.google.maps.routing.v2.LocalizedTime departureTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.LocalizedTime, com.google.maps.routing.v2.LocalizedTime.Builder, com.google.maps.routing.v2.LocalizedTimeOrBuilder> departureTimeBuilder_; + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime departure_time = 2; + * @return Whether the departureTime field is set. + */ + public boolean hasDepartureTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime departure_time = 2; + * @return The departureTime. + */ + public com.google.maps.routing.v2.LocalizedTime getDepartureTime() { + if (departureTimeBuilder_ == null) { + return departureTime_ == null ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : departureTime_; + } else { + return departureTimeBuilder_.getMessage(); + } + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime departure_time = 2; + */ + public Builder setDepartureTime(com.google.maps.routing.v2.LocalizedTime value) { + if (departureTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + departureTime_ = value; + } else { + departureTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime departure_time = 2; + */ + public Builder setDepartureTime( + com.google.maps.routing.v2.LocalizedTime.Builder builderForValue) { + if (departureTimeBuilder_ == null) { + departureTime_ = builderForValue.build(); + } else { + departureTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime departure_time = 2; + */ + public Builder mergeDepartureTime(com.google.maps.routing.v2.LocalizedTime value) { + if (departureTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + departureTime_ != null && + departureTime_ != com.google.maps.routing.v2.LocalizedTime.getDefaultInstance()) { + getDepartureTimeBuilder().mergeFrom(value); + } else { + departureTime_ = value; + } + } else { + departureTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime departure_time = 2; + */ + public Builder clearDepartureTime() { + bitField0_ = (bitField0_ & ~0x00000002); + departureTime_ = null; + if (departureTimeBuilder_ != null) { + departureTimeBuilder_.dispose(); + departureTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime departure_time = 2; + */ + public com.google.maps.routing.v2.LocalizedTime.Builder getDepartureTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDepartureTimeFieldBuilder().getBuilder(); + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime departure_time = 2; + */ + public com.google.maps.routing.v2.LocalizedTimeOrBuilder getDepartureTimeOrBuilder() { + if (departureTimeBuilder_ != null) { + return departureTimeBuilder_.getMessageOrBuilder(); + } else { + return departureTime_ == null ? + com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : departureTime_; + } + } + /** + *
+       * Time in its formatted text representation with a corresponding time zone.
+       * 
+ * + * .google.maps.routing.v2.LocalizedTime departure_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.LocalizedTime, com.google.maps.routing.v2.LocalizedTime.Builder, com.google.maps.routing.v2.LocalizedTimeOrBuilder> + getDepartureTimeFieldBuilder() { + if (departureTimeBuilder_ == null) { + departureTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.LocalizedTime, com.google.maps.routing.v2.LocalizedTime.Builder, com.google.maps.routing.v2.LocalizedTimeOrBuilder>( + getDepartureTime(), + getParentForChildren(), + isClean()); + departureTime_ = null; + } + return departureTimeBuilder_; + } + @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.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) + private static final com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues(); + } + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransitDetailsLocalizedValues 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.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public static final int STOP_DETAILS_FIELD_NUMBER = 1; + private com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stopDetails_; + /** + *
+   * Information about the arrival and departure stops for the step.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * @return Whether the stopDetails field is set. + */ + @java.lang.Override + public boolean hasStopDetails() { + return stopDetails_ != null; + } + /** + *
+   * Information about the arrival and departure stops for the step.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * @return The stopDetails. + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails getStopDetails() { + return stopDetails_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.getDefaultInstance() : stopDetails_; + } + /** + *
+   * Information about the arrival and departure stops for the step.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder getStopDetailsOrBuilder() { + return stopDetails_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.getDefaultInstance() : stopDetails_; + } + + public static final int LOCALIZED_VALUES_FIELD_NUMBER = 2; + private com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localizedValues_; + /** + *
+   * Text representations of properties of the `RouteLegStepTransitDetails`.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * @return Whether the localizedValues field is set. + */ + @java.lang.Override + public boolean hasLocalizedValues() { + return localizedValues_ != null; + } + /** + *
+   * Text representations of properties of the `RouteLegStepTransitDetails`.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * @return The localizedValues. + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues getLocalizedValues() { + return localizedValues_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.getDefaultInstance() : localizedValues_; + } + /** + *
+   * Text representations of properties of the `RouteLegStepTransitDetails`.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { + return localizedValues_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.getDefaultInstance() : localizedValues_; + } + + public static final int HEADSIGN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object headsign_ = ""; + /** + *
+   * Specifies the direction in which to travel on this line as marked on
+   * the vehicle or at the departure stop. The direction is often the terminus
+   * station.
+   * 
+ * + * string headsign = 3; + * @return The headsign. + */ + @java.lang.Override + public java.lang.String getHeadsign() { + java.lang.Object ref = headsign_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + headsign_ = s; + return s; + } + } + /** + *
+   * Specifies the direction in which to travel on this line as marked on
+   * the vehicle or at the departure stop. The direction is often the terminus
+   * station.
+   * 
+ * + * string headsign = 3; + * @return The bytes for headsign. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getHeadsignBytes() { + java.lang.Object ref = headsign_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + headsign_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEADWAY_FIELD_NUMBER = 4; + private com.google.protobuf.Duration headway_; + /** + *
+   * Specifies the expected time as a duration between departures from the same
+   * stop at this time. For example, with a headway seconds value of 600, you
+   * would expect a ten minute wait if you should miss your bus.
+   * 
+ * + * .google.protobuf.Duration headway = 4; + * @return Whether the headway field is set. + */ + @java.lang.Override + public boolean hasHeadway() { + return headway_ != null; + } + /** + *
+   * Specifies the expected time as a duration between departures from the same
+   * stop at this time. For example, with a headway seconds value of 600, you
+   * would expect a ten minute wait if you should miss your bus.
+   * 
+ * + * .google.protobuf.Duration headway = 4; + * @return The headway. + */ + @java.lang.Override + public com.google.protobuf.Duration getHeadway() { + return headway_ == null ? com.google.protobuf.Duration.getDefaultInstance() : headway_; + } + /** + *
+   * Specifies the expected time as a duration between departures from the same
+   * stop at this time. For example, with a headway seconds value of 600, you
+   * would expect a ten minute wait if you should miss your bus.
+   * 
+ * + * .google.protobuf.Duration headway = 4; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getHeadwayOrBuilder() { + return headway_ == null ? com.google.protobuf.Duration.getDefaultInstance() : headway_; + } + + public static final int TRANSIT_LINE_FIELD_NUMBER = 5; + private com.google.maps.routing.v2.TransitLine transitLine_; + /** + *
+   * Information about the transit line used in this step.
+   * 
+ * + * .google.maps.routing.v2.TransitLine transit_line = 5; + * @return Whether the transitLine field is set. + */ + @java.lang.Override + public boolean hasTransitLine() { + return transitLine_ != null; + } + /** + *
+   * Information about the transit line used in this step.
+   * 
+ * + * .google.maps.routing.v2.TransitLine transit_line = 5; + * @return The transitLine. + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitLine getTransitLine() { + return transitLine_ == null ? com.google.maps.routing.v2.TransitLine.getDefaultInstance() : transitLine_; + } + /** + *
+   * Information about the transit line used in this step.
+   * 
+ * + * .google.maps.routing.v2.TransitLine transit_line = 5; + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitLineOrBuilder getTransitLineOrBuilder() { + return transitLine_ == null ? com.google.maps.routing.v2.TransitLine.getDefaultInstance() : transitLine_; + } + + public static final int STOP_COUNT_FIELD_NUMBER = 6; + private int stopCount_ = 0; + /** + *
+   * The number of stops from the departure to the arrival stop. This count
+   * includes the arrival stop, but excludes the departure stop. For example, if
+   * your route leaves from Stop A, passes through stops B and C, and arrives at
+   * stop D, stop_count will return 3.
+   * 
+ * + * int32 stop_count = 6; + * @return The stopCount. + */ + @java.lang.Override + public int getStopCount() { + return stopCount_; + } + + public static final int TRIP_SHORT_TEXT_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object tripShortText_ = ""; + /** + *
+   * The text that appears in schedules and sign boards to identify a transit
+   * trip to passengers. The text should uniquely identify a trip within a
+   * service day. For example, "538" is the `trip_short_text` of the Amtrak
+   * train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.
+   * 
+ * + * string trip_short_text = 7; + * @return The tripShortText. + */ + @java.lang.Override + public java.lang.String getTripShortText() { + java.lang.Object ref = tripShortText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tripShortText_ = s; + return s; + } + } + /** + *
+   * The text that appears in schedules and sign boards to identify a transit
+   * trip to passengers. The text should uniquely identify a trip within a
+   * service day. For example, "538" is the `trip_short_text` of the Amtrak
+   * train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.
+   * 
+ * + * string trip_short_text = 7; + * @return The bytes for tripShortText. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTripShortTextBytes() { + java.lang.Object ref = tripShortText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tripShortText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (stopDetails_ != null) { + output.writeMessage(1, getStopDetails()); + } + if (localizedValues_ != null) { + output.writeMessage(2, getLocalizedValues()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headsign_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, headsign_); + } + if (headway_ != null) { + output.writeMessage(4, getHeadway()); + } + if (transitLine_ != null) { + output.writeMessage(5, getTransitLine()); + } + if (stopCount_ != 0) { + output.writeInt32(6, stopCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tripShortText_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tripShortText_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (stopDetails_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStopDetails()); + } + if (localizedValues_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLocalizedValues()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headsign_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, headsign_); + } + if (headway_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getHeadway()); + } + if (transitLine_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getTransitLine()); + } + if (stopCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, stopCount_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tripShortText_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, tripShortText_); + } + 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.maps.routing.v2.RouteLegStepTransitDetails)) { + return super.equals(obj); + } + com.google.maps.routing.v2.RouteLegStepTransitDetails other = (com.google.maps.routing.v2.RouteLegStepTransitDetails) obj; + + if (hasStopDetails() != other.hasStopDetails()) return false; + if (hasStopDetails()) { + if (!getStopDetails() + .equals(other.getStopDetails())) return false; + } + if (hasLocalizedValues() != other.hasLocalizedValues()) return false; + if (hasLocalizedValues()) { + if (!getLocalizedValues() + .equals(other.getLocalizedValues())) return false; + } + if (!getHeadsign() + .equals(other.getHeadsign())) return false; + if (hasHeadway() != other.hasHeadway()) return false; + if (hasHeadway()) { + if (!getHeadway() + .equals(other.getHeadway())) return false; + } + if (hasTransitLine() != other.hasTransitLine()) return false; + if (hasTransitLine()) { + if (!getTransitLine() + .equals(other.getTransitLine())) return false; + } + if (getStopCount() + != other.getStopCount()) return false; + if (!getTripShortText() + .equals(other.getTripShortText())) 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(); + if (hasStopDetails()) { + hash = (37 * hash) + STOP_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getStopDetails().hashCode(); + } + if (hasLocalizedValues()) { + hash = (37 * hash) + LOCALIZED_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getLocalizedValues().hashCode(); + } + hash = (37 * hash) + HEADSIGN_FIELD_NUMBER; + hash = (53 * hash) + getHeadsign().hashCode(); + if (hasHeadway()) { + hash = (37 * hash) + HEADWAY_FIELD_NUMBER; + hash = (53 * hash) + getHeadway().hashCode(); + } + if (hasTransitLine()) { + hash = (37 * hash) + TRANSIT_LINE_FIELD_NUMBER; + hash = (53 * hash) + getTransitLine().hashCode(); + } + hash = (37 * hash) + STOP_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getStopCount(); + hash = (37 * hash) + TRIP_SHORT_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getTripShortText().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails 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; + } + /** + *
+   * Additional information for the `RouteLegStep` related to `TRANSIT` routes.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteLegStepTransitDetails} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.RouteLegStepTransitDetails) + com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteLegStepTransitDetails.class, com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder.class); + } + + // Construct using com.google.maps.routing.v2.RouteLegStepTransitDetails.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + stopDetails_ = null; + if (stopDetailsBuilder_ != null) { + stopDetailsBuilder_.dispose(); + stopDetailsBuilder_ = null; + } + localizedValues_ = null; + if (localizedValuesBuilder_ != null) { + localizedValuesBuilder_.dispose(); + localizedValuesBuilder_ = null; + } + headsign_ = ""; + headway_ = null; + if (headwayBuilder_ != null) { + headwayBuilder_.dispose(); + headwayBuilder_ = null; + } + transitLine_ = null; + if (transitLineBuilder_ != null) { + transitLineBuilder_.dispose(); + transitLineBuilder_ = null; + } + stopCount_ = 0; + tripShortText_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTransitDetails getDefaultInstanceForType() { + return com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTransitDetails build() { + com.google.maps.routing.v2.RouteLegStepTransitDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteLegStepTransitDetails buildPartial() { + com.google.maps.routing.v2.RouteLegStepTransitDetails result = new com.google.maps.routing.v2.RouteLegStepTransitDetails(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.RouteLegStepTransitDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.stopDetails_ = stopDetailsBuilder_ == null + ? stopDetails_ + : stopDetailsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.localizedValues_ = localizedValuesBuilder_ == null + ? localizedValues_ + : localizedValuesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.headsign_ = headsign_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.headway_ = headwayBuilder_ == null + ? headway_ + : headwayBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.transitLine_ = transitLineBuilder_ == null + ? transitLine_ + : transitLineBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.stopCount_ = stopCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.tripShortText_ = tripShortText_; + } + } + + @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.maps.routing.v2.RouteLegStepTransitDetails) { + return mergeFrom((com.google.maps.routing.v2.RouteLegStepTransitDetails)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.RouteLegStepTransitDetails other) { + if (other == com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance()) return this; + if (other.hasStopDetails()) { + mergeStopDetails(other.getStopDetails()); + } + if (other.hasLocalizedValues()) { + mergeLocalizedValues(other.getLocalizedValues()); + } + if (!other.getHeadsign().isEmpty()) { + headsign_ = other.headsign_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasHeadway()) { + mergeHeadway(other.getHeadway()); + } + if (other.hasTransitLine()) { + mergeTransitLine(other.getTransitLine()); + } + if (other.getStopCount() != 0) { + setStopCount(other.getStopCount()); + } + if (!other.getTripShortText().isEmpty()) { + tripShortText_ = other.tripShortText_; + bitField0_ |= 0x00000040; + onChanged(); + } + 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 10: { + input.readMessage( + getStopDetailsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getLocalizedValuesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + headsign_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getHeadwayFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getTransitLineFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + stopCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + tripShortText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + 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 com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stopDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder> stopDetailsBuilder_; + /** + *
+     * Information about the arrival and departure stops for the step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * @return Whether the stopDetails field is set. + */ + public boolean hasStopDetails() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Information about the arrival and departure stops for the step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * @return The stopDetails. + */ + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails getStopDetails() { + if (stopDetailsBuilder_ == null) { + return stopDetails_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.getDefaultInstance() : stopDetails_; + } else { + return stopDetailsBuilder_.getMessage(); + } + } + /** + *
+     * Information about the arrival and departure stops for the step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + */ + public Builder setStopDetails(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails value) { + if (stopDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stopDetails_ = value; + } else { + stopDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Information about the arrival and departure stops for the step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + */ + public Builder setStopDetails( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder builderForValue) { + if (stopDetailsBuilder_ == null) { + stopDetails_ = builderForValue.build(); + } else { + stopDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Information about the arrival and departure stops for the step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + */ + public Builder mergeStopDetails(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails value) { + if (stopDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + stopDetails_ != null && + stopDetails_ != com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.getDefaultInstance()) { + getStopDetailsBuilder().mergeFrom(value); + } else { + stopDetails_ = value; + } + } else { + stopDetailsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Information about the arrival and departure stops for the step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + */ + public Builder clearStopDetails() { + bitField0_ = (bitField0_ & ~0x00000001); + stopDetails_ = null; + if (stopDetailsBuilder_ != null) { + stopDetailsBuilder_.dispose(); + stopDetailsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Information about the arrival and departure stops for the step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + */ + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder getStopDetailsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStopDetailsFieldBuilder().getBuilder(); + } + /** + *
+     * Information about the arrival and departure stops for the step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + */ + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder getStopDetailsOrBuilder() { + if (stopDetailsBuilder_ != null) { + return stopDetailsBuilder_.getMessageOrBuilder(); + } else { + return stopDetails_ == null ? + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.getDefaultInstance() : stopDetails_; + } + } + /** + *
+     * Information about the arrival and departure stops for the step.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder> + getStopDetailsFieldBuilder() { + if (stopDetailsBuilder_ == null) { + stopDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder>( + getStopDetails(), + getParentForChildren(), + isClean()); + stopDetails_ = null; + } + return stopDetailsBuilder_; + } + + private com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localizedValues_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder> localizedValuesBuilder_; + /** + *
+     * Text representations of properties of the `RouteLegStepTransitDetails`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * @return Whether the localizedValues field is set. + */ + public boolean hasLocalizedValues() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Text representations of properties of the `RouteLegStepTransitDetails`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * @return The localizedValues. + */ + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues getLocalizedValues() { + if (localizedValuesBuilder_ == null) { + return localizedValues_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.getDefaultInstance() : localizedValues_; + } else { + return localizedValuesBuilder_.getMessage(); + } + } + /** + *
+     * Text representations of properties of the `RouteLegStepTransitDetails`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + */ + public Builder setLocalizedValues(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues value) { + if (localizedValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + localizedValues_ = value; + } else { + localizedValuesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteLegStepTransitDetails`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + */ + public Builder setLocalizedValues( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder builderForValue) { + if (localizedValuesBuilder_ == null) { + localizedValues_ = builderForValue.build(); + } else { + localizedValuesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteLegStepTransitDetails`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + */ + public Builder mergeLocalizedValues(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues value) { + if (localizedValuesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + localizedValues_ != null && + localizedValues_ != com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.getDefaultInstance()) { + getLocalizedValuesBuilder().mergeFrom(value); + } else { + localizedValues_ = value; + } + } else { + localizedValuesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteLegStepTransitDetails`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + */ + public Builder clearLocalizedValues() { + bitField0_ = (bitField0_ & ~0x00000002); + localizedValues_ = null; + if (localizedValuesBuilder_ != null) { + localizedValuesBuilder_.dispose(); + localizedValuesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteLegStepTransitDetails`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + */ + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder getLocalizedValuesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLocalizedValuesFieldBuilder().getBuilder(); + } + /** + *
+     * Text representations of properties of the `RouteLegStepTransitDetails`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + */ + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { + if (localizedValuesBuilder_ != null) { + return localizedValuesBuilder_.getMessageOrBuilder(); + } else { + return localizedValues_ == null ? + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.getDefaultInstance() : localizedValues_; + } + } + /** + *
+     * Text representations of properties of the `RouteLegStepTransitDetails`.
+     * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder> + getLocalizedValuesFieldBuilder() { + if (localizedValuesBuilder_ == null) { + localizedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder>( + getLocalizedValues(), + getParentForChildren(), + isClean()); + localizedValues_ = null; + } + return localizedValuesBuilder_; + } + + private java.lang.Object headsign_ = ""; + /** + *
+     * Specifies the direction in which to travel on this line as marked on
+     * the vehicle or at the departure stop. The direction is often the terminus
+     * station.
+     * 
+ * + * string headsign = 3; + * @return The headsign. + */ + public java.lang.String getHeadsign() { + java.lang.Object ref = headsign_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + headsign_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Specifies the direction in which to travel on this line as marked on
+     * the vehicle or at the departure stop. The direction is often the terminus
+     * station.
+     * 
+ * + * string headsign = 3; + * @return The bytes for headsign. + */ + public com.google.protobuf.ByteString + getHeadsignBytes() { + java.lang.Object ref = headsign_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + headsign_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Specifies the direction in which to travel on this line as marked on
+     * the vehicle or at the departure stop. The direction is often the terminus
+     * station.
+     * 
+ * + * string headsign = 3; + * @param value The headsign to set. + * @return This builder for chaining. + */ + public Builder setHeadsign( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + headsign_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Specifies the direction in which to travel on this line as marked on
+     * the vehicle or at the departure stop. The direction is often the terminus
+     * station.
+     * 
+ * + * string headsign = 3; + * @return This builder for chaining. + */ + public Builder clearHeadsign() { + headsign_ = getDefaultInstance().getHeadsign(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Specifies the direction in which to travel on this line as marked on
+     * the vehicle or at the departure stop. The direction is often the terminus
+     * station.
+     * 
+ * + * string headsign = 3; + * @param value The bytes for headsign to set. + * @return This builder for chaining. + */ + public Builder setHeadsignBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + headsign_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Duration headway_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> headwayBuilder_; + /** + *
+     * Specifies the expected time as a duration between departures from the same
+     * stop at this time. For example, with a headway seconds value of 600, you
+     * would expect a ten minute wait if you should miss your bus.
+     * 
+ * + * .google.protobuf.Duration headway = 4; + * @return Whether the headway field is set. + */ + public boolean hasHeadway() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+     * Specifies the expected time as a duration between departures from the same
+     * stop at this time. For example, with a headway seconds value of 600, you
+     * would expect a ten minute wait if you should miss your bus.
+     * 
+ * + * .google.protobuf.Duration headway = 4; + * @return The headway. + */ + public com.google.protobuf.Duration getHeadway() { + if (headwayBuilder_ == null) { + return headway_ == null ? com.google.protobuf.Duration.getDefaultInstance() : headway_; + } else { + return headwayBuilder_.getMessage(); + } + } + /** + *
+     * Specifies the expected time as a duration between departures from the same
+     * stop at this time. For example, with a headway seconds value of 600, you
+     * would expect a ten minute wait if you should miss your bus.
+     * 
+ * + * .google.protobuf.Duration headway = 4; + */ + public Builder setHeadway(com.google.protobuf.Duration value) { + if (headwayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + headway_ = value; + } else { + headwayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Specifies the expected time as a duration between departures from the same
+     * stop at this time. For example, with a headway seconds value of 600, you
+     * would expect a ten minute wait if you should miss your bus.
+     * 
+ * + * .google.protobuf.Duration headway = 4; + */ + public Builder setHeadway( + com.google.protobuf.Duration.Builder builderForValue) { + if (headwayBuilder_ == null) { + headway_ = builderForValue.build(); + } else { + headwayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Specifies the expected time as a duration between departures from the same
+     * stop at this time. For example, with a headway seconds value of 600, you
+     * would expect a ten minute wait if you should miss your bus.
+     * 
+ * + * .google.protobuf.Duration headway = 4; + */ + public Builder mergeHeadway(com.google.protobuf.Duration value) { + if (headwayBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + headway_ != null && + headway_ != com.google.protobuf.Duration.getDefaultInstance()) { + getHeadwayBuilder().mergeFrom(value); + } else { + headway_ = value; + } + } else { + headwayBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Specifies the expected time as a duration between departures from the same
+     * stop at this time. For example, with a headway seconds value of 600, you
+     * would expect a ten minute wait if you should miss your bus.
+     * 
+ * + * .google.protobuf.Duration headway = 4; + */ + public Builder clearHeadway() { + bitField0_ = (bitField0_ & ~0x00000008); + headway_ = null; + if (headwayBuilder_ != null) { + headwayBuilder_.dispose(); + headwayBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Specifies the expected time as a duration between departures from the same
+     * stop at this time. For example, with a headway seconds value of 600, you
+     * would expect a ten minute wait if you should miss your bus.
+     * 
+ * + * .google.protobuf.Duration headway = 4; + */ + public com.google.protobuf.Duration.Builder getHeadwayBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getHeadwayFieldBuilder().getBuilder(); + } + /** + *
+     * Specifies the expected time as a duration between departures from the same
+     * stop at this time. For example, with a headway seconds value of 600, you
+     * would expect a ten minute wait if you should miss your bus.
+     * 
+ * + * .google.protobuf.Duration headway = 4; + */ + public com.google.protobuf.DurationOrBuilder getHeadwayOrBuilder() { + if (headwayBuilder_ != null) { + return headwayBuilder_.getMessageOrBuilder(); + } else { + return headway_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : headway_; + } + } + /** + *
+     * Specifies the expected time as a duration between departures from the same
+     * stop at this time. For example, with a headway seconds value of 600, you
+     * would expect a ten minute wait if you should miss your bus.
+     * 
+ * + * .google.protobuf.Duration headway = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getHeadwayFieldBuilder() { + if (headwayBuilder_ == null) { + headwayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getHeadway(), + getParentForChildren(), + isClean()); + headway_ = null; + } + return headwayBuilder_; + } + + private com.google.maps.routing.v2.TransitLine transitLine_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitLine, com.google.maps.routing.v2.TransitLine.Builder, com.google.maps.routing.v2.TransitLineOrBuilder> transitLineBuilder_; + /** + *
+     * Information about the transit line used in this step.
+     * 
+ * + * .google.maps.routing.v2.TransitLine transit_line = 5; + * @return Whether the transitLine field is set. + */ + public boolean hasTransitLine() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Information about the transit line used in this step.
+     * 
+ * + * .google.maps.routing.v2.TransitLine transit_line = 5; + * @return The transitLine. + */ + public com.google.maps.routing.v2.TransitLine getTransitLine() { + if (transitLineBuilder_ == null) { + return transitLine_ == null ? com.google.maps.routing.v2.TransitLine.getDefaultInstance() : transitLine_; + } else { + return transitLineBuilder_.getMessage(); + } + } + /** + *
+     * Information about the transit line used in this step.
+     * 
+ * + * .google.maps.routing.v2.TransitLine transit_line = 5; + */ + public Builder setTransitLine(com.google.maps.routing.v2.TransitLine value) { + if (transitLineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transitLine_ = value; + } else { + transitLineBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Information about the transit line used in this step.
+     * 
+ * + * .google.maps.routing.v2.TransitLine transit_line = 5; + */ + public Builder setTransitLine( + com.google.maps.routing.v2.TransitLine.Builder builderForValue) { + if (transitLineBuilder_ == null) { + transitLine_ = builderForValue.build(); + } else { + transitLineBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Information about the transit line used in this step.
+     * 
+ * + * .google.maps.routing.v2.TransitLine transit_line = 5; + */ + public Builder mergeTransitLine(com.google.maps.routing.v2.TransitLine value) { + if (transitLineBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + transitLine_ != null && + transitLine_ != com.google.maps.routing.v2.TransitLine.getDefaultInstance()) { + getTransitLineBuilder().mergeFrom(value); + } else { + transitLine_ = value; + } + } else { + transitLineBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Information about the transit line used in this step.
+     * 
+ * + * .google.maps.routing.v2.TransitLine transit_line = 5; + */ + public Builder clearTransitLine() { + bitField0_ = (bitField0_ & ~0x00000010); + transitLine_ = null; + if (transitLineBuilder_ != null) { + transitLineBuilder_.dispose(); + transitLineBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Information about the transit line used in this step.
+     * 
+ * + * .google.maps.routing.v2.TransitLine transit_line = 5; + */ + public com.google.maps.routing.v2.TransitLine.Builder getTransitLineBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getTransitLineFieldBuilder().getBuilder(); + } + /** + *
+     * Information about the transit line used in this step.
+     * 
+ * + * .google.maps.routing.v2.TransitLine transit_line = 5; + */ + public com.google.maps.routing.v2.TransitLineOrBuilder getTransitLineOrBuilder() { + if (transitLineBuilder_ != null) { + return transitLineBuilder_.getMessageOrBuilder(); + } else { + return transitLine_ == null ? + com.google.maps.routing.v2.TransitLine.getDefaultInstance() : transitLine_; + } + } + /** + *
+     * Information about the transit line used in this step.
+     * 
+ * + * .google.maps.routing.v2.TransitLine transit_line = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitLine, com.google.maps.routing.v2.TransitLine.Builder, com.google.maps.routing.v2.TransitLineOrBuilder> + getTransitLineFieldBuilder() { + if (transitLineBuilder_ == null) { + transitLineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitLine, com.google.maps.routing.v2.TransitLine.Builder, com.google.maps.routing.v2.TransitLineOrBuilder>( + getTransitLine(), + getParentForChildren(), + isClean()); + transitLine_ = null; + } + return transitLineBuilder_; + } + + private int stopCount_ ; + /** + *
+     * The number of stops from the departure to the arrival stop. This count
+     * includes the arrival stop, but excludes the departure stop. For example, if
+     * your route leaves from Stop A, passes through stops B and C, and arrives at
+     * stop D, stop_count will return 3.
+     * 
+ * + * int32 stop_count = 6; + * @return The stopCount. + */ + @java.lang.Override + public int getStopCount() { + return stopCount_; + } + /** + *
+     * The number of stops from the departure to the arrival stop. This count
+     * includes the arrival stop, but excludes the departure stop. For example, if
+     * your route leaves from Stop A, passes through stops B and C, and arrives at
+     * stop D, stop_count will return 3.
+     * 
+ * + * int32 stop_count = 6; + * @param value The stopCount to set. + * @return This builder for chaining. + */ + public Builder setStopCount(int value) { + + stopCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The number of stops from the departure to the arrival stop. This count
+     * includes the arrival stop, but excludes the departure stop. For example, if
+     * your route leaves from Stop A, passes through stops B and C, and arrives at
+     * stop D, stop_count will return 3.
+     * 
+ * + * int32 stop_count = 6; + * @return This builder for chaining. + */ + public Builder clearStopCount() { + bitField0_ = (bitField0_ & ~0x00000020); + stopCount_ = 0; + onChanged(); + return this; + } + + private java.lang.Object tripShortText_ = ""; + /** + *
+     * The text that appears in schedules and sign boards to identify a transit
+     * trip to passengers. The text should uniquely identify a trip within a
+     * service day. For example, "538" is the `trip_short_text` of the Amtrak
+     * train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.
+     * 
+ * + * string trip_short_text = 7; + * @return The tripShortText. + */ + public java.lang.String getTripShortText() { + java.lang.Object ref = tripShortText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tripShortText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The text that appears in schedules and sign boards to identify a transit
+     * trip to passengers. The text should uniquely identify a trip within a
+     * service day. For example, "538" is the `trip_short_text` of the Amtrak
+     * train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.
+     * 
+ * + * string trip_short_text = 7; + * @return The bytes for tripShortText. + */ + public com.google.protobuf.ByteString + getTripShortTextBytes() { + java.lang.Object ref = tripShortText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tripShortText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The text that appears in schedules and sign boards to identify a transit
+     * trip to passengers. The text should uniquely identify a trip within a
+     * service day. For example, "538" is the `trip_short_text` of the Amtrak
+     * train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.
+     * 
+ * + * string trip_short_text = 7; + * @param value The tripShortText to set. + * @return This builder for chaining. + */ + public Builder setTripShortText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + tripShortText_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The text that appears in schedules and sign boards to identify a transit
+     * trip to passengers. The text should uniquely identify a trip within a
+     * service day. For example, "538" is the `trip_short_text` of the Amtrak
+     * train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.
+     * 
+ * + * string trip_short_text = 7; + * @return This builder for chaining. + */ + public Builder clearTripShortText() { + tripShortText_ = getDefaultInstance().getTripShortText(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+     * The text that appears in schedules and sign boards to identify a transit
+     * trip to passengers. The text should uniquely identify a trip within a
+     * service day. For example, "538" is the `trip_short_text` of the Amtrak
+     * train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.
+     * 
+ * + * string trip_short_text = 7; + * @param value The bytes for tripShortText to set. + * @return This builder for chaining. + */ + public Builder setTripShortTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + tripShortText_ = value; + bitField0_ |= 0x00000040; + 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.maps.routing.v2.RouteLegStepTransitDetails) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLegStepTransitDetails) + private static final com.google.maps.routing.v2.RouteLegStepTransitDetails DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLegStepTransitDetails(); + } + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetailsOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetailsOrBuilder.java new file mode 100644 index 000000000000..b022f8a98ec1 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetailsOrBuilder.java @@ -0,0 +1,186 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/route.proto + +package com.google.maps.routing.v2; + +public interface RouteLegStepTransitDetailsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLegStepTransitDetails) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Information about the arrival and departure stops for the step.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * @return Whether the stopDetails field is set. + */ + boolean hasStopDetails(); + /** + *
+   * Information about the arrival and departure stops for the step.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * @return The stopDetails. + */ + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails getStopDetails(); + /** + *
+   * Information about the arrival and departure stops for the step.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + */ + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder getStopDetailsOrBuilder(); + + /** + *
+   * Text representations of properties of the `RouteLegStepTransitDetails`.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * @return Whether the localizedValues field is set. + */ + boolean hasLocalizedValues(); + /** + *
+   * Text representations of properties of the `RouteLegStepTransitDetails`.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * @return The localizedValues. + */ + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues getLocalizedValues(); + /** + *
+   * Text representations of properties of the `RouteLegStepTransitDetails`.
+   * 
+ * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + */ + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder getLocalizedValuesOrBuilder(); + + /** + *
+   * Specifies the direction in which to travel on this line as marked on
+   * the vehicle or at the departure stop. The direction is often the terminus
+   * station.
+   * 
+ * + * string headsign = 3; + * @return The headsign. + */ + java.lang.String getHeadsign(); + /** + *
+   * Specifies the direction in which to travel on this line as marked on
+   * the vehicle or at the departure stop. The direction is often the terminus
+   * station.
+   * 
+ * + * string headsign = 3; + * @return The bytes for headsign. + */ + com.google.protobuf.ByteString + getHeadsignBytes(); + + /** + *
+   * Specifies the expected time as a duration between departures from the same
+   * stop at this time. For example, with a headway seconds value of 600, you
+   * would expect a ten minute wait if you should miss your bus.
+   * 
+ * + * .google.protobuf.Duration headway = 4; + * @return Whether the headway field is set. + */ + boolean hasHeadway(); + /** + *
+   * Specifies the expected time as a duration between departures from the same
+   * stop at this time. For example, with a headway seconds value of 600, you
+   * would expect a ten minute wait if you should miss your bus.
+   * 
+ * + * .google.protobuf.Duration headway = 4; + * @return The headway. + */ + com.google.protobuf.Duration getHeadway(); + /** + *
+   * Specifies the expected time as a duration between departures from the same
+   * stop at this time. For example, with a headway seconds value of 600, you
+   * would expect a ten minute wait if you should miss your bus.
+   * 
+ * + * .google.protobuf.Duration headway = 4; + */ + com.google.protobuf.DurationOrBuilder getHeadwayOrBuilder(); + + /** + *
+   * Information about the transit line used in this step.
+   * 
+ * + * .google.maps.routing.v2.TransitLine transit_line = 5; + * @return Whether the transitLine field is set. + */ + boolean hasTransitLine(); + /** + *
+   * Information about the transit line used in this step.
+   * 
+ * + * .google.maps.routing.v2.TransitLine transit_line = 5; + * @return The transitLine. + */ + com.google.maps.routing.v2.TransitLine getTransitLine(); + /** + *
+   * Information about the transit line used in this step.
+   * 
+ * + * .google.maps.routing.v2.TransitLine transit_line = 5; + */ + com.google.maps.routing.v2.TransitLineOrBuilder getTransitLineOrBuilder(); + + /** + *
+   * The number of stops from the departure to the arrival stop. This count
+   * includes the arrival stop, but excludes the departure stop. For example, if
+   * your route leaves from Stop A, passes through stops B and C, and arrives at
+   * stop D, stop_count will return 3.
+   * 
+ * + * int32 stop_count = 6; + * @return The stopCount. + */ + int getStopCount(); + + /** + *
+   * The text that appears in schedules and sign boards to identify a transit
+   * trip to passengers. The text should uniquely identify a trip within a
+   * service day. For example, "538" is the `trip_short_text` of the Amtrak
+   * train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.
+   * 
+ * + * string trip_short_text = 7; + * @return The tripShortText. + */ + java.lang.String getTripShortText(); + /** + *
+   * The text that appears in schedules and sign boards to identify a transit
+   * trip to passengers. The text should uniquely identify a trip within a
+   * service day. For example, "538" is the `trip_short_text` of the Amtrak
+   * train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA.
+   * 
+ * + * string trip_short_text = 7; + * @return The bytes for tripShortText. + */ + com.google.protobuf.ByteString + getTripShortTextBytes(); +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisory.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisory.java similarity index 69% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisory.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisory.java index a1abb8353d02..2714a686f018 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisory.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisory.java @@ -1,75 +1,53 @@ -/* - * 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/maps/routing/v2/route.proto package com.google.maps.routing.v2; /** - * - * *
- * Encapsulates the additional information that the user should be informed
- * about, such as possible traffic zone restriction on a leg step.
+ * Contains the additional information that the user should be informed
+ * about, such as possible traffic zone restrictions on a leg step.
  * 
* * Protobuf type {@code google.maps.routing.v2.RouteLegStepTravelAdvisory} */ -public final class RouteLegStepTravelAdvisory extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RouteLegStepTravelAdvisory extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLegStepTravelAdvisory) RouteLegStepTravelAdvisoryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RouteLegStepTravelAdvisory.newBuilder() to construct. private RouteLegStepTravelAdvisory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RouteLegStepTravelAdvisory() { speedReadingIntervals_ = 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 RouteLegStepTravelAdvisory(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLegStepTravelAdvisory.class, - com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder.class); + com.google.maps.routing.v2.RouteLegStepTravelAdvisory.class, com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder.class); } public static final int SPEED_READING_INTERVALS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List speedReadingIntervals_; /** - * - * *
    * NOTE: This field is not currently populated.
    * 
@@ -77,13 +55,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ @java.lang.Override - public java.util.List - getSpeedReadingIntervalsList() { + public java.util.List getSpeedReadingIntervalsList() { return speedReadingIntervals_; } /** - * - * *
    * NOTE: This field is not currently populated.
    * 
@@ -91,13 +66,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSpeedReadingIntervalsOrBuilderList() { return speedReadingIntervals_; } /** - * - * *
    * NOTE: This field is not currently populated.
    * 
@@ -109,8 +82,6 @@ public int getSpeedReadingIntervalsCount() { return speedReadingIntervals_.size(); } /** - * - * *
    * NOTE: This field is not currently populated.
    * 
@@ -122,8 +93,6 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals( return speedReadingIntervals_.get(index); } /** - * - * *
    * NOTE: This field is not currently populated.
    * 
@@ -137,7 +106,6 @@ public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingI } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,7 +117,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 < speedReadingIntervals_.size(); i++) { output.writeMessage(1, speedReadingIntervals_.get(i)); } @@ -163,9 +132,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < speedReadingIntervals_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, speedReadingIntervals_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, speedReadingIntervals_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -175,15 +143,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.maps.routing.v2.RouteLegStepTravelAdvisory)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteLegStepTravelAdvisory other = - (com.google.maps.routing.v2.RouteLegStepTravelAdvisory) obj; + com.google.maps.routing.v2.RouteLegStepTravelAdvisory other = (com.google.maps.routing.v2.RouteLegStepTravelAdvisory) obj; - if (!getSpeedReadingIntervalsList().equals(other.getSpeedReadingIntervalsList())) return false; + if (!getSpeedReadingIntervalsList() + .equals(other.getSpeedReadingIntervalsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -205,137 +173,132 @@ public int hashCode() { } public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory prototype) { + public static Builder newBuilder(com.google.maps.routing.v2.RouteLegStepTravelAdvisory 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 the additional information that the user should be informed
-   * about, such as possible traffic zone restriction on a leg step.
+   * Contains the additional information that the user should be informed
+   * about, such as possible traffic zone restrictions on a leg step.
    * 
* * Protobuf type {@code google.maps.routing.v2.RouteLegStepTravelAdvisory} */ - 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.maps.routing.v2.RouteLegStepTravelAdvisory) com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLegStepTravelAdvisory.class, - com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder.class); + com.google.maps.routing.v2.RouteLegStepTravelAdvisory.class, com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder.class); } // Construct using com.google.maps.routing.v2.RouteLegStepTravelAdvisory.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(); @@ -351,9 +314,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor; } @java.lang.Override @@ -372,18 +335,14 @@ public com.google.maps.routing.v2.RouteLegStepTravelAdvisory build() { @java.lang.Override public com.google.maps.routing.v2.RouteLegStepTravelAdvisory buildPartial() { - com.google.maps.routing.v2.RouteLegStepTravelAdvisory result = - new com.google.maps.routing.v2.RouteLegStepTravelAdvisory(this); + com.google.maps.routing.v2.RouteLegStepTravelAdvisory result = new com.google.maps.routing.v2.RouteLegStepTravelAdvisory(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.maps.routing.v2.RouteLegStepTravelAdvisory result) { + private void buildPartialRepeatedFields(com.google.maps.routing.v2.RouteLegStepTravelAdvisory result) { if (speedReadingIntervalsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { speedReadingIntervals_ = java.util.Collections.unmodifiableList(speedReadingIntervals_); @@ -403,39 +362,38 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory) { - return mergeFrom((com.google.maps.routing.v2.RouteLegStepTravelAdvisory) other); + return mergeFrom((com.google.maps.routing.v2.RouteLegStepTravelAdvisory)other); } else { super.mergeFrom(other); return this; @@ -443,8 +401,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.maps.routing.v2.RouteLegStepTravelAdvisory other) { - if (other == com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance()) - return this; + if (other == com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance()) return this; if (speedReadingIntervalsBuilder_ == null) { if (!other.speedReadingIntervals_.isEmpty()) { if (speedReadingIntervals_.isEmpty()) { @@ -463,10 +420,9 @@ public Builder mergeFrom(com.google.maps.routing.v2.RouteLegStepTravelAdvisory o speedReadingIntervalsBuilder_ = null; speedReadingIntervals_ = other.speedReadingIntervals_; bitField0_ = (bitField0_ & ~0x00000001); - speedReadingIntervalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSpeedReadingIntervalsFieldBuilder() - : null; + speedReadingIntervalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSpeedReadingIntervalsFieldBuilder() : null; } else { speedReadingIntervalsBuilder_.addAllMessages(other.speedReadingIntervals_); } @@ -498,27 +454,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.maps.routing.v2.SpeedReadingInterval m = - input.readMessage( - com.google.maps.routing.v2.SpeedReadingInterval.parser(), - extensionRegistry); - if (speedReadingIntervalsBuilder_ == null) { - ensureSpeedReadingIntervalsIsMutable(); - speedReadingIntervals_.add(m); - } else { - speedReadingIntervalsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.maps.routing.v2.SpeedReadingInterval m = + input.readMessage( + com.google.maps.routing.v2.SpeedReadingInterval.parser(), + extensionRegistry); + if (speedReadingIntervalsBuilder_ == null) { + ensureSpeedReadingIntervalsIsMutable(); + speedReadingIntervals_.add(m); + } else { + speedReadingIntervalsBuilder_.addMessage(m); + } + 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) { @@ -528,39 +482,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List speedReadingIntervals_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSpeedReadingIntervalsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - speedReadingIntervals_ = - new java.util.ArrayList( - speedReadingIntervals_); + speedReadingIntervals_ = new java.util.ArrayList(speedReadingIntervals_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.SpeedReadingInterval, - com.google.maps.routing.v2.SpeedReadingInterval.Builder, - com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> - speedReadingIntervalsBuilder_; + com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> speedReadingIntervalsBuilder_; /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ - public java.util.List - getSpeedReadingIntervalsList() { + public java.util.List getSpeedReadingIntervalsList() { if (speedReadingIntervalsBuilder_ == null) { return java.util.Collections.unmodifiableList(speedReadingIntervals_); } else { @@ -568,14 +511,11 @@ private void ensureSpeedReadingIntervalsIsMutable() { } } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ public int getSpeedReadingIntervalsCount() { if (speedReadingIntervalsBuilder_ == null) { @@ -585,14 +525,11 @@ public int getSpeedReadingIntervalsCount() { } } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(int index) { if (speedReadingIntervalsBuilder_ == null) { @@ -602,14 +539,11 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals( } } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ public Builder setSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval value) { @@ -626,14 +560,11 @@ public Builder setSpeedReadingIntervals( return this; } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ public Builder setSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -647,14 +578,11 @@ public Builder setSpeedReadingIntervals( return this; } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingInterval value) { if (speedReadingIntervalsBuilder_ == null) { @@ -670,14 +598,11 @@ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingI return this; } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ public Builder addSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval value) { @@ -694,14 +619,11 @@ public Builder addSpeedReadingIntervals( return this; } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ public Builder addSpeedReadingIntervals( com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -715,14 +637,11 @@ public Builder addSpeedReadingIntervals( return this; } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ public Builder addSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -736,20 +655,18 @@ public Builder addSpeedReadingIntervals( return this; } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ public Builder addAllSpeedReadingIntervals( java.lang.Iterable values) { if (speedReadingIntervalsBuilder_ == null) { ensureSpeedReadingIntervalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speedReadingIntervals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, speedReadingIntervals_); onChanged(); } else { speedReadingIntervalsBuilder_.addAllMessages(values); @@ -757,14 +674,11 @@ public Builder addAllSpeedReadingIntervals( return this; } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ public Builder clearSpeedReadingIntervals() { if (speedReadingIntervalsBuilder_ == null) { @@ -777,14 +691,11 @@ public Builder clearSpeedReadingIntervals() { return this; } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ public Builder removeSpeedReadingIntervals(int index) { if (speedReadingIntervalsBuilder_ == null) { @@ -797,49 +708,39 @@ public Builder removeSpeedReadingIntervals(int index) { return this; } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIntervalsBuilder( int index) { return getSpeedReadingIntervalsFieldBuilder().getBuilder(index); } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ - public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder - getSpeedReadingIntervalsOrBuilder(int index) { + public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingIntervalsOrBuilder( + int index) { if (speedReadingIntervalsBuilder_ == null) { - return speedReadingIntervals_.get(index); - } else { + return speedReadingIntervals_.get(index); } else { return speedReadingIntervalsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ - public java.util.List - getSpeedReadingIntervalsOrBuilderList() { + public java.util.List + getSpeedReadingIntervalsOrBuilderList() { if (speedReadingIntervalsBuilder_ != null) { return speedReadingIntervalsBuilder_.getMessageOrBuilderList(); } else { @@ -847,61 +748,45 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIn } } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ - public com.google.maps.routing.v2.SpeedReadingInterval.Builder - addSpeedReadingIntervalsBuilder() { - return getSpeedReadingIntervalsFieldBuilder() - .addBuilder(com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); + public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIntervalsBuilder() { + return getSpeedReadingIntervalsFieldBuilder().addBuilder( + com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIntervalsBuilder( int index) { - return getSpeedReadingIntervalsFieldBuilder() - .addBuilder(index, com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); + return getSpeedReadingIntervalsFieldBuilder().addBuilder( + index, com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); } /** - * - * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ - public java.util.List - getSpeedReadingIntervalsBuilderList() { + public java.util.List + getSpeedReadingIntervalsBuilderList() { return getSpeedReadingIntervalsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.SpeedReadingInterval, - com.google.maps.routing.v2.SpeedReadingInterval.Builder, - com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> + com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> getSpeedReadingIntervalsFieldBuilder() { if (speedReadingIntervalsBuilder_ == null) { - speedReadingIntervalsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.SpeedReadingInterval, - com.google.maps.routing.v2.SpeedReadingInterval.Builder, - com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder>( + speedReadingIntervalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder>( speedReadingIntervals_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -910,9 +795,9 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIn } return speedReadingIntervalsBuilder_; } - @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); } @@ -922,12 +807,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteLegStepTravelAdvisory) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLegStepTravelAdvisory) private static final com.google.maps.routing.v2.RouteLegStepTravelAdvisory DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLegStepTravelAdvisory(); } @@ -936,27 +821,27 @@ public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteLegStepTravelAdvisory 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 RouteLegStepTravelAdvisory 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; @@ -971,4 +856,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.maps.routing.v2.RouteLegStepTravelAdvisory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisoryOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisoryOrBuilder.java similarity index 68% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisoryOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisoryOrBuilder.java index 420fc03bf85b..433d367cddc8 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisoryOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisoryOrBuilder.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/maps/routing/v2/route.proto package com.google.maps.routing.v2; -public interface RouteLegStepTravelAdvisoryOrBuilder - extends +public interface RouteLegStepTravelAdvisoryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLegStepTravelAdvisory) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * NOTE: This field is not currently populated.
    * 
* * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ - java.util.List getSpeedReadingIntervalsList(); + java.util.List + getSpeedReadingIntervalsList(); /** - * - * *
    * NOTE: This field is not currently populated.
    * 
@@ -44,8 +25,6 @@ public interface RouteLegStepTravelAdvisoryOrBuilder */ com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(int index); /** - * - * *
    * NOTE: This field is not currently populated.
    * 
@@ -54,19 +33,15 @@ public interface RouteLegStepTravelAdvisoryOrBuilder */ int getSpeedReadingIntervalsCount(); /** - * - * *
    * NOTE: This field is not currently populated.
    * 
* * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ - java.util.List + java.util.List getSpeedReadingIntervalsOrBuilderList(); /** - * - * *
    * NOTE: This field is not currently populated.
    * 
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisory.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisory.java similarity index 67% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisory.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisory.java index 14a17b41d563..9ec3e7fb0bdf 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisory.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisory.java @@ -1,83 +1,62 @@ -/* - * 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/maps/routing/v2/route.proto package com.google.maps.routing.v2; /** - * - * *
- * Encapsulates the additional information that the user should be informed
- * about, such as possible traffic zone restriction etc. on a route leg.
+ * Contains the additional information that the user should be informed
+ * about on a leg step, such as possible traffic zone restrictions.
  * 
* * Protobuf type {@code google.maps.routing.v2.RouteLegTravelAdvisory} */ -public final class RouteLegTravelAdvisory extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RouteLegTravelAdvisory extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLegTravelAdvisory) RouteLegTravelAdvisoryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RouteLegTravelAdvisory.newBuilder() to construct. private RouteLegTravelAdvisory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RouteLegTravelAdvisory() { speedReadingIntervals_ = 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 RouteLegTravelAdvisory(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLegTravelAdvisory.class, - com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder.class); + com.google.maps.routing.v2.RouteLegTravelAdvisory.class, com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder.class); } public static final int TOLL_INFO_FIELD_NUMBER = 1; private com.google.maps.routing.v2.TollInfo tollInfo_; /** - * - * *
-   * Encapsulates information about tolls on the specific RouteLeg.
-   * This field is only populated if we expect there are tolls on the RouteLeg.
-   * If this field is set but the estimated_price subfield is not populated,
-   * we expect that road contains tolls but we do not know an estimated price.
-   * If this field does not exist, then there is no toll on the RouteLeg.
+   * Contains information about tolls on the specific `RouteLeg`.
+   * This field is only populated if we expect there are tolls on the
+   * `RouteLeg`. If this field is set but the estimated_price subfield is not
+   * populated, we expect that road contains tolls but we do not know an
+   * estimated price. If this field does not exist, then there is no toll on the
+   * `RouteLeg`.
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; - * * @return Whether the tollInfo field is set. */ @java.lang.Override @@ -85,18 +64,16 @@ public boolean hasTollInfo() { return tollInfo_ != null; } /** - * - * *
-   * Encapsulates information about tolls on the specific RouteLeg.
-   * This field is only populated if we expect there are tolls on the RouteLeg.
-   * If this field is set but the estimated_price subfield is not populated,
-   * we expect that road contains tolls but we do not know an estimated price.
-   * If this field does not exist, then there is no toll on the RouteLeg.
+   * Contains information about tolls on the specific `RouteLeg`.
+   * This field is only populated if we expect there are tolls on the
+   * `RouteLeg`. If this field is set but the estimated_price subfield is not
+   * populated, we expect that road contains tolls but we do not know an
+   * estimated price. If this field does not exist, then there is no toll on the
+   * `RouteLeg`.
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; - * * @return The tollInfo. */ @java.lang.Override @@ -104,14 +81,13 @@ public com.google.maps.routing.v2.TollInfo getTollInfo() { return tollInfo_ == null ? com.google.maps.routing.v2.TollInfo.getDefaultInstance() : tollInfo_; } /** - * - * *
-   * Encapsulates information about tolls on the specific RouteLeg.
-   * This field is only populated if we expect there are tolls on the RouteLeg.
-   * If this field is set but the estimated_price subfield is not populated,
-   * we expect that road contains tolls but we do not know an estimated price.
-   * If this field does not exist, then there is no toll on the RouteLeg.
+   * Contains information about tolls on the specific `RouteLeg`.
+   * This field is only populated if we expect there are tolls on the
+   * `RouteLeg`. If this field is set but the estimated_price subfield is not
+   * populated, we expect that road contains tolls but we do not know an
+   * estimated price. If this field does not exist, then there is no toll on the
+   * `RouteLeg`.
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; @@ -122,16 +98,13 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() { } public static final int SPEED_READING_INTERVALS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List speedReadingIntervals_; /** - * - * *
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-   * The intervals cover the entire polyline of the RouteLg without overlap.
+   * The intervals cover the entire polyline of the `RouteLeg` without overlap.
    * The start point of a specified interval is the same as the end point of the
    * preceding interval.
    *
@@ -144,17 +117,14 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() {
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2;
    */
   @java.lang.Override
-  public java.util.List
-      getSpeedReadingIntervalsList() {
+  public java.util.List getSpeedReadingIntervalsList() {
     return speedReadingIntervals_;
   }
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-   * The intervals cover the entire polyline of the RouteLg without overlap.
+   * The intervals cover the entire polyline of the `RouteLeg` without overlap.
    * The start point of a specified interval is the same as the end point of the
    * preceding interval.
    *
@@ -167,17 +137,15 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() {
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getSpeedReadingIntervalsOrBuilderList() {
     return speedReadingIntervals_;
   }
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-   * The intervals cover the entire polyline of the RouteLg without overlap.
+   * The intervals cover the entire polyline of the `RouteLeg` without overlap.
    * The start point of a specified interval is the same as the end point of the
    * preceding interval.
    *
@@ -194,12 +162,10 @@ public int getSpeedReadingIntervalsCount() {
     return speedReadingIntervals_.size();
   }
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-   * The intervals cover the entire polyline of the RouteLg without overlap.
+   * The intervals cover the entire polyline of the `RouteLeg` without overlap.
    * The start point of a specified interval is the same as the end point of the
    * preceding interval.
    *
@@ -216,12 +182,10 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(
     return speedReadingIntervals_.get(index);
   }
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-   * The intervals cover the entire polyline of the RouteLg without overlap.
+   * The intervals cover the entire polyline of the `RouteLeg` without overlap.
    * The start point of a specified interval is the same as the end point of the
    * preceding interval.
    *
@@ -240,7 +204,6 @@ public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingI
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -252,7 +215,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 (tollInfo_ != null) {
       output.writeMessage(1, getTollInfo());
     }
@@ -269,12 +233,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (tollInfo_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTollInfo());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getTollInfo());
     }
     for (int i = 0; i < speedReadingIntervals_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, speedReadingIntervals_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, speedReadingIntervals_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -284,19 +248,20 @@ 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.maps.routing.v2.RouteLegTravelAdvisory)) {
       return super.equals(obj);
     }
-    com.google.maps.routing.v2.RouteLegTravelAdvisory other =
-        (com.google.maps.routing.v2.RouteLegTravelAdvisory) obj;
+    com.google.maps.routing.v2.RouteLegTravelAdvisory other = (com.google.maps.routing.v2.RouteLegTravelAdvisory) obj;
 
     if (hasTollInfo() != other.hasTollInfo()) return false;
     if (hasTollInfo()) {
-      if (!getTollInfo().equals(other.getTollInfo())) return false;
+      if (!getTollInfo()
+          .equals(other.getTollInfo())) return false;
     }
-    if (!getSpeedReadingIntervalsList().equals(other.getSpeedReadingIntervalsList())) return false;
+    if (!getSpeedReadingIntervalsList()
+        .equals(other.getSpeedReadingIntervalsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -322,136 +287,132 @@ public int hashCode() {
   }
 
   public static com.google.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.maps.routing.v2.RouteLegTravelAdvisory parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.maps.routing.v2.RouteLegTravelAdvisory parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory 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 the additional information that the user should be informed
-   * about, such as possible traffic zone restriction etc. on a route leg.
+   * Contains the additional information that the user should be informed
+   * about on a leg step, such as possible traffic zone restrictions.
    * 
* * Protobuf type {@code google.maps.routing.v2.RouteLegTravelAdvisory} */ - 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.maps.routing.v2.RouteLegTravelAdvisory) com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLegTravelAdvisory.class, - com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder.class); + com.google.maps.routing.v2.RouteLegTravelAdvisory.class, com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder.class); } // Construct using com.google.maps.routing.v2.RouteLegTravelAdvisory.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(); @@ -472,9 +433,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor; } @java.lang.Override @@ -493,18 +454,14 @@ public com.google.maps.routing.v2.RouteLegTravelAdvisory build() { @java.lang.Override public com.google.maps.routing.v2.RouteLegTravelAdvisory buildPartial() { - com.google.maps.routing.v2.RouteLegTravelAdvisory result = - new com.google.maps.routing.v2.RouteLegTravelAdvisory(this); + com.google.maps.routing.v2.RouteLegTravelAdvisory result = new com.google.maps.routing.v2.RouteLegTravelAdvisory(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.maps.routing.v2.RouteLegTravelAdvisory result) { + private void buildPartialRepeatedFields(com.google.maps.routing.v2.RouteLegTravelAdvisory result) { if (speedReadingIntervalsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { speedReadingIntervals_ = java.util.Collections.unmodifiableList(speedReadingIntervals_); @@ -519,7 +476,9 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.maps.routing.v2.RouteLegTravelAdvisory result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.tollInfo_ = tollInfoBuilder_ == null ? tollInfo_ : tollInfoBuilder_.build(); + result.tollInfo_ = tollInfoBuilder_ == null + ? tollInfo_ + : tollInfoBuilder_.build(); } } @@ -527,39 +486,38 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory) { - return mergeFrom((com.google.maps.routing.v2.RouteLegTravelAdvisory) other); + return mergeFrom((com.google.maps.routing.v2.RouteLegTravelAdvisory)other); } else { super.mergeFrom(other); return this; @@ -567,8 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.maps.routing.v2.RouteLegTravelAdvisory other) { - if (other == com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance()) - return this; + if (other == com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance()) return this; if (other.hasTollInfo()) { mergeTollInfo(other.getTollInfo()); } @@ -590,10 +547,9 @@ public Builder mergeFrom(com.google.maps.routing.v2.RouteLegTravelAdvisory other speedReadingIntervalsBuilder_ = null; speedReadingIntervals_ = other.speedReadingIntervals_; bitField0_ = (bitField0_ & ~0x00000002); - speedReadingIntervalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSpeedReadingIntervalsFieldBuilder() - : null; + speedReadingIntervalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSpeedReadingIntervalsFieldBuilder() : null; } else { speedReadingIntervalsBuilder_.addAllMessages(other.speedReadingIntervals_); } @@ -625,33 +581,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getTollInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.maps.routing.v2.SpeedReadingInterval m = - input.readMessage( - com.google.maps.routing.v2.SpeedReadingInterval.parser(), - extensionRegistry); - if (speedReadingIntervalsBuilder_ == null) { - ensureSpeedReadingIntervalsIsMutable(); - speedReadingIntervals_.add(m); - } else { - speedReadingIntervalsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getTollInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.maps.routing.v2.SpeedReadingInterval m = + input.readMessage( + com.google.maps.routing.v2.SpeedReadingInterval.parser(), + extensionRegistry); + if (speedReadingIntervalsBuilder_ == null) { + ensureSpeedReadingIntervalsIsMutable(); + speedReadingIntervals_.add(m); + } else { + speedReadingIntervalsBuilder_.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) { @@ -661,66 +616,55 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.maps.routing.v2.TollInfo tollInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TollInfo, - com.google.maps.routing.v2.TollInfo.Builder, - com.google.maps.routing.v2.TollInfoOrBuilder> - tollInfoBuilder_; + com.google.maps.routing.v2.TollInfo, com.google.maps.routing.v2.TollInfo.Builder, com.google.maps.routing.v2.TollInfoOrBuilder> tollInfoBuilder_; /** - * - * *
-     * Encapsulates information about tolls on the specific RouteLeg.
-     * This field is only populated if we expect there are tolls on the RouteLeg.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field does not exist, then there is no toll on the RouteLeg.
+     * Contains information about tolls on the specific `RouteLeg`.
+     * This field is only populated if we expect there are tolls on the
+     * `RouteLeg`. If this field is set but the estimated_price subfield is not
+     * populated, we expect that road contains tolls but we do not know an
+     * estimated price. If this field does not exist, then there is no toll on the
+     * `RouteLeg`.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; - * * @return Whether the tollInfo field is set. */ public boolean hasTollInfo() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
-     * Encapsulates information about tolls on the specific RouteLeg.
-     * This field is only populated if we expect there are tolls on the RouteLeg.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field does not exist, then there is no toll on the RouteLeg.
+     * Contains information about tolls on the specific `RouteLeg`.
+     * This field is only populated if we expect there are tolls on the
+     * `RouteLeg`. If this field is set but the estimated_price subfield is not
+     * populated, we expect that road contains tolls but we do not know an
+     * estimated price. If this field does not exist, then there is no toll on the
+     * `RouteLeg`.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; - * * @return The tollInfo. */ public com.google.maps.routing.v2.TollInfo getTollInfo() { if (tollInfoBuilder_ == null) { - return tollInfo_ == null - ? com.google.maps.routing.v2.TollInfo.getDefaultInstance() - : tollInfo_; + return tollInfo_ == null ? com.google.maps.routing.v2.TollInfo.getDefaultInstance() : tollInfo_; } else { return tollInfoBuilder_.getMessage(); } } /** - * - * *
-     * Encapsulates information about tolls on the specific RouteLeg.
-     * This field is only populated if we expect there are tolls on the RouteLeg.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field does not exist, then there is no toll on the RouteLeg.
+     * Contains information about tolls on the specific `RouteLeg`.
+     * This field is only populated if we expect there are tolls on the
+     * `RouteLeg`. If this field is set but the estimated_price subfield is not
+     * populated, we expect that road contains tolls but we do not know an
+     * estimated price. If this field does not exist, then there is no toll on the
+     * `RouteLeg`.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; @@ -739,19 +683,19 @@ public Builder setTollInfo(com.google.maps.routing.v2.TollInfo value) { return this; } /** - * - * *
-     * Encapsulates information about tolls on the specific RouteLeg.
-     * This field is only populated if we expect there are tolls on the RouteLeg.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field does not exist, then there is no toll on the RouteLeg.
+     * Contains information about tolls on the specific `RouteLeg`.
+     * This field is only populated if we expect there are tolls on the
+     * `RouteLeg`. If this field is set but the estimated_price subfield is not
+     * populated, we expect that road contains tolls but we do not know an
+     * estimated price. If this field does not exist, then there is no toll on the
+     * `RouteLeg`.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; */ - public Builder setTollInfo(com.google.maps.routing.v2.TollInfo.Builder builderForValue) { + public Builder setTollInfo( + com.google.maps.routing.v2.TollInfo.Builder builderForValue) { if (tollInfoBuilder_ == null) { tollInfo_ = builderForValue.build(); } else { @@ -762,23 +706,22 @@ public Builder setTollInfo(com.google.maps.routing.v2.TollInfo.Builder builderFo return this; } /** - * - * *
-     * Encapsulates information about tolls on the specific RouteLeg.
-     * This field is only populated if we expect there are tolls on the RouteLeg.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field does not exist, then there is no toll on the RouteLeg.
+     * Contains information about tolls on the specific `RouteLeg`.
+     * This field is only populated if we expect there are tolls on the
+     * `RouteLeg`. If this field is set but the estimated_price subfield is not
+     * populated, we expect that road contains tolls but we do not know an
+     * estimated price. If this field does not exist, then there is no toll on the
+     * `RouteLeg`.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; */ public Builder mergeTollInfo(com.google.maps.routing.v2.TollInfo value) { if (tollInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && tollInfo_ != null - && tollInfo_ != com.google.maps.routing.v2.TollInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + tollInfo_ != null && + tollInfo_ != com.google.maps.routing.v2.TollInfo.getDefaultInstance()) { getTollInfoBuilder().mergeFrom(value); } else { tollInfo_ = value; @@ -791,14 +734,13 @@ public Builder mergeTollInfo(com.google.maps.routing.v2.TollInfo value) { return this; } /** - * - * *
-     * Encapsulates information about tolls on the specific RouteLeg.
-     * This field is only populated if we expect there are tolls on the RouteLeg.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field does not exist, then there is no toll on the RouteLeg.
+     * Contains information about tolls on the specific `RouteLeg`.
+     * This field is only populated if we expect there are tolls on the
+     * `RouteLeg`. If this field is set but the estimated_price subfield is not
+     * populated, we expect that road contains tolls but we do not know an
+     * estimated price. If this field does not exist, then there is no toll on the
+     * `RouteLeg`.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; @@ -814,14 +756,13 @@ public Builder clearTollInfo() { return this; } /** - * - * *
-     * Encapsulates information about tolls on the specific RouteLeg.
-     * This field is only populated if we expect there are tolls on the RouteLeg.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field does not exist, then there is no toll on the RouteLeg.
+     * Contains information about tolls on the specific `RouteLeg`.
+     * This field is only populated if we expect there are tolls on the
+     * `RouteLeg`. If this field is set but the estimated_price subfield is not
+     * populated, we expect that road contains tolls but we do not know an
+     * estimated price. If this field does not exist, then there is no toll on the
+     * `RouteLeg`.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; @@ -832,14 +773,13 @@ public com.google.maps.routing.v2.TollInfo.Builder getTollInfoBuilder() { return getTollInfoFieldBuilder().getBuilder(); } /** - * - * *
-     * Encapsulates information about tolls on the specific RouteLeg.
-     * This field is only populated if we expect there are tolls on the RouteLeg.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field does not exist, then there is no toll on the RouteLeg.
+     * Contains information about tolls on the specific `RouteLeg`.
+     * This field is only populated if we expect there are tolls on the
+     * `RouteLeg`. If this field is set but the estimated_price subfield is not
+     * populated, we expect that road contains tolls but we do not know an
+     * estimated price. If this field does not exist, then there is no toll on the
+     * `RouteLeg`.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; @@ -848,66 +788,53 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() { if (tollInfoBuilder_ != null) { return tollInfoBuilder_.getMessageOrBuilder(); } else { - return tollInfo_ == null - ? com.google.maps.routing.v2.TollInfo.getDefaultInstance() - : tollInfo_; + return tollInfo_ == null ? + com.google.maps.routing.v2.TollInfo.getDefaultInstance() : tollInfo_; } } /** - * - * *
-     * Encapsulates information about tolls on the specific RouteLeg.
-     * This field is only populated if we expect there are tolls on the RouteLeg.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field does not exist, then there is no toll on the RouteLeg.
+     * Contains information about tolls on the specific `RouteLeg`.
+     * This field is only populated if we expect there are tolls on the
+     * `RouteLeg`. If this field is set but the estimated_price subfield is not
+     * populated, we expect that road contains tolls but we do not know an
+     * estimated price. If this field does not exist, then there is no toll on the
+     * `RouteLeg`.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TollInfo, - com.google.maps.routing.v2.TollInfo.Builder, - com.google.maps.routing.v2.TollInfoOrBuilder> + com.google.maps.routing.v2.TollInfo, com.google.maps.routing.v2.TollInfo.Builder, com.google.maps.routing.v2.TollInfoOrBuilder> getTollInfoFieldBuilder() { if (tollInfoBuilder_ == null) { - tollInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TollInfo, - com.google.maps.routing.v2.TollInfo.Builder, - com.google.maps.routing.v2.TollInfoOrBuilder>( - getTollInfo(), getParentForChildren(), isClean()); + tollInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TollInfo, com.google.maps.routing.v2.TollInfo.Builder, com.google.maps.routing.v2.TollInfoOrBuilder>( + getTollInfo(), + getParentForChildren(), + isClean()); tollInfo_ = null; } return tollInfoBuilder_; } private java.util.List speedReadingIntervals_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSpeedReadingIntervalsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - speedReadingIntervals_ = - new java.util.ArrayList( - speedReadingIntervals_); + speedReadingIntervals_ = new java.util.ArrayList(speedReadingIntervals_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.SpeedReadingInterval, - com.google.maps.routing.v2.SpeedReadingInterval.Builder, - com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> - speedReadingIntervalsBuilder_; + com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> speedReadingIntervalsBuilder_; /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -917,11 +844,9 @@ private void ensureSpeedReadingIntervalsIsMutable() {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ - public java.util.List - getSpeedReadingIntervalsList() { + public java.util.List getSpeedReadingIntervalsList() { if (speedReadingIntervalsBuilder_ == null) { return java.util.Collections.unmodifiableList(speedReadingIntervals_); } else { @@ -929,12 +854,10 @@ private void ensureSpeedReadingIntervalsIsMutable() { } } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -944,8 +867,7 @@ private void ensureSpeedReadingIntervalsIsMutable() {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ public int getSpeedReadingIntervalsCount() { if (speedReadingIntervalsBuilder_ == null) { @@ -955,12 +877,10 @@ public int getSpeedReadingIntervalsCount() { } } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -970,8 +890,7 @@ public int getSpeedReadingIntervalsCount() {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(int index) { if (speedReadingIntervalsBuilder_ == null) { @@ -981,12 +900,10 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals( } } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -996,8 +913,7 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ public Builder setSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval value) { @@ -1014,12 +930,10 @@ public Builder setSpeedReadingIntervals( return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -1029,8 +943,7 @@ public Builder setSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ public Builder setSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -1044,12 +957,10 @@ public Builder setSpeedReadingIntervals( return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -1059,8 +970,7 @@ public Builder setSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingInterval value) { if (speedReadingIntervalsBuilder_ == null) { @@ -1076,12 +986,10 @@ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingI return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -1091,8 +999,7 @@ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingI
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ public Builder addSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval value) { @@ -1109,12 +1016,10 @@ public Builder addSpeedReadingIntervals( return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -1124,8 +1029,7 @@ public Builder addSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ public Builder addSpeedReadingIntervals( com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -1139,12 +1043,10 @@ public Builder addSpeedReadingIntervals( return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -1154,8 +1056,7 @@ public Builder addSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ public Builder addSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -1169,12 +1070,10 @@ public Builder addSpeedReadingIntervals( return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -1184,14 +1083,14 @@ public Builder addSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ public Builder addAllSpeedReadingIntervals( java.lang.Iterable values) { if (speedReadingIntervalsBuilder_ == null) { ensureSpeedReadingIntervalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speedReadingIntervals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, speedReadingIntervals_); onChanged(); } else { speedReadingIntervalsBuilder_.addAllMessages(values); @@ -1199,12 +1098,10 @@ public Builder addAllSpeedReadingIntervals( return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -1214,8 +1111,7 @@ public Builder addAllSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ public Builder clearSpeedReadingIntervals() { if (speedReadingIntervalsBuilder_ == null) { @@ -1228,12 +1124,10 @@ public Builder clearSpeedReadingIntervals() { return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -1243,8 +1137,7 @@ public Builder clearSpeedReadingIntervals() {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ public Builder removeSpeedReadingIntervals(int index) { if (speedReadingIntervalsBuilder_ == null) { @@ -1257,12 +1150,10 @@ public Builder removeSpeedReadingIntervals(int index) { return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -1272,20 +1163,17 @@ public Builder removeSpeedReadingIntervals(int index) {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIntervalsBuilder( int index) { return getSpeedReadingIntervalsFieldBuilder().getBuilder(index); } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -1295,24 +1183,20 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ - public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder - getSpeedReadingIntervalsOrBuilder(int index) { + public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingIntervalsOrBuilder( + int index) { if (speedReadingIntervalsBuilder_ == null) { - return speedReadingIntervals_.get(index); - } else { + return speedReadingIntervals_.get(index); } else { return speedReadingIntervalsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -1322,11 +1206,10 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ - public java.util.List - getSpeedReadingIntervalsOrBuilderList() { + public java.util.List + getSpeedReadingIntervalsOrBuilderList() { if (speedReadingIntervalsBuilder_ != null) { return speedReadingIntervalsBuilder_.getMessageOrBuilderList(); } else { @@ -1334,12 +1217,10 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIn } } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -1349,21 +1230,17 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ - public com.google.maps.routing.v2.SpeedReadingInterval.Builder - addSpeedReadingIntervalsBuilder() { - return getSpeedReadingIntervalsFieldBuilder() - .addBuilder(com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); + public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIntervalsBuilder() { + return getSpeedReadingIntervalsFieldBuilder().addBuilder( + com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -1373,21 +1250,18 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIntervalsBuilder( int index) { - return getSpeedReadingIntervalsFieldBuilder() - .addBuilder(index, com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); + return getSpeedReadingIntervalsFieldBuilder().addBuilder( + index, com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-     * The intervals cover the entire polyline of the RouteLg without overlap.
+     * The intervals cover the entire polyline of the `RouteLeg` without overlap.
      * The start point of a specified interval is the same as the end point of the
      * preceding interval.
      *
@@ -1397,25 +1271,18 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; */ - public java.util.List - getSpeedReadingIntervalsBuilderList() { + public java.util.List + getSpeedReadingIntervalsBuilderList() { return getSpeedReadingIntervalsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.SpeedReadingInterval, - com.google.maps.routing.v2.SpeedReadingInterval.Builder, - com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> + com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> getSpeedReadingIntervalsFieldBuilder() { if (speedReadingIntervalsBuilder_ == null) { - speedReadingIntervalsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.SpeedReadingInterval, - com.google.maps.routing.v2.SpeedReadingInterval.Builder, - com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder>( + speedReadingIntervalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder>( speedReadingIntervals_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1424,9 +1291,9 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIn } return speedReadingIntervalsBuilder_; } - @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); } @@ -1436,12 +1303,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteLegTravelAdvisory) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLegTravelAdvisory) private static final com.google.maps.routing.v2.RouteLegTravelAdvisory DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLegTravelAdvisory(); } @@ -1450,27 +1317,27 @@ public static com.google.maps.routing.v2.RouteLegTravelAdvisory getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteLegTravelAdvisory 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 RouteLegTravelAdvisory 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; @@ -1485,4 +1352,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.RouteLegTravelAdvisory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisoryOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisoryOrBuilder.java similarity index 65% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisoryOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisoryOrBuilder.java index f8b8fc87a46b..10565d601627 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisoryOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisoryOrBuilder.java @@ -1,69 +1,48 @@ -/* - * 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/maps/routing/v2/route.proto package com.google.maps.routing.v2; -public interface RouteLegTravelAdvisoryOrBuilder - extends +public interface RouteLegTravelAdvisoryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLegTravelAdvisory) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Encapsulates information about tolls on the specific RouteLeg.
-   * This field is only populated if we expect there are tolls on the RouteLeg.
-   * If this field is set but the estimated_price subfield is not populated,
-   * we expect that road contains tolls but we do not know an estimated price.
-   * If this field does not exist, then there is no toll on the RouteLeg.
+   * Contains information about tolls on the specific `RouteLeg`.
+   * This field is only populated if we expect there are tolls on the
+   * `RouteLeg`. If this field is set but the estimated_price subfield is not
+   * populated, we expect that road contains tolls but we do not know an
+   * estimated price. If this field does not exist, then there is no toll on the
+   * `RouteLeg`.
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; - * * @return Whether the tollInfo field is set. */ boolean hasTollInfo(); /** - * - * *
-   * Encapsulates information about tolls on the specific RouteLeg.
-   * This field is only populated if we expect there are tolls on the RouteLeg.
-   * If this field is set but the estimated_price subfield is not populated,
-   * we expect that road contains tolls but we do not know an estimated price.
-   * If this field does not exist, then there is no toll on the RouteLeg.
+   * Contains information about tolls on the specific `RouteLeg`.
+   * This field is only populated if we expect there are tolls on the
+   * `RouteLeg`. If this field is set but the estimated_price subfield is not
+   * populated, we expect that road contains tolls but we do not know an
+   * estimated price. If this field does not exist, then there is no toll on the
+   * `RouteLeg`.
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; - * * @return The tollInfo. */ com.google.maps.routing.v2.TollInfo getTollInfo(); /** - * - * *
-   * Encapsulates information about tolls on the specific RouteLeg.
-   * This field is only populated if we expect there are tolls on the RouteLeg.
-   * If this field is set but the estimated_price subfield is not populated,
-   * we expect that road contains tolls but we do not know an estimated price.
-   * If this field does not exist, then there is no toll on the RouteLeg.
+   * Contains information about tolls on the specific `RouteLeg`.
+   * This field is only populated if we expect there are tolls on the
+   * `RouteLeg`. If this field is set but the estimated_price subfield is not
+   * populated, we expect that road contains tolls but we do not know an
+   * estimated price. If this field does not exist, then there is no toll on the
+   * `RouteLeg`.
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; @@ -71,12 +50,10 @@ public interface RouteLegTravelAdvisoryOrBuilder com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder(); /** - * - * *
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-   * The intervals cover the entire polyline of the RouteLg without overlap.
+   * The intervals cover the entire polyline of the `RouteLeg` without overlap.
    * The start point of a specified interval is the same as the end point of the
    * preceding interval.
    *
@@ -88,14 +65,13 @@ public interface RouteLegTravelAdvisoryOrBuilder
    *
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2;
    */
-  java.util.List getSpeedReadingIntervalsList();
+  java.util.List 
+      getSpeedReadingIntervalsList();
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-   * The intervals cover the entire polyline of the RouteLg without overlap.
+   * The intervals cover the entire polyline of the `RouteLeg` without overlap.
    * The start point of a specified interval is the same as the end point of the
    * preceding interval.
    *
@@ -109,12 +85,10 @@ public interface RouteLegTravelAdvisoryOrBuilder
    */
   com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(int index);
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-   * The intervals cover the entire polyline of the RouteLg without overlap.
+   * The intervals cover the entire polyline of the `RouteLeg` without overlap.
    * The start point of a specified interval is the same as the end point of the
    * preceding interval.
    *
@@ -128,12 +102,10 @@ public interface RouteLegTravelAdvisoryOrBuilder
    */
   int getSpeedReadingIntervalsCount();
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-   * The intervals cover the entire polyline of the RouteLg without overlap.
+   * The intervals cover the entire polyline of the `RouteLeg` without overlap.
    * The start point of a specified interval is the same as the end point of the
    * preceding interval.
    *
@@ -145,15 +117,13 @@ public interface RouteLegTravelAdvisoryOrBuilder
    *
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2;
    */
-  java.util.List
+  java.util.List 
       getSpeedReadingIntervalsOrBuilderList();
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
-   * The intervals cover the entire polyline of the RouteLg without overlap.
+   * The intervals cover the entire polyline of the `RouteLeg` without overlap.
    * The start point of a specified interval is the same as the end point of the
    * preceding interval.
    *
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestination.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestination.java
similarity index 61%
rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestination.java
rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestination.java
index fc6cdde9b75e..3823c130cf87 100644
--- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestination.java
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestination.java
@@ -1,77 +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/maps/routing/v2/routes_service.proto
 
 package com.google.maps.routing.v2;
 
 /**
- *
- *
  * 
  * A single destination for ComputeRouteMatrixRequest
  * 
* * Protobuf type {@code google.maps.routing.v2.RouteMatrixDestination} */ -public final class RouteMatrixDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RouteMatrixDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteMatrixDestination) RouteMatrixDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RouteMatrixDestination.newBuilder() to construct. private RouteMatrixDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RouteMatrixDestination() {} + private RouteMatrixDestination() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RouteMatrixDestination(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteMatrixDestination.class, - com.google.maps.routing.v2.RouteMatrixDestination.Builder.class); + com.google.maps.routing.v2.RouteMatrixDestination.class, com.google.maps.routing.v2.RouteMatrixDestination.Builder.class); } public static final int WAYPOINT_FIELD_NUMBER = 1; private com.google.maps.routing.v2.Waypoint waypoint_; /** - * - * *
    * Required. Destination waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the waypoint field is set. */ @java.lang.Override @@ -79,15 +57,11 @@ public boolean hasWaypoint() { return waypoint_ != null; } /** - * - * *
    * Required. Destination waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The waypoint. */ @java.lang.Override @@ -95,14 +69,11 @@ public com.google.maps.routing.v2.Waypoint getWaypoint() { return waypoint_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : waypoint_; } /** - * - * *
    * Required. Destination waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder() { @@ -110,7 +81,6 @@ public com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -122,7 +92,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 (waypoint_ != null) { output.writeMessage(1, getWaypoint()); } @@ -136,7 +107,8 @@ public int getSerializedSize() { size = 0; if (waypoint_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWaypoint()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWaypoint()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -146,17 +118,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.maps.routing.v2.RouteMatrixDestination)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteMatrixDestination other = - (com.google.maps.routing.v2.RouteMatrixDestination) obj; + com.google.maps.routing.v2.RouteMatrixDestination other = (com.google.maps.routing.v2.RouteMatrixDestination) obj; if (hasWaypoint() != other.hasWaypoint()) return false; if (hasWaypoint()) { - if (!getWaypoint().equals(other.getWaypoint())) return false; + if (!getWaypoint() + .equals(other.getWaypoint())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -179,135 +151,131 @@ public int hashCode() { } public static com.google.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteMatrixDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteMatrixDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination 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 single destination for ComputeRouteMatrixRequest
    * 
* * Protobuf type {@code google.maps.routing.v2.RouteMatrixDestination} */ - 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.maps.routing.v2.RouteMatrixDestination) com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteMatrixDestination.class, - com.google.maps.routing.v2.RouteMatrixDestination.Builder.class); + com.google.maps.routing.v2.RouteMatrixDestination.class, com.google.maps.routing.v2.RouteMatrixDestination.Builder.class); } // Construct using com.google.maps.routing.v2.RouteMatrixDestination.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(); @@ -321,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; } @java.lang.Override @@ -342,11 +310,8 @@ public com.google.maps.routing.v2.RouteMatrixDestination build() { @java.lang.Override public com.google.maps.routing.v2.RouteMatrixDestination buildPartial() { - com.google.maps.routing.v2.RouteMatrixDestination result = - new com.google.maps.routing.v2.RouteMatrixDestination(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.maps.routing.v2.RouteMatrixDestination result = new com.google.maps.routing.v2.RouteMatrixDestination(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -354,7 +319,9 @@ public com.google.maps.routing.v2.RouteMatrixDestination buildPartial() { private void buildPartial0(com.google.maps.routing.v2.RouteMatrixDestination result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.waypoint_ = waypointBuilder_ == null ? waypoint_ : waypointBuilder_.build(); + result.waypoint_ = waypointBuilder_ == null + ? waypoint_ + : waypointBuilder_.build(); } } @@ -362,39 +329,38 @@ private void buildPartial0(com.google.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination) { - return mergeFrom((com.google.maps.routing.v2.RouteMatrixDestination) other); + return mergeFrom((com.google.maps.routing.v2.RouteMatrixDestination)other); } else { super.mergeFrom(other); return this; @@ -402,8 +368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.maps.routing.v2.RouteMatrixDestination other) { - if (other == com.google.maps.routing.v2.RouteMatrixDestination.getDefaultInstance()) - return this; + if (other == com.google.maps.routing.v2.RouteMatrixDestination.getDefaultInstance()) return this; if (other.hasWaypoint()) { mergeWaypoint(other.getWaypoint()); } @@ -433,19 +398,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getWaypointFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getWaypointFieldBuilder().getBuilder(), + extensionRegistry); + 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) { @@ -455,63 +420,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.maps.routing.v2.Waypoint waypoint_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, - com.google.maps.routing.v2.Waypoint.Builder, - com.google.maps.routing.v2.WaypointOrBuilder> - waypointBuilder_; + com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> waypointBuilder_; /** - * - * *
      * Required. Destination waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the waypoint field is set. */ public boolean hasWaypoint() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Destination waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The waypoint. */ public com.google.maps.routing.v2.Waypoint getWaypoint() { if (waypointBuilder_ == null) { - return waypoint_ == null - ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() - : waypoint_; + return waypoint_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : waypoint_; } else { return waypointBuilder_.getMessage(); } } /** - * - * *
      * Required. Destination waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWaypoint(com.google.maps.routing.v2.Waypoint value) { if (waypointBuilder_ == null) { @@ -527,17 +472,14 @@ public Builder setWaypoint(com.google.maps.routing.v2.Waypoint value) { return this; } /** - * - * *
      * Required. Destination waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWaypoint(com.google.maps.routing.v2.Waypoint.Builder builderForValue) { + public Builder setWaypoint( + com.google.maps.routing.v2.Waypoint.Builder builderForValue) { if (waypointBuilder_ == null) { waypoint_ = builderForValue.build(); } else { @@ -548,21 +490,17 @@ public Builder setWaypoint(com.google.maps.routing.v2.Waypoint.Builder builderFo return this; } /** - * - * *
      * Required. Destination waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWaypoint(com.google.maps.routing.v2.Waypoint value) { if (waypointBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && waypoint_ != null - && waypoint_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + waypoint_ != null && + waypoint_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { getWaypointBuilder().mergeFrom(value); } else { waypoint_ = value; @@ -575,15 +513,11 @@ public Builder mergeWaypoint(com.google.maps.routing.v2.Waypoint value) { return this; } /** - * - * *
      * Required. Destination waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWaypoint() { bitField0_ = (bitField0_ & ~0x00000001); @@ -596,15 +530,11 @@ public Builder clearWaypoint() { return this; } /** - * - * *
      * Required. Destination waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.maps.routing.v2.Waypoint.Builder getWaypointBuilder() { bitField0_ |= 0x00000001; @@ -612,55 +542,43 @@ public com.google.maps.routing.v2.Waypoint.Builder getWaypointBuilder() { return getWaypointFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Destination waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder() { if (waypointBuilder_ != null) { return waypointBuilder_.getMessageOrBuilder(); } else { - return waypoint_ == null - ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() - : waypoint_; + return waypoint_ == null ? + com.google.maps.routing.v2.Waypoint.getDefaultInstance() : waypoint_; } } /** - * - * *
      * Required. Destination waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, - com.google.maps.routing.v2.Waypoint.Builder, - com.google.maps.routing.v2.WaypointOrBuilder> + com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> getWaypointFieldBuilder() { if (waypointBuilder_ == null) { - waypointBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, - com.google.maps.routing.v2.Waypoint.Builder, - com.google.maps.routing.v2.WaypointOrBuilder>( - getWaypoint(), getParentForChildren(), isClean()); + waypointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder>( + getWaypoint(), + getParentForChildren(), + isClean()); waypoint_ = null; } return waypointBuilder_; } - @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); } @@ -670,12 +588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteMatrixDestination) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteMatrixDestination) private static final com.google.maps.routing.v2.RouteMatrixDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteMatrixDestination(); } @@ -684,27 +602,27 @@ public static com.google.maps.routing.v2.RouteMatrixDestination getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteMatrixDestination 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 RouteMatrixDestination 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; @@ -719,4 +637,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.RouteMatrixDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestinationOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestinationOrBuilder.java similarity index 52% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestinationOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestinationOrBuilder.java index e75d9d8ddb6e..7be9a7b37ed3 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestinationOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestinationOrBuilder.java @@ -1,63 +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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; -public interface RouteMatrixDestinationOrBuilder - extends +public interface RouteMatrixDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteMatrixDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Destination waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the waypoint field is set. */ boolean hasWaypoint(); /** - * - * *
    * Required. Destination waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The waypoint. */ com.google.maps.routing.v2.Waypoint getWaypoint(); /** - * - * *
    * Required. Destination waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder(); } diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElement.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElement.java new file mode 100644 index 000000000000..2dce0194f438 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElement.java @@ -0,0 +1,3833 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/routes_service.proto + +package com.google.maps.routing.v2; + +/** + *
+ * Contains route information computed for an origin/destination pair in the
+ * ComputeRouteMatrix API. This proto can be streamed to the client.
+ * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteMatrixElement} + */ +public final class RouteMatrixElement extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteMatrixElement) + RouteMatrixElementOrBuilder { +private static final long serialVersionUID = 0L; + // Use RouteMatrixElement.newBuilder() to construct. + private RouteMatrixElement(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RouteMatrixElement() { + condition_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RouteMatrixElement(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteMatrixElement.class, com.google.maps.routing.v2.RouteMatrixElement.Builder.class); + } + + public interface LocalizedValuesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteMatrixElement.LocalizedValues) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return Whether the distance field is set. + */ + boolean hasDistance(); + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return The distance. + */ + com.google.type.LocalizedText getDistance(); + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + */ + com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder(); + + /** + *
+     * Duration represented in text form taking traffic conditions into
+     * consideration. Note: If traffic information was not requested, this value
+     * is the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + * @return Whether the duration field is set. + */ + boolean hasDuration(); + /** + *
+     * Duration represented in text form taking traffic conditions into
+     * consideration. Note: If traffic information was not requested, this value
+     * is the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + * @return The duration. + */ + com.google.type.LocalizedText getDuration(); + /** + *
+     * Duration represented in text form taking traffic conditions into
+     * consideration. Note: If traffic information was not requested, this value
+     * is the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + */ + com.google.type.LocalizedTextOrBuilder getDurationOrBuilder(); + + /** + *
+     * Duration represented in text form without taking traffic conditions into
+     * consideration.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return Whether the staticDuration field is set. + */ + boolean hasStaticDuration(); + /** + *
+     * Duration represented in text form without taking traffic conditions into
+     * consideration.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return The staticDuration. + */ + com.google.type.LocalizedText getStaticDuration(); + /** + *
+     * Duration represented in text form without taking traffic conditions into
+     * consideration.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder(); + + /** + *
+     * Transit fare represented in text form.
+     * 
+ * + * .google.type.LocalizedText transit_fare = 4; + * @return Whether the transitFare field is set. + */ + boolean hasTransitFare(); + /** + *
+     * Transit fare represented in text form.
+     * 
+ * + * .google.type.LocalizedText transit_fare = 4; + * @return The transitFare. + */ + com.google.type.LocalizedText getTransitFare(); + /** + *
+     * Transit fare represented in text form.
+     * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + com.google.type.LocalizedTextOrBuilder getTransitFareOrBuilder(); + } + /** + *
+   * Text representations of certain properties.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteMatrixElement.LocalizedValues} + */ + public static final class LocalizedValues extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteMatrixElement.LocalizedValues) + LocalizedValuesOrBuilder { + private static final long serialVersionUID = 0L; + // Use LocalizedValues.newBuilder() to construct. + private LocalizedValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LocalizedValues() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LocalizedValues(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.class, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder.class); + } + + public static final int DISTANCE_FIELD_NUMBER = 1; + private com.google.type.LocalizedText distance_; + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return Whether the distance field is set. + */ + @java.lang.Override + public boolean hasDistance() { + return distance_ != null; + } + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + * @return The distance. + */ + @java.lang.Override + public com.google.type.LocalizedText getDistance() { + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; + } + /** + *
+     * Travel distance represented in text form.
+     * 
+ * + * .google.type.LocalizedText distance = 1; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; + } + + public static final int DURATION_FIELD_NUMBER = 2; + private com.google.type.LocalizedText duration_; + /** + *
+     * Duration represented in text form taking traffic conditions into
+     * consideration. Note: If traffic information was not requested, this value
+     * is the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + * @return Whether the duration field is set. + */ + @java.lang.Override + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+     * Duration represented in text form taking traffic conditions into
+     * consideration. Note: If traffic information was not requested, this value
+     * is the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + * @return The duration. + */ + @java.lang.Override + public com.google.type.LocalizedText getDuration() { + return duration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : duration_; + } + /** + *
+     * Duration represented in text form taking traffic conditions into
+     * consideration. Note: If traffic information was not requested, this value
+     * is the same value as static_duration.
+     * 
+ * + * .google.type.LocalizedText duration = 2; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() { + return duration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : duration_; + } + + public static final int STATIC_DURATION_FIELD_NUMBER = 3; + private com.google.type.LocalizedText staticDuration_; + /** + *
+     * Duration represented in text form without taking traffic conditions into
+     * consideration.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return Whether the staticDuration field is set. + */ + @java.lang.Override + public boolean hasStaticDuration() { + return staticDuration_ != null; + } + /** + *
+     * Duration represented in text form without taking traffic conditions into
+     * consideration.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return The staticDuration. + */ + @java.lang.Override + public com.google.type.LocalizedText getStaticDuration() { + return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } + /** + *
+     * Duration represented in text form without taking traffic conditions into
+     * consideration.
+     * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() { + return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } + + public static final int TRANSIT_FARE_FIELD_NUMBER = 4; + private com.google.type.LocalizedText transitFare_; + /** + *
+     * Transit fare represented in text form.
+     * 
+ * + * .google.type.LocalizedText transit_fare = 4; + * @return Whether the transitFare field is set. + */ + @java.lang.Override + public boolean hasTransitFare() { + return transitFare_ != null; + } + /** + *
+     * Transit fare represented in text form.
+     * 
+ * + * .google.type.LocalizedText transit_fare = 4; + * @return The transitFare. + */ + @java.lang.Override + public com.google.type.LocalizedText getTransitFare() { + return transitFare_ == null ? com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + } + /** + *
+     * Transit fare represented in text form.
+     * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getTransitFareOrBuilder() { + return transitFare_ == null ? com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + } + + 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 (distance_ != null) { + output.writeMessage(1, getDistance()); + } + if (duration_ != null) { + output.writeMessage(2, getDuration()); + } + if (staticDuration_ != null) { + output.writeMessage(3, getStaticDuration()); + } + if (transitFare_ != null) { + output.writeMessage(4, getTransitFare()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (distance_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDistance()); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDuration()); + } + if (staticDuration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStaticDuration()); + } + if (transitFare_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTransitFare()); + } + 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.maps.routing.v2.RouteMatrixElement.LocalizedValues)) { + return super.equals(obj); + } + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues other = (com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues) obj; + + if (hasDistance() != other.hasDistance()) return false; + if (hasDistance()) { + if (!getDistance() + .equals(other.getDistance())) return false; + } + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) return false; + } + if (hasStaticDuration() != other.hasStaticDuration()) return false; + if (hasStaticDuration()) { + if (!getStaticDuration() + .equals(other.getStaticDuration())) return false; + } + if (hasTransitFare() != other.hasTransitFare()) return false; + if (hasTransitFare()) { + if (!getTransitFare() + .equals(other.getTransitFare())) 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(); + if (hasDistance()) { + hash = (37 * hash) + DISTANCE_FIELD_NUMBER; + hash = (53 * hash) + getDistance().hashCode(); + } + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasStaticDuration()) { + hash = (37 * hash) + STATIC_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getStaticDuration().hashCode(); + } + if (hasTransitFare()) { + hash = (37 * hash) + TRANSIT_FARE_FIELD_NUMBER; + hash = (53 * hash) + getTransitFare().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues 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.maps.routing.v2.RouteMatrixElement.LocalizedValues parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues 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.maps.routing.v2.RouteMatrixElement.LocalizedValues parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues 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.maps.routing.v2.RouteMatrixElement.LocalizedValues parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues 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.maps.routing.v2.RouteMatrixElement.LocalizedValues 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; + } + /** + *
+     * Text representations of certain properties.
+     * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteMatrixElement.LocalizedValues} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.RouteMatrixElement.LocalizedValues) + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.class, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder.class); + } + + // Construct using com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + distance_ = null; + if (distanceBuilder_ != null) { + distanceBuilder_.dispose(); + distanceBuilder_ = null; + } + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + transitFare_ = null; + if (transitFareBuilder_ != null) { + transitFareBuilder_.dispose(); + transitFareBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues getDefaultInstanceForType() { + return com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues build() { + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues buildPartial() { + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues result = new com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.distance_ = distanceBuilder_ == null + ? distance_ + : distanceBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.duration_ = durationBuilder_ == null + ? duration_ + : durationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.staticDuration_ = staticDurationBuilder_ == null + ? staticDuration_ + : staticDurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.transitFare_ = transitFareBuilder_ == null + ? transitFare_ + : transitFareBuilder_.build(); + } + } + + @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.maps.routing.v2.RouteMatrixElement.LocalizedValues) { + return mergeFrom((com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues other) { + if (other == com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance()) return this; + if (other.hasDistance()) { + mergeDistance(other.getDistance()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasStaticDuration()) { + mergeStaticDuration(other.getStaticDuration()); + } + if (other.hasTransitFare()) { + mergeTransitFare(other.getTransitFare()); + } + 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 10: { + input.readMessage( + getDistanceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getStaticDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getTransitFareFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.type.LocalizedText distance_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> distanceBuilder_; + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + * @return Whether the distance field is set. + */ + public boolean hasDistance() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + * @return The distance. + */ + public com.google.type.LocalizedText getDistance() { + if (distanceBuilder_ == null) { + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; + } else { + return distanceBuilder_.getMessage(); + } + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder setDistance(com.google.type.LocalizedText value) { + if (distanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + distance_ = value; + } else { + distanceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder setDistance( + com.google.type.LocalizedText.Builder builderForValue) { + if (distanceBuilder_ == null) { + distance_ = builderForValue.build(); + } else { + distanceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder mergeDistance(com.google.type.LocalizedText value) { + if (distanceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + distance_ != null && + distance_ != com.google.type.LocalizedText.getDefaultInstance()) { + getDistanceBuilder().mergeFrom(value); + } else { + distance_ = value; + } + } else { + distanceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public Builder clearDistance() { + bitField0_ = (bitField0_ & ~0x00000001); + distance_ = null; + if (distanceBuilder_ != null) { + distanceBuilder_.dispose(); + distanceBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public com.google.type.LocalizedText.Builder getDistanceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDistanceFieldBuilder().getBuilder(); + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { + if (distanceBuilder_ != null) { + return distanceBuilder_.getMessageOrBuilder(); + } else { + return distance_ == null ? + com.google.type.LocalizedText.getDefaultInstance() : distance_; + } + } + /** + *
+       * Travel distance represented in text form.
+       * 
+ * + * .google.type.LocalizedText distance = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + getDistanceFieldBuilder() { + if (distanceBuilder_ == null) { + distanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( + getDistance(), + getParentForChildren(), + isClean()); + distance_ = null; + } + return distanceBuilder_; + } + + private com.google.type.LocalizedText duration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> durationBuilder_; + /** + *
+       * Duration represented in text form taking traffic conditions into
+       * consideration. Note: If traffic information was not requested, this value
+       * is the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + * @return Whether the duration field is set. + */ + public boolean hasDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+       * Duration represented in text form taking traffic conditions into
+       * consideration. Note: If traffic information was not requested, this value
+       * is the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + * @return The duration. + */ + public com.google.type.LocalizedText getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+       * Duration represented in text form taking traffic conditions into
+       * consideration. Note: If traffic information was not requested, this value
+       * is the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public Builder setDuration(com.google.type.LocalizedText value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + } else { + durationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Duration represented in text form taking traffic conditions into
+       * consideration. Note: If traffic information was not requested, this value
+       * is the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public Builder setDuration( + com.google.type.LocalizedText.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Duration represented in text form taking traffic conditions into
+       * consideration. Note: If traffic information was not requested, this value
+       * is the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public Builder mergeDuration(com.google.type.LocalizedText value) { + if (durationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + duration_ != null && + duration_ != com.google.type.LocalizedText.getDefaultInstance()) { + getDurationBuilder().mergeFrom(value); + } else { + duration_ = value; + } + } else { + durationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+       * Duration represented in text form taking traffic conditions into
+       * consideration. Note: If traffic information was not requested, this value
+       * is the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public Builder clearDuration() { + bitField0_ = (bitField0_ & ~0x00000002); + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Duration represented in text form taking traffic conditions into
+       * consideration. Note: If traffic information was not requested, this value
+       * is the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public com.google.type.LocalizedText.Builder getDurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+       * Duration represented in text form taking traffic conditions into
+       * consideration. Note: If traffic information was not requested, this value
+       * is the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.type.LocalizedText.getDefaultInstance() : duration_; + } + } + /** + *
+       * Duration represented in text form taking traffic conditions into
+       * consideration. Note: If traffic information was not requested, this value
+       * is the same value as static_duration.
+       * 
+ * + * .google.type.LocalizedText duration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + getDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); + duration_ = null; + } + return durationBuilder_; + } + + private com.google.type.LocalizedText staticDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> staticDurationBuilder_; + /** + *
+       * Duration represented in text form without taking traffic conditions into
+       * consideration.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return Whether the staticDuration field is set. + */ + public boolean hasStaticDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+       * Duration represented in text form without taking traffic conditions into
+       * consideration.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + * @return The staticDuration. + */ + public com.google.type.LocalizedText getStaticDuration() { + if (staticDurationBuilder_ == null) { + return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } else { + return staticDurationBuilder_.getMessage(); + } + } + /** + *
+       * Duration represented in text form without taking traffic conditions into
+       * consideration.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder setStaticDuration(com.google.type.LocalizedText value) { + if (staticDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + staticDuration_ = value; + } else { + staticDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Duration represented in text form without taking traffic conditions into
+       * consideration.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder setStaticDuration( + com.google.type.LocalizedText.Builder builderForValue) { + if (staticDurationBuilder_ == null) { + staticDuration_ = builderForValue.build(); + } else { + staticDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Duration represented in text form without taking traffic conditions into
+       * consideration.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder mergeStaticDuration(com.google.type.LocalizedText value) { + if (staticDurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + staticDuration_ != null && + staticDuration_ != com.google.type.LocalizedText.getDefaultInstance()) { + getStaticDurationBuilder().mergeFrom(value); + } else { + staticDuration_ = value; + } + } else { + staticDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+       * Duration represented in text form without taking traffic conditions into
+       * consideration.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public Builder clearStaticDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Duration represented in text form without taking traffic conditions into
+       * consideration.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public com.google.type.LocalizedText.Builder getStaticDurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStaticDurationFieldBuilder().getBuilder(); + } + /** + *
+       * Duration represented in text form without taking traffic conditions into
+       * consideration.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() { + if (staticDurationBuilder_ != null) { + return staticDurationBuilder_.getMessageOrBuilder(); + } else { + return staticDuration_ == null ? + com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + } + } + /** + *
+       * Duration represented in text form without taking traffic conditions into
+       * consideration.
+       * 
+ * + * .google.type.LocalizedText static_duration = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + getStaticDurationFieldBuilder() { + if (staticDurationBuilder_ == null) { + staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( + getStaticDuration(), + getParentForChildren(), + isClean()); + staticDuration_ = null; + } + return staticDurationBuilder_; + } + + private com.google.type.LocalizedText transitFare_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> transitFareBuilder_; + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + * @return Whether the transitFare field is set. + */ + public boolean hasTransitFare() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + * @return The transitFare. + */ + public com.google.type.LocalizedText getTransitFare() { + if (transitFareBuilder_ == null) { + return transitFare_ == null ? com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + } else { + return transitFareBuilder_.getMessage(); + } + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + public Builder setTransitFare(com.google.type.LocalizedText value) { + if (transitFareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transitFare_ = value; + } else { + transitFareBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + public Builder setTransitFare( + com.google.type.LocalizedText.Builder builderForValue) { + if (transitFareBuilder_ == null) { + transitFare_ = builderForValue.build(); + } else { + transitFareBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + public Builder mergeTransitFare(com.google.type.LocalizedText value) { + if (transitFareBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + transitFare_ != null && + transitFare_ != com.google.type.LocalizedText.getDefaultInstance()) { + getTransitFareBuilder().mergeFrom(value); + } else { + transitFare_ = value; + } + } else { + transitFareBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + public Builder clearTransitFare() { + bitField0_ = (bitField0_ & ~0x00000008); + transitFare_ = null; + if (transitFareBuilder_ != null) { + transitFareBuilder_.dispose(); + transitFareBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + public com.google.type.LocalizedText.Builder getTransitFareBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getTransitFareFieldBuilder().getBuilder(); + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + public com.google.type.LocalizedTextOrBuilder getTransitFareOrBuilder() { + if (transitFareBuilder_ != null) { + return transitFareBuilder_.getMessageOrBuilder(); + } else { + return transitFare_ == null ? + com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + } + } + /** + *
+       * Transit fare represented in text form.
+       * 
+ * + * .google.type.LocalizedText transit_fare = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + getTransitFareFieldBuilder() { + if (transitFareBuilder_ == null) { + transitFareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( + getTransitFare(), + getParentForChildren(), + isClean()); + transitFare_ = null; + } + return transitFareBuilder_; + } + @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.maps.routing.v2.RouteMatrixElement.LocalizedValues) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteMatrixElement.LocalizedValues) + private static final com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues(); + } + + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocalizedValues 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.maps.routing.v2.RouteMatrixElement.LocalizedValues getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; + public static final int ORIGIN_INDEX_FIELD_NUMBER = 1; + private int originIndex_ = 0; + /** + *
+   * Zero-based index of the origin in the request.
+   * 
+ * + * optional int32 origin_index = 1; + * @return Whether the originIndex field is set. + */ + @java.lang.Override + public boolean hasOriginIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Zero-based index of the origin in the request.
+   * 
+ * + * optional int32 origin_index = 1; + * @return The originIndex. + */ + @java.lang.Override + public int getOriginIndex() { + return originIndex_; + } + + public static final int DESTINATION_INDEX_FIELD_NUMBER = 2; + private int destinationIndex_ = 0; + /** + *
+   * Zero-based index of the destination in the request.
+   * 
+ * + * optional int32 destination_index = 2; + * @return Whether the destinationIndex field is set. + */ + @java.lang.Override + public boolean hasDestinationIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Zero-based index of the destination in the request.
+   * 
+ * + * optional int32 destination_index = 2; + * @return The destinationIndex. + */ + @java.lang.Override + public int getDestinationIndex() { + return destinationIndex_; + } + + public static final int STATUS_FIELD_NUMBER = 3; + private com.google.rpc.Status status_; + /** + *
+   * Error status code for this element.
+   * 
+ * + * .google.rpc.Status status = 3; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return status_ != null; + } + /** + *
+   * Error status code for this element.
+   * 
+ * + * .google.rpc.Status status = 3; + * @return The status. + */ + @java.lang.Override + public com.google.rpc.Status getStatus() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + /** + *
+   * Error status code for this element.
+   * 
+ * + * .google.rpc.Status status = 3; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } + + public static final int CONDITION_FIELD_NUMBER = 9; + private int condition_ = 0; + /** + *
+   * Indicates whether the route was found or not. Independent of status.
+   * 
+ * + * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * @return The enum numeric value on the wire for condition. + */ + @java.lang.Override public int getConditionValue() { + return condition_; + } + /** + *
+   * Indicates whether the route was found or not. Independent of status.
+   * 
+ * + * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * @return The condition. + */ + @java.lang.Override public com.google.maps.routing.v2.RouteMatrixElementCondition getCondition() { + com.google.maps.routing.v2.RouteMatrixElementCondition result = com.google.maps.routing.v2.RouteMatrixElementCondition.forNumber(condition_); + return result == null ? com.google.maps.routing.v2.RouteMatrixElementCondition.UNRECOGNIZED : result; + } + + public static final int DISTANCE_METERS_FIELD_NUMBER = 4; + private int distanceMeters_ = 0; + /** + *
+   * The travel distance of the route, in meters.
+   * 
+ * + * int32 distance_meters = 4; + * @return The distanceMeters. + */ + @java.lang.Override + public int getDistanceMeters() { + return distanceMeters_; + } + + public static final int DURATION_FIELD_NUMBER = 5; + private com.google.protobuf.Duration duration_; + /** + *
+   * The length of time needed to navigate the route. If you set the
+   * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
+   * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
+   * you set the `routing_preference` to either `TRAFFIC_AWARE` or
+   * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+   * conditions into account.
+   * 
+ * + * .google.protobuf.Duration duration = 5; + * @return Whether the duration field is set. + */ + @java.lang.Override + public boolean hasDuration() { + return duration_ != null; + } + /** + *
+   * The length of time needed to navigate the route. If you set the
+   * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
+   * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
+   * you set the `routing_preference` to either `TRAFFIC_AWARE` or
+   * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+   * conditions into account.
+   * 
+ * + * .google.protobuf.Duration duration = 5; + * @return The duration. + */ + @java.lang.Override + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + /** + *
+   * The length of time needed to navigate the route. If you set the
+   * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
+   * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
+   * you set the `routing_preference` to either `TRAFFIC_AWARE` or
+   * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+   * conditions into account.
+   * 
+ * + * .google.protobuf.Duration duration = 5; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + + public static final int STATIC_DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration staticDuration_; + /** + *
+   * The duration of traveling through the route without taking traffic
+   * conditions into consideration.
+   * 
+ * + * .google.protobuf.Duration static_duration = 6; + * @return Whether the staticDuration field is set. + */ + @java.lang.Override + public boolean hasStaticDuration() { + return staticDuration_ != null; + } + /** + *
+   * The duration of traveling through the route without taking traffic
+   * conditions into consideration.
+   * 
+ * + * .google.protobuf.Duration static_duration = 6; + * @return The staticDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getStaticDuration() { + return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } + /** + *
+   * The duration of traveling through the route without taking traffic
+   * conditions into consideration.
+   * 
+ * + * .google.protobuf.Duration static_duration = 6; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { + return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } + + public static final int TRAVEL_ADVISORY_FIELD_NUMBER = 7; + private com.google.maps.routing.v2.RouteTravelAdvisory travelAdvisory_; + /** + *
+   * Additional information about the route. For example: restriction
+   * information and toll information
+   * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + * @return Whether the travelAdvisory field is set. + */ + @java.lang.Override + public boolean hasTravelAdvisory() { + return travelAdvisory_ != null; + } + /** + *
+   * Additional information about the route. For example: restriction
+   * information and toll information
+   * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + * @return The travelAdvisory. + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory() { + return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } + /** + *
+   * Additional information about the route. For example: restriction
+   * information and toll information
+   * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() { + return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } + + public static final int FALLBACK_INFO_FIELD_NUMBER = 8; + private com.google.maps.routing.v2.FallbackInfo fallbackInfo_; + /** + *
+   * In some cases when the server is not able to compute the route with the
+   * given preferences for this particular origin/destination pair, it may
+   * fall back to using a different mode of computation. When fallback mode is
+   * used, this field contains detailed information about the fallback response.
+   * Otherwise this field is unset.
+   * 
+ * + * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + * @return Whether the fallbackInfo field is set. + */ + @java.lang.Override + public boolean hasFallbackInfo() { + return fallbackInfo_ != null; + } + /** + *
+   * In some cases when the server is not able to compute the route with the
+   * given preferences for this particular origin/destination pair, it may
+   * fall back to using a different mode of computation. When fallback mode is
+   * used, this field contains detailed information about the fallback response.
+   * Otherwise this field is unset.
+   * 
+ * + * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + * @return The fallbackInfo. + */ + @java.lang.Override + public com.google.maps.routing.v2.FallbackInfo getFallbackInfo() { + return fallbackInfo_ == null ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_; + } + /** + *
+   * In some cases when the server is not able to compute the route with the
+   * given preferences for this particular origin/destination pair, it may
+   * fall back to using a different mode of computation. When fallback mode is
+   * used, this field contains detailed information about the fallback response.
+   * Otherwise this field is unset.
+   * 
+ * + * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + */ + @java.lang.Override + public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder() { + return fallbackInfo_ == null ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_; + } + + public static final int LOCALIZED_VALUES_FIELD_NUMBER = 10; + private com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localizedValues_; + /** + *
+   * Text representations of properties of the `RouteMatrixElement`.
+   * 
+ * + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * @return Whether the localizedValues field is set. + */ + @java.lang.Override + public boolean hasLocalizedValues() { + return localizedValues_ != null; + } + /** + *
+   * Text representations of properties of the `RouteMatrixElement`.
+   * 
+ * + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * @return The localizedValues. + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues getLocalizedValues() { + return localizedValues_ == null ? com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance() : localizedValues_; + } + /** + *
+   * Text representations of properties of the `RouteMatrixElement`.
+   * 
+ * + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { + return localizedValues_ == null ? com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance() : localizedValues_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, originIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(2, destinationIndex_); + } + if (status_ != null) { + output.writeMessage(3, getStatus()); + } + if (distanceMeters_ != 0) { + output.writeInt32(4, distanceMeters_); + } + if (duration_ != null) { + output.writeMessage(5, getDuration()); + } + if (staticDuration_ != null) { + output.writeMessage(6, getStaticDuration()); + } + if (travelAdvisory_ != null) { + output.writeMessage(7, getTravelAdvisory()); + } + if (fallbackInfo_ != null) { + output.writeMessage(8, getFallbackInfo()); + } + if (condition_ != com.google.maps.routing.v2.RouteMatrixElementCondition.ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED.getNumber()) { + output.writeEnum(9, condition_); + } + if (localizedValues_ != null) { + output.writeMessage(10, getLocalizedValues()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, originIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, destinationIndex_); + } + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStatus()); + } + if (distanceMeters_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, distanceMeters_); + } + if (duration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getDuration()); + } + if (staticDuration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getStaticDuration()); + } + if (travelAdvisory_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getTravelAdvisory()); + } + if (fallbackInfo_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getFallbackInfo()); + } + if (condition_ != com.google.maps.routing.v2.RouteMatrixElementCondition.ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, condition_); + } + if (localizedValues_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getLocalizedValues()); + } + 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.maps.routing.v2.RouteMatrixElement)) { + return super.equals(obj); + } + com.google.maps.routing.v2.RouteMatrixElement other = (com.google.maps.routing.v2.RouteMatrixElement) obj; + + if (hasOriginIndex() != other.hasOriginIndex()) return false; + if (hasOriginIndex()) { + if (getOriginIndex() + != other.getOriginIndex()) return false; + } + if (hasDestinationIndex() != other.hasDestinationIndex()) return false; + if (hasDestinationIndex()) { + if (getDestinationIndex() + != other.getDestinationIndex()) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (condition_ != other.condition_) return false; + if (getDistanceMeters() + != other.getDistanceMeters()) return false; + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration() + .equals(other.getDuration())) return false; + } + if (hasStaticDuration() != other.hasStaticDuration()) return false; + if (hasStaticDuration()) { + if (!getStaticDuration() + .equals(other.getStaticDuration())) return false; + } + if (hasTravelAdvisory() != other.hasTravelAdvisory()) return false; + if (hasTravelAdvisory()) { + if (!getTravelAdvisory() + .equals(other.getTravelAdvisory())) return false; + } + if (hasFallbackInfo() != other.hasFallbackInfo()) return false; + if (hasFallbackInfo()) { + if (!getFallbackInfo() + .equals(other.getFallbackInfo())) return false; + } + if (hasLocalizedValues() != other.hasLocalizedValues()) return false; + if (hasLocalizedValues()) { + if (!getLocalizedValues() + .equals(other.getLocalizedValues())) 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(); + if (hasOriginIndex()) { + hash = (37 * hash) + ORIGIN_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getOriginIndex(); + } + if (hasDestinationIndex()) { + hash = (37 * hash) + DESTINATION_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getDestinationIndex(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (37 * hash) + CONDITION_FIELD_NUMBER; + hash = (53 * hash) + condition_; + hash = (37 * hash) + DISTANCE_METERS_FIELD_NUMBER; + hash = (53 * hash) + getDistanceMeters(); + if (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + if (hasStaticDuration()) { + hash = (37 * hash) + STATIC_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getStaticDuration().hashCode(); + } + if (hasTravelAdvisory()) { + hash = (37 * hash) + TRAVEL_ADVISORY_FIELD_NUMBER; + hash = (53 * hash) + getTravelAdvisory().hashCode(); + } + if (hasFallbackInfo()) { + hash = (37 * hash) + FALLBACK_INFO_FIELD_NUMBER; + hash = (53 * hash) + getFallbackInfo().hashCode(); + } + if (hasLocalizedValues()) { + hash = (37 * hash) + LOCALIZED_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getLocalizedValues().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.RouteMatrixElement parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteMatrixElement parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteMatrixElement parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.RouteMatrixElement parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.RouteMatrixElement parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement 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; + } + /** + *
+   * Contains route information computed for an origin/destination pair in the
+   * ComputeRouteMatrix API. This proto can be streamed to the client.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.RouteMatrixElement} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.RouteMatrixElement) + com.google.maps.routing.v2.RouteMatrixElementOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.RouteMatrixElement.class, com.google.maps.routing.v2.RouteMatrixElement.Builder.class); + } + + // Construct using com.google.maps.routing.v2.RouteMatrixElement.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + originIndex_ = 0; + destinationIndex_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + condition_ = 0; + distanceMeters_ = 0; + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + travelAdvisory_ = null; + if (travelAdvisoryBuilder_ != null) { + travelAdvisoryBuilder_.dispose(); + travelAdvisoryBuilder_ = null; + } + fallbackInfo_ = null; + if (fallbackInfoBuilder_ != null) { + fallbackInfoBuilder_.dispose(); + fallbackInfoBuilder_ = null; + } + localizedValues_ = null; + if (localizedValuesBuilder_ != null) { + localizedValuesBuilder_.dispose(); + localizedValuesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteMatrixElement getDefaultInstanceForType() { + return com.google.maps.routing.v2.RouteMatrixElement.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteMatrixElement build() { + com.google.maps.routing.v2.RouteMatrixElement result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.RouteMatrixElement buildPartial() { + com.google.maps.routing.v2.RouteMatrixElement result = new com.google.maps.routing.v2.RouteMatrixElement(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.RouteMatrixElement result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.originIndex_ = originIndex_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationIndex_ = destinationIndex_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.condition_ = condition_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.distanceMeters_ = distanceMeters_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.duration_ = durationBuilder_ == null + ? duration_ + : durationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.staticDuration_ = staticDurationBuilder_ == null + ? staticDuration_ + : staticDurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.travelAdvisory_ = travelAdvisoryBuilder_ == null + ? travelAdvisory_ + : travelAdvisoryBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.fallbackInfo_ = fallbackInfoBuilder_ == null + ? fallbackInfo_ + : fallbackInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.localizedValues_ = localizedValuesBuilder_ == null + ? localizedValues_ + : localizedValuesBuilder_.build(); + } + result.bitField0_ |= to_bitField0_; + } + + @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.maps.routing.v2.RouteMatrixElement) { + return mergeFrom((com.google.maps.routing.v2.RouteMatrixElement)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.RouteMatrixElement other) { + if (other == com.google.maps.routing.v2.RouteMatrixElement.getDefaultInstance()) return this; + if (other.hasOriginIndex()) { + setOriginIndex(other.getOriginIndex()); + } + if (other.hasDestinationIndex()) { + setDestinationIndex(other.getDestinationIndex()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.condition_ != 0) { + setConditionValue(other.getConditionValue()); + } + if (other.getDistanceMeters() != 0) { + setDistanceMeters(other.getDistanceMeters()); + } + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (other.hasStaticDuration()) { + mergeStaticDuration(other.getStaticDuration()); + } + if (other.hasTravelAdvisory()) { + mergeTravelAdvisory(other.getTravelAdvisory()); + } + if (other.hasFallbackInfo()) { + mergeFallbackInfo(other.getFallbackInfo()); + } + if (other.hasLocalizedValues()) { + mergeLocalizedValues(other.getLocalizedValues()); + } + 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 8: { + originIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + destinationIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + distanceMeters_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: { + input.readMessage( + getDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: { + input.readMessage( + getStaticDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + input.readMessage( + getTravelAdvisoryFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + input.readMessage( + getFallbackInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 72: { + condition_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 72 + case 82: { + input.readMessage( + getLocalizedValuesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private int originIndex_ ; + /** + *
+     * Zero-based index of the origin in the request.
+     * 
+ * + * optional int32 origin_index = 1; + * @return Whether the originIndex field is set. + */ + @java.lang.Override + public boolean hasOriginIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Zero-based index of the origin in the request.
+     * 
+ * + * optional int32 origin_index = 1; + * @return The originIndex. + */ + @java.lang.Override + public int getOriginIndex() { + return originIndex_; + } + /** + *
+     * Zero-based index of the origin in the request.
+     * 
+ * + * optional int32 origin_index = 1; + * @param value The originIndex to set. + * @return This builder for chaining. + */ + public Builder setOriginIndex(int value) { + + originIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Zero-based index of the origin in the request.
+     * 
+ * + * optional int32 origin_index = 1; + * @return This builder for chaining. + */ + public Builder clearOriginIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + originIndex_ = 0; + onChanged(); + return this; + } + + private int destinationIndex_ ; + /** + *
+     * Zero-based index of the destination in the request.
+     * 
+ * + * optional int32 destination_index = 2; + * @return Whether the destinationIndex field is set. + */ + @java.lang.Override + public boolean hasDestinationIndex() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Zero-based index of the destination in the request.
+     * 
+ * + * optional int32 destination_index = 2; + * @return The destinationIndex. + */ + @java.lang.Override + public int getDestinationIndex() { + return destinationIndex_; + } + /** + *
+     * Zero-based index of the destination in the request.
+     * 
+ * + * optional int32 destination_index = 2; + * @param value The destinationIndex to set. + * @return This builder for chaining. + */ + public Builder setDestinationIndex(int value) { + + destinationIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Zero-based index of the destination in the request.
+     * 
+ * + * optional int32 destination_index = 2; + * @return This builder for chaining. + */ + public Builder clearDestinationIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + destinationIndex_ = 0; + onChanged(); + return this; + } + + private com.google.rpc.Status status_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + /** + *
+     * Error status code for this element.
+     * 
+ * + * .google.rpc.Status status = 3; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Error status code for this element.
+     * 
+ * + * .google.rpc.Status status = 3; + * @return The status. + */ + public com.google.rpc.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+     * Error status code for this element.
+     * 
+ * + * .google.rpc.Status status = 3; + */ + public Builder setStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Error status code for this element.
+     * 
+ * + * .google.rpc.Status status = 3; + */ + public Builder setStatus( + com.google.rpc.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Error status code for this element.
+     * 
+ * + * .google.rpc.Status status = 3; + */ + public Builder mergeStatus(com.google.rpc.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + status_ != null && + status_ != com.google.rpc.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Error status code for this element.
+     * 
+ * + * .google.rpc.Status status = 3; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000004); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Error status code for this element.
+     * 
+ * + * .google.rpc.Status status = 3; + */ + public com.google.rpc.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+     * Error status code for this element.
+     * 
+ * + * .google.rpc.Status status = 3; + */ + public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + com.google.rpc.Status.getDefaultInstance() : status_; + } + } + /** + *
+     * Error status code for this element.
+     * 
+ * + * .google.rpc.Status status = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private int condition_ = 0; + /** + *
+     * Indicates whether the route was found or not. Independent of status.
+     * 
+ * + * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * @return The enum numeric value on the wire for condition. + */ + @java.lang.Override public int getConditionValue() { + return condition_; + } + /** + *
+     * Indicates whether the route was found or not. Independent of status.
+     * 
+ * + * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * @param value The enum numeric value on the wire for condition to set. + * @return This builder for chaining. + */ + public Builder setConditionValue(int value) { + condition_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Indicates whether the route was found or not. Independent of status.
+     * 
+ * + * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * @return The condition. + */ + @java.lang.Override + public com.google.maps.routing.v2.RouteMatrixElementCondition getCondition() { + com.google.maps.routing.v2.RouteMatrixElementCondition result = com.google.maps.routing.v2.RouteMatrixElementCondition.forNumber(condition_); + return result == null ? com.google.maps.routing.v2.RouteMatrixElementCondition.UNRECOGNIZED : result; + } + /** + *
+     * Indicates whether the route was found or not. Independent of status.
+     * 
+ * + * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * @param value The condition to set. + * @return This builder for chaining. + */ + public Builder setCondition(com.google.maps.routing.v2.RouteMatrixElementCondition value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + condition_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Indicates whether the route was found or not. Independent of status.
+     * 
+ * + * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * @return This builder for chaining. + */ + public Builder clearCondition() { + bitField0_ = (bitField0_ & ~0x00000008); + condition_ = 0; + onChanged(); + return this; + } + + private int distanceMeters_ ; + /** + *
+     * The travel distance of the route, in meters.
+     * 
+ * + * int32 distance_meters = 4; + * @return The distanceMeters. + */ + @java.lang.Override + public int getDistanceMeters() { + return distanceMeters_; + } + /** + *
+     * The travel distance of the route, in meters.
+     * 
+ * + * int32 distance_meters = 4; + * @param value The distanceMeters to set. + * @return This builder for chaining. + */ + public Builder setDistanceMeters(int value) { + + distanceMeters_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The travel distance of the route, in meters.
+     * 
+ * + * int32 distance_meters = 4; + * @return This builder for chaining. + */ + public Builder clearDistanceMeters() { + bitField0_ = (bitField0_ & ~0x00000010); + distanceMeters_ = 0; + onChanged(); + return this; + } + + 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_; + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
+     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
+     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + * @return Whether the duration field is set. + */ + public boolean hasDuration() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
+     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
+     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + * @return The duration. + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
+     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
+     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + } else { + durationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
+     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
+     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
+     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
+     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + duration_ != null && + duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getDurationBuilder().mergeFrom(value); + } else { + duration_ = value; + } + } else { + durationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
+     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
+     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public Builder clearDuration() { + bitField0_ = (bitField0_ & ~0x00000020); + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
+     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
+     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getDurationFieldBuilder().getBuilder(); + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
+     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
+     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + /** + *
+     * The length of time needed to navigate the route. If you set the
+     * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
+     * to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
+     * you set the `routing_preference` to either `TRAFFIC_AWARE` or
+     * `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
+     * conditions into account.
+     * 
+ * + * .google.protobuf.Duration duration = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + duration_ = null; + } + return durationBuilder_; + } + + private com.google.protobuf.Duration staticDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> staticDurationBuilder_; + /** + *
+     * The duration of traveling through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 6; + * @return Whether the staticDuration field is set. + */ + public boolean hasStaticDuration() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + *
+     * The duration of traveling through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 6; + * @return The staticDuration. + */ + public com.google.protobuf.Duration getStaticDuration() { + if (staticDurationBuilder_ == null) { + return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } else { + return staticDurationBuilder_.getMessage(); + } + } + /** + *
+     * The duration of traveling through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 6; + */ + public Builder setStaticDuration(com.google.protobuf.Duration value) { + if (staticDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + staticDuration_ = value; + } else { + staticDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The duration of traveling through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 6; + */ + public Builder setStaticDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (staticDurationBuilder_ == null) { + staticDuration_ = builderForValue.build(); + } else { + staticDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The duration of traveling through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 6; + */ + public Builder mergeStaticDuration(com.google.protobuf.Duration value) { + if (staticDurationBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + staticDuration_ != null && + staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getStaticDurationBuilder().mergeFrom(value); + } else { + staticDuration_ = value; + } + } else { + staticDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The duration of traveling through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 6; + */ + public Builder clearStaticDuration() { + bitField0_ = (bitField0_ & ~0x00000040); + staticDuration_ = null; + if (staticDurationBuilder_ != null) { + staticDurationBuilder_.dispose(); + staticDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The duration of traveling through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 6; + */ + public com.google.protobuf.Duration.Builder getStaticDurationBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getStaticDurationFieldBuilder().getBuilder(); + } + /** + *
+     * The duration of traveling through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() { + if (staticDurationBuilder_ != null) { + return staticDurationBuilder_.getMessageOrBuilder(); + } else { + return staticDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + } + } + /** + *
+     * The duration of traveling through the route without taking traffic
+     * conditions into consideration.
+     * 
+ * + * .google.protobuf.Duration static_duration = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getStaticDurationFieldBuilder() { + if (staticDurationBuilder_ == null) { + staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getStaticDuration(), + getParentForChildren(), + isClean()); + staticDuration_ = null; + } + return staticDurationBuilder_; + } + + private com.google.maps.routing.v2.RouteTravelAdvisory travelAdvisory_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteTravelAdvisory, com.google.maps.routing.v2.RouteTravelAdvisory.Builder, com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder> travelAdvisoryBuilder_; + /** + *
+     * Additional information about the route. For example: restriction
+     * information and toll information
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + * @return Whether the travelAdvisory field is set. + */ + public boolean hasTravelAdvisory() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * Additional information about the route. For example: restriction
+     * information and toll information
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + * @return The travelAdvisory. + */ + public com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory() { + if (travelAdvisoryBuilder_ == null) { + return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } else { + return travelAdvisoryBuilder_.getMessage(); + } + } + /** + *
+     * Additional information about the route. For example: restriction
+     * information and toll information
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + */ + public Builder setTravelAdvisory(com.google.maps.routing.v2.RouteTravelAdvisory value) { + if (travelAdvisoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + travelAdvisory_ = value; + } else { + travelAdvisoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Additional information about the route. For example: restriction
+     * information and toll information
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + */ + public Builder setTravelAdvisory( + com.google.maps.routing.v2.RouteTravelAdvisory.Builder builderForValue) { + if (travelAdvisoryBuilder_ == null) { + travelAdvisory_ = builderForValue.build(); + } else { + travelAdvisoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Additional information about the route. For example: restriction
+     * information and toll information
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + */ + public Builder mergeTravelAdvisory(com.google.maps.routing.v2.RouteTravelAdvisory value) { + if (travelAdvisoryBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + travelAdvisory_ != null && + travelAdvisory_ != com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance()) { + getTravelAdvisoryBuilder().mergeFrom(value); + } else { + travelAdvisory_ = value; + } + } else { + travelAdvisoryBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * Additional information about the route. For example: restriction
+     * information and toll information
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + */ + public Builder clearTravelAdvisory() { + bitField0_ = (bitField0_ & ~0x00000080); + travelAdvisory_ = null; + if (travelAdvisoryBuilder_ != null) { + travelAdvisoryBuilder_.dispose(); + travelAdvisoryBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Additional information about the route. For example: restriction
+     * information and toll information
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + */ + public com.google.maps.routing.v2.RouteTravelAdvisory.Builder getTravelAdvisoryBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getTravelAdvisoryFieldBuilder().getBuilder(); + } + /** + *
+     * Additional information about the route. For example: restriction
+     * information and toll information
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + */ + public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() { + if (travelAdvisoryBuilder_ != null) { + return travelAdvisoryBuilder_.getMessageOrBuilder(); + } else { + return travelAdvisory_ == null ? + com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_; + } + } + /** + *
+     * Additional information about the route. For example: restriction
+     * information and toll information
+     * 
+ * + * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteTravelAdvisory, com.google.maps.routing.v2.RouteTravelAdvisory.Builder, com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder> + getTravelAdvisoryFieldBuilder() { + if (travelAdvisoryBuilder_ == null) { + travelAdvisoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteTravelAdvisory, com.google.maps.routing.v2.RouteTravelAdvisory.Builder, com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder>( + getTravelAdvisory(), + getParentForChildren(), + isClean()); + travelAdvisory_ = null; + } + return travelAdvisoryBuilder_; + } + + private com.google.maps.routing.v2.FallbackInfo fallbackInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.FallbackInfo, com.google.maps.routing.v2.FallbackInfo.Builder, com.google.maps.routing.v2.FallbackInfoOrBuilder> fallbackInfoBuilder_; + /** + *
+     * In some cases when the server is not able to compute the route with the
+     * given preferences for this particular origin/destination pair, it may
+     * fall back to using a different mode of computation. When fallback mode is
+     * used, this field contains detailed information about the fallback response.
+     * Otherwise this field is unset.
+     * 
+ * + * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + * @return Whether the fallbackInfo field is set. + */ + public boolean hasFallbackInfo() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + *
+     * In some cases when the server is not able to compute the route with the
+     * given preferences for this particular origin/destination pair, it may
+     * fall back to using a different mode of computation. When fallback mode is
+     * used, this field contains detailed information about the fallback response.
+     * Otherwise this field is unset.
+     * 
+ * + * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + * @return The fallbackInfo. + */ + public com.google.maps.routing.v2.FallbackInfo getFallbackInfo() { + if (fallbackInfoBuilder_ == null) { + return fallbackInfo_ == null ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_; + } else { + return fallbackInfoBuilder_.getMessage(); + } + } + /** + *
+     * In some cases when the server is not able to compute the route with the
+     * given preferences for this particular origin/destination pair, it may
+     * fall back to using a different mode of computation. When fallback mode is
+     * used, this field contains detailed information about the fallback response.
+     * Otherwise this field is unset.
+     * 
+ * + * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + */ + public Builder setFallbackInfo(com.google.maps.routing.v2.FallbackInfo value) { + if (fallbackInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fallbackInfo_ = value; + } else { + fallbackInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * In some cases when the server is not able to compute the route with the
+     * given preferences for this particular origin/destination pair, it may
+     * fall back to using a different mode of computation. When fallback mode is
+     * used, this field contains detailed information about the fallback response.
+     * Otherwise this field is unset.
+     * 
+ * + * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + */ + public Builder setFallbackInfo( + com.google.maps.routing.v2.FallbackInfo.Builder builderForValue) { + if (fallbackInfoBuilder_ == null) { + fallbackInfo_ = builderForValue.build(); + } else { + fallbackInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * In some cases when the server is not able to compute the route with the
+     * given preferences for this particular origin/destination pair, it may
+     * fall back to using a different mode of computation. When fallback mode is
+     * used, this field contains detailed information about the fallback response.
+     * Otherwise this field is unset.
+     * 
+ * + * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + */ + public Builder mergeFallbackInfo(com.google.maps.routing.v2.FallbackInfo value) { + if (fallbackInfoBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) && + fallbackInfo_ != null && + fallbackInfo_ != com.google.maps.routing.v2.FallbackInfo.getDefaultInstance()) { + getFallbackInfoBuilder().mergeFrom(value); + } else { + fallbackInfo_ = value; + } + } else { + fallbackInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * In some cases when the server is not able to compute the route with the
+     * given preferences for this particular origin/destination pair, it may
+     * fall back to using a different mode of computation. When fallback mode is
+     * used, this field contains detailed information about the fallback response.
+     * Otherwise this field is unset.
+     * 
+ * + * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + */ + public Builder clearFallbackInfo() { + bitField0_ = (bitField0_ & ~0x00000100); + fallbackInfo_ = null; + if (fallbackInfoBuilder_ != null) { + fallbackInfoBuilder_.dispose(); + fallbackInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * In some cases when the server is not able to compute the route with the
+     * given preferences for this particular origin/destination pair, it may
+     * fall back to using a different mode of computation. When fallback mode is
+     * used, this field contains detailed information about the fallback response.
+     * Otherwise this field is unset.
+     * 
+ * + * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + */ + public com.google.maps.routing.v2.FallbackInfo.Builder getFallbackInfoBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getFallbackInfoFieldBuilder().getBuilder(); + } + /** + *
+     * In some cases when the server is not able to compute the route with the
+     * given preferences for this particular origin/destination pair, it may
+     * fall back to using a different mode of computation. When fallback mode is
+     * used, this field contains detailed information about the fallback response.
+     * Otherwise this field is unset.
+     * 
+ * + * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + */ + public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder() { + if (fallbackInfoBuilder_ != null) { + return fallbackInfoBuilder_.getMessageOrBuilder(); + } else { + return fallbackInfo_ == null ? + com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_; + } + } + /** + *
+     * In some cases when the server is not able to compute the route with the
+     * given preferences for this particular origin/destination pair, it may
+     * fall back to using a different mode of computation. When fallback mode is
+     * used, this field contains detailed information about the fallback response.
+     * Otherwise this field is unset.
+     * 
+ * + * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.FallbackInfo, com.google.maps.routing.v2.FallbackInfo.Builder, com.google.maps.routing.v2.FallbackInfoOrBuilder> + getFallbackInfoFieldBuilder() { + if (fallbackInfoBuilder_ == null) { + fallbackInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.FallbackInfo, com.google.maps.routing.v2.FallbackInfo.Builder, com.google.maps.routing.v2.FallbackInfoOrBuilder>( + getFallbackInfo(), + getParentForChildren(), + isClean()); + fallbackInfo_ = null; + } + return fallbackInfoBuilder_; + } + + private com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localizedValues_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder> localizedValuesBuilder_; + /** + *
+     * Text representations of properties of the `RouteMatrixElement`.
+     * 
+ * + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * @return Whether the localizedValues field is set. + */ + public boolean hasLocalizedValues() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + *
+     * Text representations of properties of the `RouteMatrixElement`.
+     * 
+ * + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * @return The localizedValues. + */ + public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues getLocalizedValues() { + if (localizedValuesBuilder_ == null) { + return localizedValues_ == null ? com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance() : localizedValues_; + } else { + return localizedValuesBuilder_.getMessage(); + } + } + /** + *
+     * Text representations of properties of the `RouteMatrixElement`.
+     * 
+ * + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + */ + public Builder setLocalizedValues(com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues value) { + if (localizedValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + localizedValues_ = value; + } else { + localizedValuesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteMatrixElement`.
+     * 
+ * + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + */ + public Builder setLocalizedValues( + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder builderForValue) { + if (localizedValuesBuilder_ == null) { + localizedValues_ = builderForValue.build(); + } else { + localizedValuesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteMatrixElement`.
+     * 
+ * + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + */ + public Builder mergeLocalizedValues(com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues value) { + if (localizedValuesBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) && + localizedValues_ != null && + localizedValues_ != com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance()) { + getLocalizedValuesBuilder().mergeFrom(value); + } else { + localizedValues_ = value; + } + } else { + localizedValuesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteMatrixElement`.
+     * 
+ * + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + */ + public Builder clearLocalizedValues() { + bitField0_ = (bitField0_ & ~0x00000200); + localizedValues_ = null; + if (localizedValuesBuilder_ != null) { + localizedValuesBuilder_.dispose(); + localizedValuesBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Text representations of properties of the `RouteMatrixElement`.
+     * 
+ * + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + */ + public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder getLocalizedValuesBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getLocalizedValuesFieldBuilder().getBuilder(); + } + /** + *
+     * Text representations of properties of the `RouteMatrixElement`.
+     * 
+ * + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + */ + public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { + if (localizedValuesBuilder_ != null) { + return localizedValuesBuilder_.getMessageOrBuilder(); + } else { + return localizedValues_ == null ? + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance() : localizedValues_; + } + } + /** + *
+     * Text representations of properties of the `RouteMatrixElement`.
+     * 
+ * + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder> + getLocalizedValuesFieldBuilder() { + if (localizedValuesBuilder_ == null) { + localizedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder>( + getLocalizedValues(), + getParentForChildren(), + isClean()); + localizedValues_ = null; + } + return localizedValuesBuilder_; + } + @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.maps.routing.v2.RouteMatrixElement) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteMatrixElement) + private static final com.google.maps.routing.v2.RouteMatrixElement DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteMatrixElement(); + } + + public static com.google.maps.routing.v2.RouteMatrixElement getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementCondition.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementCondition.java similarity index 71% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementCondition.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementCondition.java index 505808f5968d..1b9d70c4950a 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementCondition.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementCondition.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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; /** - * - * *
  * The condition of the route being returned.
  * 
* * Protobuf enum {@code google.maps.routing.v2.RouteMatrixElementCondition} */ -public enum RouteMatrixElementCondition implements com.google.protobuf.ProtocolMessageEnum { +public enum RouteMatrixElementCondition + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Only used when the `status` of the element is not OK.
    * 
@@ -39,8 +21,6 @@ public enum RouteMatrixElementCondition implements com.google.protobuf.ProtocolM */ ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED(0), /** - * - * *
    * A route was found, and the corresponding information was filled out for the
    * element.
@@ -50,8 +30,6 @@ public enum RouteMatrixElementCondition implements com.google.protobuf.ProtocolM
    */
   ROUTE_EXISTS(1),
   /**
-   *
-   *
    * 
    * No route could be found. Fields containing route information, such as
    * `distance_meters` or `duration`, will not be filled out in the element.
@@ -64,8 +42,6 @@ public enum RouteMatrixElementCondition implements com.google.protobuf.ProtocolM
   ;
 
   /**
-   *
-   *
    * 
    * Only used when the `status` of the element is not OK.
    * 
@@ -74,8 +50,6 @@ public enum RouteMatrixElementCondition implements com.google.protobuf.ProtocolM */ public static final int ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED_VALUE = 0; /** - * - * *
    * A route was found, and the corresponding information was filled out for the
    * element.
@@ -85,8 +59,6 @@ public enum RouteMatrixElementCondition implements com.google.protobuf.ProtocolM
    */
   public static final int ROUTE_EXISTS_VALUE = 1;
   /**
-   *
-   *
    * 
    * No route could be found. Fields containing route information, such as
    * `distance_meters` or `duration`, will not be filled out in the element.
@@ -96,6 +68,7 @@ public enum RouteMatrixElementCondition implements com.google.protobuf.ProtocolM
    */
   public static final int ROUTE_NOT_FOUND_VALUE = 2;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -120,14 +93,10 @@ public static RouteMatrixElementCondition valueOf(int value) {
    */
   public static RouteMatrixElementCondition forNumber(int value) {
     switch (value) {
-      case 0:
-        return ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED;
-      case 1:
-        return ROUTE_EXISTS;
-      case 2:
-        return ROUTE_NOT_FOUND;
-      default:
-        return null;
+      case 0: return ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED;
+      case 1: return ROUTE_EXISTS;
+      case 2: return ROUTE_NOT_FOUND;
+      default: return null;
     }
   }
 
@@ -135,28 +104,28 @@ public static RouteMatrixElementCondition forNumber(int value) {
       internalGetValueMap() {
     return internalValueMap;
   }
-
-  private static final com.google.protobuf.Internal.EnumLiteMap
-      internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public RouteMatrixElementCondition findValueByNumber(int number) {
-              return RouteMatrixElementCondition.forNumber(number);
-            }
-          };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      RouteMatrixElementCondition> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public RouteMatrixElementCondition findValueByNumber(int number) {
+            return RouteMatrixElementCondition.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.maps.routing.v2.RoutesServiceProto.getDescriptor().getEnumTypes().get(0);
   }
 
@@ -165,7 +134,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
   public static RouteMatrixElementCondition 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;
@@ -181,3 +151,4 @@ private RouteMatrixElementCondition(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.RouteMatrixElementCondition)
 }
+
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementOrBuilder.java
similarity index 88%
rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementOrBuilder.java
rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementOrBuilder.java
index e2da0245ed38..c11b4f12d942 100644
--- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementOrBuilder.java
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementOrBuilder.java
@@ -1,105 +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/maps/routing/v2/routes_service.proto
 
 package com.google.maps.routing.v2;
 
-public interface RouteMatrixElementOrBuilder
-    extends
+public interface RouteMatrixElementOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteMatrixElement)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Zero-based index of the origin in the request.
    * 
* * optional int32 origin_index = 1; - * * @return Whether the originIndex field is set. */ boolean hasOriginIndex(); /** - * - * *
    * Zero-based index of the origin in the request.
    * 
* * optional int32 origin_index = 1; - * * @return The originIndex. */ int getOriginIndex(); /** - * - * *
    * Zero-based index of the destination in the request.
    * 
* * optional int32 destination_index = 2; - * * @return Whether the destinationIndex field is set. */ boolean hasDestinationIndex(); /** - * - * *
    * Zero-based index of the destination in the request.
    * 
* * optional int32 destination_index = 2; - * * @return The destinationIndex. */ int getDestinationIndex(); /** - * - * *
    * Error status code for this element.
    * 
* * .google.rpc.Status status = 3; - * * @return Whether the status field is set. */ boolean hasStatus(); /** - * - * *
    * Error status code for this element.
    * 
* * .google.rpc.Status status = 3; - * * @return The status. */ com.google.rpc.Status getStatus(); /** - * - * *
    * Error status code for this element.
    * 
@@ -109,46 +73,35 @@ public interface RouteMatrixElementOrBuilder com.google.rpc.StatusOrBuilder getStatusOrBuilder(); /** - * - * *
    * Indicates whether the route was found or not. Independent of status.
    * 
* * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; - * * @return The enum numeric value on the wire for condition. */ int getConditionValue(); /** - * - * *
    * Indicates whether the route was found or not. Independent of status.
    * 
* * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; - * * @return The condition. */ com.google.maps.routing.v2.RouteMatrixElementCondition getCondition(); /** - * - * *
    * The travel distance of the route, in meters.
    * 
* * int32 distance_meters = 4; - * * @return The distanceMeters. */ int getDistanceMeters(); /** - * - * *
    * The length of time needed to navigate the route. If you set the
    * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -159,13 +112,10 @@ public interface RouteMatrixElementOrBuilder
    * 
* * .google.protobuf.Duration duration = 5; - * * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
    * The length of time needed to navigate the route. If you set the
    * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -176,13 +126,10 @@ public interface RouteMatrixElementOrBuilder
    * 
* * .google.protobuf.Duration duration = 5; - * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
    * The length of time needed to navigate the route. If you set the
    * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -197,34 +144,26 @@ public interface RouteMatrixElementOrBuilder
   com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * The duration of traveling through the route without taking traffic
    * conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 6; - * * @return Whether the staticDuration field is set. */ boolean hasStaticDuration(); /** - * - * *
    * The duration of traveling through the route without taking traffic
    * conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 6; - * * @return The staticDuration. */ com.google.protobuf.Duration getStaticDuration(); /** - * - * *
    * The duration of traveling through the route without taking traffic
    * conditions into consideration.
@@ -235,34 +174,26 @@ public interface RouteMatrixElementOrBuilder
   com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Additional information about the route. For example: restriction
    * information and toll information
    * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; - * * @return Whether the travelAdvisory field is set. */ boolean hasTravelAdvisory(); /** - * - * *
    * Additional information about the route. For example: restriction
    * information and toll information
    * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; - * * @return The travelAdvisory. */ com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory(); /** - * - * *
    * Additional information about the route. For example: restriction
    * information and toll information
@@ -273,8 +204,6 @@ public interface RouteMatrixElementOrBuilder
   com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder();
 
   /**
-   *
-   *
    * 
    * In some cases when the server is not able to compute the route with the
    * given preferences for this particular origin/destination pair, it may
@@ -284,13 +213,10 @@ public interface RouteMatrixElementOrBuilder
    * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 8; - * * @return Whether the fallbackInfo field is set. */ boolean hasFallbackInfo(); /** - * - * *
    * In some cases when the server is not able to compute the route with the
    * given preferences for this particular origin/destination pair, it may
@@ -300,13 +226,10 @@ public interface RouteMatrixElementOrBuilder
    * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 8; - * * @return The fallbackInfo. */ com.google.maps.routing.v2.FallbackInfo getFallbackInfo(); /** - * - * *
    * In some cases when the server is not able to compute the route with the
    * given preferences for this particular origin/destination pair, it may
@@ -318,4 +241,31 @@ public interface RouteMatrixElementOrBuilder
    * .google.maps.routing.v2.FallbackInfo fallback_info = 8;
    */
   com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder();
+
+  /**
+   * 
+   * Text representations of properties of the `RouteMatrixElement`.
+   * 
+ * + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * @return Whether the localizedValues field is set. + */ + boolean hasLocalizedValues(); + /** + *
+   * Text representations of properties of the `RouteMatrixElement`.
+   * 
+ * + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * @return The localizedValues. + */ + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues getLocalizedValues(); + /** + *
+   * Text representations of properties of the `RouteMatrixElement`.
+   * 
+ * + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + */ + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder getLocalizedValuesOrBuilder(); } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOrigin.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOrigin.java similarity index 60% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOrigin.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOrigin.java index 90057d85bd0b..79f2c937410f 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOrigin.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOrigin.java @@ -1,77 +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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; /** - * - * *
  * A single origin for ComputeRouteMatrixRequest
  * 
* * Protobuf type {@code google.maps.routing.v2.RouteMatrixOrigin} */ -public final class RouteMatrixOrigin extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RouteMatrixOrigin extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteMatrixOrigin) RouteMatrixOriginOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RouteMatrixOrigin.newBuilder() to construct. private RouteMatrixOrigin(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RouteMatrixOrigin() {} + private RouteMatrixOrigin() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RouteMatrixOrigin(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteMatrixOrigin.class, - com.google.maps.routing.v2.RouteMatrixOrigin.Builder.class); + com.google.maps.routing.v2.RouteMatrixOrigin.class, com.google.maps.routing.v2.RouteMatrixOrigin.Builder.class); } public static final int WAYPOINT_FIELD_NUMBER = 1; private com.google.maps.routing.v2.Waypoint waypoint_; /** - * - * *
    * Required. Origin waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the waypoint field is set. */ @java.lang.Override @@ -79,15 +57,11 @@ public boolean hasWaypoint() { return waypoint_ != null; } /** - * - * *
    * Required. Origin waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The waypoint. */ @java.lang.Override @@ -95,14 +69,11 @@ public com.google.maps.routing.v2.Waypoint getWaypoint() { return waypoint_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : waypoint_; } /** - * - * *
    * Required. Origin waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder() { @@ -112,16 +83,11 @@ public com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder() { public static final int ROUTE_MODIFIERS_FIELD_NUMBER = 2; private com.google.maps.routing.v2.RouteModifiers routeModifiers_; /** - * - * *
    * Optional. Modifiers for every route that takes this as the origin
    * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the routeModifiers field is set. */ @java.lang.Override @@ -129,44 +95,30 @@ public boolean hasRouteModifiers() { return routeModifiers_ != null; } /** - * - * *
    * Optional. Modifiers for every route that takes this as the origin
    * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The routeModifiers. */ @java.lang.Override public com.google.maps.routing.v2.RouteModifiers getRouteModifiers() { - return routeModifiers_ == null - ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() - : routeModifiers_; + return routeModifiers_ == null ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; } /** - * - * *
    * Optional. Modifiers for every route that takes this as the origin
    * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBuilder() { - return routeModifiers_ == null - ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() - : routeModifiers_; + return routeModifiers_ == null ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +130,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 (waypoint_ != null) { output.writeMessage(1, getWaypoint()); } @@ -195,10 +148,12 @@ public int getSerializedSize() { size = 0; if (waypoint_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWaypoint()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWaypoint()); } if (routeModifiers_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRouteModifiers()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRouteModifiers()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -208,21 +163,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.maps.routing.v2.RouteMatrixOrigin)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteMatrixOrigin other = - (com.google.maps.routing.v2.RouteMatrixOrigin) obj; + com.google.maps.routing.v2.RouteMatrixOrigin other = (com.google.maps.routing.v2.RouteMatrixOrigin) obj; if (hasWaypoint() != other.hasWaypoint()) return false; if (hasWaypoint()) { - if (!getWaypoint().equals(other.getWaypoint())) return false; + if (!getWaypoint() + .equals(other.getWaypoint())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -248,136 +204,132 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.RouteMatrixOrigin parseFrom(java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.RouteMatrixOrigin parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteMatrixOrigin parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin 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 single origin for ComputeRouteMatrixRequest
    * 
* * Protobuf type {@code google.maps.routing.v2.RouteMatrixOrigin} */ - 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.maps.routing.v2.RouteMatrixOrigin) com.google.maps.routing.v2.RouteMatrixOriginOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteMatrixOrigin.class, - com.google.maps.routing.v2.RouteMatrixOrigin.Builder.class); + com.google.maps.routing.v2.RouteMatrixOrigin.class, com.google.maps.routing.v2.RouteMatrixOrigin.Builder.class); } // Construct using com.google.maps.routing.v2.RouteMatrixOrigin.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(); @@ -396,9 +348,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.routing.v2.RoutesServiceProto - .internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; } @java.lang.Override @@ -417,11 +369,8 @@ public com.google.maps.routing.v2.RouteMatrixOrigin build() { @java.lang.Override public com.google.maps.routing.v2.RouteMatrixOrigin buildPartial() { - com.google.maps.routing.v2.RouteMatrixOrigin result = - new com.google.maps.routing.v2.RouteMatrixOrigin(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.maps.routing.v2.RouteMatrixOrigin result = new com.google.maps.routing.v2.RouteMatrixOrigin(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -429,11 +378,14 @@ public com.google.maps.routing.v2.RouteMatrixOrigin buildPartial() { private void buildPartial0(com.google.maps.routing.v2.RouteMatrixOrigin result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.waypoint_ = waypointBuilder_ == null ? waypoint_ : waypointBuilder_.build(); + result.waypoint_ = waypointBuilder_ == null + ? waypoint_ + : waypointBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.routeModifiers_ = - routeModifiersBuilder_ == null ? routeModifiers_ : routeModifiersBuilder_.build(); + result.routeModifiers_ = routeModifiersBuilder_ == null + ? routeModifiers_ + : routeModifiersBuilder_.build(); } } @@ -441,39 +393,38 @@ private void buildPartial0(com.google.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin) { - return mergeFrom((com.google.maps.routing.v2.RouteMatrixOrigin) other); + return mergeFrom((com.google.maps.routing.v2.RouteMatrixOrigin)other); } else { super.mergeFrom(other); return this; @@ -514,25 +465,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getWaypointFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getRouteModifiersFieldBuilder().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( + getWaypointFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getRouteModifiersFieldBuilder().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) { @@ -542,63 +494,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.maps.routing.v2.Waypoint waypoint_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, - com.google.maps.routing.v2.Waypoint.Builder, - com.google.maps.routing.v2.WaypointOrBuilder> - waypointBuilder_; + com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> waypointBuilder_; /** - * - * *
      * Required. Origin waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the waypoint field is set. */ public boolean hasWaypoint() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Origin waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The waypoint. */ public com.google.maps.routing.v2.Waypoint getWaypoint() { if (waypointBuilder_ == null) { - return waypoint_ == null - ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() - : waypoint_; + return waypoint_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : waypoint_; } else { return waypointBuilder_.getMessage(); } } /** - * - * *
      * Required. Origin waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWaypoint(com.google.maps.routing.v2.Waypoint value) { if (waypointBuilder_ == null) { @@ -614,17 +546,14 @@ public Builder setWaypoint(com.google.maps.routing.v2.Waypoint value) { return this; } /** - * - * *
      * Required. Origin waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWaypoint(com.google.maps.routing.v2.Waypoint.Builder builderForValue) { + public Builder setWaypoint( + com.google.maps.routing.v2.Waypoint.Builder builderForValue) { if (waypointBuilder_ == null) { waypoint_ = builderForValue.build(); } else { @@ -635,21 +564,17 @@ public Builder setWaypoint(com.google.maps.routing.v2.Waypoint.Builder builderFo return this; } /** - * - * *
      * Required. Origin waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWaypoint(com.google.maps.routing.v2.Waypoint value) { if (waypointBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && waypoint_ != null - && waypoint_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + waypoint_ != null && + waypoint_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { getWaypointBuilder().mergeFrom(value); } else { waypoint_ = value; @@ -662,15 +587,11 @@ public Builder mergeWaypoint(com.google.maps.routing.v2.Waypoint value) { return this; } /** - * - * *
      * Required. Origin waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWaypoint() { bitField0_ = (bitField0_ & ~0x00000001); @@ -683,15 +604,11 @@ public Builder clearWaypoint() { return this; } /** - * - * *
      * Required. Origin waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.maps.routing.v2.Waypoint.Builder getWaypointBuilder() { bitField0_ |= 0x00000001; @@ -699,48 +616,36 @@ public com.google.maps.routing.v2.Waypoint.Builder getWaypointBuilder() { return getWaypointFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Origin waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder() { if (waypointBuilder_ != null) { return waypointBuilder_.getMessageOrBuilder(); } else { - return waypoint_ == null - ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() - : waypoint_; + return waypoint_ == null ? + com.google.maps.routing.v2.Waypoint.getDefaultInstance() : waypoint_; } } /** - * - * *
      * Required. Origin waypoint
      * 
* - * - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, - com.google.maps.routing.v2.Waypoint.Builder, - com.google.maps.routing.v2.WaypointOrBuilder> + com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> getWaypointFieldBuilder() { if (waypointBuilder_ == null) { - waypointBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, - com.google.maps.routing.v2.Waypoint.Builder, - com.google.maps.routing.v2.WaypointOrBuilder>( - getWaypoint(), getParentForChildren(), isClean()); + waypointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder>( + getWaypoint(), + getParentForChildren(), + isClean()); waypoint_ = null; } return waypointBuilder_; @@ -748,58 +653,39 @@ public com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder() { private com.google.maps.routing.v2.RouteModifiers routeModifiers_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteModifiers, - com.google.maps.routing.v2.RouteModifiers.Builder, - com.google.maps.routing.v2.RouteModifiersOrBuilder> - routeModifiersBuilder_; + com.google.maps.routing.v2.RouteModifiers, com.google.maps.routing.v2.RouteModifiers.Builder, com.google.maps.routing.v2.RouteModifiersOrBuilder> routeModifiersBuilder_; /** - * - * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the routeModifiers field is set. */ public boolean hasRouteModifiers() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The routeModifiers. */ public com.google.maps.routing.v2.RouteModifiers getRouteModifiers() { if (routeModifiersBuilder_ == null) { - return routeModifiers_ == null - ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() - : routeModifiers_; + return routeModifiers_ == null ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; } else { return routeModifiersBuilder_.getMessage(); } } /** - * - * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRouteModifiers(com.google.maps.routing.v2.RouteModifiers value) { if (routeModifiersBuilder_ == null) { @@ -815,15 +701,11 @@ public Builder setRouteModifiers(com.google.maps.routing.v2.RouteModifiers value return this; } /** - * - * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRouteModifiers( com.google.maps.routing.v2.RouteModifiers.Builder builderForValue) { @@ -837,21 +719,17 @@ public Builder setRouteModifiers( return this; } /** - * - * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeRouteModifiers(com.google.maps.routing.v2.RouteModifiers value) { if (routeModifiersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && routeModifiers_ != null - && routeModifiers_ != com.google.maps.routing.v2.RouteModifiers.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + routeModifiers_ != null && + routeModifiers_ != com.google.maps.routing.v2.RouteModifiers.getDefaultInstance()) { getRouteModifiersBuilder().mergeFrom(value); } else { routeModifiers_ = value; @@ -864,15 +742,11 @@ public Builder mergeRouteModifiers(com.google.maps.routing.v2.RouteModifiers val return this; } /** - * - * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearRouteModifiers() { bitField0_ = (bitField0_ & ~0x00000002); @@ -885,15 +759,11 @@ public Builder clearRouteModifiers() { return this; } /** - * - * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.maps.routing.v2.RouteModifiers.Builder getRouteModifiersBuilder() { bitField0_ |= 0x00000002; @@ -901,55 +771,43 @@ public com.google.maps.routing.v2.RouteModifiers.Builder getRouteModifiersBuilde return getRouteModifiersFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBuilder() { if (routeModifiersBuilder_ != null) { return routeModifiersBuilder_.getMessageOrBuilder(); } else { - return routeModifiers_ == null - ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() - : routeModifiers_; + return routeModifiers_ == null ? + com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; } } /** - * - * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteModifiers, - com.google.maps.routing.v2.RouteModifiers.Builder, - com.google.maps.routing.v2.RouteModifiersOrBuilder> + com.google.maps.routing.v2.RouteModifiers, com.google.maps.routing.v2.RouteModifiers.Builder, com.google.maps.routing.v2.RouteModifiersOrBuilder> getRouteModifiersFieldBuilder() { if (routeModifiersBuilder_ == null) { - routeModifiersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteModifiers, - com.google.maps.routing.v2.RouteModifiers.Builder, - com.google.maps.routing.v2.RouteModifiersOrBuilder>( - getRouteModifiers(), getParentForChildren(), isClean()); + routeModifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteModifiers, com.google.maps.routing.v2.RouteModifiers.Builder, com.google.maps.routing.v2.RouteModifiersOrBuilder>( + getRouteModifiers(), + getParentForChildren(), + isClean()); routeModifiers_ = null; } return routeModifiersBuilder_; } - @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); } @@ -959,12 +817,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteMatrixOrigin) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteMatrixOrigin) private static final com.google.maps.routing.v2.RouteMatrixOrigin DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteMatrixOrigin(); } @@ -973,27 +831,27 @@ public static com.google.maps.routing.v2.RouteMatrixOrigin getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteMatrixOrigin 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 RouteMatrixOrigin 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; @@ -1008,4 +866,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.RouteMatrixOrigin getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOriginOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOriginOrBuilder.java similarity index 54% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOriginOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOriginOrBuilder.java index 86df73fc2739..5ed1c2ed8c5d 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOriginOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOriginOrBuilder.java @@ -1,104 +1,63 @@ -/* - * 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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; -public interface RouteMatrixOriginOrBuilder - extends +public interface RouteMatrixOriginOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteMatrixOrigin) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Origin waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the waypoint field is set. */ boolean hasWaypoint(); /** - * - * *
    * Required. Origin waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The waypoint. */ com.google.maps.routing.v2.Waypoint getWaypoint(); /** - * - * *
    * Required. Origin waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder(); /** - * - * *
    * Optional. Modifiers for every route that takes this as the origin
    * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the routeModifiers field is set. */ boolean hasRouteModifiers(); /** - * - * *
    * Optional. Modifiers for every route that takes this as the origin
    * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The routeModifiers. */ com.google.maps.routing.v2.RouteModifiers getRouteModifiers(); /** - * - * *
    * Optional. Modifiers for every route that takes this as the origin
    * 
* - * - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBuilder(); } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiers.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiers.java similarity index 71% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiers.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiers.java index de1510930d99..9f9dd72cf11e 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiers.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiers.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/maps/routing/v2/route_modifiers.proto package com.google.maps.routing.v2; /** - * - * *
  * Encapsulates a set of optional conditions to satisfy when calculating the
  * routes.
@@ -28,54 +11,49 @@
  *
  * Protobuf type {@code google.maps.routing.v2.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.maps.routing.v2.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() {
     tollPasses_ = 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 RouteModifiers();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.maps.routing.v2.RouteModifiersProto
-        .internal_static_google_maps_routing_v2_RouteModifiers_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.maps.routing.v2.RouteModifiersProto.internal_static_google_maps_routing_v2_RouteModifiers_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.RouteModifiersProto
-        .internal_static_google_maps_routing_v2_RouteModifiers_fieldAccessorTable
+    return com.google.maps.routing.v2.RouteModifiersProto.internal_static_google_maps_routing_v2_RouteModifiers_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.RouteModifiers.class,
-            com.google.maps.routing.v2.RouteModifiers.Builder.class);
+            com.google.maps.routing.v2.RouteModifiers.class, com.google.maps.routing.v2.RouteModifiers.Builder.class);
   }
 
   public static final int AVOID_TOLLS_FIELD_NUMBER = 1;
   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 the `DRIVE` and
+   * When set to true, avoids toll roads where reasonable, giving preference to
+   * routes not containing toll roads. Applies only to the `DRIVE` and
    * `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * bool avoid_tolls = 1; - * * @return The avoidTolls. */ @java.lang.Override @@ -86,16 +64,13 @@ public boolean getAvoidTolls() { public static final int AVOID_HIGHWAYS_FIELD_NUMBER = 2; private boolean avoidHighways_ = false; /** - * - * *
-   * Specifies whether to avoid highways where reasonable. Preference will be
-   * given to routes not containing highways. Applies only to the `DRIVE` and
+   * When set to true, avoids highways where reasonable, giving preference to
+   * routes not containing highways. Applies only to the `DRIVE` and
    * `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * bool avoid_highways = 2; - * * @return The avoidHighways. */ @java.lang.Override @@ -106,17 +81,13 @@ public boolean getAvoidHighways() { public static final int AVOID_FERRIES_FIELD_NUMBER = 3; 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 the `DRIVE` and`TWO_WHEELER`
+   * When set to true, avoids ferries where reasonable, giving preference to
+   * routes not containing ferries. Applies only to the `DRIVE` and`TWO_WHEELER`
    * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * bool avoid_ferries = 3; - * * @return The avoidFerries. */ @java.lang.Override @@ -127,17 +98,13 @@ public boolean getAvoidFerries() { public static final int AVOID_INDOOR_FIELD_NUMBER = 4; private boolean avoidIndoor_ = false; /** - * - * *
-   * Specifies whether to avoid navigating indoors where reasonable. Preference
-   * will be given to routes not containing indoor navigation.
-   * Applies only to the `WALK`
-   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
+   * When set to true, avoids navigating indoors where reasonable, giving
+   * preference to routes not containing indoor navigation. Applies only to the
+   * `WALK` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * bool avoid_indoor = 4; - * * @return The avoidIndoor. */ @java.lang.Override @@ -148,14 +115,11 @@ public boolean getAvoidIndoor() { public static final int VEHICLE_INFO_FIELD_NUMBER = 5; private com.google.maps.routing.v2.VehicleInfo vehicleInfo_; /** - * - * *
    * Specifies the vehicle information.
    * 
* * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; - * * @return Whether the vehicleInfo field is set. */ @java.lang.Override @@ -163,25 +127,18 @@ public boolean hasVehicleInfo() { return vehicleInfo_ != null; } /** - * - * *
    * Specifies the vehicle information.
    * 
* * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; - * * @return The vehicleInfo. */ @java.lang.Override public com.google.maps.routing.v2.VehicleInfo getVehicleInfo() { - return vehicleInfo_ == null - ? com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() - : vehicleInfo_; + return vehicleInfo_ == null ? com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() : vehicleInfo_; } /** - * - * *
    * Specifies the vehicle information.
    * 
@@ -190,30 +147,22 @@ public com.google.maps.routing.v2.VehicleInfo getVehicleInfo() { */ @java.lang.Override public com.google.maps.routing.v2.VehicleInfoOrBuilder getVehicleInfoOrBuilder() { - return vehicleInfo_ == null - ? com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() - : vehicleInfo_; + return vehicleInfo_ == null ? com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() : vehicleInfo_; } public static final int TOLL_PASSES_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private java.util.List tollPasses_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.maps.routing.v2.TollPass> - tollPasses_converter_ = + java.lang.Integer, com.google.maps.routing.v2.TollPass> tollPasses_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.maps.routing.v2.TollPass>() { public com.google.maps.routing.v2.TollPass convert(java.lang.Integer from) { - com.google.maps.routing.v2.TollPass result = - com.google.maps.routing.v2.TollPass.forNumber(from); + com.google.maps.routing.v2.TollPass result = com.google.maps.routing.v2.TollPass.forNumber(from); return result == null ? com.google.maps.routing.v2.TollPass.UNRECOGNIZED : result; } }; /** - * - * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -224,7 +173,6 @@ public com.google.maps.routing.v2.TollPass convert(java.lang.Integer from) {
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @return A list containing the tollPasses. */ @java.lang.Override @@ -233,8 +181,6 @@ public java.util.List getTollPassesList() { java.lang.Integer, com.google.maps.routing.v2.TollPass>(tollPasses_, tollPasses_converter_); } /** - * - * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -245,7 +191,6 @@ public java.util.List getTollPassesList() {
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @return The count of tollPasses. */ @java.lang.Override @@ -253,8 +198,6 @@ public int getTollPassesCount() { return tollPasses_.size(); } /** - * - * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -265,7 +208,6 @@ public int getTollPassesCount() {
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @param index The index of the element to return. * @return The tollPasses at the given index. */ @@ -274,8 +216,6 @@ public com.google.maps.routing.v2.TollPass getTollPasses(int index) { return tollPasses_converter_.convert(tollPasses_.get(index)); } /** - * - * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -286,16 +226,14 @@ public com.google.maps.routing.v2.TollPass getTollPasses(int index) {
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @return A list containing the enum numeric values on the wire for tollPasses. */ @java.lang.Override - public java.util.List getTollPassesValueList() { + public java.util.List + getTollPassesValueList() { return tollPasses_; } /** - * - * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -306,7 +244,6 @@ public java.util.List getTollPassesValueList() {
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of tollPasses at the given index. */ @@ -314,11 +251,9 @@ public java.util.List getTollPassesValueList() { public int getTollPassesValue(int index) { return tollPasses_.get(index); } - private int tollPassesMemoizedSerializedSize; private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -330,7 +265,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(); if (avoidTolls_ != false) { output.writeBool(1, avoidTolls_); @@ -364,31 +300,36 @@ public int getSerializedSize() { size = 0; if (avoidTolls_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, avoidTolls_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, avoidTolls_); } if (avoidHighways_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, avoidHighways_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, avoidHighways_); } if (avoidFerries_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, avoidFerries_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, avoidFerries_); } if (avoidIndoor_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, avoidIndoor_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, avoidIndoor_); } if (vehicleInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getVehicleInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getVehicleInfo()); } { int dataSize = 0; for (int i = 0; i < tollPasses_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(tollPasses_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(tollPasses_.get(i)); } size += dataSize; - if (!getTollPassesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - tollPassesMemoizedSerializedSize = dataSize; + if (!getTollPassesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }tollPassesMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -398,21 +339,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.maps.routing.v2.RouteModifiers)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteModifiers other = - (com.google.maps.routing.v2.RouteModifiers) obj; + com.google.maps.routing.v2.RouteModifiers other = (com.google.maps.routing.v2.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 (hasVehicleInfo() != other.hasVehicleInfo()) return false; if (hasVehicleInfo()) { - if (!getVehicleInfo().equals(other.getVehicleInfo())) return false; + if (!getVehicleInfo() + .equals(other.getVehicleInfo())) return false; } if (!tollPasses_.equals(other.tollPasses_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -427,13 +372,17 @@ 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()); if (hasVehicleInfo()) { hash = (37 * hash) + VEHICLE_INFO_FIELD_NUMBER; hash = (53 * hash) + getVehicleInfo().hashCode(); @@ -447,104 +396,99 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.RouteModifiers parseFrom(java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.RouteModifiers parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.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.maps.routing.v2.RouteModifiers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.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.maps.routing.v2.RouteModifiers parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.RouteModifiers parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteModifiers parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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 the
    * routes.
@@ -552,32 +496,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.maps.routing.v2.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.maps.routing.v2.RouteModifiers)
       com.google.maps.routing.v2.RouteModifiersOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.maps.routing.v2.RouteModifiersProto
-          .internal_static_google_maps_routing_v2_RouteModifiers_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.maps.routing.v2.RouteModifiersProto.internal_static_google_maps_routing_v2_RouteModifiers_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.RouteModifiersProto
-          .internal_static_google_maps_routing_v2_RouteModifiers_fieldAccessorTable
+      return com.google.maps.routing.v2.RouteModifiersProto.internal_static_google_maps_routing_v2_RouteModifiers_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.RouteModifiers.class,
-              com.google.maps.routing.v2.RouteModifiers.Builder.class);
+              com.google.maps.routing.v2.RouteModifiers.class, com.google.maps.routing.v2.RouteModifiers.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.RouteModifiers.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();
@@ -597,9 +542,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.maps.routing.v2.RouteModifiersProto
-          .internal_static_google_maps_routing_v2_RouteModifiers_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.maps.routing.v2.RouteModifiersProto.internal_static_google_maps_routing_v2_RouteModifiers_descriptor;
     }
 
     @java.lang.Override
@@ -618,12 +563,9 @@ public com.google.maps.routing.v2.RouteModifiers build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.RouteModifiers buildPartial() {
-      com.google.maps.routing.v2.RouteModifiers result =
-          new com.google.maps.routing.v2.RouteModifiers(this);
+      com.google.maps.routing.v2.RouteModifiers result = new com.google.maps.routing.v2.RouteModifiers(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -651,8 +593,9 @@ private void buildPartial0(com.google.maps.routing.v2.RouteModifiers result) {
         result.avoidIndoor_ = avoidIndoor_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.vehicleInfo_ =
-            vehicleInfoBuilder_ == null ? vehicleInfo_ : vehicleInfoBuilder_.build();
+        result.vehicleInfo_ = vehicleInfoBuilder_ == null
+            ? vehicleInfo_
+            : vehicleInfoBuilder_.build();
       }
     }
 
@@ -660,39 +603,38 @@ private void buildPartial0(com.google.maps.routing.v2.RouteModifiers 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.maps.routing.v2.RouteModifiers) {
-        return mergeFrom((com.google.maps.routing.v2.RouteModifiers) other);
+        return mergeFrom((com.google.maps.routing.v2.RouteModifiers)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -752,62 +694,56 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                avoidTolls_ = input.readBool();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                avoidHighways_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                avoidFerries_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                avoidIndoor_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 42:
-              {
-                input.readMessage(getVehicleInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 48:
-              {
+            case 8: {
+              avoidTolls_ = input.readBool();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              avoidHighways_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              avoidFerries_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              avoidIndoor_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 42: {
+              input.readMessage(
+                  getVehicleInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 48: {
+              int tmpRaw = input.readEnum();
+              ensureTollPassesIsMutable();
+              tollPasses_.add(tmpRaw);
+              break;
+            } // case 48
+            case 50: {
+              int length = input.readRawVarint32();
+              int oldLimit = input.pushLimit(length);
+              while(input.getBytesUntilLimit() > 0) {
                 int tmpRaw = input.readEnum();
                 ensureTollPassesIsMutable();
                 tollPasses_.add(tmpRaw);
-                break;
-              } // case 48
-            case 50:
-              {
-                int length = input.readRawVarint32();
-                int oldLimit = input.pushLimit(length);
-                while (input.getBytesUntilLimit() > 0) {
-                  int tmpRaw = input.readEnum();
-                  ensureTollPassesIsMutable();
-                  tollPasses_.add(tmpRaw);
-                }
-                input.popLimit(oldLimit);
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              }
+              input.popLimit(oldLimit);
+              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) {
@@ -817,21 +753,17 @@ 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 the `DRIVE` and
+     * When set to true, avoids toll roads where reasonable, giving preference to
+     * routes not containing toll roads. Applies only to the `DRIVE` and
      * `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * bool avoid_tolls = 1; - * * @return The avoidTolls. */ @java.lang.Override @@ -839,16 +771,13 @@ 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 the `DRIVE` and
+     * When set to true, avoids toll roads where reasonable, giving preference to
+     * routes not containing toll roads. Applies only to the `DRIVE` and
      * `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * bool avoid_tolls = 1; - * * @param value The avoidTolls to set. * @return This builder for chaining. */ @@ -860,16 +789,13 @@ 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 the `DRIVE` and
+     * When set to true, avoids toll roads where reasonable, giving preference to
+     * routes not containing toll roads. Applies only to the `DRIVE` and
      * `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * bool avoid_tolls = 1; - * * @return This builder for chaining. */ public Builder clearAvoidTolls() { @@ -879,18 +805,15 @@ 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 the `DRIVE` and
+     * When set to true, avoids highways where reasonable, giving preference to
+     * routes not containing highways. Applies only to the `DRIVE` and
      * `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * bool avoid_highways = 2; - * * @return The avoidHighways. */ @java.lang.Override @@ -898,16 +821,13 @@ public boolean getAvoidHighways() { return avoidHighways_; } /** - * - * *
-     * Specifies whether to avoid highways where reasonable. Preference will be
-     * given to routes not containing highways. Applies only to the `DRIVE` and
+     * When set to true, avoids highways where reasonable, giving preference to
+     * routes not containing highways. Applies only to the `DRIVE` and
      * `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * bool avoid_highways = 2; - * * @param value The avoidHighways to set. * @return This builder for chaining. */ @@ -919,16 +839,13 @@ 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 the `DRIVE` and
+     * When set to true, avoids highways where reasonable, giving preference to
+     * routes not containing highways. Applies only to the `DRIVE` and
      * `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * bool avoid_highways = 2; - * * @return This builder for chaining. */ public Builder clearAvoidHighways() { @@ -938,19 +855,15 @@ 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 the `DRIVE` and`TWO_WHEELER`
+     * When set to true, avoids ferries where reasonable, giving preference to
+     * routes not containing ferries. Applies only to the `DRIVE` and`TWO_WHEELER`
      * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * bool avoid_ferries = 3; - * * @return The avoidFerries. */ @java.lang.Override @@ -958,17 +871,13 @@ 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 the `DRIVE` and`TWO_WHEELER`
+     * When set to true, avoids ferries where reasonable, giving preference to
+     * routes not containing ferries. Applies only to the `DRIVE` and`TWO_WHEELER`
      * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * bool avoid_ferries = 3; - * * @param value The avoidFerries to set. * @return This builder for chaining. */ @@ -980,17 +889,13 @@ 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 the `DRIVE` and`TWO_WHEELER`
+     * When set to true, avoids ferries where reasonable, giving preference to
+     * routes not containing ferries. Applies only to the `DRIVE` and`TWO_WHEELER`
      * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * bool avoid_ferries = 3; - * * @return This builder for chaining. */ public Builder clearAvoidFerries() { @@ -1000,19 +905,15 @@ public Builder clearAvoidFerries() { return this; } - private boolean avoidIndoor_; + private boolean avoidIndoor_ ; /** - * - * *
-     * Specifies whether to avoid navigating indoors where reasonable. Preference
-     * will be given to routes not containing indoor navigation.
-     * Applies only to the `WALK`
-     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
+     * When set to true, avoids navigating indoors where reasonable, giving
+     * preference to routes not containing indoor navigation. Applies only to the
+     * `WALK` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * bool avoid_indoor = 4; - * * @return The avoidIndoor. */ @java.lang.Override @@ -1020,17 +921,13 @@ public boolean getAvoidIndoor() { return avoidIndoor_; } /** - * - * *
-     * Specifies whether to avoid navigating indoors where reasonable. Preference
-     * will be given to routes not containing indoor navigation.
-     * Applies only to the `WALK`
-     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
+     * When set to true, avoids navigating indoors where reasonable, giving
+     * preference to routes not containing indoor navigation. Applies only to the
+     * `WALK` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * bool avoid_indoor = 4; - * * @param value The avoidIndoor to set. * @return This builder for chaining. */ @@ -1042,17 +939,13 @@ public Builder setAvoidIndoor(boolean value) { return this; } /** - * - * *
-     * Specifies whether to avoid navigating indoors where reasonable. Preference
-     * will be given to routes not containing indoor navigation.
-     * Applies only to the `WALK`
-     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
+     * When set to true, avoids navigating indoors where reasonable, giving
+     * preference to routes not containing indoor navigation. Applies only to the
+     * `WALK` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * bool avoid_indoor = 4; - * * @return This builder for chaining. */ public Builder clearAvoidIndoor() { @@ -1064,47 +957,34 @@ public Builder clearAvoidIndoor() { private com.google.maps.routing.v2.VehicleInfo vehicleInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.VehicleInfo, - com.google.maps.routing.v2.VehicleInfo.Builder, - com.google.maps.routing.v2.VehicleInfoOrBuilder> - vehicleInfoBuilder_; + com.google.maps.routing.v2.VehicleInfo, com.google.maps.routing.v2.VehicleInfo.Builder, com.google.maps.routing.v2.VehicleInfoOrBuilder> vehicleInfoBuilder_; /** - * - * *
      * Specifies the vehicle information.
      * 
* * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; - * * @return Whether the vehicleInfo field is set. */ public boolean hasVehicleInfo() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Specifies the vehicle information.
      * 
* * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; - * * @return The vehicleInfo. */ public com.google.maps.routing.v2.VehicleInfo getVehicleInfo() { if (vehicleInfoBuilder_ == null) { - return vehicleInfo_ == null - ? com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() - : vehicleInfo_; + return vehicleInfo_ == null ? com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() : vehicleInfo_; } else { return vehicleInfoBuilder_.getMessage(); } } /** - * - * *
      * Specifies the vehicle information.
      * 
@@ -1125,15 +1005,14 @@ public Builder setVehicleInfo(com.google.maps.routing.v2.VehicleInfo value) { return this; } /** - * - * *
      * Specifies the vehicle information.
      * 
* * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; */ - public Builder setVehicleInfo(com.google.maps.routing.v2.VehicleInfo.Builder builderForValue) { + public Builder setVehicleInfo( + com.google.maps.routing.v2.VehicleInfo.Builder builderForValue) { if (vehicleInfoBuilder_ == null) { vehicleInfo_ = builderForValue.build(); } else { @@ -1144,8 +1023,6 @@ public Builder setVehicleInfo(com.google.maps.routing.v2.VehicleInfo.Builder bui return this; } /** - * - * *
      * Specifies the vehicle information.
      * 
@@ -1154,9 +1031,9 @@ public Builder setVehicleInfo(com.google.maps.routing.v2.VehicleInfo.Builder bui */ public Builder mergeVehicleInfo(com.google.maps.routing.v2.VehicleInfo value) { if (vehicleInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && vehicleInfo_ != null - && vehicleInfo_ != com.google.maps.routing.v2.VehicleInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + vehicleInfo_ != null && + vehicleInfo_ != com.google.maps.routing.v2.VehicleInfo.getDefaultInstance()) { getVehicleInfoBuilder().mergeFrom(value); } else { vehicleInfo_ = value; @@ -1169,8 +1046,6 @@ public Builder mergeVehicleInfo(com.google.maps.routing.v2.VehicleInfo value) { return this; } /** - * - * *
      * Specifies the vehicle information.
      * 
@@ -1188,8 +1063,6 @@ public Builder clearVehicleInfo() { return this; } /** - * - * *
      * Specifies the vehicle information.
      * 
@@ -1202,8 +1075,6 @@ public com.google.maps.routing.v2.VehicleInfo.Builder getVehicleInfoBuilder() { return getVehicleInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Specifies the vehicle information.
      * 
@@ -1214,14 +1085,11 @@ public com.google.maps.routing.v2.VehicleInfoOrBuilder getVehicleInfoOrBuilder() if (vehicleInfoBuilder_ != null) { return vehicleInfoBuilder_.getMessageOrBuilder(); } else { - return vehicleInfo_ == null - ? com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() - : vehicleInfo_; + return vehicleInfo_ == null ? + com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() : vehicleInfo_; } } /** - * - * *
      * Specifies the vehicle information.
      * 
@@ -1229,24 +1097,21 @@ public com.google.maps.routing.v2.VehicleInfoOrBuilder getVehicleInfoOrBuilder() * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.VehicleInfo, - com.google.maps.routing.v2.VehicleInfo.Builder, - com.google.maps.routing.v2.VehicleInfoOrBuilder> + com.google.maps.routing.v2.VehicleInfo, com.google.maps.routing.v2.VehicleInfo.Builder, com.google.maps.routing.v2.VehicleInfoOrBuilder> getVehicleInfoFieldBuilder() { if (vehicleInfoBuilder_ == null) { - vehicleInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.VehicleInfo, - com.google.maps.routing.v2.VehicleInfo.Builder, - com.google.maps.routing.v2.VehicleInfoOrBuilder>( - getVehicleInfo(), getParentForChildren(), isClean()); + vehicleInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.VehicleInfo, com.google.maps.routing.v2.VehicleInfo.Builder, com.google.maps.routing.v2.VehicleInfoOrBuilder>( + getVehicleInfo(), + getParentForChildren(), + isClean()); vehicleInfo_ = null; } return vehicleInfoBuilder_; } - private java.util.List tollPasses_ = java.util.Collections.emptyList(); - + private java.util.List tollPasses_ = + java.util.Collections.emptyList(); private void ensureTollPassesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { tollPasses_ = new java.util.ArrayList(tollPasses_); @@ -1254,8 +1119,6 @@ private void ensureTollPassesIsMutable() { } } /** - * - * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1266,17 +1129,13 @@ private void ensureTollPassesIsMutable() {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @return A list containing the tollPasses. */ public java.util.List getTollPassesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.TollPass>( - tollPasses_, tollPasses_converter_); + java.lang.Integer, com.google.maps.routing.v2.TollPass>(tollPasses_, tollPasses_converter_); } /** - * - * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1287,15 +1146,12 @@ public java.util.List getTollPassesList() {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @return The count of tollPasses. */ public int getTollPassesCount() { return tollPasses_.size(); } /** - * - * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1306,7 +1162,6 @@ public int getTollPassesCount() {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @param index The index of the element to return. * @return The tollPasses at the given index. */ @@ -1314,8 +1169,6 @@ public com.google.maps.routing.v2.TollPass getTollPasses(int index) { return tollPasses_converter_.convert(tollPasses_.get(index)); } /** - * - * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1326,12 +1179,12 @@ public com.google.maps.routing.v2.TollPass getTollPasses(int index) {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @param index The index to set the value at. * @param value The tollPasses to set. * @return This builder for chaining. */ - public Builder setTollPasses(int index, com.google.maps.routing.v2.TollPass value) { + public Builder setTollPasses( + int index, com.google.maps.routing.v2.TollPass value) { if (value == null) { throw new NullPointerException(); } @@ -1341,8 +1194,6 @@ public Builder setTollPasses(int index, com.google.maps.routing.v2.TollPass valu return this; } /** - * - * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1353,7 +1204,6 @@ public Builder setTollPasses(int index, com.google.maps.routing.v2.TollPass valu
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @param value The tollPasses to add. * @return This builder for chaining. */ @@ -1367,8 +1217,6 @@ public Builder addTollPasses(com.google.maps.routing.v2.TollPass value) { return this; } /** - * - * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1379,7 +1227,6 @@ public Builder addTollPasses(com.google.maps.routing.v2.TollPass value) {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @param values The tollPasses to add. * @return This builder for chaining. */ @@ -1393,8 +1240,6 @@ public Builder addAllTollPasses( return this; } /** - * - * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1405,7 +1250,6 @@ public Builder addAllTollPasses(
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @return This builder for chaining. */ public Builder clearTollPasses() { @@ -1415,8 +1259,6 @@ public Builder clearTollPasses() { return this; } /** - * - * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1427,15 +1269,13 @@ public Builder clearTollPasses() {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @return A list containing the enum numeric values on the wire for tollPasses. */ - public java.util.List getTollPassesValueList() { + public java.util.List + getTollPassesValueList() { return java.util.Collections.unmodifiableList(tollPasses_); } /** - * - * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1446,7 +1286,6 @@ public java.util.List getTollPassesValueList() {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of tollPasses at the given index. */ @@ -1454,8 +1293,6 @@ public int getTollPassesValue(int index) { return tollPasses_.get(index); } /** - * - * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1466,20 +1303,18 @@ public int getTollPassesValue(int index) {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @param index The index to set the value at. * @param value The enum numeric value on the wire for tollPasses to set. * @return This builder for chaining. */ - public Builder setTollPassesValue(int index, int value) { + public Builder setTollPassesValue( + int index, int value) { ensureTollPassesIsMutable(); tollPasses_.set(index, value); onChanged(); return this; } /** - * - * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1490,7 +1325,6 @@ public Builder setTollPassesValue(int index, int value) {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @param value The enum numeric value on the wire for tollPasses to add. * @return This builder for chaining. */ @@ -1501,8 +1335,6 @@ public Builder addTollPassesValue(int value) { return this; } /** - * - * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1513,11 +1345,11 @@ public Builder addTollPassesValue(int value) {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @param values The enum numeric values on the wire for tollPasses to add. * @return This builder for chaining. */ - public Builder addAllTollPassesValue(java.lang.Iterable values) { + public Builder addAllTollPassesValue( + java.lang.Iterable values) { ensureTollPassesIsMutable(); for (int value : values) { tollPasses_.add(value); @@ -1525,9 +1357,9 @@ public Builder addAllTollPassesValue(java.lang.Iterable value 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); } @@ -1537,12 +1369,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteModifiers) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteModifiers) private static final com.google.maps.routing.v2.RouteModifiers DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteModifiers(); } @@ -1551,27 +1383,27 @@ public static com.google.maps.routing.v2.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; @@ -1586,4 +1418,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.RouteModifiers getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersOrBuilder.java similarity index 74% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersOrBuilder.java index 396f08fa980b..f54c64ec87c6 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersOrBuilder.java @@ -1,117 +1,79 @@ -/* - * 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/maps/routing/v2/route_modifiers.proto package com.google.maps.routing.v2; -public interface RouteModifiersOrBuilder - extends +public interface RouteModifiersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.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 the `DRIVE` and
+   * When set to true, avoids toll roads where reasonable, giving preference to
+   * routes not containing toll roads. Applies only to the `DRIVE` and
    * `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * bool avoid_tolls = 1; - * * @return The avoidTolls. */ boolean getAvoidTolls(); /** - * - * *
-   * Specifies whether to avoid highways where reasonable. Preference will be
-   * given to routes not containing highways. Applies only to the `DRIVE` and
+   * When set to true, avoids highways where reasonable, giving preference to
+   * routes not containing highways. Applies only to the `DRIVE` and
    * `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * bool avoid_highways = 2; - * * @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 the `DRIVE` and`TWO_WHEELER`
+   * When set to true, avoids ferries where reasonable, giving preference to
+   * routes not containing ferries. Applies only to the `DRIVE` and`TWO_WHEELER`
    * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * bool avoid_ferries = 3; - * * @return The avoidFerries. */ boolean getAvoidFerries(); /** - * - * *
-   * Specifies whether to avoid navigating indoors where reasonable. Preference
-   * will be given to routes not containing indoor navigation.
-   * Applies only to the `WALK`
-   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
+   * When set to true, avoids navigating indoors where reasonable, giving
+   * preference to routes not containing indoor navigation. Applies only to the
+   * `WALK` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * bool avoid_indoor = 4; - * * @return The avoidIndoor. */ boolean getAvoidIndoor(); /** - * - * *
    * Specifies the vehicle information.
    * 
* * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; - * * @return Whether the vehicleInfo field is set. */ boolean hasVehicleInfo(); /** - * - * *
    * Specifies the vehicle information.
    * 
* * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; - * * @return The vehicleInfo. */ com.google.maps.routing.v2.VehicleInfo getVehicleInfo(); /** - * - * *
    * Specifies the vehicle information.
    * 
@@ -121,8 +83,6 @@ public interface RouteModifiersOrBuilder com.google.maps.routing.v2.VehicleInfoOrBuilder getVehicleInfoOrBuilder(); /** - * - * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -133,13 +93,10 @@ public interface RouteModifiersOrBuilder
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @return A list containing the tollPasses. */ java.util.List getTollPassesList(); /** - * - * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -150,13 +107,10 @@ public interface RouteModifiersOrBuilder
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @return The count of tollPasses. */ int getTollPassesCount(); /** - * - * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -167,14 +121,11 @@ public interface RouteModifiersOrBuilder
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @param index The index of the element to return. * @return The tollPasses at the given index. */ com.google.maps.routing.v2.TollPass getTollPasses(int index); /** - * - * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -185,13 +136,11 @@ public interface RouteModifiersOrBuilder
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @return A list containing the enum numeric values on the wire for tollPasses. */ - java.util.List getTollPassesValueList(); + java.util.List + getTollPassesValueList(); /** - * - * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -202,7 +151,6 @@ public interface RouteModifiersOrBuilder
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of tollPasses at the given index. */ diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java new file mode 100644 index 000000000000..c6236eb6a25f --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/route_modifiers.proto + +package com.google.maps.routing.v2; + +public final class RouteModifiersProto { + private RouteModifiersProto() {} + 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_maps_routing_v2_RouteModifiers_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteModifiers_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/maps/routing/v2/route_modifiers" + + ".proto\022\026google.maps.routing.v2\032(google/m" + + "aps/routing/v2/toll_passes.proto\032)google" + + "/maps/routing/v2/vehicle_info.proto\"\334\001\n\016" + + "RouteModifiers\022\023\n\013avoid_tolls\030\001 \001(\010\022\026\n\016a" + + "void_highways\030\002 \001(\010\022\025\n\ravoid_ferries\030\003 \001" + + "(\010\022\024\n\014avoid_indoor\030\004 \001(\010\0229\n\014vehicle_info" + + "\030\005 \001(\0132#.google.maps.routing.v2.VehicleI" + + "nfo\0225\n\013toll_passes\030\006 \003(\0162 .google.maps.r" + + "outing.v2.TollPassB\310\001\n\032com.google.maps.r" + + "outing.v2B\023RouteModifiersProtoP\001Z:cloud." + + "google.com/go/maps/routing/apiv2/routing" + + "pb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Ro" + + "uting.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Goog" + + "le::Maps::Routing::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.maps.routing.v2.TollPassesProto.getDescriptor(), + com.google.maps.routing.v2.VehicleInfoProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_RouteModifiers_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_RouteModifiers_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteModifiers_descriptor, + new java.lang.String[] { "AvoidTolls", "AvoidHighways", "AvoidFerries", "AvoidIndoor", "VehicleInfo", "TollPasses", }); + com.google.maps.routing.v2.TollPassesProto.getDescriptor(); + com.google.maps.routing.v2.VehicleInfoProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java similarity index 66% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java index e13dd5ea23a2..fd420b4e5663 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java @@ -1,193 +1,151 @@ -/* - * 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/maps/routing/v2/route.proto package com.google.maps.routing.v2; -public interface RouteOrBuilder - extends +public interface RouteOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.Route) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Labels for the `Route` that are useful to identify specific properties
    * of the route to compare against others.
    * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * * @return A list containing the routeLabels. */ java.util.List getRouteLabelsList(); /** - * - * *
    * Labels for the `Route` that are useful to identify specific properties
    * of the route to compare against others.
    * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * * @return The count of routeLabels. */ int getRouteLabelsCount(); /** - * - * *
    * Labels for the `Route` that are useful to identify specific properties
    * of the route to compare against others.
    * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * * @param index The index of the element to return. * @return The routeLabels at the given index. */ com.google.maps.routing.v2.RouteLabel getRouteLabels(int index); /** - * - * *
    * Labels for the `Route` that are useful to identify specific properties
    * of the route to compare against others.
    * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * * @return A list containing the enum numeric values on the wire for routeLabels. */ - java.util.List getRouteLabelsValueList(); + java.util.List + getRouteLabelsValueList(); /** - * - * *
    * Labels for the `Route` that are useful to identify specific properties
    * of the route to compare against others.
    * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; - * * @param index The index of the value to return. * @return The enum numeric value on the wire of routeLabels at the given index. */ int getRouteLabelsValue(int index); /** - * - * *
-   * A collection of legs (path segments between waypoints) that make-up the
+   * A collection of legs (path segments between waypoints) that make up the
    * route. Each leg corresponds to the trip between two non-`via`
    * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
    * intermediate waypoints has only one leg. A route that includes one
    * non-`via` intermediate waypoint has two legs. A route that includes one
    * `via` intermediate waypoint has one leg. The order of the legs matches the
-   * order of Waypoints from `origin` to `intermediates` to `destination`.
+   * order of waypoints from `origin` to `intermediates` to `destination`.
    * 
* * repeated .google.maps.routing.v2.RouteLeg legs = 1; */ - java.util.List getLegsList(); + java.util.List + getLegsList(); /** - * - * *
-   * A collection of legs (path segments between waypoints) that make-up the
+   * A collection of legs (path segments between waypoints) that make up the
    * route. Each leg corresponds to the trip between two non-`via`
    * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
    * intermediate waypoints has only one leg. A route that includes one
    * non-`via` intermediate waypoint has two legs. A route that includes one
    * `via` intermediate waypoint has one leg. The order of the legs matches the
-   * order of Waypoints from `origin` to `intermediates` to `destination`.
+   * order of waypoints from `origin` to `intermediates` to `destination`.
    * 
* * repeated .google.maps.routing.v2.RouteLeg legs = 1; */ com.google.maps.routing.v2.RouteLeg getLegs(int index); /** - * - * *
-   * A collection of legs (path segments between waypoints) that make-up the
+   * A collection of legs (path segments between waypoints) that make up the
    * route. Each leg corresponds to the trip between two non-`via`
    * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
    * intermediate waypoints has only one leg. A route that includes one
    * non-`via` intermediate waypoint has two legs. A route that includes one
    * `via` intermediate waypoint has one leg. The order of the legs matches the
-   * order of Waypoints from `origin` to `intermediates` to `destination`.
+   * order of waypoints from `origin` to `intermediates` to `destination`.
    * 
* * repeated .google.maps.routing.v2.RouteLeg legs = 1; */ int getLegsCount(); /** - * - * *
-   * A collection of legs (path segments between waypoints) that make-up the
+   * A collection of legs (path segments between waypoints) that make up the
    * route. Each leg corresponds to the trip between two non-`via`
    * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
    * intermediate waypoints has only one leg. A route that includes one
    * non-`via` intermediate waypoint has two legs. A route that includes one
    * `via` intermediate waypoint has one leg. The order of the legs matches the
-   * order of Waypoints from `origin` to `intermediates` to `destination`.
+   * order of waypoints from `origin` to `intermediates` to `destination`.
    * 
* * repeated .google.maps.routing.v2.RouteLeg legs = 1; */ - java.util.List getLegsOrBuilderList(); + java.util.List + getLegsOrBuilderList(); /** - * - * *
-   * A collection of legs (path segments between waypoints) that make-up the
+   * A collection of legs (path segments between waypoints) that make up the
    * route. Each leg corresponds to the trip between two non-`via`
    * [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
    * intermediate waypoints has only one leg. A route that includes one
    * non-`via` intermediate waypoint has two legs. A route that includes one
    * `via` intermediate waypoint has one leg. The order of the legs matches the
-   * order of Waypoints from `origin` to `intermediates` to `destination`.
+   * order of waypoints from `origin` to `intermediates` to `destination`.
    * 
* * repeated .google.maps.routing.v2.RouteLeg legs = 1; */ - com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(int index); + com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder( + int index); /** - * - * *
    * The travel distance of the route, in meters.
    * 
* * int32 distance_meters = 2; - * * @return The distanceMeters. */ int getDistanceMeters(); /** - * - * *
    * The length of time needed to navigate the route. If you set the
    * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -197,13 +155,10 @@ public interface RouteOrBuilder
    * 
* * .google.protobuf.Duration duration = 3; - * * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
    * The length of time needed to navigate the route. If you set the
    * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -213,13 +168,10 @@ public interface RouteOrBuilder
    * 
* * .google.protobuf.Duration duration = 3; - * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
    * The length of time needed to navigate the route. If you set the
    * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -233,36 +185,28 @@ public interface RouteOrBuilder
   com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
 
   /**
-   *
-   *
    * 
-   * The duration of traveling through the route without taking traffic
+   * The duration of travel through the route without taking traffic
    * conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 4; - * * @return Whether the staticDuration field is set. */ boolean hasStaticDuration(); /** - * - * *
-   * The duration of traveling through the route without taking traffic
+   * The duration of travel through the route without taking traffic
    * conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 4; - * * @return The staticDuration. */ com.google.protobuf.Duration getStaticDuration(); /** - * - * *
-   * The duration of traveling through the route without taking traffic
+   * The duration of travel through the route without taking traffic
    * conditions into consideration.
    * 
* @@ -271,36 +215,28 @@ public interface RouteOrBuilder com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder(); /** - * - * *
-   * The overall route polyline. This polyline will be the combined polyline of
+   * The overall route polyline. This polyline is the combined polyline of
    * all `legs`.
    * 
* * .google.maps.routing.v2.Polyline polyline = 5; - * * @return Whether the polyline field is set. */ boolean hasPolyline(); /** - * - * *
-   * The overall route polyline. This polyline will be the combined polyline of
+   * The overall route polyline. This polyline is the combined polyline of
    * all `legs`.
    * 
* * .google.maps.routing.v2.Polyline polyline = 5; - * * @return The polyline. */ com.google.maps.routing.v2.Polyline getPolyline(); /** - * - * *
-   * The overall route polyline. This polyline will be the combined polyline of
+   * The overall route polyline. This polyline is the combined polyline of
    * all `legs`.
    * 
* @@ -309,108 +245,85 @@ public interface RouteOrBuilder com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder(); /** - * - * *
    * A description of the route.
    * 
* * string description = 6; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A description of the route.
    * 
* * string description = 6; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * An array of warnings to show when displaying the route.
    * 
* * repeated string warnings = 7; - * * @return A list containing the warnings. */ - java.util.List getWarningsList(); + java.util.List + getWarningsList(); /** - * - * *
    * An array of warnings to show when displaying the route.
    * 
* * repeated string warnings = 7; - * * @return The count of warnings. */ int getWarningsCount(); /** - * - * *
    * An array of warnings to show when displaying the route.
    * 
* * repeated string warnings = 7; - * * @param index The index of the element to return. * @return The warnings at the given index. */ java.lang.String getWarnings(int index); /** - * - * *
    * An array of warnings to show when displaying the route.
    * 
* * repeated string warnings = 7; - * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - com.google.protobuf.ByteString getWarningsBytes(int index); + com.google.protobuf.ByteString + getWarningsBytes(int index); /** - * - * *
    * The viewport bounding box of the polyline.
    * 
* * .google.geo.type.Viewport viewport = 8; - * * @return Whether the viewport field is set. */ boolean hasViewport(); /** - * - * *
    * The viewport bounding box of the polyline.
    * 
* * .google.geo.type.Viewport viewport = 8; - * * @return The viewport. */ com.google.geo.type.Viewport getViewport(); /** - * - * *
    * The viewport bounding box of the polyline.
    * 
@@ -420,32 +333,24 @@ public interface RouteOrBuilder com.google.geo.type.ViewportOrBuilder getViewportOrBuilder(); /** - * - * *
    * Additional information about the route.
    * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; - * * @return Whether the travelAdvisory field is set. */ boolean hasTravelAdvisory(); /** - * - * *
    * Additional information about the route.
    * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; - * * @return The travelAdvisory. */ com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory(); /** - * - * *
    * Additional information about the route.
    * 
@@ -455,43 +360,118 @@ public interface RouteOrBuilder com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder(); /** + *
+   * If you set
+   * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
+   * to true, this field contains the optimized ordering of intermediate
+   * waypoints. Otherwise, this field is empty.
+   * For example, if you give an input of Origin: LA; Intermediate waypoints:
+   * Dallas, Bangor, Phoenix; Destination: New York; and the optimized
+   * intermediate waypoint order is Phoenix, Dallas, Bangor, then this field
+   * contains the values [2, 0, 1]. The index starts with 0 for the first
+   * intermediate waypoint provided in the input.
+   * 
+ * + * repeated int32 optimized_intermediate_waypoint_index = 10; + * @return A list containing the optimizedIntermediateWaypointIndex. + */ + java.util.List getOptimizedIntermediateWaypointIndexList(); + /** + *
+   * If you set
+   * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
+   * to true, this field contains the optimized ordering of intermediate
+   * waypoints. Otherwise, this field is empty.
+   * For example, if you give an input of Origin: LA; Intermediate waypoints:
+   * Dallas, Bangor, Phoenix; Destination: New York; and the optimized
+   * intermediate waypoint order is Phoenix, Dallas, Bangor, then this field
+   * contains the values [2, 0, 1]. The index starts with 0 for the first
+   * intermediate waypoint provided in the input.
+   * 
+ * + * repeated int32 optimized_intermediate_waypoint_index = 10; + * @return The count of optimizedIntermediateWaypointIndex. + */ + int getOptimizedIntermediateWaypointIndexCount(); + /** + *
+   * If you set
+   * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
+   * to true, this field contains the optimized ordering of intermediate
+   * waypoints. Otherwise, this field is empty.
+   * For example, if you give an input of Origin: LA; Intermediate waypoints:
+   * Dallas, Bangor, Phoenix; Destination: New York; and the optimized
+   * intermediate waypoint order is Phoenix, Dallas, Bangor, then this field
+   * contains the values [2, 0, 1]. The index starts with 0 for the first
+   * intermediate waypoint provided in the input.
+   * 
+ * + * repeated int32 optimized_intermediate_waypoint_index = 10; + * @param index The index of the element to return. + * @return The optimizedIntermediateWaypointIndex at the given index. + */ + int getOptimizedIntermediateWaypointIndex(int index); + + /** + *
+   * Text representations of properties of the `Route`.
+   * 
+ * + * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + * @return Whether the localizedValues field is set. + */ + boolean hasLocalizedValues(); + /** + *
+   * Text representations of properties of the `Route`.
+   * 
* + * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + * @return The localizedValues. + */ + com.google.maps.routing.v2.Route.RouteLocalizedValues getLocalizedValues(); + /** + *
+   * Text representations of properties of the `Route`.
+   * 
* + * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + */ + com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder getLocalizedValuesOrBuilder(); + + /** *
-   * Web-safe base64 encoded route token that can be passed to NavigationSDK,
-   * which allows the Navigation SDK to reconstruct the route during navigation,
-   * and in the event of rerouting honor the original intention when Routes
-   * ComputeRoutes is called. Customers should treat this token as an
-   * opaque blob.
+   * A web-safe, base64-encoded route token that can be passed to the Navigation
+   * SDK, that allows the Navigation SDK to reconstruct the route during
+   * navigation, and, in the event of rerouting, honor the original intention
+   * when you created the route by calling ComputeRoutes. Customers should treat
+   * this token as an opaque blob. It is not meant for reading or mutating.
    * NOTE: `Route.route_token` is only available for requests that have set
    * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
-   * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for
-   * requests that have Via waypoints.
+   * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
+   * that have Via waypoints.
    * 
* * string route_token = 12; - * * @return The routeToken. */ java.lang.String getRouteToken(); /** - * - * *
-   * Web-safe base64 encoded route token that can be passed to NavigationSDK,
-   * which allows the Navigation SDK to reconstruct the route during navigation,
-   * and in the event of rerouting honor the original intention when Routes
-   * ComputeRoutes is called. Customers should treat this token as an
-   * opaque blob.
+   * A web-safe, base64-encoded route token that can be passed to the Navigation
+   * SDK, that allows the Navigation SDK to reconstruct the route during
+   * navigation, and, in the event of rerouting, honor the original intention
+   * when you created the route by calling ComputeRoutes. Customers should treat
+   * this token as an opaque blob. It is not meant for reading or mutating.
    * NOTE: `Route.route_token` is only available for requests that have set
    * `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or
-   * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is also not supported for
-   * requests that have Via waypoints.
+   * `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests
+   * that have Via waypoints.
    * 
* * string route_token = 12; - * * @return The bytes for routeToken. */ - com.google.protobuf.ByteString getRouteTokenBytes(); + com.google.protobuf.ByteString + getRouteTokenBytes(); } diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java new file mode 100644 index 000000000000..96e1d846669d --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java @@ -0,0 +1,339 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/route.proto + +package com.google.maps.routing.v2; + +public final class RouteProto { + private RouteProto() {} + 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_maps_routing_v2_Route_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_Route_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLeg_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLegStep_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLegStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_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/maps/routing/v2/route.proto\022\026go" + + "ogle.maps.routing.v2\032\036google/geo/type/vi" + + "ewport.proto\032+google/maps/routing/v2/loc" + + "alized_time.proto\032%google/maps/routing/v" + + "2/location.proto\0323google/maps/routing/v2" + + "/navigation_instruction.proto\032%google/ma" + + "ps/routing/v2/polyline.proto\032(google/map" + + "s/routing/v2/route_label.proto\032.google/m" + + "aps/routing/v2/route_travel_mode.proto\0323" + + "google/maps/routing/v2/speed_reading_int" + + "erval.proto\032&google/maps/routing/v2/toll" + + "_info.proto\032$google/maps/routing/v2/tran" + + "sit.proto\032\036google/protobuf/duration.prot" + + "o\032\037google/protobuf/timestamp.proto\032 goog" + + "le/type/localized_text.proto\032\027google/typ" + + "e/money.proto\"\247\006\n\005Route\0228\n\014route_labels\030" + + "\r \003(\0162\".google.maps.routing.v2.RouteLabe" + + "l\022.\n\004legs\030\001 \003(\0132 .google.maps.routing.v2" + + ".RouteLeg\022\027\n\017distance_meters\030\002 \001(\005\022+\n\010du" + + "ration\030\003 \001(\0132\031.google.protobuf.Duration\022" + + "2\n\017static_duration\030\004 \001(\0132\031.google.protob" + + "uf.Duration\0222\n\010polyline\030\005 \001(\0132 .google.m" + + "aps.routing.v2.Polyline\022\023\n\013description\030\006" + + " \001(\t\022\020\n\010warnings\030\007 \003(\t\022+\n\010viewport\030\010 \001(\013" + + "2\031.google.geo.type.Viewport\022D\n\017travel_ad" + + "visory\030\t \001(\0132+.google.maps.routing.v2.Ro" + + "uteTravelAdvisory\022-\n%optimized_intermedi" + + "ate_waypoint_index\030\n \003(\005\022L\n\020localized_va" + + "lues\030\013 \001(\01322.google.maps.routing.v2.Rout" + + "e.RouteLocalizedValues\022\023\n\013route_token\030\014 " + + "\001(\t\032\331\001\n\024RouteLocalizedValues\022,\n\010distance" + + "\030\001 \001(\0132\032.google.type.LocalizedText\022,\n\010du" + + "ration\030\002 \001(\0132\032.google.type.LocalizedText" + + "\0223\n\017static_duration\030\003 \001(\0132\032.google.type." + + "LocalizedText\0220\n\014transit_fare\030\004 \001(\0132\032.go" + + "ogle.type.LocalizedText\"\227\002\n\023RouteTravelA" + + "dvisory\0223\n\ttoll_info\030\002 \001(\0132 .google.maps" + + ".routing.v2.TollInfo\022M\n\027speed_reading_in" + + "tervals\030\003 \003(\0132,.google.maps.routing.v2.S" + + "peedReadingInterval\022$\n\034fuel_consumption_" + + "microliters\030\005 \001(\003\022,\n$route_restrictions_" + + "partially_ignored\030\006 \001(\010\022(\n\014transit_fare\030" + + "\007 \001(\0132\022.google.type.Money\"\234\001\n\026RouteLegTr" + + "avelAdvisory\0223\n\ttoll_info\030\001 \001(\0132 .google" + + ".maps.routing.v2.TollInfo\022M\n\027speed_readi" + + "ng_intervals\030\002 \003(\0132,.google.maps.routing" + + ".v2.SpeedReadingInterval\"k\n\032RouteLegStep" + + "TravelAdvisory\022M\n\027speed_reading_interval" + + "s\030\001 \003(\0132,.google.maps.routing.v2.SpeedRe" + + "adingInterval\"\352\010\n\010RouteLeg\022\027\n\017distance_m" + + "eters\030\001 \001(\005\022+\n\010duration\030\002 \001(\0132\031.google.p" + + "rotobuf.Duration\0222\n\017static_duration\030\003 \001(" + + "\0132\031.google.protobuf.Duration\0222\n\010polyline" + + "\030\004 \001(\0132 .google.maps.routing.v2.Polyline" + + "\0228\n\016start_location\030\005 \001(\0132 .google.maps.r" + + "outing.v2.Location\0226\n\014end_location\030\006 \001(\013" + + "2 .google.maps.routing.v2.Location\0223\n\005st" + + "eps\030\007 \003(\0132$.google.maps.routing.v2.Route" + + "LegStep\022G\n\017travel_advisory\030\010 \001(\0132..googl" + + "e.maps.routing.v2.RouteLegTravelAdvisory" + + "\022R\n\020localized_values\030\t \001(\01328.google.maps" + + ".routing.v2.RouteLeg.RouteLegLocalizedVa" + + "lues\022F\n\016steps_overview\030\n \001(\0132..google.ma" + + "ps.routing.v2.RouteLeg.StepsOverview\032\252\001\n" + + "\027RouteLegLocalizedValues\022,\n\010distance\030\001 \001" + + "(\0132\032.google.type.LocalizedText\022,\n\010durati" + + "on\030\002 \001(\0132\032.google.type.LocalizedText\0223\n\017" + + "static_duration\030\003 \001(\0132\032.google.type.Loca" + + "lizedText\032\366\002\n\rStepsOverview\022^\n\024multi_mod" + + "al_segments\030\001 \003(\0132@.google.maps.routing." + + "v2.RouteLeg.StepsOverview.MultiModalSegm" + + "ent\032\204\002\n\021MultiModalSegment\022\035\n\020step_start_" + + "index\030\001 \001(\005H\000\210\001\001\022\033\n\016step_end_index\030\002 \001(\005" + + "H\001\210\001\001\022M\n\026navigation_instruction\030\003 \001(\0132-." + + "google.maps.routing.v2.NavigationInstruc" + + "tion\022<\n\013travel_mode\030\004 \001(\0162\'.google.maps." + + "routing.v2.RouteTravelModeB\023\n\021_step_star" + + "t_indexB\021\n\017_step_end_index\"\207\006\n\014RouteLegS" + + "tep\022\027\n\017distance_meters\030\001 \001(\005\0222\n\017static_d" + + "uration\030\002 \001(\0132\031.google.protobuf.Duration" + + "\0222\n\010polyline\030\003 \001(\0132 .google.maps.routing" + + ".v2.Polyline\0228\n\016start_location\030\004 \001(\0132 .g" + + "oogle.maps.routing.v2.Location\0226\n\014end_lo" + + "cation\030\005 \001(\0132 .google.maps.routing.v2.Lo" + + "cation\022M\n\026navigation_instruction\030\006 \001(\0132-" + + ".google.maps.routing.v2.NavigationInstru" + + "ction\022K\n\017travel_advisory\030\007 \001(\01322.google." + + "maps.routing.v2.RouteLegStepTravelAdviso" + + "ry\022Z\n\020localized_values\030\010 \001(\0132@.google.ma" + + "ps.routing.v2.RouteLegStep.RouteLegStepL" + + "ocalizedValues\022K\n\017transit_details\030\t \001(\0132" + + "2.google.maps.routing.v2.RouteLegStepTra" + + "nsitDetails\022<\n\013travel_mode\030\n \001(\0162\'.googl" + + "e.maps.routing.v2.RouteTravelMode\032\200\001\n\033Ro" + + "uteLegStepLocalizedValues\022,\n\010distance\030\001 " + + "\001(\0132\032.google.type.LocalizedText\0223\n\017stati" + + "c_duration\030\003 \001(\0132\032.google.type.Localized" + + "Text\"\236\006\n\032RouteLegStepTransitDetails\022[\n\014s" + + "top_details\030\001 \001(\0132E.google.maps.routing." + + "v2.RouteLegStepTransitDetails.TransitSto" + + "pDetails\022j\n\020localized_values\030\002 \001(\0132P.goo" + + "gle.maps.routing.v2.RouteLegStepTransitD" + + "etails.TransitDetailsLocalizedValues\022\020\n\010" + + "headsign\030\003 \001(\t\022*\n\007headway\030\004 \001(\0132\031.google" + + ".protobuf.Duration\0229\n\014transit_line\030\005 \001(\013" + + "2#.google.maps.routing.v2.TransitLine\022\022\n" + + "\nstop_count\030\006 \001(\005\022\027\n\017trip_short_text\030\007 \001" + + "(\t\032\362\001\n\022TransitStopDetails\0229\n\014arrival_sto" + + "p\030\001 \001(\0132#.google.maps.routing.v2.Transit" + + "Stop\0220\n\014arrival_time\030\002 \001(\0132\032.google.prot" + + "obuf.Timestamp\022;\n\016departure_stop\030\003 \001(\0132#" + + ".google.maps.routing.v2.TransitStop\0222\n\016d" + + "eparture_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestamp\032\233\001\n\035TransitDetailsLocalizedValue" + + "s\022;\n\014arrival_time\030\001 \001(\0132%.google.maps.ro" + + "uting.v2.LocalizedTime\022=\n\016departure_time" + + "\030\002 \001(\0132%.google.maps.routing.v2.Localize" + + "dTimeB\277\001\n\032com.google.maps.routing.v2B\nRo" + + "uteProtoP\001Z:cloud.google.com/go/maps/rou" + + "ting/apiv2/routingpb;routingpb\370\001\001\242\002\005GMRV" + + "2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Maps" + + "\\Routing\\V2\352\002\031Google::Maps::Routing::V2b" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.geo.type.ViewportProto.getDescriptor(), + com.google.maps.routing.v2.LocalizedTimeProto.getDescriptor(), + com.google.maps.routing.v2.LocationProto.getDescriptor(), + com.google.maps.routing.v2.NavigationInstructionProto.getDescriptor(), + com.google.maps.routing.v2.PolylineProto.getDescriptor(), + com.google.maps.routing.v2.RouteLabelProto.getDescriptor(), + com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(), + com.google.maps.routing.v2.SpeedReadingIntervalProto.getDescriptor(), + com.google.maps.routing.v2.TollInfoProto.getDescriptor(), + com.google.maps.routing.v2.TransitProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.LocalizedTextProto.getDescriptor(), + com.google.type.MoneyProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_Route_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_Route_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_Route_descriptor, + new java.lang.String[] { "RouteLabels", "Legs", "DistanceMeters", "Duration", "StaticDuration", "Polyline", "Description", "Warnings", "Viewport", "TravelAdvisory", "OptimizedIntermediateWaypointIndex", "LocalizedValues", "RouteToken", }); + internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor = + internal_static_google_maps_routing_v2_Route_descriptor.getNestedTypes().get(0); + internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor, + new java.lang.String[] { "Distance", "Duration", "StaticDuration", "TransitFare", }); + internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor, + new java.lang.String[] { "TollInfo", "SpeedReadingIntervals", "FuelConsumptionMicroliters", "RouteRestrictionsPartiallyIgnored", "TransitFare", }); + internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor, + new java.lang.String[] { "TollInfo", "SpeedReadingIntervals", }); + internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor, + new java.lang.String[] { "SpeedReadingIntervals", }); + internal_static_google_maps_routing_v2_RouteLeg_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLeg_descriptor, + new java.lang.String[] { "DistanceMeters", "Duration", "StaticDuration", "Polyline", "StartLocation", "EndLocation", "Steps", "TravelAdvisory", "LocalizedValues", "StepsOverview", }); + internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor = + internal_static_google_maps_routing_v2_RouteLeg_descriptor.getNestedTypes().get(0); + internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor, + new java.lang.String[] { "Distance", "Duration", "StaticDuration", }); + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor = + internal_static_google_maps_routing_v2_RouteLeg_descriptor.getNestedTypes().get(1); + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor, + new java.lang.String[] { "MultiModalSegments", }); + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor = + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor.getNestedTypes().get(0); + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor, + new java.lang.String[] { "StepStartIndex", "StepEndIndex", "NavigationInstruction", "TravelMode", "StepStartIndex", "StepEndIndex", }); + internal_static_google_maps_routing_v2_RouteLegStep_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_maps_routing_v2_RouteLegStep_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLegStep_descriptor, + new java.lang.String[] { "DistanceMeters", "StaticDuration", "Polyline", "StartLocation", "EndLocation", "NavigationInstruction", "TravelAdvisory", "LocalizedValues", "TransitDetails", "TravelMode", }); + internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor = + internal_static_google_maps_routing_v2_RouteLegStep_descriptor.getNestedTypes().get(0); + internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor, + new java.lang.String[] { "Distance", "StaticDuration", }); + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor, + new java.lang.String[] { "StopDetails", "LocalizedValues", "Headsign", "Headway", "TransitLine", "StopCount", "TripShortText", }); + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor = + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor.getNestedTypes().get(0); + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor, + new java.lang.String[] { "ArrivalStop", "ArrivalTime", "DepartureStop", "DepartureTime", }); + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor = + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor.getNestedTypes().get(1); + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor, + new java.lang.String[] { "ArrivalTime", "DepartureTime", }); + com.google.geo.type.ViewportProto.getDescriptor(); + com.google.maps.routing.v2.LocalizedTimeProto.getDescriptor(); + com.google.maps.routing.v2.LocationProto.getDescriptor(); + com.google.maps.routing.v2.NavigationInstructionProto.getDescriptor(); + com.google.maps.routing.v2.PolylineProto.getDescriptor(); + com.google.maps.routing.v2.RouteLabelProto.getDescriptor(); + com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(); + com.google.maps.routing.v2.SpeedReadingIntervalProto.getDescriptor(); + com.google.maps.routing.v2.TollInfoProto.getDescriptor(); + com.google.maps.routing.v2.TransitProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.LocalizedTextProto.getDescriptor(); + com.google.type.MoneyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisory.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisory.java similarity index 59% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisory.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisory.java index ac4d27bfceb6..c225e49681f2 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisory.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisory.java @@ -1,83 +1,61 @@ -/* - * 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/maps/routing/v2/route.proto package com.google.maps.routing.v2; /** - * - * *
- * Encapsulates the additional information that the user should be informed
- * about, such as possible traffic zone restriction etc.
+ * Contains the additional information that the user should be informed
+ * about, such as possible traffic zone restrictions.
  * 
* * Protobuf type {@code google.maps.routing.v2.RouteTravelAdvisory} */ -public final class RouteTravelAdvisory extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RouteTravelAdvisory extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteTravelAdvisory) RouteTravelAdvisoryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RouteTravelAdvisory.newBuilder() to construct. private RouteTravelAdvisory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RouteTravelAdvisory() { speedReadingIntervals_ = 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 RouteTravelAdvisory(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteTravelAdvisory.class, - com.google.maps.routing.v2.RouteTravelAdvisory.Builder.class); + com.google.maps.routing.v2.RouteTravelAdvisory.class, com.google.maps.routing.v2.RouteTravelAdvisory.Builder.class); } public static final int TOLL_INFO_FIELD_NUMBER = 2; private com.google.maps.routing.v2.TollInfo tollInfo_; /** - * - * *
-   * Encapsulates information about tolls on the Route.
-   * This field is only populated if we expect there are tolls on the Route.
-   * If this field is set but the estimated_price subfield is not populated,
-   * we expect that road contains tolls but we do not know an estimated price.
-   * If this field is not set, then we expect there is no toll on the Route.
+   * Contains information about tolls on the route. This field is only populated
+   * if tolls are expected on the route. If this field is set, but the
+   * estimatedPrice subfield is not populated, then the route contains tolls,
+   * but the estimated price is unknown. If this field is not set, then there
+   * are no tolls expected on the route.
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; - * * @return Whether the tollInfo field is set. */ @java.lang.Override @@ -85,18 +63,15 @@ public boolean hasTollInfo() { return tollInfo_ != null; } /** - * - * *
-   * Encapsulates information about tolls on the Route.
-   * This field is only populated if we expect there are tolls on the Route.
-   * If this field is set but the estimated_price subfield is not populated,
-   * we expect that road contains tolls but we do not know an estimated price.
-   * If this field is not set, then we expect there is no toll on the Route.
+   * Contains information about tolls on the route. This field is only populated
+   * if tolls are expected on the route. If this field is set, but the
+   * estimatedPrice subfield is not populated, then the route contains tolls,
+   * but the estimated price is unknown. If this field is not set, then there
+   * are no tolls expected on the route.
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; - * * @return The tollInfo. */ @java.lang.Override @@ -104,14 +79,12 @@ public com.google.maps.routing.v2.TollInfo getTollInfo() { return tollInfo_ == null ? com.google.maps.routing.v2.TollInfo.getDefaultInstance() : tollInfo_; } /** - * - * *
-   * Encapsulates information about tolls on the Route.
-   * This field is only populated if we expect there are tolls on the Route.
-   * If this field is set but the estimated_price subfield is not populated,
-   * we expect that road contains tolls but we do not know an estimated price.
-   * If this field is not set, then we expect there is no toll on the Route.
+   * Contains information about tolls on the route. This field is only populated
+   * if tolls are expected on the route. If this field is set, but the
+   * estimatedPrice subfield is not populated, then the route contains tolls,
+   * but the estimated price is unknown. If this field is not set, then there
+   * are no tolls expected on the route.
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; @@ -122,12 +95,9 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() { } public static final int SPEED_READING_INTERVALS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List speedReadingIntervals_; /** - * - * *
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -144,13 +114,10 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() {
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;
    */
   @java.lang.Override
-  public java.util.List
-      getSpeedReadingIntervalsList() {
+  public java.util.List getSpeedReadingIntervalsList() {
     return speedReadingIntervals_;
   }
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -167,13 +134,11 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() {
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getSpeedReadingIntervalsOrBuilderList() {
     return speedReadingIntervals_;
   }
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -194,8 +159,6 @@ public int getSpeedReadingIntervalsCount() {
     return speedReadingIntervals_.size();
   }
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -216,8 +179,6 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(
     return speedReadingIntervals_.get(index);
   }
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -242,14 +203,11 @@ public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingI
   public static final int FUEL_CONSUMPTION_MICROLITERS_FIELD_NUMBER = 5;
   private long fuelConsumptionMicroliters_ = 0L;
   /**
-   *
-   *
    * 
-   * The fuel consumption prediction in microliters.
+   * The predicted fuel consumption in microliters.
    * 
* * int64 fuel_consumption_microliters = 5; - * * @return The fuelConsumptionMicroliters. */ @java.lang.Override @@ -257,8 +215,67 @@ public long getFuelConsumptionMicroliters() { return fuelConsumptionMicroliters_; } - private byte memoizedIsInitialized = -1; + public static final int ROUTE_RESTRICTIONS_PARTIALLY_IGNORED_FIELD_NUMBER = 6; + private boolean routeRestrictionsPartiallyIgnored_ = false; + /** + *
+   * Returned route may have restrictions that are not suitable for requested
+   * travel mode or route modifiers.
+   * 
+ * + * bool route_restrictions_partially_ignored = 6; + * @return The routeRestrictionsPartiallyIgnored. + */ + @java.lang.Override + public boolean getRouteRestrictionsPartiallyIgnored() { + return routeRestrictionsPartiallyIgnored_; + } + + public static final int TRANSIT_FARE_FIELD_NUMBER = 7; + private com.google.type.Money transitFare_; + /** + *
+   * If present, contains the total fare or ticket costs on this route
+   * This property is only returned for `TRANSIT` requests and only
+   * for routes where fare information is available for all transit steps.
+   * 
+ * + * .google.type.Money transit_fare = 7; + * @return Whether the transitFare field is set. + */ + @java.lang.Override + public boolean hasTransitFare() { + return transitFare_ != null; + } + /** + *
+   * If present, contains the total fare or ticket costs on this route
+   * This property is only returned for `TRANSIT` requests and only
+   * for routes where fare information is available for all transit steps.
+   * 
+ * + * .google.type.Money transit_fare = 7; + * @return The transitFare. + */ + @java.lang.Override + public com.google.type.Money getTransitFare() { + return transitFare_ == null ? com.google.type.Money.getDefaultInstance() : transitFare_; + } + /** + *
+   * If present, contains the total fare or ticket costs on this route
+   * This property is only returned for `TRANSIT` requests and only
+   * for routes where fare information is available for all transit steps.
+   * 
+ * + * .google.type.Money transit_fare = 7; + */ + @java.lang.Override + public com.google.type.MoneyOrBuilder getTransitFareOrBuilder() { + return transitFare_ == null ? com.google.type.Money.getDefaultInstance() : transitFare_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +287,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 (tollInfo_ != null) { output.writeMessage(2, getTollInfo()); } @@ -280,6 +298,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (fuelConsumptionMicroliters_ != 0L) { output.writeInt64(5, fuelConsumptionMicroliters_); } + if (routeRestrictionsPartiallyIgnored_ != false) { + output.writeBool(6, routeRestrictionsPartiallyIgnored_); + } + if (transitFare_ != null) { + output.writeMessage(7, getTransitFare()); + } getUnknownFields().writeTo(output); } @@ -290,16 +314,24 @@ public int getSerializedSize() { size = 0; if (tollInfo_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTollInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTollInfo()); } for (int i = 0; i < speedReadingIntervals_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, speedReadingIntervals_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, speedReadingIntervals_.get(i)); } if (fuelConsumptionMicroliters_ != 0L) { - size += - com.google.protobuf.CodedOutputStream.computeInt64Size(5, fuelConsumptionMicroliters_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, fuelConsumptionMicroliters_); + } + if (routeRestrictionsPartiallyIgnored_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, routeRestrictionsPartiallyIgnored_); + } + if (transitFare_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getTransitFare()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -309,20 +341,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.maps.routing.v2.RouteTravelAdvisory)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteTravelAdvisory other = - (com.google.maps.routing.v2.RouteTravelAdvisory) obj; + com.google.maps.routing.v2.RouteTravelAdvisory other = (com.google.maps.routing.v2.RouteTravelAdvisory) obj; if (hasTollInfo() != other.hasTollInfo()) return false; if (hasTollInfo()) { - if (!getTollInfo().equals(other.getTollInfo())) return false; + if (!getTollInfo() + .equals(other.getTollInfo())) return false; + } + if (!getSpeedReadingIntervalsList() + .equals(other.getSpeedReadingIntervalsList())) return false; + if (getFuelConsumptionMicroliters() + != other.getFuelConsumptionMicroliters()) return false; + if (getRouteRestrictionsPartiallyIgnored() + != other.getRouteRestrictionsPartiallyIgnored()) return false; + if (hasTransitFare() != other.hasTransitFare()) return false; + if (hasTransitFare()) { + if (!getTransitFare() + .equals(other.getTransitFare())) return false; } - if (!getSpeedReadingIntervalsList().equals(other.getSpeedReadingIntervalsList())) return false; - if (getFuelConsumptionMicroliters() != other.getFuelConsumptionMicroliters()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -343,143 +384,147 @@ public int hashCode() { hash = (53 * hash) + getSpeedReadingIntervalsList().hashCode(); } hash = (37 * hash) + FUEL_CONSUMPTION_MICROLITERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFuelConsumptionMicroliters()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getFuelConsumptionMicroliters()); + hash = (37 * hash) + ROUTE_RESTRICTIONS_PARTIALLY_IGNORED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRouteRestrictionsPartiallyIgnored()); + if (hasTransitFare()) { + hash = (37 * hash) + TRANSIT_FARE_FIELD_NUMBER; + hash = (53 * hash) + getTransitFare().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.maps.routing.v2.RouteTravelAdvisory parseFrom(java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.RouteTravelAdvisory parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteTravelAdvisory parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory 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 the additional information that the user should be informed
-   * about, such as possible traffic zone restriction etc.
+   * Contains the additional information that the user should be informed
+   * about, such as possible traffic zone restrictions.
    * 
* * Protobuf type {@code google.maps.routing.v2.RouteTravelAdvisory} */ - 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.maps.routing.v2.RouteTravelAdvisory) com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteTravelAdvisory.class, - com.google.maps.routing.v2.RouteTravelAdvisory.Builder.class); + com.google.maps.routing.v2.RouteTravelAdvisory.class, com.google.maps.routing.v2.RouteTravelAdvisory.Builder.class); } // Construct using com.google.maps.routing.v2.RouteTravelAdvisory.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(); @@ -497,13 +542,19 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000002); fuelConsumptionMicroliters_ = 0L; + routeRestrictionsPartiallyIgnored_ = false; + transitFare_ = null; + if (transitFareBuilder_ != null) { + transitFareBuilder_.dispose(); + transitFareBuilder_ = null; + } return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.routing.v2.RouteProto - .internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor; } @java.lang.Override @@ -522,12 +573,9 @@ public com.google.maps.routing.v2.RouteTravelAdvisory build() { @java.lang.Override public com.google.maps.routing.v2.RouteTravelAdvisory buildPartial() { - com.google.maps.routing.v2.RouteTravelAdvisory result = - new com.google.maps.routing.v2.RouteTravelAdvisory(this); + com.google.maps.routing.v2.RouteTravelAdvisory result = new com.google.maps.routing.v2.RouteTravelAdvisory(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -547,50 +595,59 @@ private void buildPartialRepeatedFields(com.google.maps.routing.v2.RouteTravelAd private void buildPartial0(com.google.maps.routing.v2.RouteTravelAdvisory result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.tollInfo_ = tollInfoBuilder_ == null ? tollInfo_ : tollInfoBuilder_.build(); + result.tollInfo_ = tollInfoBuilder_ == null + ? tollInfo_ + : tollInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.fuelConsumptionMicroliters_ = fuelConsumptionMicroliters_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.routeRestrictionsPartiallyIgnored_ = routeRestrictionsPartiallyIgnored_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.transitFare_ = transitFareBuilder_ == null + ? transitFare_ + : transitFareBuilder_.build(); + } } @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) { + 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.maps.routing.v2.RouteTravelAdvisory) { - return mergeFrom((com.google.maps.routing.v2.RouteTravelAdvisory) other); + return mergeFrom((com.google.maps.routing.v2.RouteTravelAdvisory)other); } else { super.mergeFrom(other); return this; @@ -620,10 +677,9 @@ public Builder mergeFrom(com.google.maps.routing.v2.RouteTravelAdvisory other) { speedReadingIntervalsBuilder_ = null; speedReadingIntervals_ = other.speedReadingIntervals_; bitField0_ = (bitField0_ & ~0x00000002); - speedReadingIntervalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSpeedReadingIntervalsFieldBuilder() - : null; + speedReadingIntervalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSpeedReadingIntervalsFieldBuilder() : null; } else { speedReadingIntervalsBuilder_.addAllMessages(other.speedReadingIntervals_); } @@ -632,6 +688,12 @@ public Builder mergeFrom(com.google.maps.routing.v2.RouteTravelAdvisory other) { if (other.getFuelConsumptionMicroliters() != 0L) { setFuelConsumptionMicroliters(other.getFuelConsumptionMicroliters()); } + if (other.getRouteRestrictionsPartiallyIgnored() != false) { + setRouteRestrictionsPartiallyIgnored(other.getRouteRestrictionsPartiallyIgnored()); + } + if (other.hasTransitFare()) { + mergeTransitFare(other.getTransitFare()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -658,39 +720,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage(getTollInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - com.google.maps.routing.v2.SpeedReadingInterval m = - input.readMessage( - com.google.maps.routing.v2.SpeedReadingInterval.parser(), - extensionRegistry); - if (speedReadingIntervalsBuilder_ == null) { - ensureSpeedReadingIntervalsIsMutable(); - speedReadingIntervals_.add(m); - } else { - speedReadingIntervalsBuilder_.addMessage(m); - } - break; - } // case 26 - case 40: - { - fuelConsumptionMicroliters_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getTollInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + com.google.maps.routing.v2.SpeedReadingInterval m = + input.readMessage( + com.google.maps.routing.v2.SpeedReadingInterval.parser(), + extensionRegistry); + if (speedReadingIntervalsBuilder_ == null) { + ensureSpeedReadingIntervalsIsMutable(); + speedReadingIntervals_.add(m); + } else { + speedReadingIntervalsBuilder_.addMessage(m); + } + break; + } // case 26 + case 40: { + fuelConsumptionMicroliters_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 40 + case 48: { + routeRestrictionsPartiallyIgnored_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 48 + case 58: { + input.readMessage( + getTransitFareFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + 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) { @@ -700,66 +772,52 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.maps.routing.v2.TollInfo tollInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TollInfo, - com.google.maps.routing.v2.TollInfo.Builder, - com.google.maps.routing.v2.TollInfoOrBuilder> - tollInfoBuilder_; + com.google.maps.routing.v2.TollInfo, com.google.maps.routing.v2.TollInfo.Builder, com.google.maps.routing.v2.TollInfoOrBuilder> tollInfoBuilder_; /** - * - * *
-     * Encapsulates information about tolls on the Route.
-     * This field is only populated if we expect there are tolls on the Route.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field is not set, then we expect there is no toll on the Route.
+     * Contains information about tolls on the route. This field is only populated
+     * if tolls are expected on the route. If this field is set, but the
+     * estimatedPrice subfield is not populated, then the route contains tolls,
+     * but the estimated price is unknown. If this field is not set, then there
+     * are no tolls expected on the route.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; - * * @return Whether the tollInfo field is set. */ public boolean hasTollInfo() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
-     * Encapsulates information about tolls on the Route.
-     * This field is only populated if we expect there are tolls on the Route.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field is not set, then we expect there is no toll on the Route.
+     * Contains information about tolls on the route. This field is only populated
+     * if tolls are expected on the route. If this field is set, but the
+     * estimatedPrice subfield is not populated, then the route contains tolls,
+     * but the estimated price is unknown. If this field is not set, then there
+     * are no tolls expected on the route.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; - * * @return The tollInfo. */ public com.google.maps.routing.v2.TollInfo getTollInfo() { if (tollInfoBuilder_ == null) { - return tollInfo_ == null - ? com.google.maps.routing.v2.TollInfo.getDefaultInstance() - : tollInfo_; + return tollInfo_ == null ? com.google.maps.routing.v2.TollInfo.getDefaultInstance() : tollInfo_; } else { return tollInfoBuilder_.getMessage(); } } /** - * - * *
-     * Encapsulates information about tolls on the Route.
-     * This field is only populated if we expect there are tolls on the Route.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field is not set, then we expect there is no toll on the Route.
+     * Contains information about tolls on the route. This field is only populated
+     * if tolls are expected on the route. If this field is set, but the
+     * estimatedPrice subfield is not populated, then the route contains tolls,
+     * but the estimated price is unknown. If this field is not set, then there
+     * are no tolls expected on the route.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; @@ -778,19 +836,18 @@ public Builder setTollInfo(com.google.maps.routing.v2.TollInfo value) { return this; } /** - * - * *
-     * Encapsulates information about tolls on the Route.
-     * This field is only populated if we expect there are tolls on the Route.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field is not set, then we expect there is no toll on the Route.
+     * Contains information about tolls on the route. This field is only populated
+     * if tolls are expected on the route. If this field is set, but the
+     * estimatedPrice subfield is not populated, then the route contains tolls,
+     * but the estimated price is unknown. If this field is not set, then there
+     * are no tolls expected on the route.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; */ - public Builder setTollInfo(com.google.maps.routing.v2.TollInfo.Builder builderForValue) { + public Builder setTollInfo( + com.google.maps.routing.v2.TollInfo.Builder builderForValue) { if (tollInfoBuilder_ == null) { tollInfo_ = builderForValue.build(); } else { @@ -801,23 +858,21 @@ public Builder setTollInfo(com.google.maps.routing.v2.TollInfo.Builder builderFo return this; } /** - * - * *
-     * Encapsulates information about tolls on the Route.
-     * This field is only populated if we expect there are tolls on the Route.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field is not set, then we expect there is no toll on the Route.
+     * Contains information about tolls on the route. This field is only populated
+     * if tolls are expected on the route. If this field is set, but the
+     * estimatedPrice subfield is not populated, then the route contains tolls,
+     * but the estimated price is unknown. If this field is not set, then there
+     * are no tolls expected on the route.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; */ public Builder mergeTollInfo(com.google.maps.routing.v2.TollInfo value) { if (tollInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && tollInfo_ != null - && tollInfo_ != com.google.maps.routing.v2.TollInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + tollInfo_ != null && + tollInfo_ != com.google.maps.routing.v2.TollInfo.getDefaultInstance()) { getTollInfoBuilder().mergeFrom(value); } else { tollInfo_ = value; @@ -830,14 +885,12 @@ public Builder mergeTollInfo(com.google.maps.routing.v2.TollInfo value) { return this; } /** - * - * *
-     * Encapsulates information about tolls on the Route.
-     * This field is only populated if we expect there are tolls on the Route.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field is not set, then we expect there is no toll on the Route.
+     * Contains information about tolls on the route. This field is only populated
+     * if tolls are expected on the route. If this field is set, but the
+     * estimatedPrice subfield is not populated, then the route contains tolls,
+     * but the estimated price is unknown. If this field is not set, then there
+     * are no tolls expected on the route.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; @@ -853,14 +906,12 @@ public Builder clearTollInfo() { return this; } /** - * - * *
-     * Encapsulates information about tolls on the Route.
-     * This field is only populated if we expect there are tolls on the Route.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field is not set, then we expect there is no toll on the Route.
+     * Contains information about tolls on the route. This field is only populated
+     * if tolls are expected on the route. If this field is set, but the
+     * estimatedPrice subfield is not populated, then the route contains tolls,
+     * but the estimated price is unknown. If this field is not set, then there
+     * are no tolls expected on the route.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; @@ -871,14 +922,12 @@ public com.google.maps.routing.v2.TollInfo.Builder getTollInfoBuilder() { return getTollInfoFieldBuilder().getBuilder(); } /** - * - * *
-     * Encapsulates information about tolls on the Route.
-     * This field is only populated if we expect there are tolls on the Route.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field is not set, then we expect there is no toll on the Route.
+     * Contains information about tolls on the route. This field is only populated
+     * if tolls are expected on the route. If this field is set, but the
+     * estimatedPrice subfield is not populated, then the route contains tolls,
+     * but the estimated price is unknown. If this field is not set, then there
+     * are no tolls expected on the route.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; @@ -887,62 +936,48 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() { if (tollInfoBuilder_ != null) { return tollInfoBuilder_.getMessageOrBuilder(); } else { - return tollInfo_ == null - ? com.google.maps.routing.v2.TollInfo.getDefaultInstance() - : tollInfo_; + return tollInfo_ == null ? + com.google.maps.routing.v2.TollInfo.getDefaultInstance() : tollInfo_; } } /** - * - * *
-     * Encapsulates information about tolls on the Route.
-     * This field is only populated if we expect there are tolls on the Route.
-     * If this field is set but the estimated_price subfield is not populated,
-     * we expect that road contains tolls but we do not know an estimated price.
-     * If this field is not set, then we expect there is no toll on the Route.
+     * Contains information about tolls on the route. This field is only populated
+     * if tolls are expected on the route. If this field is set, but the
+     * estimatedPrice subfield is not populated, then the route contains tolls,
+     * but the estimated price is unknown. If this field is not set, then there
+     * are no tolls expected on the route.
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TollInfo, - com.google.maps.routing.v2.TollInfo.Builder, - com.google.maps.routing.v2.TollInfoOrBuilder> + com.google.maps.routing.v2.TollInfo, com.google.maps.routing.v2.TollInfo.Builder, com.google.maps.routing.v2.TollInfoOrBuilder> getTollInfoFieldBuilder() { if (tollInfoBuilder_ == null) { - tollInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TollInfo, - com.google.maps.routing.v2.TollInfo.Builder, - com.google.maps.routing.v2.TollInfoOrBuilder>( - getTollInfo(), getParentForChildren(), isClean()); + tollInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TollInfo, com.google.maps.routing.v2.TollInfo.Builder, com.google.maps.routing.v2.TollInfoOrBuilder>( + getTollInfo(), + getParentForChildren(), + isClean()); tollInfo_ = null; } return tollInfoBuilder_; } private java.util.List speedReadingIntervals_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSpeedReadingIntervalsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - speedReadingIntervals_ = - new java.util.ArrayList( - speedReadingIntervals_); + speedReadingIntervals_ = new java.util.ArrayList(speedReadingIntervals_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.SpeedReadingInterval, - com.google.maps.routing.v2.SpeedReadingInterval.Builder, - com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> - speedReadingIntervalsBuilder_; + com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> speedReadingIntervalsBuilder_; /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -956,11 +991,9 @@ private void ensureSpeedReadingIntervalsIsMutable() {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ - public java.util.List - getSpeedReadingIntervalsList() { + public java.util.List getSpeedReadingIntervalsList() { if (speedReadingIntervalsBuilder_ == null) { return java.util.Collections.unmodifiableList(speedReadingIntervals_); } else { @@ -968,8 +1001,6 @@ private void ensureSpeedReadingIntervalsIsMutable() { } } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -983,8 +1014,7 @@ private void ensureSpeedReadingIntervalsIsMutable() {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ public int getSpeedReadingIntervalsCount() { if (speedReadingIntervalsBuilder_ == null) { @@ -994,8 +1024,6 @@ public int getSpeedReadingIntervalsCount() { } } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1009,8 +1037,7 @@ public int getSpeedReadingIntervalsCount() {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(int index) { if (speedReadingIntervalsBuilder_ == null) { @@ -1020,8 +1047,6 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals( } } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1035,8 +1060,7 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ public Builder setSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval value) { @@ -1053,8 +1077,6 @@ public Builder setSpeedReadingIntervals( return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1068,8 +1090,7 @@ public Builder setSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ public Builder setSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -1083,8 +1104,6 @@ public Builder setSpeedReadingIntervals( return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1098,8 +1117,7 @@ public Builder setSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingInterval value) { if (speedReadingIntervalsBuilder_ == null) { @@ -1115,8 +1133,6 @@ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingI return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1130,8 +1146,7 @@ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingI
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ public Builder addSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval value) { @@ -1148,8 +1163,6 @@ public Builder addSpeedReadingIntervals( return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1163,8 +1176,7 @@ public Builder addSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ public Builder addSpeedReadingIntervals( com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -1178,8 +1190,6 @@ public Builder addSpeedReadingIntervals( return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1193,8 +1203,7 @@ public Builder addSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ public Builder addSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -1208,8 +1217,6 @@ public Builder addSpeedReadingIntervals( return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1223,14 +1230,14 @@ public Builder addSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ public Builder addAllSpeedReadingIntervals( java.lang.Iterable values) { if (speedReadingIntervalsBuilder_ == null) { ensureSpeedReadingIntervalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speedReadingIntervals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, speedReadingIntervals_); onChanged(); } else { speedReadingIntervalsBuilder_.addAllMessages(values); @@ -1238,8 +1245,6 @@ public Builder addAllSpeedReadingIntervals( return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1253,8 +1258,7 @@ public Builder addAllSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ public Builder clearSpeedReadingIntervals() { if (speedReadingIntervalsBuilder_ == null) { @@ -1267,8 +1271,6 @@ public Builder clearSpeedReadingIntervals() { return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1282,8 +1284,7 @@ public Builder clearSpeedReadingIntervals() {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ public Builder removeSpeedReadingIntervals(int index) { if (speedReadingIntervalsBuilder_ == null) { @@ -1296,8 +1297,6 @@ public Builder removeSpeedReadingIntervals(int index) { return this; } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1311,16 +1310,13 @@ public Builder removeSpeedReadingIntervals(int index) {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIntervalsBuilder( int index) { return getSpeedReadingIntervalsFieldBuilder().getBuilder(index); } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1334,20 +1330,16 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ - public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder - getSpeedReadingIntervalsOrBuilder(int index) { + public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingIntervalsOrBuilder( + int index) { if (speedReadingIntervalsBuilder_ == null) { - return speedReadingIntervals_.get(index); - } else { + return speedReadingIntervals_.get(index); } else { return speedReadingIntervalsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1361,11 +1353,10 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ - public java.util.List - getSpeedReadingIntervalsOrBuilderList() { + public java.util.List + getSpeedReadingIntervalsOrBuilderList() { if (speedReadingIntervalsBuilder_ != null) { return speedReadingIntervalsBuilder_.getMessageOrBuilderList(); } else { @@ -1373,8 +1364,6 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIn } } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1388,17 +1377,13 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ - public com.google.maps.routing.v2.SpeedReadingInterval.Builder - addSpeedReadingIntervalsBuilder() { - return getSpeedReadingIntervalsFieldBuilder() - .addBuilder(com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); + public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIntervalsBuilder() { + return getSpeedReadingIntervalsFieldBuilder().addBuilder( + com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1412,17 +1397,14 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIntervalsBuilder( int index) { - return getSpeedReadingIntervalsFieldBuilder() - .addBuilder(index, com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); + return getSpeedReadingIntervalsFieldBuilder().addBuilder( + index, com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); } /** - * - * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1436,25 +1418,18 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; - * + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; */ - public java.util.List - getSpeedReadingIntervalsBuilderList() { + public java.util.List + getSpeedReadingIntervalsBuilderList() { return getSpeedReadingIntervalsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.SpeedReadingInterval, - com.google.maps.routing.v2.SpeedReadingInterval.Builder, - com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> + com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> getSpeedReadingIntervalsFieldBuilder() { if (speedReadingIntervalsBuilder_ == null) { - speedReadingIntervalsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.SpeedReadingInterval, - com.google.maps.routing.v2.SpeedReadingInterval.Builder, - com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder>( + speedReadingIntervalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder>( speedReadingIntervals_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1464,16 +1439,13 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIn return speedReadingIntervalsBuilder_; } - private long fuelConsumptionMicroliters_; + private long fuelConsumptionMicroliters_ ; /** - * - * *
-     * The fuel consumption prediction in microliters.
+     * The predicted fuel consumption in microliters.
      * 
* * int64 fuel_consumption_microliters = 5; - * * @return The fuelConsumptionMicroliters. */ @java.lang.Override @@ -1481,14 +1453,11 @@ public long getFuelConsumptionMicroliters() { return fuelConsumptionMicroliters_; } /** - * - * *
-     * The fuel consumption prediction in microliters.
+     * The predicted fuel consumption in microliters.
      * 
* * int64 fuel_consumption_microliters = 5; - * * @param value The fuelConsumptionMicroliters to set. * @return This builder for chaining. */ @@ -1500,14 +1469,11 @@ public Builder setFuelConsumptionMicroliters(long value) { return this; } /** - * - * *
-     * The fuel consumption prediction in microliters.
+     * The predicted fuel consumption in microliters.
      * 
* * int64 fuel_consumption_microliters = 5; - * * @return This builder for chaining. */ public Builder clearFuelConsumptionMicroliters() { @@ -1517,8 +1483,228 @@ public Builder clearFuelConsumptionMicroliters() { return this; } + private boolean routeRestrictionsPartiallyIgnored_ ; + /** + *
+     * Returned route may have restrictions that are not suitable for requested
+     * travel mode or route modifiers.
+     * 
+ * + * bool route_restrictions_partially_ignored = 6; + * @return The routeRestrictionsPartiallyIgnored. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public boolean getRouteRestrictionsPartiallyIgnored() { + return routeRestrictionsPartiallyIgnored_; + } + /** + *
+     * Returned route may have restrictions that are not suitable for requested
+     * travel mode or route modifiers.
+     * 
+ * + * bool route_restrictions_partially_ignored = 6; + * @param value The routeRestrictionsPartiallyIgnored to set. + * @return This builder for chaining. + */ + public Builder setRouteRestrictionsPartiallyIgnored(boolean value) { + + routeRestrictionsPartiallyIgnored_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Returned route may have restrictions that are not suitable for requested
+     * travel mode or route modifiers.
+     * 
+ * + * bool route_restrictions_partially_ignored = 6; + * @return This builder for chaining. + */ + public Builder clearRouteRestrictionsPartiallyIgnored() { + bitField0_ = (bitField0_ & ~0x00000008); + routeRestrictionsPartiallyIgnored_ = false; + onChanged(); + return this; + } + + private com.google.type.Money transitFare_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> transitFareBuilder_; + /** + *
+     * If present, contains the total fare or ticket costs on this route
+     * This property is only returned for `TRANSIT` requests and only
+     * for routes where fare information is available for all transit steps.
+     * 
+ * + * .google.type.Money transit_fare = 7; + * @return Whether the transitFare field is set. + */ + public boolean hasTransitFare() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * If present, contains the total fare or ticket costs on this route
+     * This property is only returned for `TRANSIT` requests and only
+     * for routes where fare information is available for all transit steps.
+     * 
+ * + * .google.type.Money transit_fare = 7; + * @return The transitFare. + */ + public com.google.type.Money getTransitFare() { + if (transitFareBuilder_ == null) { + return transitFare_ == null ? com.google.type.Money.getDefaultInstance() : transitFare_; + } else { + return transitFareBuilder_.getMessage(); + } + } + /** + *
+     * If present, contains the total fare or ticket costs on this route
+     * This property is only returned for `TRANSIT` requests and only
+     * for routes where fare information is available for all transit steps.
+     * 
+ * + * .google.type.Money transit_fare = 7; + */ + public Builder setTransitFare(com.google.type.Money value) { + if (transitFareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transitFare_ = value; + } else { + transitFareBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * If present, contains the total fare or ticket costs on this route
+     * This property is only returned for `TRANSIT` requests and only
+     * for routes where fare information is available for all transit steps.
+     * 
+ * + * .google.type.Money transit_fare = 7; + */ + public Builder setTransitFare( + com.google.type.Money.Builder builderForValue) { + if (transitFareBuilder_ == null) { + transitFare_ = builderForValue.build(); + } else { + transitFareBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * If present, contains the total fare or ticket costs on this route
+     * This property is only returned for `TRANSIT` requests and only
+     * for routes where fare information is available for all transit steps.
+     * 
+ * + * .google.type.Money transit_fare = 7; + */ + public Builder mergeTransitFare(com.google.type.Money value) { + if (transitFareBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + transitFare_ != null && + transitFare_ != com.google.type.Money.getDefaultInstance()) { + getTransitFareBuilder().mergeFrom(value); + } else { + transitFare_ = value; + } + } else { + transitFareBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * If present, contains the total fare or ticket costs on this route
+     * This property is only returned for `TRANSIT` requests and only
+     * for routes where fare information is available for all transit steps.
+     * 
+ * + * .google.type.Money transit_fare = 7; + */ + public Builder clearTransitFare() { + bitField0_ = (bitField0_ & ~0x00000010); + transitFare_ = null; + if (transitFareBuilder_ != null) { + transitFareBuilder_.dispose(); + transitFareBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * If present, contains the total fare or ticket costs on this route
+     * This property is only returned for `TRANSIT` requests and only
+     * for routes where fare information is available for all transit steps.
+     * 
+ * + * .google.type.Money transit_fare = 7; + */ + public com.google.type.Money.Builder getTransitFareBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getTransitFareFieldBuilder().getBuilder(); + } + /** + *
+     * If present, contains the total fare or ticket costs on this route
+     * This property is only returned for `TRANSIT` requests and only
+     * for routes where fare information is available for all transit steps.
+     * 
+ * + * .google.type.Money transit_fare = 7; + */ + public com.google.type.MoneyOrBuilder getTransitFareOrBuilder() { + if (transitFareBuilder_ != null) { + return transitFareBuilder_.getMessageOrBuilder(); + } else { + return transitFare_ == null ? + com.google.type.Money.getDefaultInstance() : transitFare_; + } + } + /** + *
+     * If present, contains the total fare or ticket costs on this route
+     * This property is only returned for `TRANSIT` requests and only
+     * for routes where fare information is available for all transit steps.
+     * 
+ * + * .google.type.Money transit_fare = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getTransitFareFieldBuilder() { + if (transitFareBuilder_ == null) { + transitFareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>( + getTransitFare(), + getParentForChildren(), + isClean()); + transitFare_ = null; + } + return transitFareBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1528,12 +1714,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteTravelAdvisory) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteTravelAdvisory) private static final com.google.maps.routing.v2.RouteTravelAdvisory DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteTravelAdvisory(); } @@ -1542,27 +1728,27 @@ public static com.google.maps.routing.v2.RouteTravelAdvisory getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteTravelAdvisory 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 RouteTravelAdvisory 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; @@ -1577,4 +1763,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.RouteTravelAdvisory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisoryOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisoryOrBuilder.java similarity index 62% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisoryOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisoryOrBuilder.java index 865c8dc11e9e..db712703a0ad 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisoryOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisoryOrBuilder.java @@ -1,69 +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/maps/routing/v2/route.proto package com.google.maps.routing.v2; -public interface RouteTravelAdvisoryOrBuilder - extends +public interface RouteTravelAdvisoryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteTravelAdvisory) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Encapsulates information about tolls on the Route.
-   * This field is only populated if we expect there are tolls on the Route.
-   * If this field is set but the estimated_price subfield is not populated,
-   * we expect that road contains tolls but we do not know an estimated price.
-   * If this field is not set, then we expect there is no toll on the Route.
+   * Contains information about tolls on the route. This field is only populated
+   * if tolls are expected on the route. If this field is set, but the
+   * estimatedPrice subfield is not populated, then the route contains tolls,
+   * but the estimated price is unknown. If this field is not set, then there
+   * are no tolls expected on the route.
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; - * * @return Whether the tollInfo field is set. */ boolean hasTollInfo(); /** - * - * *
-   * Encapsulates information about tolls on the Route.
-   * This field is only populated if we expect there are tolls on the Route.
-   * If this field is set but the estimated_price subfield is not populated,
-   * we expect that road contains tolls but we do not know an estimated price.
-   * If this field is not set, then we expect there is no toll on the Route.
+   * Contains information about tolls on the route. This field is only populated
+   * if tolls are expected on the route. If this field is set, but the
+   * estimatedPrice subfield is not populated, then the route contains tolls,
+   * but the estimated price is unknown. If this field is not set, then there
+   * are no tolls expected on the route.
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; - * * @return The tollInfo. */ com.google.maps.routing.v2.TollInfo getTollInfo(); /** - * - * *
-   * Encapsulates information about tolls on the Route.
-   * This field is only populated if we expect there are tolls on the Route.
-   * If this field is set but the estimated_price subfield is not populated,
-   * we expect that road contains tolls but we do not know an estimated price.
-   * If this field is not set, then we expect there is no toll on the Route.
+   * Contains information about tolls on the route. This field is only populated
+   * if tolls are expected on the route. If this field is set, but the
+   * estimatedPrice subfield is not populated, then the route contains tolls,
+   * but the estimated price is unknown. If this field is not set, then there
+   * are no tolls expected on the route.
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; @@ -71,8 +47,6 @@ public interface RouteTravelAdvisoryOrBuilder com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder(); /** - * - * *
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -88,10 +62,9 @@ public interface RouteTravelAdvisoryOrBuilder
    *
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;
    */
-  java.util.List getSpeedReadingIntervalsList();
+  java.util.List 
+      getSpeedReadingIntervalsList();
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -109,8 +82,6 @@ public interface RouteTravelAdvisoryOrBuilder
    */
   com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(int index);
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -128,8 +99,6 @@ public interface RouteTravelAdvisoryOrBuilder
    */
   int getSpeedReadingIntervalsCount();
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -145,11 +114,9 @@ public interface RouteTravelAdvisoryOrBuilder
    *
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;
    */
-  java.util.List
+  java.util.List 
       getSpeedReadingIntervalsOrBuilderList();
   /**
-   *
-   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -169,15 +136,56 @@ com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingInterval
       int index);
 
   /**
-   *
-   *
    * 
-   * The fuel consumption prediction in microliters.
+   * The predicted fuel consumption in microliters.
    * 
* * int64 fuel_consumption_microliters = 5; - * * @return The fuelConsumptionMicroliters. */ long getFuelConsumptionMicroliters(); + + /** + *
+   * Returned route may have restrictions that are not suitable for requested
+   * travel mode or route modifiers.
+   * 
+ * + * bool route_restrictions_partially_ignored = 6; + * @return The routeRestrictionsPartiallyIgnored. + */ + boolean getRouteRestrictionsPartiallyIgnored(); + + /** + *
+   * If present, contains the total fare or ticket costs on this route
+   * This property is only returned for `TRANSIT` requests and only
+   * for routes where fare information is available for all transit steps.
+   * 
+ * + * .google.type.Money transit_fare = 7; + * @return Whether the transitFare field is set. + */ + boolean hasTransitFare(); + /** + *
+   * If present, contains the total fare or ticket costs on this route
+   * This property is only returned for `TRANSIT` requests and only
+   * for routes where fare information is available for all transit steps.
+   * 
+ * + * .google.type.Money transit_fare = 7; + * @return The transitFare. + */ + com.google.type.Money getTransitFare(); + /** + *
+   * If present, contains the total fare or ticket costs on this route
+   * This property is only returned for `TRANSIT` requests and only
+   * for routes where fare information is available for all transit steps.
+   * 
+ * + * .google.type.Money transit_fare = 7; + */ + com.google.type.MoneyOrBuilder getTransitFareOrBuilder(); } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java similarity index 71% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java index 9c7ca43eb532..5cfb347c5de8 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.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/maps/routing/v2/route_travel_mode.proto package com.google.maps.routing.v2; /** - * - * *
  * A set of values used to specify the mode of travel.
  * NOTE: `WALK`, `BICYCLE`, and `TWO_WHEELER` routes are in beta and might
@@ -31,10 +14,9 @@
  *
  * Protobuf enum {@code google.maps.routing.v2.RouteTravelMode}
  */
-public enum RouteTravelMode implements com.google.protobuf.ProtocolMessageEnum {
+public enum RouteTravelMode
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * No travel mode specified. Defaults to `DRIVE`.
    * 
@@ -43,8 +25,6 @@ public enum RouteTravelMode implements com.google.protobuf.ProtocolMessageEnum { */ TRAVEL_MODE_UNSPECIFIED(0), /** - * - * *
    * Travel by passenger car.
    * 
@@ -53,8 +33,6 @@ public enum RouteTravelMode implements com.google.protobuf.ProtocolMessageEnum { */ DRIVE(1), /** - * - * *
    * Travel by bicycle.
    * 
@@ -63,8 +41,6 @@ public enum RouteTravelMode implements com.google.protobuf.ProtocolMessageEnum { */ BICYCLE(2), /** - * - * *
    * Travel by walking.
    * 
@@ -73,8 +49,6 @@ public enum RouteTravelMode implements com.google.protobuf.ProtocolMessageEnum { */ WALK(3), /** - * - * *
    * Two-wheeled, motorized vehicle. For example, motorcycle. Note that this
    * differs from the `BICYCLE` travel mode which covers human-powered mode.
@@ -83,12 +57,18 @@ public enum RouteTravelMode implements com.google.protobuf.ProtocolMessageEnum {
    * TWO_WHEELER = 4;
    */
   TWO_WHEELER(4),
+  /**
+   * 
+   * Travel by public transit routes, where available.
+   * 
+ * + * TRANSIT = 7; + */ + TRANSIT(7), UNRECOGNIZED(-1), ; /** - * - * *
    * No travel mode specified. Defaults to `DRIVE`.
    * 
@@ -97,8 +77,6 @@ public enum RouteTravelMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TRAVEL_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Travel by passenger car.
    * 
@@ -107,8 +85,6 @@ public enum RouteTravelMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DRIVE_VALUE = 1; /** - * - * *
    * Travel by bicycle.
    * 
@@ -117,8 +93,6 @@ public enum RouteTravelMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BICYCLE_VALUE = 2; /** - * - * *
    * Travel by walking.
    * 
@@ -127,8 +101,6 @@ public enum RouteTravelMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WALK_VALUE = 3; /** - * - * *
    * Two-wheeled, motorized vehicle. For example, motorcycle. Note that this
    * differs from the `BICYCLE` travel mode which covers human-powered mode.
@@ -137,6 +109,15 @@ public enum RouteTravelMode implements com.google.protobuf.ProtocolMessageEnum {
    * TWO_WHEELER = 4;
    */
   public static final int TWO_WHEELER_VALUE = 4;
+  /**
+   * 
+   * Travel by public transit routes, where available.
+   * 
+ * + * TRANSIT = 7; + */ + public static final int TRANSIT_VALUE = 7; + public final int getNumber() { if (this == UNRECOGNIZED) { @@ -162,53 +143,52 @@ public static RouteTravelMode valueOf(int value) { */ public static RouteTravelMode forNumber(int value) { switch (value) { - case 0: - return TRAVEL_MODE_UNSPECIFIED; - case 1: - return DRIVE; - case 2: - return BICYCLE; - case 3: - return WALK; - case 4: - return TWO_WHEELER; - default: - return null; + case 0: return TRAVEL_MODE_UNSPECIFIED; + case 1: return DRIVE; + case 2: return BICYCLE; + case 3: return WALK; + case 4: return TWO_WHEELER; + case 7: return TRANSIT; + 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 RouteTravelMode findValueByNumber(int number) { - return RouteTravelMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + RouteTravelMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RouteTravelMode findValueByNumber(int number) { + return RouteTravelMode.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.maps.routing.v2.RouteTravelModeProto.getDescriptor().getEnumTypes().get(0); } private static final RouteTravelMode[] VALUES = values(); - public static RouteTravelMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RouteTravelMode 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; @@ -224,3 +204,4 @@ private RouteTravelMode(int value) { // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.RouteTravelMode) } + diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java new file mode 100644 index 000000000000..3aa5c316cc9c --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/route_travel_mode.proto + +package com.google.maps.routing.v2; + +public final class RouteTravelModeProto { + private RouteTravelModeProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + 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/maps/routing/v2/route_travel_mo" + + "de.proto\022\026google.maps.routing.v2*n\n\017Rout" + + "eTravelMode\022\033\n\027TRAVEL_MODE_UNSPECIFIED\020\000" + + "\022\t\n\005DRIVE\020\001\022\013\n\007BICYCLE\020\002\022\010\n\004WALK\020\003\022\017\n\013TW" + + "O_WHEELER\020\004\022\013\n\007TRANSIT\020\007B\311\001\n\032com.google." + + "maps.routing.v2B\024RouteTravelModeProtoP\001Z" + + ":cloud.google.com/go/maps/routing/apiv2/" + + "routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google." + + "Maps.Routing.V2\312\002\026Google\\Maps\\Routing\\V2" + + "\352\002\031Google::Maps::Routing::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java new file mode 100644 index 000000000000..6311e27467a8 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java @@ -0,0 +1,277 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/routes_service.proto + +package com.google.maps.routing.v2; + +public final class RoutesServiceProto { + private RoutesServiceProto() {} + 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_maps_routing_v2_ComputeRoutesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteMatrixElement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_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/maps/routing/v2/routes_service." + + "proto\022\026google.maps.routing.v2\032\034google/ap" + + "i/annotations.proto\032\027google/api/client.p" + + "roto\032\037google/api/field_behavior.proto\032*g" + + "oogle/maps/routing/v2/fallback_info.prot" + + "o\032.google/maps/routing/v2/geocoding_resu" + + "lts.proto\032%google/maps/routing/v2/polyli" + + "ne.proto\032\"google/maps/routing/v2/route.p" + + "roto\032,google/maps/routing/v2/route_modif" + + "iers.proto\032.google/maps/routing/v2/route" + + "_travel_mode.proto\032/google/maps/routing/" + + "v2/routing_preference.proto\032*google/maps" + + "/routing/v2/traffic_model.proto\0320google/" + + "maps/routing/v2/transit_preferences.prot" + + "o\032\"google/maps/routing/v2/units.proto\032%g" + + "oogle/maps/routing/v2/waypoint.proto\032\036go" + + "ogle/protobuf/duration.proto\032\037google/pro" + + "tobuf/timestamp.proto\032\027google/rpc/status" + + ".proto\032 google/type/localized_text.proto" + + "\"\244\013\n\024ComputeRoutesRequest\0226\n\006origin\030\001 \001(" + + "\0132 .google.maps.routing.v2.WaypointB\004\342A\001" + + "\002\022;\n\013destination\030\002 \001(\0132 .google.maps.rou" + + "ting.v2.WaypointB\004\342A\001\002\022=\n\rintermediates\030" + + "\003 \003(\0132 .google.maps.routing.v2.WaypointB" + + "\004\342A\001\001\022B\n\013travel_mode\030\004 \001(\0162\'.google.maps" + + ".routing.v2.RouteTravelModeB\004\342A\001\001\022K\n\022rou" + + "ting_preference\030\005 \001(\0162).google.maps.rout" + + "ing.v2.RoutingPreferenceB\004\342A\001\001\022G\n\020polyli" + + "ne_quality\030\006 \001(\0162\'.google.maps.routing.v" + + "2.PolylineQualityB\004\342A\001\001\022I\n\021polyline_enco" + + "ding\030\014 \001(\0162(.google.maps.routing.v2.Poly" + + "lineEncodingB\004\342A\001\001\0228\n\016departure_time\030\007 \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\001\0226\n\014" + + "arrival_time\030\023 \001(\0132\032.google.protobuf.Tim" + + "estampB\004\342A\001\001\022(\n\032compute_alternative_rout" + + "es\030\010 \001(\010B\004\342A\001\001\022E\n\017route_modifiers\030\t \001(\0132" + + "&.google.maps.routing.v2.RouteModifiersB" + + "\004\342A\001\001\022\033\n\rlanguage_code\030\n \001(\tB\004\342A\001\001\022\031\n\013re" + + "gion_code\030\020 \001(\tB\004\342A\001\001\0222\n\005units\030\013 \001(\0162\035.g" + + "oogle.maps.routing.v2.UnitsB\004\342A\001\001\022%\n\027opt" + + "imize_waypoint_order\030\r \001(\010B\004\342A\001\001\022e\n\032requ" + + "ested_reference_routes\030\016 \003(\0162;.google.ma" + + "ps.routing.v2.ComputeRoutesRequest.Refer" + + "enceRouteB\004\342A\001\001\022_\n\022extra_computations\030\017 " + + "\003(\0162=.google.maps.routing.v2.ComputeRout" + + "esRequest.ExtraComputationB\004\342A\001\001\022A\n\rtraf" + + "fic_model\030\022 \001(\0162$.google.maps.routing.v2" + + ".TrafficModelB\004\342A\001\001\022M\n\023transit_preferenc" + + "es\030\024 \001(\0132*.google.maps.routing.v2.Transi" + + "tPreferencesB\004\342A\001\001\"E\n\016ReferenceRoute\022\037\n\033" + + "REFERENCE_ROUTE_UNSPECIFIED\020\000\022\022\n\016FUEL_EF" + + "FICIENT\020\001\"\233\001\n\020ExtraComputation\022!\n\035EXTRA_" + + "COMPUTATION_UNSPECIFIED\020\000\022\t\n\005TOLLS\020\001\022\024\n\020" + + "FUEL_CONSUMPTION\020\002\022\027\n\023TRAFFIC_ON_POLYLIN" + + "E\020\003\022*\n&HTML_FORMATTED_NAVIGATION_INSTRUC" + + "TIONS\020\004\"\310\001\n\025ComputeRoutesResponse\022-\n\006rou" + + "tes\030\001 \003(\0132\035.google.maps.routing.v2.Route" + + "\022;\n\rfallback_info\030\002 \001(\0132$.google.maps.ro" + + "uting.v2.FallbackInfo\022C\n\021geocoding_resul" + + "ts\030\003 \001(\0132(.google.maps.routing.v2.Geocod" + + "ingResults\"\236\006\n\031ComputeRouteMatrixRequest" + + "\022@\n\007origins\030\001 \003(\0132).google.maps.routing." + + "v2.RouteMatrixOriginB\004\342A\001\002\022J\n\014destinatio" + + "ns\030\002 \003(\0132..google.maps.routing.v2.RouteM" + + "atrixDestinationB\004\342A\001\002\022B\n\013travel_mode\030\003 " + + "\001(\0162\'.google.maps.routing.v2.RouteTravel" + + "ModeB\004\342A\001\001\022K\n\022routing_preference\030\004 \001(\0162)" + + ".google.maps.routing.v2.RoutingPreferenc" + + "eB\004\342A\001\001\0228\n\016departure_time\030\005 \001(\0132\032.google" + + ".protobuf.TimestampB\004\342A\001\001\0226\n\014arrival_tim" + + "e\030\013 \001(\0132\032.google.protobuf.TimestampB\004\342A\001" + + "\001\022\033\n\rlanguage_code\030\006 \001(\tB\004\342A\001\001\022\031\n\013region" + + "_code\030\t \001(\tB\004\342A\001\001\022d\n\022extra_computations\030" + + "\010 \003(\0162B.google.maps.routing.v2.ComputeRo" + + "uteMatrixRequest.ExtraComputationB\004\342A\001\001\022" + + "A\n\rtraffic_model\030\n \001(\0162$.google.maps.rou" + + "ting.v2.TrafficModelB\004\342A\001\001\022M\n\023transit_pr" + + "eferences\030\014 \001(\0132*.google.maps.routing.v2" + + ".TransitPreferencesB\004\342A\001\001\"@\n\020ExtraComput" + + "ation\022!\n\035EXTRA_COMPUTATION_UNSPECIFIED\020\000" + + "\022\t\n\005TOLLS\020\001\"\224\001\n\021RouteMatrixOrigin\0228\n\010way" + + "point\030\001 \001(\0132 .google.maps.routing.v2.Way" + + "pointB\004\342A\001\002\022E\n\017route_modifiers\030\002 \001(\0132&.g" + + "oogle.maps.routing.v2.RouteModifiersB\004\342A" + + "\001\001\"R\n\026RouteMatrixDestination\0228\n\010waypoint" + + "\030\001 \001(\0132 .google.maps.routing.v2.Waypoint" + + "B\004\342A\001\002\"\214\006\n\022RouteMatrixElement\022\031\n\014origin_" + + "index\030\001 \001(\005H\000\210\001\001\022\036\n\021destination_index\030\002 " + + "\001(\005H\001\210\001\001\022\"\n\006status\030\003 \001(\0132\022.google.rpc.St" + + "atus\022F\n\tcondition\030\t \001(\01623.google.maps.ro" + + "uting.v2.RouteMatrixElementCondition\022\027\n\017" + + "distance_meters\030\004 \001(\005\022+\n\010duration\030\005 \001(\0132" + + "\031.google.protobuf.Duration\0222\n\017static_dur" + + "ation\030\006 \001(\0132\031.google.protobuf.Duration\022D" + + "\n\017travel_advisory\030\007 \001(\0132+.google.maps.ro" + + "uting.v2.RouteTravelAdvisory\022;\n\rfallback" + + "_info\030\010 \001(\0132$.google.maps.routing.v2.Fal" + + "lbackInfo\022T\n\020localized_values\030\n \001(\0132:.go" + + "ogle.maps.routing.v2.RouteMatrixElement." + + "LocalizedValues\032\324\001\n\017LocalizedValues\022,\n\010d" + + "istance\030\001 \001(\0132\032.google.type.LocalizedTex" + + "t\022,\n\010duration\030\002 \001(\0132\032.google.type.Locali" + + "zedText\0223\n\017static_duration\030\003 \001(\0132\032.googl" + + "e.type.LocalizedText\0220\n\014transit_fare\030\004 \001" + + "(\0132\032.google.type.LocalizedTextB\017\n\r_origi" + + "n_indexB\024\n\022_destination_index*t\n\033RouteMa" + + "trixElementCondition\022.\n*ROUTE_MATRIX_ELE" + + "MENT_CONDITION_UNSPECIFIED\020\000\022\020\n\014ROUTE_EX" + + "ISTS\020\001\022\023\n\017ROUTE_NOT_FOUND\020\0022\344\002\n\006Routes\022\225" + + "\001\n\rComputeRoutes\022,.google.maps.routing.v" + + "2.ComputeRoutesRequest\032-.google.maps.rou" + + "ting.v2.ComputeRoutesResponse\"\'\202\323\344\223\002!\"\034/" + + "directions/v2:computeRoutes:\001*\022\247\001\n\022Compu" + + "teRouteMatrix\0221.google.maps.routing.v2.C" + + "omputeRouteMatrixRequest\032*.google.maps.r" + + "outing.v2.RouteMatrixElement\"0\202\323\344\223\002*\"%/d" + + "istanceMatrix/v2:computeRouteMatrix:\001*0\001" + + "\032\030\312A\025routes.googleapis.comB\307\001\n\032com.googl" + + "e.maps.routing.v2B\022RoutesServiceProtoP\001Z" + + ":cloud.google.com/go/maps/routing/apiv2/" + + "routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google." + + "Maps.Routing.V2\312\002\026Google\\Maps\\Routing\\V2" + + "\352\002\031Google::Maps::Routing::V2b\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.maps.routing.v2.FallbackInfoProto.getDescriptor(), + com.google.maps.routing.v2.GeocodingResultsProto.getDescriptor(), + com.google.maps.routing.v2.PolylineProto.getDescriptor(), + com.google.maps.routing.v2.RouteProto.getDescriptor(), + com.google.maps.routing.v2.RouteModifiersProto.getDescriptor(), + com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(), + com.google.maps.routing.v2.RoutingPreferenceProto.getDescriptor(), + com.google.maps.routing.v2.TrafficModelProto.getDescriptor(), + com.google.maps.routing.v2.TransitPreferencesProto.getDescriptor(), + com.google.maps.routing.v2.UnitsProto.getDescriptor(), + com.google.maps.routing.v2.WaypointProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.LocalizedTextProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor, + new java.lang.String[] { "Origin", "Destination", "Intermediates", "TravelMode", "RoutingPreference", "PolylineQuality", "PolylineEncoding", "DepartureTime", "ArrivalTime", "ComputeAlternativeRoutes", "RouteModifiers", "LanguageCode", "RegionCode", "Units", "OptimizeWaypointOrder", "RequestedReferenceRoutes", "ExtraComputations", "TrafficModel", "TransitPreferences", }); + internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor, + new java.lang.String[] { "Routes", "FallbackInfo", "GeocodingResults", }); + internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor, + new java.lang.String[] { "Origins", "Destinations", "TravelMode", "RoutingPreference", "DepartureTime", "ArrivalTime", "LanguageCode", "RegionCode", "ExtraComputations", "TrafficModel", "TransitPreferences", }); + internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor, + new java.lang.String[] { "Waypoint", "RouteModifiers", }); + internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor, + new java.lang.String[] { "Waypoint", }); + internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_maps_routing_v2_RouteMatrixElement_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor, + new java.lang.String[] { "OriginIndex", "DestinationIndex", "Status", "Condition", "DistanceMeters", "Duration", "StaticDuration", "TravelAdvisory", "FallbackInfo", "LocalizedValues", "OriginIndex", "DestinationIndex", }); + internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor = + internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor.getNestedTypes().get(0); + internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor, + new java.lang.String[] { "Distance", "Duration", "StaticDuration", "TransitFare", }); + 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); + 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.maps.routing.v2.FallbackInfoProto.getDescriptor(); + com.google.maps.routing.v2.GeocodingResultsProto.getDescriptor(); + com.google.maps.routing.v2.PolylineProto.getDescriptor(); + com.google.maps.routing.v2.RouteProto.getDescriptor(); + com.google.maps.routing.v2.RouteModifiersProto.getDescriptor(); + com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(); + com.google.maps.routing.v2.RoutingPreferenceProto.getDescriptor(); + com.google.maps.routing.v2.TrafficModelProto.getDescriptor(); + com.google.maps.routing.v2.TransitPreferencesProto.getDescriptor(); + com.google.maps.routing.v2.UnitsProto.getDescriptor(); + com.google.maps.routing.v2.WaypointProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.LocalizedTextProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreference.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreference.java similarity index 78% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreference.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreference.java index 1b238346b138..ece47882c716 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreference.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreference.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/maps/routing/v2/routing_preference.proto package com.google.maps.routing.v2; /** - * - * *
  * A set of values that specify factors to take into consideration when
  * calculating the route.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.maps.routing.v2.RoutingPreference}
  */
-public enum RoutingPreference implements com.google.protobuf.ProtocolMessageEnum {
+public enum RoutingPreference
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * No routing preference specified. Default to `TRAFFIC_UNAWARE`.
    * 
@@ -40,8 +22,6 @@ public enum RoutingPreference implements com.google.protobuf.ProtocolMessageEnum */ ROUTING_PREFERENCE_UNSPECIFIED(0), /** - * - * *
    * Computes routes without taking live traffic conditions into consideration.
    * Suitable when traffic conditions don't matter or are not applicable.
@@ -59,8 +39,6 @@ public enum RoutingPreference implements com.google.protobuf.ProtocolMessageEnum
    */
   TRAFFIC_UNAWARE(1),
   /**
-   *
-   *
    * 
    * Calculates routes taking live traffic conditions into consideration.
    * In contrast to `TRAFFIC_AWARE_OPTIMAL`, some optimizations are applied to
@@ -71,8 +49,6 @@ public enum RoutingPreference implements com.google.protobuf.ProtocolMessageEnum
    */
   TRAFFIC_AWARE(2),
   /**
-   *
-   *
    * 
    * Calculates the routes taking live traffic conditions into consideration,
    * without applying most performance optimizations. Using this value produces
@@ -86,8 +62,6 @@ public enum RoutingPreference implements com.google.protobuf.ProtocolMessageEnum
   ;
 
   /**
-   *
-   *
    * 
    * No routing preference specified. Default to `TRAFFIC_UNAWARE`.
    * 
@@ -96,8 +70,6 @@ public enum RoutingPreference implements com.google.protobuf.ProtocolMessageEnum */ public static final int ROUTING_PREFERENCE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Computes routes without taking live traffic conditions into consideration.
    * Suitable when traffic conditions don't matter or are not applicable.
@@ -115,8 +87,6 @@ public enum RoutingPreference implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int TRAFFIC_UNAWARE_VALUE = 1;
   /**
-   *
-   *
    * 
    * Calculates routes taking live traffic conditions into consideration.
    * In contrast to `TRAFFIC_AWARE_OPTIMAL`, some optimizations are applied to
@@ -127,8 +97,6 @@ public enum RoutingPreference implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int TRAFFIC_AWARE_VALUE = 2;
   /**
-   *
-   *
    * 
    * Calculates the routes taking live traffic conditions into consideration,
    * without applying most performance optimizations. Using this value produces
@@ -139,6 +107,7 @@ public enum RoutingPreference implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int TRAFFIC_AWARE_OPTIMAL_VALUE = 3;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -163,44 +132,40 @@ public static RoutingPreference valueOf(int value) {
    */
   public static RoutingPreference forNumber(int value) {
     switch (value) {
-      case 0:
-        return ROUTING_PREFERENCE_UNSPECIFIED;
-      case 1:
-        return TRAFFIC_UNAWARE;
-      case 2:
-        return TRAFFIC_AWARE;
-      case 3:
-        return TRAFFIC_AWARE_OPTIMAL;
-      default:
-        return null;
+      case 0: return ROUTING_PREFERENCE_UNSPECIFIED;
+      case 1: return TRAFFIC_UNAWARE;
+      case 2: return TRAFFIC_AWARE;
+      case 3: return TRAFFIC_AWARE_OPTIMAL;
+      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 RoutingPreference findValueByNumber(int number) {
-              return RoutingPreference.forNumber(number);
-            }
-          };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      RoutingPreference> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public RoutingPreference findValueByNumber(int number) {
+            return RoutingPreference.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.maps.routing.v2.RoutingPreferenceProto.getDescriptor().getEnumTypes().get(0);
   }
 
@@ -209,7 +174,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
   public static RoutingPreference 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;
@@ -225,3 +191,4 @@ private RoutingPreference(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.RoutingPreference)
 }
+
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java
new file mode 100644
index 000000000000..9d317ece1133
--- /dev/null
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java
@@ -0,0 +1,45 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/maps/routing/v2/routing_preference.proto
+
+package com.google.maps.routing.v2;
+
+public final class RoutingPreferenceProto {
+  private RoutingPreferenceProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  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/maps/routing/v2/routing_prefere" +
+      "nce.proto\022\026google.maps.routing.v2*z\n\021Rou" +
+      "tingPreference\022\"\n\036ROUTING_PREFERENCE_UNS" +
+      "PECIFIED\020\000\022\023\n\017TRAFFIC_UNAWARE\020\001\022\021\n\rTRAFF" +
+      "IC_AWARE\020\002\022\031\n\025TRAFFIC_AWARE_OPTIMAL\020\003B\313\001" +
+      "\n\032com.google.maps.routing.v2B\026RoutingPre" +
+      "ferenceProtoP\001Z:cloud.google.com/go/maps" +
+      "/routing/apiv2/routingpb;routingpb\370\001\001\242\002\005" +
+      "GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\" +
+      "Maps\\Routing\\V2\352\002\031Google::Maps::Routing:" +
+      ":V2b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+        });
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingInterval.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingInterval.java
similarity index 73%
rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingInterval.java
rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingInterval.java
index 188495cf62db..ca4bb97c5b5f 100644
--- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingInterval.java
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingInterval.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/maps/routing/v2/speed_reading_interval.proto
 
 package com.google.maps.routing.v2;
 
 /**
- *
- *
  * 
  * Traffic density indicator on a contiguous segment of a polyline or path.
  * Given a path with points P_0, P_1, ... , P_N (zero-based index), the
@@ -30,52 +13,48 @@
  *
  * Protobuf type {@code google.maps.routing.v2.SpeedReadingInterval}
  */
-public final class SpeedReadingInterval extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SpeedReadingInterval extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.SpeedReadingInterval)
     SpeedReadingIntervalOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SpeedReadingInterval.newBuilder() to construct.
   private SpeedReadingInterval(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private SpeedReadingInterval() {}
+  private SpeedReadingInterval() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SpeedReadingInterval();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.maps.routing.v2.SpeedReadingIntervalProto
-        .internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.maps.routing.v2.SpeedReadingIntervalProto.internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.SpeedReadingIntervalProto
-        .internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable
+    return com.google.maps.routing.v2.SpeedReadingIntervalProto.internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.SpeedReadingInterval.class,
-            com.google.maps.routing.v2.SpeedReadingInterval.Builder.class);
+            com.google.maps.routing.v2.SpeedReadingInterval.class, com.google.maps.routing.v2.SpeedReadingInterval.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The classification of polyline speed based on traffic data.
    * 
* * Protobuf enum {@code google.maps.routing.v2.SpeedReadingInterval.Speed} */ - public enum Speed implements com.google.protobuf.ProtocolMessageEnum { + public enum Speed + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value. This value is unused.
      * 
@@ -84,8 +63,6 @@ public enum Speed implements com.google.protobuf.ProtocolMessageEnum { */ SPEED_UNSPECIFIED(0), /** - * - * *
      * Normal speed, no slowdown is detected.
      * 
@@ -94,8 +71,6 @@ public enum Speed implements com.google.protobuf.ProtocolMessageEnum { */ NORMAL(1), /** - * - * *
      * Slowdown detected, but no traffic jam formed.
      * 
@@ -104,8 +79,6 @@ public enum Speed implements com.google.protobuf.ProtocolMessageEnum { */ SLOW(2), /** - * - * *
      * Traffic jam detected.
      * 
@@ -117,8 +90,6 @@ public enum Speed implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is unused.
      * 
@@ -127,8 +98,6 @@ public enum Speed implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPEED_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Normal speed, no slowdown is detected.
      * 
@@ -137,8 +106,6 @@ public enum Speed implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NORMAL_VALUE = 1; /** - * - * *
      * Slowdown detected, but no traffic jam formed.
      * 
@@ -147,8 +114,6 @@ public enum Speed implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SLOW_VALUE = 2; /** - * - * *
      * Traffic jam detected.
      * 
@@ -157,6 +122,7 @@ public enum Speed implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TRAFFIC_JAM_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -181,51 +147,50 @@ public static Speed valueOf(int value) { */ public static Speed forNumber(int value) { switch (value) { - case 0: - return SPEED_UNSPECIFIED; - case 1: - return NORMAL; - case 2: - return SLOW; - case 3: - return TRAFFIC_JAM; - default: - return null; + case 0: return SPEED_UNSPECIFIED; + case 1: return NORMAL; + case 2: return SLOW; + case 3: return TRAFFIC_JAM; + 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< + Speed> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Speed findValueByNumber(int number) { + return Speed.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Speed findValueByNumber(int number) { - return Speed.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.maps.routing.v2.SpeedReadingInterval.getDescriptor().getEnumTypes().get(0); } private static final Speed[] VALUES = values(); - public static Speed valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Speed 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; @@ -244,18 +209,14 @@ private Speed(int value) { private int bitField0_; private int speedTypeCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object speedType_; - public enum SpeedTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SPEED(3), SPEEDTYPE_NOT_SET(0); private final int value; - private SpeedTypeCase(int value) { this.value = value; } @@ -271,35 +232,30 @@ public static SpeedTypeCase valueOf(int value) { public static SpeedTypeCase forNumber(int value) { switch (value) { - case 3: - return SPEED; - case 0: - return SPEEDTYPE_NOT_SET; - default: - return null; + case 3: return SPEED; + case 0: return SPEEDTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SpeedTypeCase getSpeedTypeCase() { - return SpeedTypeCase.forNumber(speedTypeCase_); + public SpeedTypeCase + getSpeedTypeCase() { + return SpeedTypeCase.forNumber( + speedTypeCase_); } public static final int START_POLYLINE_POINT_INDEX_FIELD_NUMBER = 1; private int startPolylinePointIndex_ = 0; /** - * - * *
    * The starting index of this interval in the polyline.
    * 
* * optional int32 start_polyline_point_index = 1; - * * @return Whether the startPolylinePointIndex field is set. */ @java.lang.Override @@ -307,14 +263,11 @@ public boolean hasStartPolylinePointIndex() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * The starting index of this interval in the polyline.
    * 
* * optional int32 start_polyline_point_index = 1; - * * @return The startPolylinePointIndex. */ @java.lang.Override @@ -325,14 +278,11 @@ public int getStartPolylinePointIndex() { public static final int END_POLYLINE_POINT_INDEX_FIELD_NUMBER = 2; private int endPolylinePointIndex_ = 0; /** - * - * *
    * The ending index of this interval in the polyline.
    * 
* * optional int32 end_polyline_point_index = 2; - * * @return Whether the endPolylinePointIndex field is set. */ @java.lang.Override @@ -340,14 +290,11 @@ public boolean hasEndPolylinePointIndex() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * The ending index of this interval in the polyline.
    * 
* * optional int32 end_polyline_point_index = 2; - * * @return The endPolylinePointIndex. */ @java.lang.Override @@ -357,28 +304,22 @@ public int getEndPolylinePointIndex() { public static final int SPEED_FIELD_NUMBER = 3; /** - * - * *
    * Traffic speed in this interval.
    * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; - * * @return Whether the speed field is set. */ public boolean hasSpeed() { return speedTypeCase_ == 3; } /** - * - * *
    * Traffic speed in this interval.
    * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; - * * @return The enum numeric value on the wire for speed. */ public int getSpeedValue() { @@ -388,30 +329,23 @@ public int getSpeedValue() { return 0; } /** - * - * *
    * Traffic speed in this interval.
    * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; - * * @return The speed. */ public com.google.maps.routing.v2.SpeedReadingInterval.Speed getSpeed() { if (speedTypeCase_ == 3) { - com.google.maps.routing.v2.SpeedReadingInterval.Speed result = - com.google.maps.routing.v2.SpeedReadingInterval.Speed.forNumber( - (java.lang.Integer) speedType_); - return result == null - ? com.google.maps.routing.v2.SpeedReadingInterval.Speed.UNRECOGNIZED - : result; + com.google.maps.routing.v2.SpeedReadingInterval.Speed result = com.google.maps.routing.v2.SpeedReadingInterval.Speed.forNumber( + (java.lang.Integer) speedType_); + return result == null ? com.google.maps.routing.v2.SpeedReadingInterval.Speed.UNRECOGNIZED : result; } return com.google.maps.routing.v2.SpeedReadingInterval.Speed.SPEED_UNSPECIFIED; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -423,7 +357,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, startPolylinePointIndex_); } @@ -443,15 +378,16 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, startPolylinePointIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, startPolylinePointIndex_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, endPolylinePointIndex_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, endPolylinePointIndex_); } if (speedTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 3, ((java.lang.Integer) speedType_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, ((java.lang.Integer) speedType_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -461,26 +397,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.maps.routing.v2.SpeedReadingInterval)) { return super.equals(obj); } - com.google.maps.routing.v2.SpeedReadingInterval other = - (com.google.maps.routing.v2.SpeedReadingInterval) obj; + com.google.maps.routing.v2.SpeedReadingInterval other = (com.google.maps.routing.v2.SpeedReadingInterval) obj; if (hasStartPolylinePointIndex() != other.hasStartPolylinePointIndex()) return false; if (hasStartPolylinePointIndex()) { - if (getStartPolylinePointIndex() != other.getStartPolylinePointIndex()) return false; + if (getStartPolylinePointIndex() + != other.getStartPolylinePointIndex()) return false; } if (hasEndPolylinePointIndex() != other.hasEndPolylinePointIndex()) return false; if (hasEndPolylinePointIndex()) { - if (getEndPolylinePointIndex() != other.getEndPolylinePointIndex()) return false; + if (getEndPolylinePointIndex() + != other.getEndPolylinePointIndex()) return false; } if (!getSpeedTypeCase().equals(other.getSpeedTypeCase())) return false; switch (speedTypeCase_) { case 3: - if (getSpeedValue() != other.getSpeedValue()) return false; + if (getSpeedValue() + != other.getSpeedValue()) return false; break; case 0: default: @@ -517,104 +455,99 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.SpeedReadingInterval parseFrom(java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.SpeedReadingInterval parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.SpeedReadingInterval parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval 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; } /** - * - * *
    * Traffic density indicator on a contiguous segment of a polyline or path.
    * Given a path with points P_0, P_1, ... , P_N (zero-based index), the
@@ -624,32 +557,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.maps.routing.v2.SpeedReadingInterval}
    */
-  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.maps.routing.v2.SpeedReadingInterval)
       com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.maps.routing.v2.SpeedReadingIntervalProto
-          .internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.maps.routing.v2.SpeedReadingIntervalProto.internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.SpeedReadingIntervalProto
-          .internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable
+      return com.google.maps.routing.v2.SpeedReadingIntervalProto.internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.SpeedReadingInterval.class,
-              com.google.maps.routing.v2.SpeedReadingInterval.Builder.class);
+              com.google.maps.routing.v2.SpeedReadingInterval.class, com.google.maps.routing.v2.SpeedReadingInterval.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.SpeedReadingInterval.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();
@@ -662,9 +596,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.maps.routing.v2.SpeedReadingIntervalProto
-          .internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.maps.routing.v2.SpeedReadingIntervalProto.internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor;
     }
 
     @java.lang.Override
@@ -683,11 +617,8 @@ public com.google.maps.routing.v2.SpeedReadingInterval build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.SpeedReadingInterval buildPartial() {
-      com.google.maps.routing.v2.SpeedReadingInterval result =
-          new com.google.maps.routing.v2.SpeedReadingInterval(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.maps.routing.v2.SpeedReadingInterval result = new com.google.maps.routing.v2.SpeedReadingInterval(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -716,39 +647,38 @@ private void buildPartialOneofs(com.google.maps.routing.v2.SpeedReadingInterval
     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.maps.routing.v2.SpeedReadingInterval) {
-        return mergeFrom((com.google.maps.routing.v2.SpeedReadingInterval) other);
+        return mergeFrom((com.google.maps.routing.v2.SpeedReadingInterval)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -756,8 +686,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.maps.routing.v2.SpeedReadingInterval other) {
-      if (other == com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance())
-        return this;
+      if (other == com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()) return this;
       if (other.hasStartPolylinePointIndex()) {
         setStartPolylinePointIndex(other.getStartPolylinePointIndex());
       }
@@ -765,15 +694,13 @@ public Builder mergeFrom(com.google.maps.routing.v2.SpeedReadingInterval other)
         setEndPolylinePointIndex(other.getEndPolylinePointIndex());
       }
       switch (other.getSpeedTypeCase()) {
-        case SPEED:
-          {
-            setSpeedValue(other.getSpeedValue());
-            break;
-          }
-        case SPEEDTYPE_NOT_SET:
-          {
-            break;
-          }
+        case SPEED: {
+          setSpeedValue(other.getSpeedValue());
+          break;
+        }
+        case SPEEDTYPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -801,32 +728,28 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                startPolylinePointIndex_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                endPolylinePointIndex_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                int rawValue = input.readEnum();
-                speedTypeCase_ = 3;
-                speedType_ = rawValue;
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              startPolylinePointIndex_ = input.readInt32();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              endPolylinePointIndex_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              int rawValue = input.readEnum();
+              speedTypeCase_ = 3;
+              speedType_ = rawValue;
+              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) {
@@ -836,12 +759,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int speedTypeCase_ = 0;
     private java.lang.Object speedType_;
-
-    public SpeedTypeCase getSpeedTypeCase() {
-      return SpeedTypeCase.forNumber(speedTypeCase_);
+    public SpeedTypeCase
+        getSpeedTypeCase() {
+      return SpeedTypeCase.forNumber(
+          speedTypeCase_);
     }
 
     public Builder clearSpeedType() {
@@ -853,16 +776,13 @@ public Builder clearSpeedType() {
 
     private int bitField0_;
 
-    private int startPolylinePointIndex_;
+    private int startPolylinePointIndex_ ;
     /**
-     *
-     *
      * 
      * The starting index of this interval in the polyline.
      * 
* * optional int32 start_polyline_point_index = 1; - * * @return Whether the startPolylinePointIndex field is set. */ @java.lang.Override @@ -870,14 +790,11 @@ public boolean hasStartPolylinePointIndex() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The starting index of this interval in the polyline.
      * 
* * optional int32 start_polyline_point_index = 1; - * * @return The startPolylinePointIndex. */ @java.lang.Override @@ -885,14 +802,11 @@ public int getStartPolylinePointIndex() { return startPolylinePointIndex_; } /** - * - * *
      * The starting index of this interval in the polyline.
      * 
* * optional int32 start_polyline_point_index = 1; - * * @param value The startPolylinePointIndex to set. * @return This builder for chaining. */ @@ -904,14 +818,11 @@ public Builder setStartPolylinePointIndex(int value) { return this; } /** - * - * *
      * The starting index of this interval in the polyline.
      * 
* * optional int32 start_polyline_point_index = 1; - * * @return This builder for chaining. */ public Builder clearStartPolylinePointIndex() { @@ -921,16 +832,13 @@ public Builder clearStartPolylinePointIndex() { return this; } - private int endPolylinePointIndex_; + private int endPolylinePointIndex_ ; /** - * - * *
      * The ending index of this interval in the polyline.
      * 
* * optional int32 end_polyline_point_index = 2; - * * @return Whether the endPolylinePointIndex field is set. */ @java.lang.Override @@ -938,14 +846,11 @@ public boolean hasEndPolylinePointIndex() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The ending index of this interval in the polyline.
      * 
* * optional int32 end_polyline_point_index = 2; - * * @return The endPolylinePointIndex. */ @java.lang.Override @@ -953,14 +858,11 @@ public int getEndPolylinePointIndex() { return endPolylinePointIndex_; } /** - * - * *
      * The ending index of this interval in the polyline.
      * 
* * optional int32 end_polyline_point_index = 2; - * * @param value The endPolylinePointIndex to set. * @return This builder for chaining. */ @@ -972,14 +874,11 @@ public Builder setEndPolylinePointIndex(int value) { return this; } /** - * - * *
      * The ending index of this interval in the polyline.
      * 
* * optional int32 end_polyline_point_index = 2; - * * @return This builder for chaining. */ public Builder clearEndPolylinePointIndex() { @@ -990,14 +889,11 @@ public Builder clearEndPolylinePointIndex() { } /** - * - * *
      * Traffic speed in this interval.
      * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; - * * @return Whether the speed field is set. */ @java.lang.Override @@ -1005,14 +901,11 @@ public boolean hasSpeed() { return speedTypeCase_ == 3; } /** - * - * *
      * Traffic speed in this interval.
      * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; - * * @return The enum numeric value on the wire for speed. */ @java.lang.Override @@ -1023,14 +916,11 @@ public int getSpeedValue() { return 0; } /** - * - * *
      * Traffic speed in this interval.
      * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; - * * @param value The enum numeric value on the wire for speed to set. * @return This builder for chaining. */ @@ -1041,37 +931,28 @@ public Builder setSpeedValue(int value) { return this; } /** - * - * *
      * Traffic speed in this interval.
      * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; - * * @return The speed. */ @java.lang.Override public com.google.maps.routing.v2.SpeedReadingInterval.Speed getSpeed() { if (speedTypeCase_ == 3) { - com.google.maps.routing.v2.SpeedReadingInterval.Speed result = - com.google.maps.routing.v2.SpeedReadingInterval.Speed.forNumber( - (java.lang.Integer) speedType_); - return result == null - ? com.google.maps.routing.v2.SpeedReadingInterval.Speed.UNRECOGNIZED - : result; + com.google.maps.routing.v2.SpeedReadingInterval.Speed result = com.google.maps.routing.v2.SpeedReadingInterval.Speed.forNumber( + (java.lang.Integer) speedType_); + return result == null ? com.google.maps.routing.v2.SpeedReadingInterval.Speed.UNRECOGNIZED : result; } return com.google.maps.routing.v2.SpeedReadingInterval.Speed.SPEED_UNSPECIFIED; } /** - * - * *
      * Traffic speed in this interval.
      * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; - * * @param value The speed to set. * @return This builder for chaining. */ @@ -1085,14 +966,11 @@ public Builder setSpeed(com.google.maps.routing.v2.SpeedReadingInterval.Speed va return this; } /** - * - * *
      * Traffic speed in this interval.
      * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; - * * @return This builder for chaining. */ public Builder clearSpeed() { @@ -1103,9 +981,9 @@ public Builder clearSpeed() { } 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); } @@ -1115,12 +993,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.SpeedReadingInterval) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.SpeedReadingInterval) private static final com.google.maps.routing.v2.SpeedReadingInterval DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.SpeedReadingInterval(); } @@ -1129,27 +1007,27 @@ public static com.google.maps.routing.v2.SpeedReadingInterval getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeedReadingInterval 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 SpeedReadingInterval 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; @@ -1164,4 +1042,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.SpeedReadingInterval getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalOrBuilder.java similarity index 73% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalOrBuilder.java index a62309676573..c4d6930ddfbe 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalOrBuilder.java @@ -1,111 +1,74 @@ -/* - * 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/maps/routing/v2/speed_reading_interval.proto package com.google.maps.routing.v2; -public interface SpeedReadingIntervalOrBuilder - extends +public interface SpeedReadingIntervalOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.SpeedReadingInterval) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The starting index of this interval in the polyline.
    * 
* * optional int32 start_polyline_point_index = 1; - * * @return Whether the startPolylinePointIndex field is set. */ boolean hasStartPolylinePointIndex(); /** - * - * *
    * The starting index of this interval in the polyline.
    * 
* * optional int32 start_polyline_point_index = 1; - * * @return The startPolylinePointIndex. */ int getStartPolylinePointIndex(); /** - * - * *
    * The ending index of this interval in the polyline.
    * 
* * optional int32 end_polyline_point_index = 2; - * * @return Whether the endPolylinePointIndex field is set. */ boolean hasEndPolylinePointIndex(); /** - * - * *
    * The ending index of this interval in the polyline.
    * 
* * optional int32 end_polyline_point_index = 2; - * * @return The endPolylinePointIndex. */ int getEndPolylinePointIndex(); /** - * - * *
    * Traffic speed in this interval.
    * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; - * * @return Whether the speed field is set. */ boolean hasSpeed(); /** - * - * *
    * Traffic speed in this interval.
    * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; - * * @return The enum numeric value on the wire for speed. */ int getSpeedValue(); /** - * - * *
    * Traffic speed in this interval.
    * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; - * * @return The speed. */ com.google.maps.routing.v2.SpeedReadingInterval.Speed getSpeed(); diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java new file mode 100644 index 000000000000..3159dc6ed44a --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/speed_reading_interval.proto + +package com.google.maps.routing.v2; + +public final class SpeedReadingIntervalProto { + private SpeedReadingIntervalProto() {} + 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_maps_routing_v2_SpeedReadingInterval_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/maps/routing/v2/speed_reading_i" + + "nterval.proto\022\026google.maps.routing.v2\"\274\002" + + "\n\024SpeedReadingInterval\022\'\n\032start_polyline" + + "_point_index\030\001 \001(\005H\001\210\001\001\022%\n\030end_polyline_" + + "point_index\030\002 \001(\005H\002\210\001\001\022C\n\005speed\030\003 \001(\01622." + + "google.maps.routing.v2.SpeedReadingInter" + + "val.SpeedH\000\"E\n\005Speed\022\025\n\021SPEED_UNSPECIFIE" + + "D\020\000\022\n\n\006NORMAL\020\001\022\010\n\004SLOW\020\002\022\017\n\013TRAFFIC_JAM" + + "\020\003B\014\n\nspeed_typeB\035\n\033_start_polyline_poin" + + "t_indexB\033\n\031_end_polyline_point_indexB\316\001\n" + + "\032com.google.maps.routing.v2B\031SpeedReadin" + + "gIntervalProtoP\001Z:cloud.google.com/go/ma" + + "ps/routing/apiv2/routingpb;routingpb\370\001\001\242" + + "\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Googl" + + "e\\Maps\\Routing\\V2\352\002\031Google::Maps::Routin" + + "g::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor, + new java.lang.String[] { "StartPolylinePointIndex", "EndPolylinePointIndex", "Speed", "SpeedType", "StartPolylinePointIndex", "EndPolylinePointIndex", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfo.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfo.java similarity index 78% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfo.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfo.java index 261bdfecefe8..401e9072a453 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfo.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfo.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/maps/routing/v2/toll_info.proto package com.google.maps.routing.v2; /** - * - * *
  * Encapsulates toll information on a [Route][google.maps.routing.v2.Route] or
  * on a [RouteLeg][google.maps.routing.v2.RouteLeg].
@@ -28,48 +11,43 @@
  *
  * Protobuf type {@code google.maps.routing.v2.TollInfo}
  */
-public final class TollInfo extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TollInfo extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.TollInfo)
     TollInfoOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TollInfo.newBuilder() to construct.
   private TollInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TollInfo() {
     estimatedPrice_ = 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 TollInfo();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.maps.routing.v2.TollInfoProto
-        .internal_static_google_maps_routing_v2_TollInfo_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.maps.routing.v2.TollInfoProto.internal_static_google_maps_routing_v2_TollInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.TollInfoProto
-        .internal_static_google_maps_routing_v2_TollInfo_fieldAccessorTable
+    return com.google.maps.routing.v2.TollInfoProto.internal_static_google_maps_routing_v2_TollInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.TollInfo.class,
-            com.google.maps.routing.v2.TollInfo.Builder.class);
+            com.google.maps.routing.v2.TollInfo.class, com.google.maps.routing.v2.TollInfo.Builder.class);
   }
 
   public static final int ESTIMATED_PRICE_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List estimatedPrice_;
   /**
-   *
-   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -87,8 +65,6 @@ public java.util.List getEstimatedPriceList() {
     return estimatedPrice_;
   }
   /**
-   *
-   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -102,12 +78,11 @@ public java.util.List getEstimatedPriceList() {
    * repeated .google.type.Money estimated_price = 1;
    */
   @java.lang.Override
-  public java.util.List getEstimatedPriceOrBuilderList() {
+  public java.util.List 
+      getEstimatedPriceOrBuilderList() {
     return estimatedPrice_;
   }
   /**
-   *
-   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -125,8 +100,6 @@ public int getEstimatedPriceCount() {
     return estimatedPrice_.size();
   }
   /**
-   *
-   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -144,8 +117,6 @@ public com.google.type.Money getEstimatedPrice(int index) {
     return estimatedPrice_.get(index);
   }
   /**
-   *
-   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -159,12 +130,12 @@ public com.google.type.Money getEstimatedPrice(int index) {
    * repeated .google.type.Money estimated_price = 1;
    */
   @java.lang.Override
-  public com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(int index) {
+  public com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(
+      int index) {
     return estimatedPrice_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -176,7 +147,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 < estimatedPrice_.size(); i++) {
       output.writeMessage(1, estimatedPrice_.get(i));
     }
@@ -190,7 +162,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < estimatedPrice_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, estimatedPrice_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, estimatedPrice_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -200,14 +173,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.maps.routing.v2.TollInfo)) {
       return super.equals(obj);
     }
     com.google.maps.routing.v2.TollInfo other = (com.google.maps.routing.v2.TollInfo) obj;
 
-    if (!getEstimatedPriceList().equals(other.getEstimatedPriceList())) return false;
+    if (!getEstimatedPriceList()
+        .equals(other.getEstimatedPriceList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -228,103 +202,99 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.maps.routing.v2.TollInfo parseFrom(java.nio.ByteBuffer data)
+  public static com.google.maps.routing.v2.TollInfo parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo parseFrom(com.google.protobuf.ByteString data)
+  public static com.google.maps.routing.v2.TollInfo parseFrom(
+      com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo 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 toll information on a [Route][google.maps.routing.v2.Route] or
    * on a [RouteLeg][google.maps.routing.v2.RouteLeg].
@@ -332,32 +302,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.maps.routing.v2.TollInfo}
    */
-  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.maps.routing.v2.TollInfo)
       com.google.maps.routing.v2.TollInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.maps.routing.v2.TollInfoProto
-          .internal_static_google_maps_routing_v2_TollInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.maps.routing.v2.TollInfoProto.internal_static_google_maps_routing_v2_TollInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.TollInfoProto
-          .internal_static_google_maps_routing_v2_TollInfo_fieldAccessorTable
+      return com.google.maps.routing.v2.TollInfoProto.internal_static_google_maps_routing_v2_TollInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.TollInfo.class,
-              com.google.maps.routing.v2.TollInfo.Builder.class);
+              com.google.maps.routing.v2.TollInfo.class, com.google.maps.routing.v2.TollInfo.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.TollInfo.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 +344,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.maps.routing.v2.TollInfoProto
-          .internal_static_google_maps_routing_v2_TollInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.maps.routing.v2.TollInfoProto.internal_static_google_maps_routing_v2_TollInfo_descriptor;
     }
 
     @java.lang.Override
@@ -396,9 +367,7 @@ public com.google.maps.routing.v2.TollInfo build() {
     public com.google.maps.routing.v2.TollInfo buildPartial() {
       com.google.maps.routing.v2.TollInfo result = new com.google.maps.routing.v2.TollInfo(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -423,39 +392,38 @@ private void buildPartial0(com.google.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo) {
-        return mergeFrom((com.google.maps.routing.v2.TollInfo) other);
+        return mergeFrom((com.google.maps.routing.v2.TollInfo)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -482,10 +450,9 @@ public Builder mergeFrom(com.google.maps.routing.v2.TollInfo other) {
             estimatedPriceBuilder_ = null;
             estimatedPrice_ = other.estimatedPrice_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            estimatedPriceBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getEstimatedPriceFieldBuilder()
-                    : null;
+            estimatedPriceBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getEstimatedPriceFieldBuilder() : null;
           } else {
             estimatedPriceBuilder_.addAllMessages(other.estimatedPrice_);
           }
@@ -517,25 +484,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.type.Money m =
-                    input.readMessage(com.google.type.Money.parser(), extensionRegistry);
-                if (estimatedPriceBuilder_ == null) {
-                  ensureEstimatedPriceIsMutable();
-                  estimatedPrice_.add(m);
-                } else {
-                  estimatedPriceBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.type.Money m =
+                  input.readMessage(
+                      com.google.type.Money.parser(),
+                      extensionRegistry);
+              if (estimatedPriceBuilder_ == null) {
+                ensureEstimatedPriceIsMutable();
+                estimatedPrice_.add(m);
+              } else {
+                estimatedPriceBuilder_.addMessage(m);
+              }
+              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) {
@@ -545,26 +512,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List estimatedPrice_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureEstimatedPriceIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         estimatedPrice_ = new java.util.ArrayList(estimatedPrice_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
-        estimatedPriceBuilder_;
+        com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> estimatedPriceBuilder_;
 
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -585,8 +547,6 @@ public java.util.List getEstimatedPriceList() {
       }
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -607,8 +567,6 @@ public int getEstimatedPriceCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -629,8 +587,6 @@ public com.google.type.Money getEstimatedPrice(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -643,7 +599,8 @@ public com.google.type.Money getEstimatedPrice(int index) {
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public Builder setEstimatedPrice(int index, com.google.type.Money value) {
+    public Builder setEstimatedPrice(
+        int index, com.google.type.Money value) {
       if (estimatedPriceBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -657,8 +614,6 @@ public Builder setEstimatedPrice(int index, com.google.type.Money value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -671,7 +626,8 @@ public Builder setEstimatedPrice(int index, com.google.type.Money value) {
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public Builder setEstimatedPrice(int index, com.google.type.Money.Builder builderForValue) {
+    public Builder setEstimatedPrice(
+        int index, com.google.type.Money.Builder builderForValue) {
       if (estimatedPriceBuilder_ == null) {
         ensureEstimatedPriceIsMutable();
         estimatedPrice_.set(index, builderForValue.build());
@@ -682,8 +638,6 @@ public Builder setEstimatedPrice(int index, com.google.type.Money.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -710,8 +664,6 @@ public Builder addEstimatedPrice(com.google.type.Money value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -724,7 +676,8 @@ public Builder addEstimatedPrice(com.google.type.Money value) {
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public Builder addEstimatedPrice(int index, com.google.type.Money value) {
+    public Builder addEstimatedPrice(
+        int index, com.google.type.Money value) {
       if (estimatedPriceBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -738,8 +691,6 @@ public Builder addEstimatedPrice(int index, com.google.type.Money value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -752,7 +703,8 @@ public Builder addEstimatedPrice(int index, com.google.type.Money value) {
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public Builder addEstimatedPrice(com.google.type.Money.Builder builderForValue) {
+    public Builder addEstimatedPrice(
+        com.google.type.Money.Builder builderForValue) {
       if (estimatedPriceBuilder_ == null) {
         ensureEstimatedPriceIsMutable();
         estimatedPrice_.add(builderForValue.build());
@@ -763,8 +715,6 @@ public Builder addEstimatedPrice(com.google.type.Money.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -777,7 +727,8 @@ public Builder addEstimatedPrice(com.google.type.Money.Builder builderForValue)
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public Builder addEstimatedPrice(int index, com.google.type.Money.Builder builderForValue) {
+    public Builder addEstimatedPrice(
+        int index, com.google.type.Money.Builder builderForValue) {
       if (estimatedPriceBuilder_ == null) {
         ensureEstimatedPriceIsMutable();
         estimatedPrice_.add(index, builderForValue.build());
@@ -788,8 +739,6 @@ public Builder addEstimatedPrice(int index, com.google.type.Money.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -806,7 +755,8 @@ public Builder addAllEstimatedPrice(
         java.lang.Iterable values) {
       if (estimatedPriceBuilder_ == null) {
         ensureEstimatedPriceIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, estimatedPrice_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, estimatedPrice_);
         onChanged();
       } else {
         estimatedPriceBuilder_.addAllMessages(values);
@@ -814,8 +764,6 @@ public Builder addAllEstimatedPrice(
       return this;
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -839,8 +787,6 @@ public Builder clearEstimatedPrice() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -864,8 +810,6 @@ public Builder removeEstimatedPrice(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -878,12 +822,11 @@ public Builder removeEstimatedPrice(int index) {
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public com.google.type.Money.Builder getEstimatedPriceBuilder(int index) {
+    public com.google.type.Money.Builder getEstimatedPriceBuilder(
+        int index) {
       return getEstimatedPriceFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -896,16 +839,14 @@ public com.google.type.Money.Builder getEstimatedPriceBuilder(int index) {
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(int index) {
+    public com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(
+        int index) {
       if (estimatedPriceBuilder_ == null) {
-        return estimatedPrice_.get(index);
-      } else {
+        return estimatedPrice_.get(index);  } else {
         return estimatedPriceBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -918,8 +859,8 @@ public com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(int index) {
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public java.util.List
-        getEstimatedPriceOrBuilderList() {
+    public java.util.List 
+         getEstimatedPriceOrBuilderList() {
       if (estimatedPriceBuilder_ != null) {
         return estimatedPriceBuilder_.getMessageOrBuilderList();
       } else {
@@ -927,8 +868,6 @@ public com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -942,11 +881,10 @@ public com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(int index) {
      * repeated .google.type.Money estimated_price = 1;
      */
     public com.google.type.Money.Builder addEstimatedPriceBuilder() {
-      return getEstimatedPriceFieldBuilder().addBuilder(com.google.type.Money.getDefaultInstance());
+      return getEstimatedPriceFieldBuilder().addBuilder(
+          com.google.type.Money.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -959,13 +897,12 @@ public com.google.type.Money.Builder addEstimatedPriceBuilder() {
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public com.google.type.Money.Builder addEstimatedPriceBuilder(int index) {
-      return getEstimatedPriceFieldBuilder()
-          .addBuilder(index, com.google.type.Money.getDefaultInstance());
+    public com.google.type.Money.Builder addEstimatedPriceBuilder(
+        int index) {
+      return getEstimatedPriceFieldBuilder().addBuilder(
+          index, com.google.type.Money.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -978,19 +915,16 @@ public com.google.type.Money.Builder addEstimatedPriceBuilder(int index) {
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public java.util.List getEstimatedPriceBuilderList() {
+    public java.util.List 
+         getEstimatedPriceBuilderList() {
       return getEstimatedPriceFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
+        com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> 
         getEstimatedPriceFieldBuilder() {
       if (estimatedPriceBuilder_ == null) {
-        estimatedPriceBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.type.Money,
-                com.google.type.Money.Builder,
-                com.google.type.MoneyOrBuilder>(
+        estimatedPriceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>(
                 estimatedPrice_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -999,9 +933,9 @@ public java.util.List getEstimatedPriceBuilderLis
       }
       return estimatedPriceBuilder_;
     }
-
     @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);
     }
 
@@ -1011,12 +945,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.TollInfo)
   }
 
   // @@protoc_insertion_point(class_scope:google.maps.routing.v2.TollInfo)
   private static final com.google.maps.routing.v2.TollInfo DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.maps.routing.v2.TollInfo();
   }
@@ -1025,27 +959,27 @@ public static com.google.maps.routing.v2.TollInfo getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public TollInfo 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 TollInfo 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;
@@ -1060,4 +994,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.maps.routing.v2.TollInfo getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoOrBuilder.java
similarity index 77%
rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoOrBuilder.java
rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoOrBuilder.java
index dbb92b60c57a..2ea8b93a0a46 100644
--- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoOrBuilder.java
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoOrBuilder.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/maps/routing/v2/toll_info.proto
 
 package com.google.maps.routing.v2;
 
-public interface TollInfoOrBuilder
-    extends
+public interface TollInfoOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.TollInfo)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -38,10 +20,9 @@ public interface TollInfoOrBuilder
    *
    * repeated .google.type.Money estimated_price = 1;
    */
-  java.util.List getEstimatedPriceList();
+  java.util.List 
+      getEstimatedPriceList();
   /**
-   *
-   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -56,8 +37,6 @@ public interface TollInfoOrBuilder
    */
   com.google.type.Money getEstimatedPrice(int index);
   /**
-   *
-   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -72,8 +51,6 @@ public interface TollInfoOrBuilder
    */
   int getEstimatedPriceCount();
   /**
-   *
-   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -86,10 +63,9 @@ public interface TollInfoOrBuilder
    *
    * repeated .google.type.Money estimated_price = 1;
    */
-  java.util.List getEstimatedPriceOrBuilderList();
+  java.util.List 
+      getEstimatedPriceOrBuilderList();
   /**
-   *
-   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -102,5 +78,6 @@ public interface TollInfoOrBuilder
    *
    * repeated .google.type.Money estimated_price = 1;
    */
-  com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(int index);
+  com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(
+      int index);
 }
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java
new file mode 100644
index 000000000000..92cf1e019bd9
--- /dev/null
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java
@@ -0,0 +1,56 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/maps/routing/v2/toll_info.proto
+
+package com.google.maps.routing.v2;
+
+public final class TollInfoProto {
+  private TollInfoProto() {}
+  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_maps_routing_v2_TollInfo_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_maps_routing_v2_TollInfo_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/maps/routing/v2/toll_info.proto" +
+      "\022\026google.maps.routing.v2\032\027google/type/mo" +
+      "ney.proto\"7\n\010TollInfo\022+\n\017estimated_price" +
+      "\030\001 \003(\0132\022.google.type.MoneyB\302\001\n\032com.googl" +
+      "e.maps.routing.v2B\rTollInfoProtoP\001Z:clou" +
+      "d.google.com/go/maps/routing/apiv2/routi" +
+      "ngpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps." +
+      "Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Go" +
+      "ogle::Maps::Routing::V2b\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.type.MoneyProto.getDescriptor(),
+        });
+    internal_static_google_maps_routing_v2_TollInfo_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_maps_routing_v2_TollInfo_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_maps_routing_v2_TollInfo_descriptor,
+        new java.lang.String[] { "EstimatedPrice", });
+    com.google.type.MoneyProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPass.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPass.java
similarity index 79%
rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPass.java
rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPass.java
index 1a7d5939051d..50790566ef0c 100644
--- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPass.java
+++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPass.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/maps/routing/v2/toll_passes.proto
 
 package com.google.maps.routing.v2;
 
 /**
- *
- *
  * 
  * List of toll passes around the world that we support.
  * 
* * Protobuf enum {@code google.maps.routing.v2.TollPass} */ -public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { +public enum TollPass + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Not used. If this value is used, then the request fails.
    * 
@@ -39,8 +21,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ TOLL_PASS_UNSPECIFIED(0), /** - * - * *
    * Sydney toll pass. See additional details at https://www.myetoll.com.au.
    * 
@@ -49,8 +29,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ AU_ETOLL_TAG(82), /** - * - * *
    * Sydney toll pass. See additional details at https://www.tollpay.com.au.
    * 
@@ -59,8 +37,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ AU_EWAY_TAG(83), /** - * - * *
    * Australia-wide toll pass.
    * See additional details at https://www.linkt.com.au/.
@@ -70,8 +46,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   AU_LINKT(2),
   /**
-   *
-   *
    * 
    * Argentina toll pass. See additional details at https://telepase.com.ar
    * 
@@ -80,8 +54,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ AR_TELEPASE(3), /** - * - * *
    * Brazil toll pass. See additional details at https://www.autoexpreso.com
    * 
@@ -90,8 +62,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ BR_AUTO_EXPRESO(81), /** - * - * *
    * Brazil toll pass. See additional details at https://conectcar.com.
    * 
@@ -100,8 +70,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ BR_CONECTCAR(7), /** - * - * *
    * Brazil toll pass. See additional details at https://movemais.com.
    * 
@@ -110,8 +78,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ BR_MOVE_MAIS(8), /** - * - * *
    * Brazil toll pass. See additional details at https://pasorapido.gob.do/
    * 
@@ -120,8 +86,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ BR_PASSA_RAPIDO(88), /** - * - * *
    * Brazil toll pass. See additional details at https://www.semparar.com.br.
    * 
@@ -130,8 +94,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ BR_SEM_PARAR(9), /** - * - * *
    * Brazil toll pass. See additional details at https://taggy.com.br.
    * 
@@ -140,8 +102,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ BR_TAGGY(10), /** - * - * *
    * Brazil toll pass. See additional details at
    * https://veloe.com.br/site/onde-usar.
@@ -151,8 +111,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   BR_VELOE(11),
   /**
-   *
-   *
    * 
    * Canada to United States border crossing.
    * 
@@ -161,8 +119,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD(84), /** - * - * *
    * Canada to United States border crossing.
    * 
@@ -171,8 +127,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD(85), /** - * - * *
    * Ontario, Canada to Michigan, United States border crossing.
    * 
@@ -181,8 +135,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ CA_US_BLUE_WATER_EDGE_PASS(18), /** - * - * *
    * Ontario, Canada to Michigan, United States border crossing.
    * 
@@ -191,8 +143,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ CA_US_CONNEXION(19), /** - * - * *
    * Canada to United States border crossing.
    * 
@@ -201,8 +151,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ CA_US_NEXUS_CARD(20), /** - * - * *
    * Indonesia.
    * E-card provided by multiple banks used to pay for tolls. All e-cards
@@ -216,8 +164,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   ID_E_TOLL(16),
   /**
-   *
-   *
    * 
    * India.
    * 
@@ -226,8 +172,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ IN_FASTAG(78), /** - * - * *
    * India, HP state plate exemption.
    * 
@@ -236,8 +180,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ IN_LOCAL_HP_PLATE_EXEMPT(79), /** - * - * *
    * Mexico toll pass.
    * https://iave.capufe.gob.mx/#/
@@ -247,8 +189,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   MX_IAVE(90),
   /**
-   *
-   *
    * 
    * Mexico
    * https://www.pase.com.mx
@@ -258,8 +198,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   MX_PASE(91),
   /**
-   *
-   *
    * 
    * Mexico
    *  https://operadoravial.com/quick-pass/
@@ -269,8 +207,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   MX_QUICKPASS(93),
   /**
-   *
-   *
    * 
    * http://appsh.chihuahua.gob.mx/transparencia/?doc=/ingresos/TelepeajeFormato4.pdf
    * 
@@ -279,8 +215,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ MX_SISTEMA_TELEPEAJE_CHIHUAHUA(89), /** - * - * *
    * Mexico
    * 
@@ -289,8 +223,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ MX_TAG_IAVE(12), /** - * - * *
    * Mexico toll pass company. One of many operating in Mexico City. See
    * additional details at https://www.televia.com.mx.
@@ -300,8 +232,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   MX_TAG_TELEVIA(13),
   /**
-   *
-   *
    * 
    * Mexico toll pass company. One of many operating in Mexico City.
    * https://www.televia.com.mx
@@ -311,8 +241,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   MX_TELEVIA(92),
   /**
-   *
-   *
    * 
    * Mexico toll pass. See additional details at
    * https://www.viapass.com.mx/viapass/web_home.aspx.
@@ -322,8 +250,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   MX_VIAPASS(14),
   /**
-   *
-   *
    * 
    * AL, USA.
    * 
@@ -332,8 +258,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_AL_FREEDOM_PASS(21), /** - * - * *
    * AK, USA.
    * 
@@ -342,8 +266,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS(22), /** - * - * *
    * CA, USA.
    * 
@@ -352,8 +274,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_CA_FASTRAK(4), /** - * - * *
    * Indicates driver has any FasTrak pass in addition to the DMV issued Clean
    * Air Vehicle (CAV) sticker.
@@ -364,8 +284,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   US_CA_FASTRAK_CAV_STICKER(86),
   /**
-   *
-   *
    * 
    * CO, USA.
    * 
@@ -374,8 +292,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_CO_EXPRESSTOLL(23), /** - * - * *
    * CO, USA.
    * 
@@ -384,8 +300,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_CO_GO_PASS(24), /** - * - * *
    * DE, USA.
    * 
@@ -394,8 +308,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_DE_EZPASSDE(25), /** - * - * *
    * FL, USA.
    * 
@@ -404,8 +316,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_FL_BOB_SIKES_TOLL_BRIDGE_PASS(65), /** - * - * *
    * FL, USA.
    * 
@@ -414,8 +324,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD(66), /** - * - * *
    * FL, USA.
    * 
@@ -424,8 +332,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_FL_EPASS(67), /** - * - * *
    * FL, USA.
    * 
@@ -434,8 +340,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_FL_GIBA_TOLL_PASS(68), /** - * - * *
    * FL, USA.
    * 
@@ -444,8 +348,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_FL_LEEWAY(69), /** - * - * *
    * FL, USA.
    * 
@@ -454,8 +356,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_FL_SUNPASS(70), /** - * - * *
    * FL, USA.
    * 
@@ -464,8 +364,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_FL_SUNPASS_PRO(71), /** - * - * *
    * IL, USA.
    * 
@@ -474,8 +372,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_IL_EZPASSIL(73), /** - * - * *
    * IL, USA.
    * 
@@ -484,8 +380,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_IL_IPASS(72), /** - * - * *
    * IN, USA.
    * 
@@ -494,8 +388,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_IN_EZPASSIN(26), /** - * - * *
    * KS, USA.
    * 
@@ -504,8 +396,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_KS_BESTPASS_HORIZON(27), /** - * - * *
    * KS, USA.
    * 
@@ -514,8 +404,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_KS_KTAG(28), /** - * - * *
    * KS, USA.
    * 
@@ -524,8 +412,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_KS_NATIONALPASS(29), /** - * - * *
    * KS, USA.
    * 
@@ -534,8 +420,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_KS_PREPASS_ELITEPASS(30), /** - * - * *
    * KY, USA.
    * 
@@ -544,8 +428,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_KY_RIVERLINK(31), /** - * - * *
    * LA, USA.
    * 
@@ -554,8 +436,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_LA_GEAUXPASS(32), /** - * - * *
    * LA, USA.
    * 
@@ -564,8 +444,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_LA_TOLL_TAG(33), /** - * - * *
    * MA, USA.
    * 
@@ -574,8 +452,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_MA_EZPASSMA(6), /** - * - * *
    * MD, USA.
    * 
@@ -584,8 +460,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_MD_EZPASSMD(34), /** - * - * *
    * ME, USA.
    * 
@@ -594,8 +468,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_ME_EZPASSME(35), /** - * - * *
    * MI, USA.
    * 
@@ -604,8 +476,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD(36), /** - * - * *
    * MI, USA.
    * 
@@ -614,8 +484,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_MI_BCPASS(94), /** - * - * *
    * MI, USA.
    * 
@@ -624,18 +492,24 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG(37), /** - * - * *
    * MI, USA.
+   * Deprecated as this pass type no longer exists.
    * 
* - * US_MI_IQ_PROX_CARD = 38; + * US_MI_IQ_PROX_CARD = 38 [deprecated = true]; */ + @java.lang.Deprecated US_MI_IQ_PROX_CARD(38), /** + *
+   * MI, USA.
+   * 
* - * + * US_MI_IQ_TAG = 95; + */ + US_MI_IQ_TAG(95), + /** *
    * MI, USA.
    * 
@@ -644,8 +518,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_MI_MACKINAC_BRIDGE_MAC_PASS(39), /** - * - * *
    * MI, USA.
    * 
@@ -654,8 +526,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_MI_NEXPRESS_TOLL(40), /** - * - * *
    * MN, USA.
    * 
@@ -664,8 +534,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_MN_EZPASSMN(41), /** - * - * *
    * NC, USA.
    * 
@@ -674,8 +542,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_NC_EZPASSNC(42), /** - * - * *
    * NC, USA.
    * 
@@ -684,8 +550,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_NC_PEACH_PASS(87), /** - * - * *
    * NC, USA.
    * 
@@ -694,8 +558,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_NC_QUICK_PASS(43), /** - * - * *
    * NH, USA.
    * 
@@ -704,8 +566,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_NH_EZPASSNH(80), /** - * - * *
    * NJ, USA.
    * 
@@ -714,8 +574,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_NJ_DOWNBEACH_EXPRESS_PASS(75), /** - * - * *
    * NJ, USA.
    * 
@@ -724,8 +582,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_NJ_EZPASSNJ(74), /** - * - * *
    * NY, USA.
    * 
@@ -734,8 +590,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_NY_EXPRESSPASS(76), /** - * - * *
    * NY, USA.
    * 
@@ -744,8 +598,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_NY_EZPASSNY(77), /** - * - * *
    * OH, USA.
    * 
@@ -754,8 +606,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_OH_EZPASSOH(44), /** - * - * *
    * PA, USA.
    * 
@@ -764,8 +614,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_PA_EZPASSPA(45), /** - * - * *
    * RI, USA.
    * 
@@ -774,8 +622,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_RI_EZPASSRI(46), /** - * - * *
    * SC, USA.
    * 
@@ -784,8 +630,14 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_SC_PALPASS(47), /** + *
+   * TX, USA.
+   * 
* - * + * US_TX_AVI_TAG = 97; + */ + US_TX_AVI_TAG(97), + /** *
    * TX, USA.
    * 
@@ -794,8 +646,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_TX_BANCPASS(48), /** - * - * *
    * TX, USA.
    * 
@@ -804,8 +654,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_TX_DEL_RIO_PASS(49), /** - * - * *
    * TX, USA.
    * 
@@ -814,8 +662,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_TX_EFAST_PASS(50), /** - * - * *
    * TX, USA.
    * 
@@ -824,8 +670,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_TX_EAGLE_PASS_EXPRESS_CARD(51), /** - * - * *
    * TX, USA.
    * 
@@ -834,8 +678,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_TX_EPTOLL(52), /** - * - * *
    * TX, USA.
    * 
@@ -844,8 +686,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_TX_EZ_CROSS(53), /** - * - * *
    * TX, USA.
    * 
@@ -854,8 +694,14 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_TX_EZTAG(54), /** + *
+   * TX, USA.
+   * 
* - * + * US_TX_FUEGO_TAG = 96; + */ + US_TX_FUEGO_TAG(96), + /** *
    * TX, USA.
    * 
@@ -864,8 +710,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_TX_LAREDO_TRADE_TAG(55), /** - * - * *
    * TX, USA.
    * 
@@ -874,8 +718,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_TX_PLUSPASS(56), /** - * - * *
    * TX, USA.
    * 
@@ -884,8 +726,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_TX_TOLLTAG(57), /** - * - * *
    * TX, USA.
    * 
@@ -894,8 +734,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_TX_TXTAG(58), /** - * - * *
    * TX, USA.
    * 
@@ -904,8 +742,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_TX_XPRESS_CARD(59), /** - * - * *
    * UT, USA.
    * 
@@ -914,8 +750,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD(60), /** - * - * *
    * VA, USA.
    * 
@@ -924,8 +758,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_VA_EZPASSVA(61), /** - * - * *
    * WA, USA.
    * 
@@ -934,8 +766,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_WA_BREEZEBY(17), /** - * - * *
    * WA, USA.
    * 
@@ -944,8 +774,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_WA_GOOD_TO_GO(1), /** - * - * *
    * WV, USA.
    * 
@@ -954,8 +782,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_WV_EZPASSWV(62), /** - * - * *
    * WV, USA.
    * 
@@ -964,8 +790,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ US_WV_MEMORIAL_BRIDGE_TICKETS(63), /** - * - * *
    * WV, USA.
    * 
@@ -977,8 +801,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Not used. If this value is used, then the request fails.
    * 
@@ -987,8 +809,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TOLL_PASS_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Sydney toll pass. See additional details at https://www.myetoll.com.au.
    * 
@@ -997,8 +817,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AU_ETOLL_TAG_VALUE = 82; /** - * - * *
    * Sydney toll pass. See additional details at https://www.tollpay.com.au.
    * 
@@ -1007,8 +825,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AU_EWAY_TAG_VALUE = 83; /** - * - * *
    * Australia-wide toll pass.
    * See additional details at https://www.linkt.com.au/.
@@ -1018,8 +834,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int AU_LINKT_VALUE = 2;
   /**
-   *
-   *
    * 
    * Argentina toll pass. See additional details at https://telepase.com.ar
    * 
@@ -1028,8 +842,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AR_TELEPASE_VALUE = 3; /** - * - * *
    * Brazil toll pass. See additional details at https://www.autoexpreso.com
    * 
@@ -1038,8 +850,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BR_AUTO_EXPRESO_VALUE = 81; /** - * - * *
    * Brazil toll pass. See additional details at https://conectcar.com.
    * 
@@ -1048,8 +858,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BR_CONECTCAR_VALUE = 7; /** - * - * *
    * Brazil toll pass. See additional details at https://movemais.com.
    * 
@@ -1058,8 +866,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BR_MOVE_MAIS_VALUE = 8; /** - * - * *
    * Brazil toll pass. See additional details at https://pasorapido.gob.do/
    * 
@@ -1068,8 +874,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BR_PASSA_RAPIDO_VALUE = 88; /** - * - * *
    * Brazil toll pass. See additional details at https://www.semparar.com.br.
    * 
@@ -1078,8 +882,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BR_SEM_PARAR_VALUE = 9; /** - * - * *
    * Brazil toll pass. See additional details at https://taggy.com.br.
    * 
@@ -1088,8 +890,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BR_TAGGY_VALUE = 10; /** - * - * *
    * Brazil toll pass. See additional details at
    * https://veloe.com.br/site/onde-usar.
@@ -1099,8 +899,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int BR_VELOE_VALUE = 11;
   /**
-   *
-   *
    * 
    * Canada to United States border crossing.
    * 
@@ -1109,8 +907,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD_VALUE = 84; /** - * - * *
    * Canada to United States border crossing.
    * 
@@ -1119,8 +915,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD_VALUE = 85; /** - * - * *
    * Ontario, Canada to Michigan, United States border crossing.
    * 
@@ -1129,8 +923,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CA_US_BLUE_WATER_EDGE_PASS_VALUE = 18; /** - * - * *
    * Ontario, Canada to Michigan, United States border crossing.
    * 
@@ -1139,8 +931,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CA_US_CONNEXION_VALUE = 19; /** - * - * *
    * Canada to United States border crossing.
    * 
@@ -1149,8 +939,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CA_US_NEXUS_CARD_VALUE = 20; /** - * - * *
    * Indonesia.
    * E-card provided by multiple banks used to pay for tolls. All e-cards
@@ -1164,8 +952,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int ID_E_TOLL_VALUE = 16;
   /**
-   *
-   *
    * 
    * India.
    * 
@@ -1174,8 +960,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IN_FASTAG_VALUE = 78; /** - * - * *
    * India, HP state plate exemption.
    * 
@@ -1184,8 +968,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IN_LOCAL_HP_PLATE_EXEMPT_VALUE = 79; /** - * - * *
    * Mexico toll pass.
    * https://iave.capufe.gob.mx/#/
@@ -1195,8 +977,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int MX_IAVE_VALUE = 90;
   /**
-   *
-   *
    * 
    * Mexico
    * https://www.pase.com.mx
@@ -1206,8 +986,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int MX_PASE_VALUE = 91;
   /**
-   *
-   *
    * 
    * Mexico
    *  https://operadoravial.com/quick-pass/
@@ -1217,8 +995,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int MX_QUICKPASS_VALUE = 93;
   /**
-   *
-   *
    * 
    * http://appsh.chihuahua.gob.mx/transparencia/?doc=/ingresos/TelepeajeFormato4.pdf
    * 
@@ -1227,8 +1003,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MX_SISTEMA_TELEPEAJE_CHIHUAHUA_VALUE = 89; /** - * - * *
    * Mexico
    * 
@@ -1237,8 +1011,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MX_TAG_IAVE_VALUE = 12; /** - * - * *
    * Mexico toll pass company. One of many operating in Mexico City. See
    * additional details at https://www.televia.com.mx.
@@ -1248,8 +1020,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int MX_TAG_TELEVIA_VALUE = 13;
   /**
-   *
-   *
    * 
    * Mexico toll pass company. One of many operating in Mexico City.
    * https://www.televia.com.mx
@@ -1259,8 +1029,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int MX_TELEVIA_VALUE = 92;
   /**
-   *
-   *
    * 
    * Mexico toll pass. See additional details at
    * https://www.viapass.com.mx/viapass/web_home.aspx.
@@ -1270,8 +1038,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int MX_VIAPASS_VALUE = 14;
   /**
-   *
-   *
    * 
    * AL, USA.
    * 
@@ -1280,8 +1046,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_AL_FREEDOM_PASS_VALUE = 21; /** - * - * *
    * AK, USA.
    * 
@@ -1290,8 +1054,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS_VALUE = 22; /** - * - * *
    * CA, USA.
    * 
@@ -1300,8 +1062,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_CA_FASTRAK_VALUE = 4; /** - * - * *
    * Indicates driver has any FasTrak pass in addition to the DMV issued Clean
    * Air Vehicle (CAV) sticker.
@@ -1312,8 +1072,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int US_CA_FASTRAK_CAV_STICKER_VALUE = 86;
   /**
-   *
-   *
    * 
    * CO, USA.
    * 
@@ -1322,8 +1080,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_CO_EXPRESSTOLL_VALUE = 23; /** - * - * *
    * CO, USA.
    * 
@@ -1332,8 +1088,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_CO_GO_PASS_VALUE = 24; /** - * - * *
    * DE, USA.
    * 
@@ -1342,8 +1096,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_DE_EZPASSDE_VALUE = 25; /** - * - * *
    * FL, USA.
    * 
@@ -1352,8 +1104,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_FL_BOB_SIKES_TOLL_BRIDGE_PASS_VALUE = 65; /** - * - * *
    * FL, USA.
    * 
@@ -1362,8 +1112,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD_VALUE = 66; /** - * - * *
    * FL, USA.
    * 
@@ -1372,8 +1120,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_FL_EPASS_VALUE = 67; /** - * - * *
    * FL, USA.
    * 
@@ -1382,8 +1128,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_FL_GIBA_TOLL_PASS_VALUE = 68; /** - * - * *
    * FL, USA.
    * 
@@ -1392,8 +1136,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_FL_LEEWAY_VALUE = 69; /** - * - * *
    * FL, USA.
    * 
@@ -1402,8 +1144,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_FL_SUNPASS_VALUE = 70; /** - * - * *
    * FL, USA.
    * 
@@ -1412,8 +1152,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_FL_SUNPASS_PRO_VALUE = 71; /** - * - * *
    * IL, USA.
    * 
@@ -1422,8 +1160,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_IL_EZPASSIL_VALUE = 73; /** - * - * *
    * IL, USA.
    * 
@@ -1432,8 +1168,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_IL_IPASS_VALUE = 72; /** - * - * *
    * IN, USA.
    * 
@@ -1442,8 +1176,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_IN_EZPASSIN_VALUE = 26; /** - * - * *
    * KS, USA.
    * 
@@ -1452,8 +1184,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_KS_BESTPASS_HORIZON_VALUE = 27; /** - * - * *
    * KS, USA.
    * 
@@ -1462,8 +1192,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_KS_KTAG_VALUE = 28; /** - * - * *
    * KS, USA.
    * 
@@ -1472,8 +1200,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_KS_NATIONALPASS_VALUE = 29; /** - * - * *
    * KS, USA.
    * 
@@ -1482,8 +1208,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_KS_PREPASS_ELITEPASS_VALUE = 30; /** - * - * *
    * KY, USA.
    * 
@@ -1492,8 +1216,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_KY_RIVERLINK_VALUE = 31; /** - * - * *
    * LA, USA.
    * 
@@ -1502,8 +1224,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_LA_GEAUXPASS_VALUE = 32; /** - * - * *
    * LA, USA.
    * 
@@ -1512,8 +1232,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_LA_TOLL_TAG_VALUE = 33; /** - * - * *
    * MA, USA.
    * 
@@ -1522,8 +1240,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_MA_EZPASSMA_VALUE = 6; /** - * - * *
    * MD, USA.
    * 
@@ -1532,8 +1248,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_MD_EZPASSMD_VALUE = 34; /** - * - * *
    * ME, USA.
    * 
@@ -1542,8 +1256,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_ME_EZPASSME_VALUE = 35; /** - * - * *
    * MI, USA.
    * 
@@ -1552,8 +1264,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD_VALUE = 36; /** - * - * *
    * MI, USA.
    * 
@@ -1562,8 +1272,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_MI_BCPASS_VALUE = 94; /** - * - * *
    * MI, USA.
    * 
@@ -1572,18 +1280,23 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG_VALUE = 37; /** - * - * *
    * MI, USA.
+   * Deprecated as this pass type no longer exists.
    * 
* - * US_MI_IQ_PROX_CARD = 38; + * US_MI_IQ_PROX_CARD = 38 [deprecated = true]; */ - public static final int US_MI_IQ_PROX_CARD_VALUE = 38; + @java.lang.Deprecated public static final int US_MI_IQ_PROX_CARD_VALUE = 38; /** + *
+   * MI, USA.
+   * 
* - * + * US_MI_IQ_TAG = 95; + */ + public static final int US_MI_IQ_TAG_VALUE = 95; + /** *
    * MI, USA.
    * 
@@ -1592,8 +1305,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_MI_MACKINAC_BRIDGE_MAC_PASS_VALUE = 39; /** - * - * *
    * MI, USA.
    * 
@@ -1602,8 +1313,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_MI_NEXPRESS_TOLL_VALUE = 40; /** - * - * *
    * MN, USA.
    * 
@@ -1612,8 +1321,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_MN_EZPASSMN_VALUE = 41; /** - * - * *
    * NC, USA.
    * 
@@ -1622,8 +1329,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_NC_EZPASSNC_VALUE = 42; /** - * - * *
    * NC, USA.
    * 
@@ -1632,8 +1337,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_NC_PEACH_PASS_VALUE = 87; /** - * - * *
    * NC, USA.
    * 
@@ -1642,8 +1345,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_NC_QUICK_PASS_VALUE = 43; /** - * - * *
    * NH, USA.
    * 
@@ -1652,8 +1353,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_NH_EZPASSNH_VALUE = 80; /** - * - * *
    * NJ, USA.
    * 
@@ -1662,8 +1361,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_NJ_DOWNBEACH_EXPRESS_PASS_VALUE = 75; /** - * - * *
    * NJ, USA.
    * 
@@ -1672,8 +1369,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_NJ_EZPASSNJ_VALUE = 74; /** - * - * *
    * NY, USA.
    * 
@@ -1682,8 +1377,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_NY_EXPRESSPASS_VALUE = 76; /** - * - * *
    * NY, USA.
    * 
@@ -1692,8 +1385,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_NY_EZPASSNY_VALUE = 77; /** - * - * *
    * OH, USA.
    * 
@@ -1702,8 +1393,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_OH_EZPASSOH_VALUE = 44; /** - * - * *
    * PA, USA.
    * 
@@ -1712,8 +1401,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_PA_EZPASSPA_VALUE = 45; /** - * - * *
    * RI, USA.
    * 
@@ -1722,8 +1409,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_RI_EZPASSRI_VALUE = 46; /** - * - * *
    * SC, USA.
    * 
@@ -1732,8 +1417,14 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_SC_PALPASS_VALUE = 47; /** + *
+   * TX, USA.
+   * 
* - * + * US_TX_AVI_TAG = 97; + */ + public static final int US_TX_AVI_TAG_VALUE = 97; + /** *
    * TX, USA.
    * 
@@ -1742,8 +1433,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_TX_BANCPASS_VALUE = 48; /** - * - * *
    * TX, USA.
    * 
@@ -1752,8 +1441,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_TX_DEL_RIO_PASS_VALUE = 49; /** - * - * *
    * TX, USA.
    * 
@@ -1762,8 +1449,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_TX_EFAST_PASS_VALUE = 50; /** - * - * *
    * TX, USA.
    * 
@@ -1772,8 +1457,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_TX_EAGLE_PASS_EXPRESS_CARD_VALUE = 51; /** - * - * *
    * TX, USA.
    * 
@@ -1782,8 +1465,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_TX_EPTOLL_VALUE = 52; /** - * - * *
    * TX, USA.
    * 
@@ -1792,8 +1473,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_TX_EZ_CROSS_VALUE = 53; /** - * - * *
    * TX, USA.
    * 
@@ -1802,8 +1481,14 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_TX_EZTAG_VALUE = 54; /** + *
+   * TX, USA.
+   * 
* - * + * US_TX_FUEGO_TAG = 96; + */ + public static final int US_TX_FUEGO_TAG_VALUE = 96; + /** *
    * TX, USA.
    * 
@@ -1812,8 +1497,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_TX_LAREDO_TRADE_TAG_VALUE = 55; /** - * - * *
    * TX, USA.
    * 
@@ -1822,8 +1505,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_TX_PLUSPASS_VALUE = 56; /** - * - * *
    * TX, USA.
    * 
@@ -1832,8 +1513,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_TX_TOLLTAG_VALUE = 57; /** - * - * *
    * TX, USA.
    * 
@@ -1842,8 +1521,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_TX_TXTAG_VALUE = 58; /** - * - * *
    * TX, USA.
    * 
@@ -1852,8 +1529,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_TX_XPRESS_CARD_VALUE = 59; /** - * - * *
    * UT, USA.
    * 
@@ -1862,8 +1537,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD_VALUE = 60; /** - * - * *
    * VA, USA.
    * 
@@ -1872,8 +1545,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_VA_EZPASSVA_VALUE = 61; /** - * - * *
    * WA, USA.
    * 
@@ -1882,8 +1553,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_WA_BREEZEBY_VALUE = 17; /** - * - * *
    * WA, USA.
    * 
@@ -1892,8 +1561,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_WA_GOOD_TO_GO_VALUE = 1; /** - * - * *
    * WV, USA.
    * 
@@ -1902,8 +1569,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_WV_EZPASSWV_VALUE = 62; /** - * - * *
    * WV, USA.
    * 
@@ -1912,8 +1577,6 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_WV_MEMORIAL_BRIDGE_TICKETS_VALUE = 63; /** - * - * *
    * WV, USA.
    * 
@@ -1922,6 +1585,7 @@ public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { */ public static final int US_WV_NEWELL_TOLL_BRIDGE_TICKET_VALUE = 64; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1946,229 +1610,142 @@ public static TollPass valueOf(int value) { */ public static TollPass forNumber(int value) { switch (value) { - case 0: - return TOLL_PASS_UNSPECIFIED; - case 82: - return AU_ETOLL_TAG; - case 83: - return AU_EWAY_TAG; - case 2: - return AU_LINKT; - case 3: - return AR_TELEPASE; - case 81: - return BR_AUTO_EXPRESO; - case 7: - return BR_CONECTCAR; - case 8: - return BR_MOVE_MAIS; - case 88: - return BR_PASSA_RAPIDO; - case 9: - return BR_SEM_PARAR; - case 10: - return BR_TAGGY; - case 11: - return BR_VELOE; - case 84: - return CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD; - case 85: - return CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD; - case 18: - return CA_US_BLUE_WATER_EDGE_PASS; - case 19: - return CA_US_CONNEXION; - case 20: - return CA_US_NEXUS_CARD; - case 16: - return ID_E_TOLL; - case 78: - return IN_FASTAG; - case 79: - return IN_LOCAL_HP_PLATE_EXEMPT; - case 90: - return MX_IAVE; - case 91: - return MX_PASE; - case 93: - return MX_QUICKPASS; - case 89: - return MX_SISTEMA_TELEPEAJE_CHIHUAHUA; - case 12: - return MX_TAG_IAVE; - case 13: - return MX_TAG_TELEVIA; - case 92: - return MX_TELEVIA; - case 14: - return MX_VIAPASS; - case 21: - return US_AL_FREEDOM_PASS; - case 22: - return US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS; - case 4: - return US_CA_FASTRAK; - case 86: - return US_CA_FASTRAK_CAV_STICKER; - case 23: - return US_CO_EXPRESSTOLL; - case 24: - return US_CO_GO_PASS; - case 25: - return US_DE_EZPASSDE; - case 65: - return US_FL_BOB_SIKES_TOLL_BRIDGE_PASS; - case 66: - return US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD; - case 67: - return US_FL_EPASS; - case 68: - return US_FL_GIBA_TOLL_PASS; - case 69: - return US_FL_LEEWAY; - case 70: - return US_FL_SUNPASS; - case 71: - return US_FL_SUNPASS_PRO; - case 73: - return US_IL_EZPASSIL; - case 72: - return US_IL_IPASS; - case 26: - return US_IN_EZPASSIN; - case 27: - return US_KS_BESTPASS_HORIZON; - case 28: - return US_KS_KTAG; - case 29: - return US_KS_NATIONALPASS; - case 30: - return US_KS_PREPASS_ELITEPASS; - case 31: - return US_KY_RIVERLINK; - case 32: - return US_LA_GEAUXPASS; - case 33: - return US_LA_TOLL_TAG; - case 6: - return US_MA_EZPASSMA; - case 34: - return US_MD_EZPASSMD; - case 35: - return US_ME_EZPASSME; - case 36: - return US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD; - case 94: - return US_MI_BCPASS; - case 37: - return US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG; - case 38: - return US_MI_IQ_PROX_CARD; - case 39: - return US_MI_MACKINAC_BRIDGE_MAC_PASS; - case 40: - return US_MI_NEXPRESS_TOLL; - case 41: - return US_MN_EZPASSMN; - case 42: - return US_NC_EZPASSNC; - case 87: - return US_NC_PEACH_PASS; - case 43: - return US_NC_QUICK_PASS; - case 80: - return US_NH_EZPASSNH; - case 75: - return US_NJ_DOWNBEACH_EXPRESS_PASS; - case 74: - return US_NJ_EZPASSNJ; - case 76: - return US_NY_EXPRESSPASS; - case 77: - return US_NY_EZPASSNY; - case 44: - return US_OH_EZPASSOH; - case 45: - return US_PA_EZPASSPA; - case 46: - return US_RI_EZPASSRI; - case 47: - return US_SC_PALPASS; - case 48: - return US_TX_BANCPASS; - case 49: - return US_TX_DEL_RIO_PASS; - case 50: - return US_TX_EFAST_PASS; - case 51: - return US_TX_EAGLE_PASS_EXPRESS_CARD; - case 52: - return US_TX_EPTOLL; - case 53: - return US_TX_EZ_CROSS; - case 54: - return US_TX_EZTAG; - case 55: - return US_TX_LAREDO_TRADE_TAG; - case 56: - return US_TX_PLUSPASS; - case 57: - return US_TX_TOLLTAG; - case 58: - return US_TX_TXTAG; - case 59: - return US_TX_XPRESS_CARD; - case 60: - return US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD; - case 61: - return US_VA_EZPASSVA; - case 17: - return US_WA_BREEZEBY; - case 1: - return US_WA_GOOD_TO_GO; - case 62: - return US_WV_EZPASSWV; - case 63: - return US_WV_MEMORIAL_BRIDGE_TICKETS; - case 64: - return US_WV_NEWELL_TOLL_BRIDGE_TICKET; - default: - return null; + case 0: return TOLL_PASS_UNSPECIFIED; + case 82: return AU_ETOLL_TAG; + case 83: return AU_EWAY_TAG; + case 2: return AU_LINKT; + case 3: return AR_TELEPASE; + case 81: return BR_AUTO_EXPRESO; + case 7: return BR_CONECTCAR; + case 8: return BR_MOVE_MAIS; + case 88: return BR_PASSA_RAPIDO; + case 9: return BR_SEM_PARAR; + case 10: return BR_TAGGY; + case 11: return BR_VELOE; + case 84: return CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD; + case 85: return CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD; + case 18: return CA_US_BLUE_WATER_EDGE_PASS; + case 19: return CA_US_CONNEXION; + case 20: return CA_US_NEXUS_CARD; + case 16: return ID_E_TOLL; + case 78: return IN_FASTAG; + case 79: return IN_LOCAL_HP_PLATE_EXEMPT; + case 90: return MX_IAVE; + case 91: return MX_PASE; + case 93: return MX_QUICKPASS; + case 89: return MX_SISTEMA_TELEPEAJE_CHIHUAHUA; + case 12: return MX_TAG_IAVE; + case 13: return MX_TAG_TELEVIA; + case 92: return MX_TELEVIA; + case 14: return MX_VIAPASS; + case 21: return US_AL_FREEDOM_PASS; + case 22: return US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS; + case 4: return US_CA_FASTRAK; + case 86: return US_CA_FASTRAK_CAV_STICKER; + case 23: return US_CO_EXPRESSTOLL; + case 24: return US_CO_GO_PASS; + case 25: return US_DE_EZPASSDE; + case 65: return US_FL_BOB_SIKES_TOLL_BRIDGE_PASS; + case 66: return US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD; + case 67: return US_FL_EPASS; + case 68: return US_FL_GIBA_TOLL_PASS; + case 69: return US_FL_LEEWAY; + case 70: return US_FL_SUNPASS; + case 71: return US_FL_SUNPASS_PRO; + case 73: return US_IL_EZPASSIL; + case 72: return US_IL_IPASS; + case 26: return US_IN_EZPASSIN; + case 27: return US_KS_BESTPASS_HORIZON; + case 28: return US_KS_KTAG; + case 29: return US_KS_NATIONALPASS; + case 30: return US_KS_PREPASS_ELITEPASS; + case 31: return US_KY_RIVERLINK; + case 32: return US_LA_GEAUXPASS; + case 33: return US_LA_TOLL_TAG; + case 6: return US_MA_EZPASSMA; + case 34: return US_MD_EZPASSMD; + case 35: return US_ME_EZPASSME; + case 36: return US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD; + case 94: return US_MI_BCPASS; + case 37: return US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG; + case 38: return US_MI_IQ_PROX_CARD; + case 95: return US_MI_IQ_TAG; + case 39: return US_MI_MACKINAC_BRIDGE_MAC_PASS; + case 40: return US_MI_NEXPRESS_TOLL; + case 41: return US_MN_EZPASSMN; + case 42: return US_NC_EZPASSNC; + case 87: return US_NC_PEACH_PASS; + case 43: return US_NC_QUICK_PASS; + case 80: return US_NH_EZPASSNH; + case 75: return US_NJ_DOWNBEACH_EXPRESS_PASS; + case 74: return US_NJ_EZPASSNJ; + case 76: return US_NY_EXPRESSPASS; + case 77: return US_NY_EZPASSNY; + case 44: return US_OH_EZPASSOH; + case 45: return US_PA_EZPASSPA; + case 46: return US_RI_EZPASSRI; + case 47: return US_SC_PALPASS; + case 97: return US_TX_AVI_TAG; + case 48: return US_TX_BANCPASS; + case 49: return US_TX_DEL_RIO_PASS; + case 50: return US_TX_EFAST_PASS; + case 51: return US_TX_EAGLE_PASS_EXPRESS_CARD; + case 52: return US_TX_EPTOLL; + case 53: return US_TX_EZ_CROSS; + case 54: return US_TX_EZTAG; + case 96: return US_TX_FUEGO_TAG; + case 55: return US_TX_LAREDO_TRADE_TAG; + case 56: return US_TX_PLUSPASS; + case 57: return US_TX_TOLLTAG; + case 58: return US_TX_TXTAG; + case 59: return US_TX_XPRESS_CARD; + case 60: return US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD; + case 61: return US_VA_EZPASSVA; + case 17: return US_WA_BREEZEBY; + case 1: return US_WA_GOOD_TO_GO; + case 62: return US_WV_EZPASSWV; + case 63: return US_WV_MEMORIAL_BRIDGE_TICKETS; + case 64: return US_WV_NEWELL_TOLL_BRIDGE_TICKET; + 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< + TollPass> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TollPass findValueByNumber(int number) { + return TollPass.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TollPass findValueByNumber(int number) { - return TollPass.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.maps.routing.v2.TollPassesProto.getDescriptor().getEnumTypes().get(0); } private static final TollPass[] VALUES = values(); - public static TollPass valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TollPass 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; @@ -2184,3 +1761,4 @@ private TollPass(int value) { // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.TollPass) } + diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java new file mode 100644 index 000000000000..408e8b3e4e3a --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java @@ -0,0 +1,98 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/toll_passes.proto + +package com.google.maps.routing.v2; + +public final class TollPassesProto { + private TollPassesProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + 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/maps/routing/v2/toll_passes.pro" + + "to\022\026google.maps.routing.v2*\321\021\n\010TollPass\022" + + "\031\n\025TOLL_PASS_UNSPECIFIED\020\000\022\020\n\014AU_ETOLL_T" + + "AG\020R\022\017\n\013AU_EWAY_TAG\020S\022\014\n\010AU_LINKT\020\002\022\017\n\013A" + + "R_TELEPASE\020\003\022\023\n\017BR_AUTO_EXPRESO\020Q\022\020\n\014BR_" + + "CONECTCAR\020\007\022\020\n\014BR_MOVE_MAIS\020\010\022\023\n\017BR_PASS" + + "A_RAPIDO\020X\022\020\n\014BR_SEM_PARAR\020\t\022\014\n\010BR_TAGGY" + + "\020\n\022\014\n\010BR_VELOE\020\013\022)\n%CA_US_AKWASASNE_SEAW" + + "AY_CORPORATE_CARD\020T\022\'\n#CA_US_AKWASASNE_S" + + "EAWAY_TRANSIT_CARD\020U\022\036\n\032CA_US_BLUE_WATER" + + "_EDGE_PASS\020\022\022\023\n\017CA_US_CONNEXION\020\023\022\024\n\020CA_" + + "US_NEXUS_CARD\020\024\022\r\n\tID_E_TOLL\020\020\022\r\n\tIN_FAS" + + "TAG\020N\022\034\n\030IN_LOCAL_HP_PLATE_EXEMPT\020O\022\013\n\007M" + + "X_IAVE\020Z\022\013\n\007MX_PASE\020[\022\020\n\014MX_QUICKPASS\020]\022" + + "\"\n\036MX_SISTEMA_TELEPEAJE_CHIHUAHUA\020Y\022\017\n\013M" + + "X_TAG_IAVE\020\014\022\022\n\016MX_TAG_TELEVIA\020\r\022\016\n\nMX_T" + + "ELEVIA\020\\\022\016\n\nMX_VIAPASS\020\016\022\026\n\022US_AL_FREEDO" + + "M_PASS\020\025\0222\n.US_AK_ANTON_ANDERSON_TUNNEL_" + + "BOOK_OF_10_TICKETS\020\026\022\021\n\rUS_CA_FASTRAK\020\004\022" + + "\035\n\031US_CA_FASTRAK_CAV_STICKER\020V\022\025\n\021US_CO_" + + "EXPRESSTOLL\020\027\022\021\n\rUS_CO_GO_PASS\020\030\022\022\n\016US_D" + + "E_EZPASSDE\020\031\022$\n US_FL_BOB_SIKES_TOLL_BRI" + + "DGE_PASS\020A\022:\n6US_FL_DUNES_COMMUNITY_DEVE" + + "LOPMENT_DISTRICT_EXPRESSCARD\020B\022\017\n\013US_FL_" + + "EPASS\020C\022\030\n\024US_FL_GIBA_TOLL_PASS\020D\022\020\n\014US_" + + "FL_LEEWAY\020E\022\021\n\rUS_FL_SUNPASS\020F\022\025\n\021US_FL_" + + "SUNPASS_PRO\020G\022\022\n\016US_IL_EZPASSIL\020I\022\017\n\013US_" + + "IL_IPASS\020H\022\022\n\016US_IN_EZPASSIN\020\032\022\032\n\026US_KS_" + + "BESTPASS_HORIZON\020\033\022\016\n\nUS_KS_KTAG\020\034\022\026\n\022US" + + "_KS_NATIONALPASS\020\035\022\033\n\027US_KS_PREPASS_ELIT" + + "EPASS\020\036\022\023\n\017US_KY_RIVERLINK\020\037\022\023\n\017US_LA_GE" + + "AUXPASS\020 \022\022\n\016US_LA_TOLL_TAG\020!\022\022\n\016US_MA_E" + + "ZPASSMA\020\006\022\022\n\016US_MD_EZPASSMD\020\"\022\022\n\016US_ME_E" + + "ZPASSME\020#\0221\n-US_MI_AMBASSADOR_BRIDGE_PRE" + + "MIER_COMMUTER_CARD\020$\022\020\n\014US_MI_BCPASS\020^\022)" + + "\n%US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG\020" + + "%\022\032\n\022US_MI_IQ_PROX_CARD\020&\032\002\010\001\022\020\n\014US_MI_I" + + "Q_TAG\020_\022\"\n\036US_MI_MACKINAC_BRIDGE_MAC_PAS" + + "S\020\'\022\027\n\023US_MI_NEXPRESS_TOLL\020(\022\022\n\016US_MN_EZ" + + "PASSMN\020)\022\022\n\016US_NC_EZPASSNC\020*\022\024\n\020US_NC_PE" + + "ACH_PASS\020W\022\024\n\020US_NC_QUICK_PASS\020+\022\022\n\016US_N" + + "H_EZPASSNH\020P\022 \n\034US_NJ_DOWNBEACH_EXPRESS_" + + "PASS\020K\022\022\n\016US_NJ_EZPASSNJ\020J\022\025\n\021US_NY_EXPR" + + "ESSPASS\020L\022\022\n\016US_NY_EZPASSNY\020M\022\022\n\016US_OH_E" + + "ZPASSOH\020,\022\022\n\016US_PA_EZPASSPA\020-\022\022\n\016US_RI_E" + + "ZPASSRI\020.\022\021\n\rUS_SC_PALPASS\020/\022\021\n\rUS_TX_AV" + + "I_TAG\020a\022\022\n\016US_TX_BANCPASS\0200\022\026\n\022US_TX_DEL" + + "_RIO_PASS\0201\022\024\n\020US_TX_EFAST_PASS\0202\022!\n\035US_" + + "TX_EAGLE_PASS_EXPRESS_CARD\0203\022\020\n\014US_TX_EP" + + "TOLL\0204\022\022\n\016US_TX_EZ_CROSS\0205\022\017\n\013US_TX_EZTA" + + "G\0206\022\023\n\017US_TX_FUEGO_TAG\020`\022\032\n\026US_TX_LAREDO" + + "_TRADE_TAG\0207\022\022\n\016US_TX_PLUSPASS\0208\022\021\n\rUS_T" + + "X_TOLLTAG\0209\022\017\n\013US_TX_TXTAG\020:\022\025\n\021US_TX_XP" + + "RESS_CARD\020;\022\'\n#US_UT_ADAMS_AVE_PARKWAY_E" + + "XPRESSCARD\020<\022\022\n\016US_VA_EZPASSVA\020=\022\022\n\016US_W" + + "A_BREEZEBY\020\021\022\024\n\020US_WA_GOOD_TO_GO\020\001\022\022\n\016US" + + "_WV_EZPASSWV\020>\022!\n\035US_WV_MEMORIAL_BRIDGE_" + + "TICKETS\020?\022#\n\037US_WV_NEWELL_TOLL_BRIDGE_TI" + + "CKET\020@B\304\001\n\032com.google.maps.routing.v2B\017T" + + "ollPassesProtoP\001Z:cloud.google.com/go/ma" + + "ps/routing/apiv2/routingpb;routingpb\370\001\001\242" + + "\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Googl" + + "e\\Maps\\Routing\\V2\352\002\031Google::Maps::Routin" + + "g::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModel.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModel.java new file mode 100644 index 000000000000..db9abec85a40 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModel.java @@ -0,0 +1,184 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/traffic_model.proto + +package com.google.maps.routing.v2; + +/** + *
+ * Specifies the assumptions to use when calculating time in traffic. This
+ * setting affects the value returned in the `duration` field in the
+ * response, which contains the predicted time in traffic based on historical
+ * averages.
+ * 
+ * + * Protobuf enum {@code google.maps.routing.v2.TrafficModel} + */ +public enum TrafficModel + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Unused. If specified, will default to `BEST_GUESS`.
+   * 
+ * + * TRAFFIC_MODEL_UNSPECIFIED = 0; + */ + TRAFFIC_MODEL_UNSPECIFIED(0), + /** + *
+   * Indicates that the returned `duration` should be the best
+   * estimate of travel time given what is known about both historical traffic
+   * conditions and live traffic. Live traffic becomes more important the closer
+   * the `departure_time` is to now.
+   * 
+ * + * BEST_GUESS = 1; + */ + BEST_GUESS(1), + /** + *
+   * Indicates that the returned duration should be longer than the
+   * actual travel time on most days, though occasional days with particularly
+   * bad traffic conditions may exceed this value.
+   * 
+ * + * PESSIMISTIC = 2; + */ + PESSIMISTIC(2), + /** + *
+   * Indicates that the returned duration should be shorter than the actual
+   * travel time on most days, though occasional days with particularly good
+   * traffic conditions may be faster than this value.
+   * 
+ * + * OPTIMISTIC = 3; + */ + OPTIMISTIC(3), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Unused. If specified, will default to `BEST_GUESS`.
+   * 
+ * + * TRAFFIC_MODEL_UNSPECIFIED = 0; + */ + public static final int TRAFFIC_MODEL_UNSPECIFIED_VALUE = 0; + /** + *
+   * Indicates that the returned `duration` should be the best
+   * estimate of travel time given what is known about both historical traffic
+   * conditions and live traffic. Live traffic becomes more important the closer
+   * the `departure_time` is to now.
+   * 
+ * + * BEST_GUESS = 1; + */ + public static final int BEST_GUESS_VALUE = 1; + /** + *
+   * Indicates that the returned duration should be longer than the
+   * actual travel time on most days, though occasional days with particularly
+   * bad traffic conditions may exceed this value.
+   * 
+ * + * PESSIMISTIC = 2; + */ + public static final int PESSIMISTIC_VALUE = 2; + /** + *
+   * Indicates that the returned duration should be shorter than the actual
+   * travel time on most days, though occasional days with particularly good
+   * traffic conditions may be faster than this value.
+   * 
+ * + * OPTIMISTIC = 3; + */ + public static final int OPTIMISTIC_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TrafficModel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TrafficModel forNumber(int value) { + switch (value) { + case 0: return TRAFFIC_MODEL_UNSPECIFIED; + case 1: return BEST_GUESS; + case 2: return PESSIMISTIC; + case 3: return OPTIMISTIC; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + TrafficModel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TrafficModel findValueByNumber(int number) { + return TrafficModel.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() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.maps.routing.v2.TrafficModelProto.getDescriptor().getEnumTypes().get(0); + } + + private static final TrafficModel[] VALUES = values(); + + public static TrafficModel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TrafficModel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.TrafficModel) +} + diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java new file mode 100644 index 000000000000..71eb174f7ea9 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java @@ -0,0 +1,44 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/traffic_model.proto + +package com.google.maps.routing.v2; + +public final class TrafficModelProto { + private TrafficModelProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + 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/maps/routing/v2/traffic_model.p" + + "roto\022\026google.maps.routing.v2*^\n\014TrafficM" + + "odel\022\035\n\031TRAFFIC_MODEL_UNSPECIFIED\020\000\022\016\n\nB" + + "EST_GUESS\020\001\022\017\n\013PESSIMISTIC\020\002\022\016\n\nOPTIMIST" + + "IC\020\003B\306\001\n\032com.google.maps.routing.v2B\021Tra" + + "fficModelProtoP\001Z:cloud.google.com/go/ma" + + "ps/routing/apiv2/routingpb;routingpb\370\001\001\242" + + "\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Googl" + + "e\\Maps\\Routing\\V2\352\002\031Google::Maps::Routin" + + "g::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgency.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgency.java new file mode 100644 index 000000000000..9ed3a47f2f2c --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgency.java @@ -0,0 +1,905 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/transit.proto + +package com.google.maps.routing.v2; + +/** + *
+ * A transit agency that operates a transit line.
+ * 
+ * + * Protobuf type {@code google.maps.routing.v2.TransitAgency} + */ +public final class TransitAgency extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.TransitAgency) + TransitAgencyOrBuilder { +private static final long serialVersionUID = 0L; + // Use TransitAgency.newBuilder() to construct. + private TransitAgency(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TransitAgency() { + name_ = ""; + phoneNumber_ = ""; + uri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TransitAgency(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitAgency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitAgency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.TransitAgency.class, com.google.maps.routing.v2.TransitAgency.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name of this transit agency.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of this transit agency.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHONE_NUMBER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object phoneNumber_ = ""; + /** + *
+   * The transit agency's locale-specific formatted phone number.
+   * 
+ * + * string phone_number = 2; + * @return The phoneNumber. + */ + @java.lang.Override + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } + } + /** + *
+   * The transit agency's locale-specific formatted phone number.
+   * 
+ * + * string phone_number = 2; + * @return The bytes for phoneNumber. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + *
+   * The transit agency's URI.
+   * 
+ * + * string uri = 3; + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + *
+   * The transit agency's URI.
+   * 
+ * + * string uri = 3; + * @return The bytes for uri. + */ + @java.lang.Override + 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); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, phoneNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phoneNumber_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); + } + 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.maps.routing.v2.TransitAgency)) { + return super.equals(obj); + } + com.google.maps.routing.v2.TransitAgency other = (com.google.maps.routing.v2.TransitAgency) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getPhoneNumber() + .equals(other.getPhoneNumber())) return false; + if (!getUri() + .equals(other.getUri())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPhoneNumber().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.TransitAgency parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.TransitAgency parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.TransitAgency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.TransitAgency 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.maps.routing.v2.TransitAgency parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.TransitAgency parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.TransitAgency parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.TransitAgency 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.maps.routing.v2.TransitAgency parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.TransitAgency 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.maps.routing.v2.TransitAgency parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.TransitAgency 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.maps.routing.v2.TransitAgency 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; + } + /** + *
+   * A transit agency that operates a transit line.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.TransitAgency} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.TransitAgency) + com.google.maps.routing.v2.TransitAgencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitAgency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitAgency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.TransitAgency.class, com.google.maps.routing.v2.TransitAgency.Builder.class); + } + + // Construct using com.google.maps.routing.v2.TransitAgency.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + phoneNumber_ = ""; + uri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitAgency_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.TransitAgency getDefaultInstanceForType() { + return com.google.maps.routing.v2.TransitAgency.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.TransitAgency build() { + com.google.maps.routing.v2.TransitAgency result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.TransitAgency buildPartial() { + com.google.maps.routing.v2.TransitAgency result = new com.google.maps.routing.v2.TransitAgency(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.TransitAgency result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.phoneNumber_ = phoneNumber_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uri_ = uri_; + } + } + + @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.maps.routing.v2.TransitAgency) { + return mergeFrom((com.google.maps.routing.v2.TransitAgency)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.TransitAgency other) { + if (other == com.google.maps.routing.v2.TransitAgency.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPhoneNumber().isEmpty()) { + phoneNumber_ = other.phoneNumber_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000004; + onChanged(); + } + 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 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + phoneNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + uri_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The name of this transit agency.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of this transit agency.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of this transit agency.
+     * 
+ * + * 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(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The name of this transit agency.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The name of this transit agency.
+     * 
+ * + * 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(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object phoneNumber_ = ""; + /** + *
+     * The transit agency's locale-specific formatted phone number.
+     * 
+ * + * string phone_number = 2; + * @return The phoneNumber. + */ + public java.lang.String getPhoneNumber() { + java.lang.Object ref = phoneNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phoneNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The transit agency's locale-specific formatted phone number.
+     * 
+ * + * string phone_number = 2; + * @return The bytes for phoneNumber. + */ + public com.google.protobuf.ByteString + getPhoneNumberBytes() { + java.lang.Object ref = phoneNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + phoneNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The transit agency's locale-specific formatted phone number.
+     * 
+ * + * string phone_number = 2; + * @param value The phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumber( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + phoneNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The transit agency's locale-specific formatted phone number.
+     * 
+ * + * string phone_number = 2; + * @return This builder for chaining. + */ + public Builder clearPhoneNumber() { + phoneNumber_ = getDefaultInstance().getPhoneNumber(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The transit agency's locale-specific formatted phone number.
+     * 
+ * + * string phone_number = 2; + * @param value The bytes for phoneNumber to set. + * @return This builder for chaining. + */ + public Builder setPhoneNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + phoneNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + *
+     * The transit agency's URI.
+     * 
+ * + * string uri = 3; + * @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; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The transit agency's URI.
+     * 
+ * + * string uri = 3; + * @return The bytes for uri. + */ + 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); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The transit agency's URI.
+     * 
+ * + * string uri = 3; + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + uri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The transit agency's URI.
+     * 
+ * + * string uri = 3; + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * The transit agency's URI.
+     * 
+ * + * string uri = 3; + * @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(); } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000004; + 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.maps.routing.v2.TransitAgency) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.TransitAgency) + private static final com.google.maps.routing.v2.TransitAgency DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.TransitAgency(); + } + + public static com.google.maps.routing.v2.TransitAgency getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransitAgency 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.maps.routing.v2.TransitAgency getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgencyOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgencyOrBuilder.java new file mode 100644 index 000000000000..f144688a61d1 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgencyOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/transit.proto + +package com.google.maps.routing.v2; + +public interface TransitAgencyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.TransitAgency) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of this transit agency.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of this transit agency.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The transit agency's locale-specific formatted phone number.
+   * 
+ * + * string phone_number = 2; + * @return The phoneNumber. + */ + java.lang.String getPhoneNumber(); + /** + *
+   * The transit agency's locale-specific formatted phone number.
+   * 
+ * + * string phone_number = 2; + * @return The bytes for phoneNumber. + */ + com.google.protobuf.ByteString + getPhoneNumberBytes(); + + /** + *
+   * The transit agency's URI.
+   * 
+ * + * string uri = 3; + * @return The uri. + */ + java.lang.String getUri(); + /** + *
+   * The transit agency's URI.
+   * 
+ * + * string uri = 3; + * @return The bytes for uri. + */ + com.google.protobuf.ByteString + getUriBytes(); +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLine.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLine.java new file mode 100644 index 000000000000..5473f6678ef5 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLine.java @@ -0,0 +1,2093 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/transit.proto + +package com.google.maps.routing.v2; + +/** + *
+ * Contains information about the transit line used in this step.
+ * 
+ * + * Protobuf type {@code google.maps.routing.v2.TransitLine} + */ +public final class TransitLine extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.TransitLine) + TransitLineOrBuilder { +private static final long serialVersionUID = 0L; + // Use TransitLine.newBuilder() to construct. + private TransitLine(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TransitLine() { + agencies_ = java.util.Collections.emptyList(); + name_ = ""; + uri_ = ""; + color_ = ""; + iconUri_ = ""; + nameShort_ = ""; + textColor_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TransitLine(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitLine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitLine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.TransitLine.class, com.google.maps.routing.v2.TransitLine.Builder.class); + } + + public static final int AGENCIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List agencies_; + /** + *
+   * The transit agency (or agencies) that operates this transit line.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + @java.lang.Override + public java.util.List getAgenciesList() { + return agencies_; + } + /** + *
+   * The transit agency (or agencies) that operates this transit line.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + @java.lang.Override + public java.util.List + getAgenciesOrBuilderList() { + return agencies_; + } + /** + *
+   * The transit agency (or agencies) that operates this transit line.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + @java.lang.Override + public int getAgenciesCount() { + return agencies_.size(); + } + /** + *
+   * The transit agency (or agencies) that operates this transit line.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitAgency getAgencies(int index) { + return agencies_.get(index); + } + /** + *
+   * The transit agency (or agencies) that operates this transit line.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitAgencyOrBuilder getAgenciesOrBuilder( + int index) { + return agencies_.get(index); + } + + public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The full name of this transit line, For example, "8 Avenue Local".
+   * 
+ * + * string name = 2; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The full name of this transit line, For example, "8 Avenue Local".
+   * 
+ * + * string name = 2; + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + *
+   * the URI for this transit line as provided by the transit agency.
+   * 
+ * + * string uri = 3; + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + *
+   * the URI for this transit line as provided by the transit agency.
+   * 
+ * + * string uri = 3; + * @return The bytes for uri. + */ + @java.lang.Override + 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); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COLOR_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object color_ = ""; + /** + *
+   * The color commonly used in signage for this line. Represented in
+   * hexadecimal.
+   * 
+ * + * string color = 4; + * @return The color. + */ + @java.lang.Override + public java.lang.String getColor() { + java.lang.Object ref = color_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + color_ = s; + return s; + } + } + /** + *
+   * The color commonly used in signage for this line. Represented in
+   * hexadecimal.
+   * 
+ * + * string color = 4; + * @return The bytes for color. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getColorBytes() { + java.lang.Object ref = color_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + color_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ICON_URI_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object iconUri_ = ""; + /** + *
+   * The URI for the icon associated with this line.
+   * 
+ * + * string icon_uri = 5; + * @return The iconUri. + */ + @java.lang.Override + public java.lang.String getIconUri() { + java.lang.Object ref = iconUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconUri_ = s; + return s; + } + } + /** + *
+   * The URI for the icon associated with this line.
+   * 
+ * + * string icon_uri = 5; + * @return The bytes for iconUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIconUriBytes() { + java.lang.Object ref = iconUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + iconUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_SHORT_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object nameShort_ = ""; + /** + *
+   * The short name of this transit line. This name will normally be a line
+   * number, such as "M7" or "355".
+   * 
+ * + * string name_short = 6; + * @return The nameShort. + */ + @java.lang.Override + public java.lang.String getNameShort() { + java.lang.Object ref = nameShort_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nameShort_ = s; + return s; + } + } + /** + *
+   * The short name of this transit line. This name will normally be a line
+   * number, such as "M7" or "355".
+   * 
+ * + * string name_short = 6; + * @return The bytes for nameShort. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameShortBytes() { + java.lang.Object ref = nameShort_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nameShort_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_COLOR_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object textColor_ = ""; + /** + *
+   * The color commonly used in text on signage for this line. Represented in
+   * hexadecimal.
+   * 
+ * + * string text_color = 7; + * @return The textColor. + */ + @java.lang.Override + public java.lang.String getTextColor() { + java.lang.Object ref = textColor_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + textColor_ = s; + return s; + } + } + /** + *
+   * The color commonly used in text on signage for this line. Represented in
+   * hexadecimal.
+   * 
+ * + * string text_color = 7; + * @return The bytes for textColor. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTextColorBytes() { + java.lang.Object ref = textColor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + textColor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VEHICLE_FIELD_NUMBER = 8; + private com.google.maps.routing.v2.TransitVehicle vehicle_; + /** + *
+   * The type of vehicle that operates on this transit line.
+   * 
+ * + * .google.maps.routing.v2.TransitVehicle vehicle = 8; + * @return Whether the vehicle field is set. + */ + @java.lang.Override + public boolean hasVehicle() { + return vehicle_ != null; + } + /** + *
+   * The type of vehicle that operates on this transit line.
+   * 
+ * + * .google.maps.routing.v2.TransitVehicle vehicle = 8; + * @return The vehicle. + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitVehicle getVehicle() { + return vehicle_ == null ? com.google.maps.routing.v2.TransitVehicle.getDefaultInstance() : vehicle_; + } + /** + *
+   * The type of vehicle that operates on this transit line.
+   * 
+ * + * .google.maps.routing.v2.TransitVehicle vehicle = 8; + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitVehicleOrBuilder getVehicleOrBuilder() { + return vehicle_ == null ? com.google.maps.routing.v2.TransitVehicle.getDefaultInstance() : vehicle_; + } + + 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 { + for (int i = 0; i < agencies_.size(); i++) { + output.writeMessage(1, agencies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(color_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, color_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, iconUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nameShort_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, nameShort_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(textColor_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, textColor_); + } + if (vehicle_ != null) { + output.writeMessage(8, getVehicle()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < agencies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, agencies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(color_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, color_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, iconUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nameShort_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, nameShort_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(textColor_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, textColor_); + } + if (vehicle_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getVehicle()); + } + 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.maps.routing.v2.TransitLine)) { + return super.equals(obj); + } + com.google.maps.routing.v2.TransitLine other = (com.google.maps.routing.v2.TransitLine) obj; + + if (!getAgenciesList() + .equals(other.getAgenciesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUri() + .equals(other.getUri())) return false; + if (!getColor() + .equals(other.getColor())) return false; + if (!getIconUri() + .equals(other.getIconUri())) return false; + if (!getNameShort() + .equals(other.getNameShort())) return false; + if (!getTextColor() + .equals(other.getTextColor())) return false; + if (hasVehicle() != other.hasVehicle()) return false; + if (hasVehicle()) { + if (!getVehicle() + .equals(other.getVehicle())) 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(); + if (getAgenciesCount() > 0) { + hash = (37 * hash) + AGENCIES_FIELD_NUMBER; + hash = (53 * hash) + getAgenciesList().hashCode(); + } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + COLOR_FIELD_NUMBER; + hash = (53 * hash) + getColor().hashCode(); + hash = (37 * hash) + ICON_URI_FIELD_NUMBER; + hash = (53 * hash) + getIconUri().hashCode(); + hash = (37 * hash) + NAME_SHORT_FIELD_NUMBER; + hash = (53 * hash) + getNameShort().hashCode(); + hash = (37 * hash) + TEXT_COLOR_FIELD_NUMBER; + hash = (53 * hash) + getTextColor().hashCode(); + if (hasVehicle()) { + hash = (37 * hash) + VEHICLE_FIELD_NUMBER; + hash = (53 * hash) + getVehicle().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.TransitLine parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.TransitLine parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.TransitLine parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.TransitLine 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.maps.routing.v2.TransitLine parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.TransitLine parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.TransitLine parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.TransitLine 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.maps.routing.v2.TransitLine parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.TransitLine 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.maps.routing.v2.TransitLine parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.TransitLine 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.maps.routing.v2.TransitLine 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; + } + /** + *
+   * Contains information about the transit line used in this step.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.TransitLine} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.TransitLine) + com.google.maps.routing.v2.TransitLineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitLine_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitLine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.TransitLine.class, com.google.maps.routing.v2.TransitLine.Builder.class); + } + + // Construct using com.google.maps.routing.v2.TransitLine.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (agenciesBuilder_ == null) { + agencies_ = java.util.Collections.emptyList(); + } else { + agencies_ = null; + agenciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + name_ = ""; + uri_ = ""; + color_ = ""; + iconUri_ = ""; + nameShort_ = ""; + textColor_ = ""; + vehicle_ = null; + if (vehicleBuilder_ != null) { + vehicleBuilder_.dispose(); + vehicleBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitLine_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.TransitLine getDefaultInstanceForType() { + return com.google.maps.routing.v2.TransitLine.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.TransitLine build() { + com.google.maps.routing.v2.TransitLine result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.TransitLine buildPartial() { + com.google.maps.routing.v2.TransitLine result = new com.google.maps.routing.v2.TransitLine(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.maps.routing.v2.TransitLine result) { + if (agenciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + agencies_ = java.util.Collections.unmodifiableList(agencies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.agencies_ = agencies_; + } else { + result.agencies_ = agenciesBuilder_.build(); + } + } + + private void buildPartial0(com.google.maps.routing.v2.TransitLine result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.color_ = color_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.iconUri_ = iconUri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.nameShort_ = nameShort_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.textColor_ = textColor_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.vehicle_ = vehicleBuilder_ == null + ? vehicle_ + : vehicleBuilder_.build(); + } + } + + @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.maps.routing.v2.TransitLine) { + return mergeFrom((com.google.maps.routing.v2.TransitLine)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.TransitLine other) { + if (other == com.google.maps.routing.v2.TransitLine.getDefaultInstance()) return this; + if (agenciesBuilder_ == null) { + if (!other.agencies_.isEmpty()) { + if (agencies_.isEmpty()) { + agencies_ = other.agencies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAgenciesIsMutable(); + agencies_.addAll(other.agencies_); + } + onChanged(); + } + } else { + if (!other.agencies_.isEmpty()) { + if (agenciesBuilder_.isEmpty()) { + agenciesBuilder_.dispose(); + agenciesBuilder_ = null; + agencies_ = other.agencies_; + bitField0_ = (bitField0_ & ~0x00000001); + agenciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAgenciesFieldBuilder() : null; + } else { + agenciesBuilder_.addAllMessages(other.agencies_); + } + } + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getColor().isEmpty()) { + color_ = other.color_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getIconUri().isEmpty()) { + iconUri_ = other.iconUri_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getNameShort().isEmpty()) { + nameShort_ = other.nameShort_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getTextColor().isEmpty()) { + textColor_ = other.textColor_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasVehicle()) { + mergeVehicle(other.getVehicle()); + } + 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 10: { + com.google.maps.routing.v2.TransitAgency m = + input.readMessage( + com.google.maps.routing.v2.TransitAgency.parser(), + extensionRegistry); + if (agenciesBuilder_ == null) { + ensureAgenciesIsMutable(); + agencies_.add(m); + } else { + agenciesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + color_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + iconUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + nameShort_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + textColor_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getVehicleFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List agencies_ = + java.util.Collections.emptyList(); + private void ensureAgenciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + agencies_ = new java.util.ArrayList(agencies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.TransitAgency, com.google.maps.routing.v2.TransitAgency.Builder, com.google.maps.routing.v2.TransitAgencyOrBuilder> agenciesBuilder_; + + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public java.util.List getAgenciesList() { + if (agenciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(agencies_); + } else { + return agenciesBuilder_.getMessageList(); + } + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public int getAgenciesCount() { + if (agenciesBuilder_ == null) { + return agencies_.size(); + } else { + return agenciesBuilder_.getCount(); + } + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public com.google.maps.routing.v2.TransitAgency getAgencies(int index) { + if (agenciesBuilder_ == null) { + return agencies_.get(index); + } else { + return agenciesBuilder_.getMessage(index); + } + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public Builder setAgencies( + int index, com.google.maps.routing.v2.TransitAgency value) { + if (agenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgenciesIsMutable(); + agencies_.set(index, value); + onChanged(); + } else { + agenciesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public Builder setAgencies( + int index, com.google.maps.routing.v2.TransitAgency.Builder builderForValue) { + if (agenciesBuilder_ == null) { + ensureAgenciesIsMutable(); + agencies_.set(index, builderForValue.build()); + onChanged(); + } else { + agenciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public Builder addAgencies(com.google.maps.routing.v2.TransitAgency value) { + if (agenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgenciesIsMutable(); + agencies_.add(value); + onChanged(); + } else { + agenciesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public Builder addAgencies( + int index, com.google.maps.routing.v2.TransitAgency value) { + if (agenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgenciesIsMutable(); + agencies_.add(index, value); + onChanged(); + } else { + agenciesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public Builder addAgencies( + com.google.maps.routing.v2.TransitAgency.Builder builderForValue) { + if (agenciesBuilder_ == null) { + ensureAgenciesIsMutable(); + agencies_.add(builderForValue.build()); + onChanged(); + } else { + agenciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public Builder addAgencies( + int index, com.google.maps.routing.v2.TransitAgency.Builder builderForValue) { + if (agenciesBuilder_ == null) { + ensureAgenciesIsMutable(); + agencies_.add(index, builderForValue.build()); + onChanged(); + } else { + agenciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public Builder addAllAgencies( + java.lang.Iterable values) { + if (agenciesBuilder_ == null) { + ensureAgenciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, agencies_); + onChanged(); + } else { + agenciesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public Builder clearAgencies() { + if (agenciesBuilder_ == null) { + agencies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + agenciesBuilder_.clear(); + } + return this; + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public Builder removeAgencies(int index) { + if (agenciesBuilder_ == null) { + ensureAgenciesIsMutable(); + agencies_.remove(index); + onChanged(); + } else { + agenciesBuilder_.remove(index); + } + return this; + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public com.google.maps.routing.v2.TransitAgency.Builder getAgenciesBuilder( + int index) { + return getAgenciesFieldBuilder().getBuilder(index); + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public com.google.maps.routing.v2.TransitAgencyOrBuilder getAgenciesOrBuilder( + int index) { + if (agenciesBuilder_ == null) { + return agencies_.get(index); } else { + return agenciesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public java.util.List + getAgenciesOrBuilderList() { + if (agenciesBuilder_ != null) { + return agenciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(agencies_); + } + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public com.google.maps.routing.v2.TransitAgency.Builder addAgenciesBuilder() { + return getAgenciesFieldBuilder().addBuilder( + com.google.maps.routing.v2.TransitAgency.getDefaultInstance()); + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public com.google.maps.routing.v2.TransitAgency.Builder addAgenciesBuilder( + int index) { + return getAgenciesFieldBuilder().addBuilder( + index, com.google.maps.routing.v2.TransitAgency.getDefaultInstance()); + } + /** + *
+     * The transit agency (or agencies) that operates this transit line.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + public java.util.List + getAgenciesBuilderList() { + return getAgenciesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.TransitAgency, com.google.maps.routing.v2.TransitAgency.Builder, com.google.maps.routing.v2.TransitAgencyOrBuilder> + getAgenciesFieldBuilder() { + if (agenciesBuilder_ == null) { + agenciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.TransitAgency, com.google.maps.routing.v2.TransitAgency.Builder, com.google.maps.routing.v2.TransitAgencyOrBuilder>( + agencies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + agencies_ = null; + } + return agenciesBuilder_; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The full name of this transit line, For example, "8 Avenue Local".
+     * 
+ * + * string name = 2; + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The full name of this transit line, For example, "8 Avenue Local".
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The full name of this transit line, For example, "8 Avenue Local".
+     * 
+ * + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The full name of this transit line, For example, "8 Avenue Local".
+     * 
+ * + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The full name of this transit line, For example, "8 Avenue Local".
+     * 
+ * + * string name = 2; + * @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(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + *
+     * the URI for this transit line as provided by the transit agency.
+     * 
+ * + * string uri = 3; + * @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; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * the URI for this transit line as provided by the transit agency.
+     * 
+ * + * string uri = 3; + * @return The bytes for uri. + */ + 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); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * the URI for this transit line as provided by the transit agency.
+     * 
+ * + * string uri = 3; + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + uri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * the URI for this transit line as provided by the transit agency.
+     * 
+ * + * string uri = 3; + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * the URI for this transit line as provided by the transit agency.
+     * 
+ * + * string uri = 3; + * @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(); } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object color_ = ""; + /** + *
+     * The color commonly used in signage for this line. Represented in
+     * hexadecimal.
+     * 
+ * + * string color = 4; + * @return The color. + */ + public java.lang.String getColor() { + java.lang.Object ref = color_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + color_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The color commonly used in signage for this line. Represented in
+     * hexadecimal.
+     * 
+ * + * string color = 4; + * @return The bytes for color. + */ + public com.google.protobuf.ByteString + getColorBytes() { + java.lang.Object ref = color_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + color_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The color commonly used in signage for this line. Represented in
+     * hexadecimal.
+     * 
+ * + * string color = 4; + * @param value The color to set. + * @return This builder for chaining. + */ + public Builder setColor( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + color_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The color commonly used in signage for this line. Represented in
+     * hexadecimal.
+     * 
+ * + * string color = 4; + * @return This builder for chaining. + */ + public Builder clearColor() { + color_ = getDefaultInstance().getColor(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The color commonly used in signage for this line. Represented in
+     * hexadecimal.
+     * 
+ * + * string color = 4; + * @param value The bytes for color to set. + * @return This builder for chaining. + */ + public Builder setColorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + color_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object iconUri_ = ""; + /** + *
+     * The URI for the icon associated with this line.
+     * 
+ * + * string icon_uri = 5; + * @return The iconUri. + */ + public java.lang.String getIconUri() { + java.lang.Object ref = iconUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The URI for the icon associated with this line.
+     * 
+ * + * string icon_uri = 5; + * @return The bytes for iconUri. + */ + public com.google.protobuf.ByteString + getIconUriBytes() { + java.lang.Object ref = iconUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + iconUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The URI for the icon associated with this line.
+     * 
+ * + * string icon_uri = 5; + * @param value The iconUri to set. + * @return This builder for chaining. + */ + public Builder setIconUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + iconUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * The URI for the icon associated with this line.
+     * 
+ * + * string icon_uri = 5; + * @return This builder for chaining. + */ + public Builder clearIconUri() { + iconUri_ = getDefaultInstance().getIconUri(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * The URI for the icon associated with this line.
+     * 
+ * + * string icon_uri = 5; + * @param value The bytes for iconUri to set. + * @return This builder for chaining. + */ + public Builder setIconUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + iconUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object nameShort_ = ""; + /** + *
+     * The short name of this transit line. This name will normally be a line
+     * number, such as "M7" or "355".
+     * 
+ * + * string name_short = 6; + * @return The nameShort. + */ + public java.lang.String getNameShort() { + java.lang.Object ref = nameShort_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nameShort_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The short name of this transit line. This name will normally be a line
+     * number, such as "M7" or "355".
+     * 
+ * + * string name_short = 6; + * @return The bytes for nameShort. + */ + public com.google.protobuf.ByteString + getNameShortBytes() { + java.lang.Object ref = nameShort_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nameShort_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The short name of this transit line. This name will normally be a line
+     * number, such as "M7" or "355".
+     * 
+ * + * string name_short = 6; + * @param value The nameShort to set. + * @return This builder for chaining. + */ + public Builder setNameShort( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + nameShort_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * The short name of this transit line. This name will normally be a line
+     * number, such as "M7" or "355".
+     * 
+ * + * string name_short = 6; + * @return This builder for chaining. + */ + public Builder clearNameShort() { + nameShort_ = getDefaultInstance().getNameShort(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * The short name of this transit line. This name will normally be a line
+     * number, such as "M7" or "355".
+     * 
+ * + * string name_short = 6; + * @param value The bytes for nameShort to set. + * @return This builder for chaining. + */ + public Builder setNameShortBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + nameShort_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object textColor_ = ""; + /** + *
+     * The color commonly used in text on signage for this line. Represented in
+     * hexadecimal.
+     * 
+ * + * string text_color = 7; + * @return The textColor. + */ + public java.lang.String getTextColor() { + java.lang.Object ref = textColor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + textColor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The color commonly used in text on signage for this line. Represented in
+     * hexadecimal.
+     * 
+ * + * string text_color = 7; + * @return The bytes for textColor. + */ + public com.google.protobuf.ByteString + getTextColorBytes() { + java.lang.Object ref = textColor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + textColor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The color commonly used in text on signage for this line. Represented in
+     * hexadecimal.
+     * 
+ * + * string text_color = 7; + * @param value The textColor to set. + * @return This builder for chaining. + */ + public Builder setTextColor( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + textColor_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * The color commonly used in text on signage for this line. Represented in
+     * hexadecimal.
+     * 
+ * + * string text_color = 7; + * @return This builder for chaining. + */ + public Builder clearTextColor() { + textColor_ = getDefaultInstance().getTextColor(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+     * The color commonly used in text on signage for this line. Represented in
+     * hexadecimal.
+     * 
+ * + * string text_color = 7; + * @param value The bytes for textColor to set. + * @return This builder for chaining. + */ + public Builder setTextColorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + textColor_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.maps.routing.v2.TransitVehicle vehicle_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitVehicle, com.google.maps.routing.v2.TransitVehicle.Builder, com.google.maps.routing.v2.TransitVehicleOrBuilder> vehicleBuilder_; + /** + *
+     * The type of vehicle that operates on this transit line.
+     * 
+ * + * .google.maps.routing.v2.TransitVehicle vehicle = 8; + * @return Whether the vehicle field is set. + */ + public boolean hasVehicle() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + *
+     * The type of vehicle that operates on this transit line.
+     * 
+ * + * .google.maps.routing.v2.TransitVehicle vehicle = 8; + * @return The vehicle. + */ + public com.google.maps.routing.v2.TransitVehicle getVehicle() { + if (vehicleBuilder_ == null) { + return vehicle_ == null ? com.google.maps.routing.v2.TransitVehicle.getDefaultInstance() : vehicle_; + } else { + return vehicleBuilder_.getMessage(); + } + } + /** + *
+     * The type of vehicle that operates on this transit line.
+     * 
+ * + * .google.maps.routing.v2.TransitVehicle vehicle = 8; + */ + public Builder setVehicle(com.google.maps.routing.v2.TransitVehicle value) { + if (vehicleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vehicle_ = value; + } else { + vehicleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The type of vehicle that operates on this transit line.
+     * 
+ * + * .google.maps.routing.v2.TransitVehicle vehicle = 8; + */ + public Builder setVehicle( + com.google.maps.routing.v2.TransitVehicle.Builder builderForValue) { + if (vehicleBuilder_ == null) { + vehicle_ = builderForValue.build(); + } else { + vehicleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The type of vehicle that operates on this transit line.
+     * 
+ * + * .google.maps.routing.v2.TransitVehicle vehicle = 8; + */ + public Builder mergeVehicle(com.google.maps.routing.v2.TransitVehicle value) { + if (vehicleBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + vehicle_ != null && + vehicle_ != com.google.maps.routing.v2.TransitVehicle.getDefaultInstance()) { + getVehicleBuilder().mergeFrom(value); + } else { + vehicle_ = value; + } + } else { + vehicleBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * The type of vehicle that operates on this transit line.
+     * 
+ * + * .google.maps.routing.v2.TransitVehicle vehicle = 8; + */ + public Builder clearVehicle() { + bitField0_ = (bitField0_ & ~0x00000080); + vehicle_ = null; + if (vehicleBuilder_ != null) { + vehicleBuilder_.dispose(); + vehicleBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The type of vehicle that operates on this transit line.
+     * 
+ * + * .google.maps.routing.v2.TransitVehicle vehicle = 8; + */ + public com.google.maps.routing.v2.TransitVehicle.Builder getVehicleBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getVehicleFieldBuilder().getBuilder(); + } + /** + *
+     * The type of vehicle that operates on this transit line.
+     * 
+ * + * .google.maps.routing.v2.TransitVehicle vehicle = 8; + */ + public com.google.maps.routing.v2.TransitVehicleOrBuilder getVehicleOrBuilder() { + if (vehicleBuilder_ != null) { + return vehicleBuilder_.getMessageOrBuilder(); + } else { + return vehicle_ == null ? + com.google.maps.routing.v2.TransitVehicle.getDefaultInstance() : vehicle_; + } + } + /** + *
+     * The type of vehicle that operates on this transit line.
+     * 
+ * + * .google.maps.routing.v2.TransitVehicle vehicle = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitVehicle, com.google.maps.routing.v2.TransitVehicle.Builder, com.google.maps.routing.v2.TransitVehicleOrBuilder> + getVehicleFieldBuilder() { + if (vehicleBuilder_ == null) { + vehicleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitVehicle, com.google.maps.routing.v2.TransitVehicle.Builder, com.google.maps.routing.v2.TransitVehicleOrBuilder>( + getVehicle(), + getParentForChildren(), + isClean()); + vehicle_ = null; + } + return vehicleBuilder_; + } + @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.maps.routing.v2.TransitLine) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.TransitLine) + private static final com.google.maps.routing.v2.TransitLine DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.TransitLine(); + } + + public static com.google.maps.routing.v2.TransitLine getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransitLine 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.maps.routing.v2.TransitLine getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLineOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLineOrBuilder.java new file mode 100644 index 000000000000..2c7ba5bf266b --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLineOrBuilder.java @@ -0,0 +1,206 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/transit.proto + +package com.google.maps.routing.v2; + +public interface TransitLineOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.TransitLine) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The transit agency (or agencies) that operates this transit line.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + java.util.List + getAgenciesList(); + /** + *
+   * The transit agency (or agencies) that operates this transit line.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + com.google.maps.routing.v2.TransitAgency getAgencies(int index); + /** + *
+   * The transit agency (or agencies) that operates this transit line.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + int getAgenciesCount(); + /** + *
+   * The transit agency (or agencies) that operates this transit line.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + java.util.List + getAgenciesOrBuilderList(); + /** + *
+   * The transit agency (or agencies) that operates this transit line.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitAgency agencies = 1; + */ + com.google.maps.routing.v2.TransitAgencyOrBuilder getAgenciesOrBuilder( + int index); + + /** + *
+   * The full name of this transit line, For example, "8 Avenue Local".
+   * 
+ * + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The full name of this transit line, For example, "8 Avenue Local".
+   * 
+ * + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * the URI for this transit line as provided by the transit agency.
+   * 
+ * + * string uri = 3; + * @return The uri. + */ + java.lang.String getUri(); + /** + *
+   * the URI for this transit line as provided by the transit agency.
+   * 
+ * + * string uri = 3; + * @return The bytes for uri. + */ + com.google.protobuf.ByteString + getUriBytes(); + + /** + *
+   * The color commonly used in signage for this line. Represented in
+   * hexadecimal.
+   * 
+ * + * string color = 4; + * @return The color. + */ + java.lang.String getColor(); + /** + *
+   * The color commonly used in signage for this line. Represented in
+   * hexadecimal.
+   * 
+ * + * string color = 4; + * @return The bytes for color. + */ + com.google.protobuf.ByteString + getColorBytes(); + + /** + *
+   * The URI for the icon associated with this line.
+   * 
+ * + * string icon_uri = 5; + * @return The iconUri. + */ + java.lang.String getIconUri(); + /** + *
+   * The URI for the icon associated with this line.
+   * 
+ * + * string icon_uri = 5; + * @return The bytes for iconUri. + */ + com.google.protobuf.ByteString + getIconUriBytes(); + + /** + *
+   * The short name of this transit line. This name will normally be a line
+   * number, such as "M7" or "355".
+   * 
+ * + * string name_short = 6; + * @return The nameShort. + */ + java.lang.String getNameShort(); + /** + *
+   * The short name of this transit line. This name will normally be a line
+   * number, such as "M7" or "355".
+   * 
+ * + * string name_short = 6; + * @return The bytes for nameShort. + */ + com.google.protobuf.ByteString + getNameShortBytes(); + + /** + *
+   * The color commonly used in text on signage for this line. Represented in
+   * hexadecimal.
+   * 
+ * + * string text_color = 7; + * @return The textColor. + */ + java.lang.String getTextColor(); + /** + *
+   * The color commonly used in text on signage for this line. Represented in
+   * hexadecimal.
+   * 
+ * + * string text_color = 7; + * @return The bytes for textColor. + */ + com.google.protobuf.ByteString + getTextColorBytes(); + + /** + *
+   * The type of vehicle that operates on this transit line.
+   * 
+ * + * .google.maps.routing.v2.TransitVehicle vehicle = 8; + * @return Whether the vehicle field is set. + */ + boolean hasVehicle(); + /** + *
+   * The type of vehicle that operates on this transit line.
+   * 
+ * + * .google.maps.routing.v2.TransitVehicle vehicle = 8; + * @return The vehicle. + */ + com.google.maps.routing.v2.TransitVehicle getVehicle(); + /** + *
+   * The type of vehicle that operates on this transit line.
+   * 
+ * + * .google.maps.routing.v2.TransitVehicle vehicle = 8; + */ + com.google.maps.routing.v2.TransitVehicleOrBuilder getVehicleOrBuilder(); +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferences.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferences.java new file mode 100644 index 000000000000..f1014868ba38 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferences.java @@ -0,0 +1,1238 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/transit_preferences.proto + +package com.google.maps.routing.v2; + +/** + *
+ * Preferences for `TRANSIT` based routes that influence the route that is
+ * returned.
+ * 
+ * + * Protobuf type {@code google.maps.routing.v2.TransitPreferences} + */ +public final class TransitPreferences extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.TransitPreferences) + TransitPreferencesOrBuilder { +private static final long serialVersionUID = 0L; + // Use TransitPreferences.newBuilder() to construct. + private TransitPreferences(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TransitPreferences() { + allowedTravelModes_ = java.util.Collections.emptyList(); + routingPreference_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TransitPreferences(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.TransitPreferencesProto.internal_static_google_maps_routing_v2_TransitPreferences_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.TransitPreferencesProto.internal_static_google_maps_routing_v2_TransitPreferences_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.TransitPreferences.class, com.google.maps.routing.v2.TransitPreferences.Builder.class); + } + + /** + *
+   * A set of values used to specify the mode of transit.
+   * 
+ * + * Protobuf enum {@code google.maps.routing.v2.TransitPreferences.TransitTravelMode} + */ + public enum TransitTravelMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * No transit travel mode specified.
+     * 
+ * + * TRANSIT_TRAVEL_MODE_UNSPECIFIED = 0; + */ + TRANSIT_TRAVEL_MODE_UNSPECIFIED(0), + /** + *
+     * Travel by bus.
+     * 
+ * + * BUS = 1; + */ + BUS(1), + /** + *
+     * Travel by subway.
+     * 
+ * + * SUBWAY = 2; + */ + SUBWAY(2), + /** + *
+     * Travel by train.
+     * 
+ * + * TRAIN = 3; + */ + TRAIN(3), + /** + *
+     * Travel by light rail or tram.
+     * 
+ * + * LIGHT_RAIL = 4; + */ + LIGHT_RAIL(4), + /** + *
+     * Travel by rail. This is equivalent to a combination of `SUBWAY`, `TRAIN`,
+     * and `LIGHT_RAIL`.
+     * 
+ * + * RAIL = 5; + */ + RAIL(5), + UNRECOGNIZED(-1), + ; + + /** + *
+     * No transit travel mode specified.
+     * 
+ * + * TRANSIT_TRAVEL_MODE_UNSPECIFIED = 0; + */ + public static final int TRANSIT_TRAVEL_MODE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Travel by bus.
+     * 
+ * + * BUS = 1; + */ + public static final int BUS_VALUE = 1; + /** + *
+     * Travel by subway.
+     * 
+ * + * SUBWAY = 2; + */ + public static final int SUBWAY_VALUE = 2; + /** + *
+     * Travel by train.
+     * 
+ * + * TRAIN = 3; + */ + public static final int TRAIN_VALUE = 3; + /** + *
+     * Travel by light rail or tram.
+     * 
+ * + * LIGHT_RAIL = 4; + */ + public static final int LIGHT_RAIL_VALUE = 4; + /** + *
+     * Travel by rail. This is equivalent to a combination of `SUBWAY`, `TRAIN`,
+     * and `LIGHT_RAIL`.
+     * 
+ * + * RAIL = 5; + */ + public static final int RAIL_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TransitTravelMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TransitTravelMode forNumber(int value) { + switch (value) { + case 0: return TRANSIT_TRAVEL_MODE_UNSPECIFIED; + case 1: return BUS; + case 2: return SUBWAY; + case 3: return TRAIN; + case 4: return LIGHT_RAIL; + case 5: return RAIL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + TransitTravelMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TransitTravelMode findValueByNumber(int number) { + return TransitTravelMode.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() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.maps.routing.v2.TransitPreferences.getDescriptor().getEnumTypes().get(0); + } + + private static final TransitTravelMode[] VALUES = values(); + + public static TransitTravelMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TransitTravelMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.TransitPreferences.TransitTravelMode) + } + + /** + *
+   * Specifies routing preferences for transit routes.
+   * 
+ * + * Protobuf enum {@code google.maps.routing.v2.TransitPreferences.TransitRoutingPreference} + */ + public enum TransitRoutingPreference + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * No preference specified.
+     * 
+ * + * TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED = 0; + */ + TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED(0), + /** + *
+     * Indicates that the calculated route should prefer limited amounts of
+     * walking.
+     * 
+ * + * LESS_WALKING = 1; + */ + LESS_WALKING(1), + /** + *
+     * Indicates that the calculated route should prefer a limited number of
+     * transfers.
+     * 
+ * + * FEWER_TRANSFERS = 2; + */ + FEWER_TRANSFERS(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * No preference specified.
+     * 
+ * + * TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED = 0; + */ + public static final int TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Indicates that the calculated route should prefer limited amounts of
+     * walking.
+     * 
+ * + * LESS_WALKING = 1; + */ + public static final int LESS_WALKING_VALUE = 1; + /** + *
+     * Indicates that the calculated route should prefer a limited number of
+     * transfers.
+     * 
+ * + * FEWER_TRANSFERS = 2; + */ + public static final int FEWER_TRANSFERS_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TransitRoutingPreference valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TransitRoutingPreference forNumber(int value) { + switch (value) { + case 0: return TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED; + case 1: return LESS_WALKING; + case 2: return FEWER_TRANSFERS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + TransitRoutingPreference> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TransitRoutingPreference findValueByNumber(int number) { + return TransitRoutingPreference.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() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.maps.routing.v2.TransitPreferences.getDescriptor().getEnumTypes().get(1); + } + + private static final TransitRoutingPreference[] VALUES = values(); + + public static TransitRoutingPreference valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TransitRoutingPreference(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.TransitPreferences.TransitRoutingPreference) + } + + public static final int ALLOWED_TRAVEL_MODES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List allowedTravelModes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.maps.routing.v2.TransitPreferences.TransitTravelMode> allowedTravelModes_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.maps.routing.v2.TransitPreferences.TransitTravelMode>() { + public com.google.maps.routing.v2.TransitPreferences.TransitTravelMode convert(java.lang.Integer from) { + com.google.maps.routing.v2.TransitPreferences.TransitTravelMode result = com.google.maps.routing.v2.TransitPreferences.TransitTravelMode.forNumber(from); + return result == null ? com.google.maps.routing.v2.TransitPreferences.TransitTravelMode.UNRECOGNIZED : result; + } + }; + /** + *
+   * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+   * all supported modes of travel.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @return A list containing the allowedTravelModes. + */ + @java.lang.Override + public java.util.List getAllowedTravelModesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.maps.routing.v2.TransitPreferences.TransitTravelMode>(allowedTravelModes_, allowedTravelModes_converter_); + } + /** + *
+   * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+   * all supported modes of travel.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @return The count of allowedTravelModes. + */ + @java.lang.Override + public int getAllowedTravelModesCount() { + return allowedTravelModes_.size(); + } + /** + *
+   * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+   * all supported modes of travel.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @param index The index of the element to return. + * @return The allowedTravelModes at the given index. + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitPreferences.TransitTravelMode getAllowedTravelModes(int index) { + return allowedTravelModes_converter_.convert(allowedTravelModes_.get(index)); + } + /** + *
+   * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+   * all supported modes of travel.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @return A list containing the enum numeric values on the wire for allowedTravelModes. + */ + @java.lang.Override + public java.util.List + getAllowedTravelModesValueList() { + return allowedTravelModes_; + } + /** + *
+   * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+   * all supported modes of travel.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of allowedTravelModes at the given index. + */ + @java.lang.Override + public int getAllowedTravelModesValue(int index) { + return allowedTravelModes_.get(index); + } + private int allowedTravelModesMemoizedSerializedSize; + + public static final int ROUTING_PREFERENCE_FIELD_NUMBER = 2; + private int routingPreference_ = 0; + /** + *
+   * A routing preference that, when specified, influences the `TRANSIT` route
+   * returned.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * @return The enum numeric value on the wire for routingPreference. + */ + @java.lang.Override public int getRoutingPreferenceValue() { + return routingPreference_; + } + /** + *
+   * A routing preference that, when specified, influences the `TRANSIT` route
+   * returned.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * @return The routingPreference. + */ + @java.lang.Override public com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference getRoutingPreference() { + com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference result = com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.forNumber(routingPreference_); + return result == null ? com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.UNRECOGNIZED : result; + } + + 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 { + getSerializedSize(); + if (getAllowedTravelModesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(allowedTravelModesMemoizedSerializedSize); + } + for (int i = 0; i < allowedTravelModes_.size(); i++) { + output.writeEnumNoTag(allowedTravelModes_.get(i)); + } + if (routingPreference_ != com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, routingPreference_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < allowedTravelModes_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(allowedTravelModes_.get(i)); + } + size += dataSize; + if (!getAllowedTravelModesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }allowedTravelModesMemoizedSerializedSize = dataSize; + } + if (routingPreference_ != com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, routingPreference_); + } + 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.maps.routing.v2.TransitPreferences)) { + return super.equals(obj); + } + com.google.maps.routing.v2.TransitPreferences other = (com.google.maps.routing.v2.TransitPreferences) obj; + + if (!allowedTravelModes_.equals(other.allowedTravelModes_)) return false; + if (routingPreference_ != other.routingPreference_) 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(); + if (getAllowedTravelModesCount() > 0) { + hash = (37 * hash) + ALLOWED_TRAVEL_MODES_FIELD_NUMBER; + hash = (53 * hash) + allowedTravelModes_.hashCode(); + } + hash = (37 * hash) + ROUTING_PREFERENCE_FIELD_NUMBER; + hash = (53 * hash) + routingPreference_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.TransitPreferences parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.TransitPreferences parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.TransitPreferences parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.TransitPreferences 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.maps.routing.v2.TransitPreferences parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.TransitPreferences parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.TransitPreferences parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.TransitPreferences 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.maps.routing.v2.TransitPreferences parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.TransitPreferences 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.maps.routing.v2.TransitPreferences parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.TransitPreferences 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.maps.routing.v2.TransitPreferences 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; + } + /** + *
+   * Preferences for `TRANSIT` based routes that influence the route that is
+   * returned.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.TransitPreferences} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.TransitPreferences) + com.google.maps.routing.v2.TransitPreferencesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.TransitPreferencesProto.internal_static_google_maps_routing_v2_TransitPreferences_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.TransitPreferencesProto.internal_static_google_maps_routing_v2_TransitPreferences_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.TransitPreferences.class, com.google.maps.routing.v2.TransitPreferences.Builder.class); + } + + // Construct using com.google.maps.routing.v2.TransitPreferences.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allowedTravelModes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + routingPreference_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.TransitPreferencesProto.internal_static_google_maps_routing_v2_TransitPreferences_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.TransitPreferences getDefaultInstanceForType() { + return com.google.maps.routing.v2.TransitPreferences.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.TransitPreferences build() { + com.google.maps.routing.v2.TransitPreferences result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.TransitPreferences buildPartial() { + com.google.maps.routing.v2.TransitPreferences result = new com.google.maps.routing.v2.TransitPreferences(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.maps.routing.v2.TransitPreferences result) { + if (((bitField0_ & 0x00000001) != 0)) { + allowedTravelModes_ = java.util.Collections.unmodifiableList(allowedTravelModes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.allowedTravelModes_ = allowedTravelModes_; + } + + private void buildPartial0(com.google.maps.routing.v2.TransitPreferences result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.routingPreference_ = routingPreference_; + } + } + + @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.maps.routing.v2.TransitPreferences) { + return mergeFrom((com.google.maps.routing.v2.TransitPreferences)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.TransitPreferences other) { + if (other == com.google.maps.routing.v2.TransitPreferences.getDefaultInstance()) return this; + if (!other.allowedTravelModes_.isEmpty()) { + if (allowedTravelModes_.isEmpty()) { + allowedTravelModes_ = other.allowedTravelModes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAllowedTravelModesIsMutable(); + allowedTravelModes_.addAll(other.allowedTravelModes_); + } + onChanged(); + } + if (other.routingPreference_ != 0) { + setRoutingPreferenceValue(other.getRoutingPreferenceValue()); + } + 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 8: { + int tmpRaw = input.readEnum(); + ensureAllowedTravelModesIsMutable(); + allowedTravelModes_.add(tmpRaw); + break; + } // case 8 + case 10: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureAllowedTravelModesIsMutable(); + allowedTravelModes_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + case 16: { + routingPreference_ = 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.util.List allowedTravelModes_ = + java.util.Collections.emptyList(); + private void ensureAllowedTravelModesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + allowedTravelModes_ = new java.util.ArrayList(allowedTravelModes_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+     * all supported modes of travel.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @return A list containing the allowedTravelModes. + */ + public java.util.List getAllowedTravelModesList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.maps.routing.v2.TransitPreferences.TransitTravelMode>(allowedTravelModes_, allowedTravelModes_converter_); + } + /** + *
+     * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+     * all supported modes of travel.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @return The count of allowedTravelModes. + */ + public int getAllowedTravelModesCount() { + return allowedTravelModes_.size(); + } + /** + *
+     * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+     * all supported modes of travel.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @param index The index of the element to return. + * @return The allowedTravelModes at the given index. + */ + public com.google.maps.routing.v2.TransitPreferences.TransitTravelMode getAllowedTravelModes(int index) { + return allowedTravelModes_converter_.convert(allowedTravelModes_.get(index)); + } + /** + *
+     * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+     * all supported modes of travel.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @param index The index to set the value at. + * @param value The allowedTravelModes to set. + * @return This builder for chaining. + */ + public Builder setAllowedTravelModes( + int index, com.google.maps.routing.v2.TransitPreferences.TransitTravelMode value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedTravelModesIsMutable(); + allowedTravelModes_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+     * all supported modes of travel.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @param value The allowedTravelModes to add. + * @return This builder for chaining. + */ + public Builder addAllowedTravelModes(com.google.maps.routing.v2.TransitPreferences.TransitTravelMode value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedTravelModesIsMutable(); + allowedTravelModes_.add(value.getNumber()); + onChanged(); + return this; + } + /** + *
+     * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+     * all supported modes of travel.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @param values The allowedTravelModes to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedTravelModes( + java.lang.Iterable values) { + ensureAllowedTravelModesIsMutable(); + for (com.google.maps.routing.v2.TransitPreferences.TransitTravelMode value : values) { + allowedTravelModes_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + *
+     * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+     * all supported modes of travel.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @return This builder for chaining. + */ + public Builder clearAllowedTravelModes() { + allowedTravelModes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+     * all supported modes of travel.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @return A list containing the enum numeric values on the wire for allowedTravelModes. + */ + public java.util.List + getAllowedTravelModesValueList() { + return java.util.Collections.unmodifiableList(allowedTravelModes_); + } + /** + *
+     * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+     * all supported modes of travel.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of allowedTravelModes at the given index. + */ + public int getAllowedTravelModesValue(int index) { + return allowedTravelModes_.get(index); + } + /** + *
+     * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+     * all supported modes of travel.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for allowedTravelModes to set. + * @return This builder for chaining. + */ + public Builder setAllowedTravelModesValue( + int index, int value) { + ensureAllowedTravelModesIsMutable(); + allowedTravelModes_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+     * all supported modes of travel.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @param value The enum numeric value on the wire for allowedTravelModes to add. + * @return This builder for chaining. + */ + public Builder addAllowedTravelModesValue(int value) { + ensureAllowedTravelModesIsMutable(); + allowedTravelModes_.add(value); + onChanged(); + return this; + } + /** + *
+     * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+     * all supported modes of travel.
+     * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @param values The enum numeric values on the wire for allowedTravelModes to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedTravelModesValue( + java.lang.Iterable values) { + ensureAllowedTravelModesIsMutable(); + for (int value : values) { + allowedTravelModes_.add(value); + } + onChanged(); + return this; + } + + private int routingPreference_ = 0; + /** + *
+     * A routing preference that, when specified, influences the `TRANSIT` route
+     * returned.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * @return The enum numeric value on the wire for routingPreference. + */ + @java.lang.Override public int getRoutingPreferenceValue() { + return routingPreference_; + } + /** + *
+     * A routing preference that, when specified, influences the `TRANSIT` route
+     * returned.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * @param value The enum numeric value on the wire for routingPreference to set. + * @return This builder for chaining. + */ + public Builder setRoutingPreferenceValue(int value) { + routingPreference_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * A routing preference that, when specified, influences the `TRANSIT` route
+     * returned.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * @return The routingPreference. + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference getRoutingPreference() { + com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference result = com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.forNumber(routingPreference_); + return result == null ? com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.UNRECOGNIZED : result; + } + /** + *
+     * A routing preference that, when specified, influences the `TRANSIT` route
+     * returned.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * @param value The routingPreference to set. + * @return This builder for chaining. + */ + public Builder setRoutingPreference(com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + routingPreference_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * A routing preference that, when specified, influences the `TRANSIT` route
+     * returned.
+     * 
+ * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * @return This builder for chaining. + */ + public Builder clearRoutingPreference() { + bitField0_ = (bitField0_ & ~0x00000002); + routingPreference_ = 0; + 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.maps.routing.v2.TransitPreferences) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.TransitPreferences) + private static final com.google.maps.routing.v2.TransitPreferences DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.TransitPreferences(); + } + + public static com.google.maps.routing.v2.TransitPreferences getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransitPreferences 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.maps.routing.v2.TransitPreferences getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesOrBuilder.java new file mode 100644 index 000000000000..bc8f6d700182 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesOrBuilder.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/transit_preferences.proto + +package com.google.maps.routing.v2; + +public interface TransitPreferencesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.TransitPreferences) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+   * all supported modes of travel.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @return A list containing the allowedTravelModes. + */ + java.util.List getAllowedTravelModesList(); + /** + *
+   * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+   * all supported modes of travel.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @return The count of allowedTravelModes. + */ + int getAllowedTravelModesCount(); + /** + *
+   * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+   * all supported modes of travel.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @param index The index of the element to return. + * @return The allowedTravelModes at the given index. + */ + com.google.maps.routing.v2.TransitPreferences.TransitTravelMode getAllowedTravelModes(int index); + /** + *
+   * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+   * all supported modes of travel.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @return A list containing the enum numeric values on the wire for allowedTravelModes. + */ + java.util.List + getAllowedTravelModesValueList(); + /** + *
+   * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
+   * all supported modes of travel.
+   * 
+ * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * @param index The index of the value to return. + * @return The enum numeric value on the wire of allowedTravelModes at the given index. + */ + int getAllowedTravelModesValue(int index); + + /** + *
+   * A routing preference that, when specified, influences the `TRANSIT` route
+   * returned.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * @return The enum numeric value on the wire for routingPreference. + */ + int getRoutingPreferenceValue(); + /** + *
+   * A routing preference that, when specified, influences the `TRANSIT` route
+   * returned.
+   * 
+ * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * @return The routingPreference. + */ + com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference getRoutingPreference(); +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java new file mode 100644 index 000000000000..c11566fa1f8b --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/transit_preferences.proto + +package com.google.maps.routing.v2; + +public final class TransitPreferencesProto { + private TransitPreferencesProto() {} + 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_maps_routing_v2_TransitPreferences_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_TransitPreferences_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/maps/routing/v2/transit_prefere" + + "nces.proto\022\026google.maps.routing.v2\"\264\003\n\022T" + + "ransitPreferences\022Z\n\024allowed_travel_mode" + + "s\030\001 \003(\0162<.google.maps.routing.v2.Transit" + + "Preferences.TransitTravelMode\022_\n\022routing" + + "_preference\030\002 \001(\0162C.google.maps.routing." + + "v2.TransitPreferences.TransitRoutingPref" + + "erence\"r\n\021TransitTravelMode\022#\n\037TRANSIT_T" + + "RAVEL_MODE_UNSPECIFIED\020\000\022\007\n\003BUS\020\001\022\n\n\006SUB" + + "WAY\020\002\022\t\n\005TRAIN\020\003\022\016\n\nLIGHT_RAIL\020\004\022\010\n\004RAIL" + + "\020\005\"m\n\030TransitRoutingPreference\022*\n&TRANSI" + + "T_ROUTING_PREFERENCE_UNSPECIFIED\020\000\022\020\n\014LE" + + "SS_WALKING\020\001\022\023\n\017FEWER_TRANSFERS\020\002B\314\001\n\032co" + + "m.google.maps.routing.v2B\027TransitPrefere" + + "ncesProtoP\001Z:cloud.google.com/go/maps/ro" + + "uting/apiv2/routingpb;routingpb\370\001\001\242\002\005GMR" + + "V2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Map" + + "s\\Routing\\V2\352\002\031Google::Maps::Routing::V2" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_maps_routing_v2_TransitPreferences_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_TransitPreferences_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_TransitPreferences_descriptor, + new java.lang.String[] { "AllowedTravelModes", "RoutingPreference", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java new file mode 100644 index 000000000000..70dda95e97f3 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java @@ -0,0 +1,113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/transit.proto + +package com.google.maps.routing.v2; + +public final class TransitProto { + private TransitProto() {} + 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_maps_routing_v2_TransitAgency_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_TransitAgency_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_TransitLine_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_TransitLine_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_TransitStop_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_TransitStop_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_TransitVehicle_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_TransitVehicle_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/maps/routing/v2/transit.proto\022\026" + + "google.maps.routing.v2\032%google/maps/rout" + + "ing/v2/location.proto\032 google/type/local" + + "ized_text.proto\"@\n\rTransitAgency\022\014\n\004name" + + "\030\001 \001(\t\022\024\n\014phone_number\030\002 \001(\t\022\013\n\003uri\030\003 \001(" + + "\t\"\343\001\n\013TransitLine\0227\n\010agencies\030\001 \003(\0132%.go" + + "ogle.maps.routing.v2.TransitAgency\022\014\n\004na" + + "me\030\002 \001(\t\022\013\n\003uri\030\003 \001(\t\022\r\n\005color\030\004 \001(\t\022\020\n\010" + + "icon_uri\030\005 \001(\t\022\022\n\nname_short\030\006 \001(\t\022\022\n\nte" + + "xt_color\030\007 \001(\t\0227\n\007vehicle\030\010 \001(\0132&.google" + + ".maps.routing.v2.TransitVehicle\"O\n\013Trans" + + "itStop\022\014\n\004name\030\001 \001(\t\0222\n\010location\030\002 \001(\0132 " + + ".google.maps.routing.v2.Location\"\375\003\n\016Tra" + + "nsitVehicle\022(\n\004name\030\001 \001(\0132\032.google.type." + + "LocalizedText\022G\n\004type\030\002 \001(\01629.google.map" + + "s.routing.v2.TransitVehicle.TransitVehic" + + "leType\022\020\n\010icon_uri\030\003 \001(\t\022\026\n\016local_icon_u" + + "ri\030\004 \001(\t\"\315\002\n\022TransitVehicleType\022$\n TRANS" + + "IT_VEHICLE_TYPE_UNSPECIFIED\020\000\022\007\n\003BUS\020\001\022\r" + + "\n\tCABLE_CAR\020\002\022\022\n\016COMMUTER_TRAIN\020\003\022\t\n\005FER" + + "RY\020\004\022\r\n\tFUNICULAR\020\005\022\020\n\014GONDOLA_LIFT\020\006\022\016\n" + + "\nHEAVY_RAIL\020\007\022\024\n\020HIGH_SPEED_TRAIN\020\010\022\021\n\rI" + + "NTERCITY_BUS\020\t\022\027\n\023LONG_DISTANCE_TRAIN\020\n\022" + + "\016\n\nMETRO_RAIL\020\013\022\014\n\010MONORAIL\020\014\022\t\n\005OTHER\020\r" + + "\022\010\n\004RAIL\020\016\022\016\n\nSHARE_TAXI\020\017\022\n\n\006SUBWAY\020\020\022\010" + + "\n\004TRAM\020\021\022\016\n\nTROLLEYBUS\020\022B\301\001\n\032com.google." + + "maps.routing.v2B\014TransitProtoP\001Z:cloud.g" + + "oogle.com/go/maps/routing/apiv2/routingp" + + "b;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Rou" + + "ting.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Googl" + + "e::Maps::Routing::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.maps.routing.v2.LocationProto.getDescriptor(), + com.google.type.LocalizedTextProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_TransitAgency_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_TransitAgency_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_TransitAgency_descriptor, + new java.lang.String[] { "Name", "PhoneNumber", "Uri", }); + internal_static_google_maps_routing_v2_TransitLine_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_maps_routing_v2_TransitLine_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_TransitLine_descriptor, + new java.lang.String[] { "Agencies", "Name", "Uri", "Color", "IconUri", "NameShort", "TextColor", "Vehicle", }); + internal_static_google_maps_routing_v2_TransitStop_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_maps_routing_v2_TransitStop_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_TransitStop_descriptor, + new java.lang.String[] { "Name", "Location", }); + internal_static_google_maps_routing_v2_TransitVehicle_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_maps_routing_v2_TransitVehicle_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_TransitVehicle_descriptor, + new java.lang.String[] { "Name", "Type", "IconUri", "LocalIconUri", }); + com.google.maps.routing.v2.LocationProto.getDescriptor(); + com.google.type.LocalizedTextProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStop.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStop.java new file mode 100644 index 000000000000..af4251deb50e --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStop.java @@ -0,0 +1,806 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/transit.proto + +package com.google.maps.routing.v2; + +/** + *
+ * Information about a transit stop.
+ * 
+ * + * Protobuf type {@code google.maps.routing.v2.TransitStop} + */ +public final class TransitStop extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.TransitStop) + TransitStopOrBuilder { +private static final long serialVersionUID = 0L; + // Use TransitStop.newBuilder() to construct. + private TransitStop(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TransitStop() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TransitStop(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitStop_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitStop_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.TransitStop.class, com.google.maps.routing.v2.TransitStop.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + *
+   * The name of the transit stop.
+   * 
+ * + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the transit stop.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 2; + private com.google.maps.routing.v2.Location location_; + /** + *
+   * The location of the stop expressed in latitude/longitude coordinates.
+   * 
+ * + * .google.maps.routing.v2.Location location = 2; + * @return Whether the location field is set. + */ + @java.lang.Override + public boolean hasLocation() { + return location_ != null; + } + /** + *
+   * The location of the stop expressed in latitude/longitude coordinates.
+   * 
+ * + * .google.maps.routing.v2.Location location = 2; + * @return The location. + */ + @java.lang.Override + public com.google.maps.routing.v2.Location getLocation() { + return location_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : location_; + } + /** + *
+   * The location of the stop expressed in latitude/longitude coordinates.
+   * 
+ * + * .google.maps.routing.v2.Location location = 2; + */ + @java.lang.Override + public com.google.maps.routing.v2.LocationOrBuilder getLocationOrBuilder() { + return location_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : location_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (location_ != null) { + output.writeMessage(2, getLocation()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (location_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLocation()); + } + 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.maps.routing.v2.TransitStop)) { + return super.equals(obj); + } + com.google.maps.routing.v2.TransitStop other = (com.google.maps.routing.v2.TransitStop) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasLocation() != other.hasLocation()) return false; + if (hasLocation()) { + if (!getLocation() + .equals(other.getLocation())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasLocation()) { + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.TransitStop parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.TransitStop parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.TransitStop parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.TransitStop 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.maps.routing.v2.TransitStop parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.TransitStop parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.TransitStop parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.TransitStop 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.maps.routing.v2.TransitStop parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.TransitStop 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.maps.routing.v2.TransitStop parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.TransitStop 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.maps.routing.v2.TransitStop 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; + } + /** + *
+   * Information about a transit stop.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.TransitStop} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.TransitStop) + com.google.maps.routing.v2.TransitStopOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitStop_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitStop_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.TransitStop.class, com.google.maps.routing.v2.TransitStop.Builder.class); + } + + // Construct using com.google.maps.routing.v2.TransitStop.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + location_ = null; + if (locationBuilder_ != null) { + locationBuilder_.dispose(); + locationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitStop_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.TransitStop getDefaultInstanceForType() { + return com.google.maps.routing.v2.TransitStop.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.TransitStop build() { + com.google.maps.routing.v2.TransitStop result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.TransitStop buildPartial() { + com.google.maps.routing.v2.TransitStop result = new com.google.maps.routing.v2.TransitStop(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.TransitStop result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.location_ = locationBuilder_ == null + ? location_ + : locationBuilder_.build(); + } + } + + @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.maps.routing.v2.TransitStop) { + return mergeFrom((com.google.maps.routing.v2.TransitStop)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.TransitStop other) { + if (other == com.google.maps.routing.v2.TransitStop.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasLocation()) { + mergeLocation(other.getLocation()); + } + 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 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getLocationFieldBuilder().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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the transit stop.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the transit stop.
+     * 
+ * + * string name = 1; + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the transit stop.
+     * 
+ * + * 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(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The name of the transit stop.
+     * 
+ * + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The name of the transit stop.
+     * 
+ * + * 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(); } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.maps.routing.v2.Location location_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> locationBuilder_; + /** + *
+     * The location of the stop expressed in latitude/longitude coordinates.
+     * 
+ * + * .google.maps.routing.v2.Location location = 2; + * @return Whether the location field is set. + */ + public boolean hasLocation() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * The location of the stop expressed in latitude/longitude coordinates.
+     * 
+ * + * .google.maps.routing.v2.Location location = 2; + * @return The location. + */ + public com.google.maps.routing.v2.Location getLocation() { + if (locationBuilder_ == null) { + return location_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : location_; + } else { + return locationBuilder_.getMessage(); + } + } + /** + *
+     * The location of the stop expressed in latitude/longitude coordinates.
+     * 
+ * + * .google.maps.routing.v2.Location location = 2; + */ + public Builder setLocation(com.google.maps.routing.v2.Location value) { + if (locationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + } else { + locationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The location of the stop expressed in latitude/longitude coordinates.
+     * 
+ * + * .google.maps.routing.v2.Location location = 2; + */ + public Builder setLocation( + com.google.maps.routing.v2.Location.Builder builderForValue) { + if (locationBuilder_ == null) { + location_ = builderForValue.build(); + } else { + locationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The location of the stop expressed in latitude/longitude coordinates.
+     * 
+ * + * .google.maps.routing.v2.Location location = 2; + */ + public Builder mergeLocation(com.google.maps.routing.v2.Location value) { + if (locationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + location_ != null && + location_ != com.google.maps.routing.v2.Location.getDefaultInstance()) { + getLocationBuilder().mergeFrom(value); + } else { + location_ = value; + } + } else { + locationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The location of the stop expressed in latitude/longitude coordinates.
+     * 
+ * + * .google.maps.routing.v2.Location location = 2; + */ + public Builder clearLocation() { + bitField0_ = (bitField0_ & ~0x00000002); + location_ = null; + if (locationBuilder_ != null) { + locationBuilder_.dispose(); + locationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The location of the stop expressed in latitude/longitude coordinates.
+     * 
+ * + * .google.maps.routing.v2.Location location = 2; + */ + public com.google.maps.routing.v2.Location.Builder getLocationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLocationFieldBuilder().getBuilder(); + } + /** + *
+     * The location of the stop expressed in latitude/longitude coordinates.
+     * 
+ * + * .google.maps.routing.v2.Location location = 2; + */ + public com.google.maps.routing.v2.LocationOrBuilder getLocationOrBuilder() { + if (locationBuilder_ != null) { + return locationBuilder_.getMessageOrBuilder(); + } else { + return location_ == null ? + com.google.maps.routing.v2.Location.getDefaultInstance() : location_; + } + } + /** + *
+     * The location of the stop expressed in latitude/longitude coordinates.
+     * 
+ * + * .google.maps.routing.v2.Location location = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> + getLocationFieldBuilder() { + if (locationBuilder_ == null) { + locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder>( + getLocation(), + getParentForChildren(), + isClean()); + location_ = null; + } + return locationBuilder_; + } + @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.maps.routing.v2.TransitStop) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.TransitStop) + private static final com.google.maps.routing.v2.TransitStop DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.TransitStop(); + } + + public static com.google.maps.routing.v2.TransitStop getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransitStop 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.maps.routing.v2.TransitStop getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStopOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStopOrBuilder.java new file mode 100644 index 000000000000..77db31e06a6b --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStopOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/transit.proto + +package com.google.maps.routing.v2; + +public interface TransitStopOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.TransitStop) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the transit stop.
+   * 
+ * + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The name of the transit stop.
+   * 
+ * + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The location of the stop expressed in latitude/longitude coordinates.
+   * 
+ * + * .google.maps.routing.v2.Location location = 2; + * @return Whether the location field is set. + */ + boolean hasLocation(); + /** + *
+   * The location of the stop expressed in latitude/longitude coordinates.
+   * 
+ * + * .google.maps.routing.v2.Location location = 2; + * @return The location. + */ + com.google.maps.routing.v2.Location getLocation(); + /** + *
+   * The location of the stop expressed in latitude/longitude coordinates.
+   * 
+ * + * .google.maps.routing.v2.Location location = 2; + */ + com.google.maps.routing.v2.LocationOrBuilder getLocationOrBuilder(); +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicle.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicle.java new file mode 100644 index 000000000000..ba5deaa69d49 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicle.java @@ -0,0 +1,1524 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/transit.proto + +package com.google.maps.routing.v2; + +/** + *
+ * Information about a vehicle used in transit routes.
+ * 
+ * + * Protobuf type {@code google.maps.routing.v2.TransitVehicle} + */ +public final class TransitVehicle extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.maps.routing.v2.TransitVehicle) + TransitVehicleOrBuilder { +private static final long serialVersionUID = 0L; + // Use TransitVehicle.newBuilder() to construct. + private TransitVehicle(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TransitVehicle() { + type_ = 0; + iconUri_ = ""; + localIconUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TransitVehicle(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitVehicle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitVehicle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.TransitVehicle.class, com.google.maps.routing.v2.TransitVehicle.Builder.class); + } + + /** + *
+   * The type of vehicles for transit routes.
+   * 
+ * + * Protobuf enum {@code google.maps.routing.v2.TransitVehicle.TransitVehicleType} + */ + public enum TransitVehicleType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Unused.
+     * 
+ * + * TRANSIT_VEHICLE_TYPE_UNSPECIFIED = 0; + */ + TRANSIT_VEHICLE_TYPE_UNSPECIFIED(0), + /** + *
+     * Bus.
+     * 
+ * + * BUS = 1; + */ + BUS(1), + /** + *
+     * A vehicle that operates on a cable, usually on the ground. Aerial cable
+     * cars may be of the type `GONDOLA_LIFT`.
+     * 
+ * + * CABLE_CAR = 2; + */ + CABLE_CAR(2), + /** + *
+     * Commuter rail.
+     * 
+ * + * COMMUTER_TRAIN = 3; + */ + COMMUTER_TRAIN(3), + /** + *
+     * Ferry.
+     * 
+ * + * FERRY = 4; + */ + FERRY(4), + /** + *
+     * A vehicle that is pulled up a steep incline by a cable. A Funicular
+     * typically consists of two cars, with each car acting as a counterweight
+     * for the other.
+     * 
+ * + * FUNICULAR = 5; + */ + FUNICULAR(5), + /** + *
+     * An aerial cable car.
+     * 
+ * + * GONDOLA_LIFT = 6; + */ + GONDOLA_LIFT(6), + /** + *
+     * Heavy rail.
+     * 
+ * + * HEAVY_RAIL = 7; + */ + HEAVY_RAIL(7), + /** + *
+     * High speed train.
+     * 
+ * + * HIGH_SPEED_TRAIN = 8; + */ + HIGH_SPEED_TRAIN(8), + /** + *
+     * Intercity bus.
+     * 
+ * + * INTERCITY_BUS = 9; + */ + INTERCITY_BUS(9), + /** + *
+     * Long distance train.
+     * 
+ * + * LONG_DISTANCE_TRAIN = 10; + */ + LONG_DISTANCE_TRAIN(10), + /** + *
+     * Light rail transit.
+     * 
+ * + * METRO_RAIL = 11; + */ + METRO_RAIL(11), + /** + *
+     * Monorail.
+     * 
+ * + * MONORAIL = 12; + */ + MONORAIL(12), + /** + *
+     * All other vehicles.
+     * 
+ * + * OTHER = 13; + */ + OTHER(13), + /** + *
+     * Rail.
+     * 
+ * + * RAIL = 14; + */ + RAIL(14), + /** + *
+     * Share taxi is a kind of bus with the ability to drop off and pick up
+     * passengers anywhere on its route.
+     * 
+ * + * SHARE_TAXI = 15; + */ + SHARE_TAXI(15), + /** + *
+     * Underground light rail.
+     * 
+ * + * SUBWAY = 16; + */ + SUBWAY(16), + /** + *
+     * Above ground light rail.
+     * 
+ * + * TRAM = 17; + */ + TRAM(17), + /** + *
+     * Trolleybus.
+     * 
+ * + * TROLLEYBUS = 18; + */ + TROLLEYBUS(18), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Unused.
+     * 
+ * + * TRANSIT_VEHICLE_TYPE_UNSPECIFIED = 0; + */ + public static final int TRANSIT_VEHICLE_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Bus.
+     * 
+ * + * BUS = 1; + */ + public static final int BUS_VALUE = 1; + /** + *
+     * A vehicle that operates on a cable, usually on the ground. Aerial cable
+     * cars may be of the type `GONDOLA_LIFT`.
+     * 
+ * + * CABLE_CAR = 2; + */ + public static final int CABLE_CAR_VALUE = 2; + /** + *
+     * Commuter rail.
+     * 
+ * + * COMMUTER_TRAIN = 3; + */ + public static final int COMMUTER_TRAIN_VALUE = 3; + /** + *
+     * Ferry.
+     * 
+ * + * FERRY = 4; + */ + public static final int FERRY_VALUE = 4; + /** + *
+     * A vehicle that is pulled up a steep incline by a cable. A Funicular
+     * typically consists of two cars, with each car acting as a counterweight
+     * for the other.
+     * 
+ * + * FUNICULAR = 5; + */ + public static final int FUNICULAR_VALUE = 5; + /** + *
+     * An aerial cable car.
+     * 
+ * + * GONDOLA_LIFT = 6; + */ + public static final int GONDOLA_LIFT_VALUE = 6; + /** + *
+     * Heavy rail.
+     * 
+ * + * HEAVY_RAIL = 7; + */ + public static final int HEAVY_RAIL_VALUE = 7; + /** + *
+     * High speed train.
+     * 
+ * + * HIGH_SPEED_TRAIN = 8; + */ + public static final int HIGH_SPEED_TRAIN_VALUE = 8; + /** + *
+     * Intercity bus.
+     * 
+ * + * INTERCITY_BUS = 9; + */ + public static final int INTERCITY_BUS_VALUE = 9; + /** + *
+     * Long distance train.
+     * 
+ * + * LONG_DISTANCE_TRAIN = 10; + */ + public static final int LONG_DISTANCE_TRAIN_VALUE = 10; + /** + *
+     * Light rail transit.
+     * 
+ * + * METRO_RAIL = 11; + */ + public static final int METRO_RAIL_VALUE = 11; + /** + *
+     * Monorail.
+     * 
+ * + * MONORAIL = 12; + */ + public static final int MONORAIL_VALUE = 12; + /** + *
+     * All other vehicles.
+     * 
+ * + * OTHER = 13; + */ + public static final int OTHER_VALUE = 13; + /** + *
+     * Rail.
+     * 
+ * + * RAIL = 14; + */ + public static final int RAIL_VALUE = 14; + /** + *
+     * Share taxi is a kind of bus with the ability to drop off and pick up
+     * passengers anywhere on its route.
+     * 
+ * + * SHARE_TAXI = 15; + */ + public static final int SHARE_TAXI_VALUE = 15; + /** + *
+     * Underground light rail.
+     * 
+ * + * SUBWAY = 16; + */ + public static final int SUBWAY_VALUE = 16; + /** + *
+     * Above ground light rail.
+     * 
+ * + * TRAM = 17; + */ + public static final int TRAM_VALUE = 17; + /** + *
+     * Trolleybus.
+     * 
+ * + * TROLLEYBUS = 18; + */ + public static final int TROLLEYBUS_VALUE = 18; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TransitVehicleType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TransitVehicleType forNumber(int value) { + switch (value) { + case 0: return TRANSIT_VEHICLE_TYPE_UNSPECIFIED; + case 1: return BUS; + case 2: return CABLE_CAR; + case 3: return COMMUTER_TRAIN; + case 4: return FERRY; + case 5: return FUNICULAR; + case 6: return GONDOLA_LIFT; + case 7: return HEAVY_RAIL; + case 8: return HIGH_SPEED_TRAIN; + case 9: return INTERCITY_BUS; + case 10: return LONG_DISTANCE_TRAIN; + case 11: return METRO_RAIL; + case 12: return MONORAIL; + case 13: return OTHER; + case 14: return RAIL; + case 15: return SHARE_TAXI; + case 16: return SUBWAY; + case 17: return TRAM; + case 18: return TROLLEYBUS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + TransitVehicleType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TransitVehicleType findValueByNumber(int number) { + return TransitVehicleType.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() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.maps.routing.v2.TransitVehicle.getDescriptor().getEnumTypes().get(0); + } + + private static final TransitVehicleType[] VALUES = values(); + + public static TransitVehicleType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TransitVehicleType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.TransitVehicle.TransitVehicleType) + } + + public static final int NAME_FIELD_NUMBER = 1; + private com.google.type.LocalizedText name_; + /** + *
+   * The name of this vehicle, capitalized.
+   * 
+ * + * .google.type.LocalizedText name = 1; + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return name_ != null; + } + /** + *
+   * The name of this vehicle, capitalized.
+   * 
+ * + * .google.type.LocalizedText name = 1; + * @return The name. + */ + @java.lang.Override + public com.google.type.LocalizedText getName() { + return name_ == null ? com.google.type.LocalizedText.getDefaultInstance() : name_; + } + /** + *
+   * The name of this vehicle, capitalized.
+   * 
+ * + * .google.type.LocalizedText name = 1; + */ + @java.lang.Override + public com.google.type.LocalizedTextOrBuilder getNameOrBuilder() { + return name_ == null ? com.google.type.LocalizedText.getDefaultInstance() : name_; + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + /** + *
+   * The type of vehicle used.
+   * 
+ * + * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+   * The type of vehicle used.
+   * 
+ * + * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * @return The type. + */ + @java.lang.Override public com.google.maps.routing.v2.TransitVehicle.TransitVehicleType getType() { + com.google.maps.routing.v2.TransitVehicle.TransitVehicleType result = com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.forNumber(type_); + return result == null ? com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.UNRECOGNIZED : result; + } + + public static final int ICON_URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object iconUri_ = ""; + /** + *
+   * The URI for an icon associated with this vehicle type.
+   * 
+ * + * string icon_uri = 3; + * @return The iconUri. + */ + @java.lang.Override + public java.lang.String getIconUri() { + java.lang.Object ref = iconUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconUri_ = s; + return s; + } + } + /** + *
+   * The URI for an icon associated with this vehicle type.
+   * 
+ * + * string icon_uri = 3; + * @return The bytes for iconUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIconUriBytes() { + java.lang.Object ref = iconUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + iconUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCAL_ICON_URI_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object localIconUri_ = ""; + /** + *
+   * The URI for the icon associated with this vehicle type, based on the local
+   * transport signage.
+   * 
+ * + * string local_icon_uri = 4; + * @return The localIconUri. + */ + @java.lang.Override + public java.lang.String getLocalIconUri() { + java.lang.Object ref = localIconUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localIconUri_ = s; + return s; + } + } + /** + *
+   * The URI for the icon associated with this vehicle type, based on the local
+   * transport signage.
+   * 
+ * + * string local_icon_uri = 4; + * @return The bytes for localIconUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLocalIconUriBytes() { + java.lang.Object ref = localIconUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + localIconUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 (name_ != null) { + output.writeMessage(1, getName()); + } + if (type_ != com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.TRANSIT_VEHICLE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, iconUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localIconUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, localIconUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (name_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getName()); + } + if (type_ != com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.TRANSIT_VEHICLE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, iconUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localIconUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, localIconUri_); + } + 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.maps.routing.v2.TransitVehicle)) { + return super.equals(obj); + } + com.google.maps.routing.v2.TransitVehicle other = (com.google.maps.routing.v2.TransitVehicle) obj; + + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (type_ != other.type_) return false; + if (!getIconUri() + .equals(other.getIconUri())) return false; + if (!getLocalIconUri() + .equals(other.getLocalIconUri())) 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(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + ICON_URI_FIELD_NUMBER; + hash = (53 * hash) + getIconUri().hashCode(); + hash = (37 * hash) + LOCAL_ICON_URI_FIELD_NUMBER; + hash = (53 * hash) + getLocalIconUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.maps.routing.v2.TransitVehicle parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.TransitVehicle parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.TransitVehicle parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.TransitVehicle 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.maps.routing.v2.TransitVehicle parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.maps.routing.v2.TransitVehicle parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.maps.routing.v2.TransitVehicle parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.TransitVehicle 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.maps.routing.v2.TransitVehicle parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.maps.routing.v2.TransitVehicle 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.maps.routing.v2.TransitVehicle parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.maps.routing.v2.TransitVehicle 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.maps.routing.v2.TransitVehicle 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; + } + /** + *
+   * Information about a vehicle used in transit routes.
+   * 
+ * + * Protobuf type {@code google.maps.routing.v2.TransitVehicle} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.maps.routing.v2.TransitVehicle) + com.google.maps.routing.v2.TransitVehicleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitVehicle_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitVehicle_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.maps.routing.v2.TransitVehicle.class, com.google.maps.routing.v2.TransitVehicle.Builder.class); + } + + // Construct using com.google.maps.routing.v2.TransitVehicle.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = null; + if (nameBuilder_ != null) { + nameBuilder_.dispose(); + nameBuilder_ = null; + } + type_ = 0; + iconUri_ = ""; + localIconUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitVehicle_descriptor; + } + + @java.lang.Override + public com.google.maps.routing.v2.TransitVehicle getDefaultInstanceForType() { + return com.google.maps.routing.v2.TransitVehicle.getDefaultInstance(); + } + + @java.lang.Override + public com.google.maps.routing.v2.TransitVehicle build() { + com.google.maps.routing.v2.TransitVehicle result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.maps.routing.v2.TransitVehicle buildPartial() { + com.google.maps.routing.v2.TransitVehicle result = new com.google.maps.routing.v2.TransitVehicle(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.maps.routing.v2.TransitVehicle result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = nameBuilder_ == null + ? name_ + : nameBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.iconUri_ = iconUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.localIconUri_ = localIconUri_; + } + } + + @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.maps.routing.v2.TransitVehicle) { + return mergeFrom((com.google.maps.routing.v2.TransitVehicle)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.maps.routing.v2.TransitVehicle other) { + if (other == com.google.maps.routing.v2.TransitVehicle.getDefaultInstance()) return this; + if (other.hasName()) { + mergeName(other.getName()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getIconUri().isEmpty()) { + iconUri_ = other.iconUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getLocalIconUri().isEmpty()) { + localIconUri_ = other.localIconUri_; + bitField0_ |= 0x00000008; + onChanged(); + } + 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 10: { + input.readMessage( + getNameFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + iconUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + localIconUri_ = input.readStringRequireUtf8(); + 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) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private com.google.type.LocalizedText name_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> nameBuilder_; + /** + *
+     * The name of this vehicle, capitalized.
+     * 
+ * + * .google.type.LocalizedText name = 1; + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * The name of this vehicle, capitalized.
+     * 
+ * + * .google.type.LocalizedText name = 1; + * @return The name. + */ + public com.google.type.LocalizedText getName() { + if (nameBuilder_ == null) { + return name_ == null ? com.google.type.LocalizedText.getDefaultInstance() : name_; + } else { + return nameBuilder_.getMessage(); + } + } + /** + *
+     * The name of this vehicle, capitalized.
+     * 
+ * + * .google.type.LocalizedText name = 1; + */ + public Builder setName(com.google.type.LocalizedText value) { + if (nameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + } else { + nameBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The name of this vehicle, capitalized.
+     * 
+ * + * .google.type.LocalizedText name = 1; + */ + public Builder setName( + com.google.type.LocalizedText.Builder builderForValue) { + if (nameBuilder_ == null) { + name_ = builderForValue.build(); + } else { + nameBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The name of this vehicle, capitalized.
+     * 
+ * + * .google.type.LocalizedText name = 1; + */ + public Builder mergeName(com.google.type.LocalizedText value) { + if (nameBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + name_ != null && + name_ != com.google.type.LocalizedText.getDefaultInstance()) { + getNameBuilder().mergeFrom(value); + } else { + name_ = value; + } + } else { + nameBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * The name of this vehicle, capitalized.
+     * 
+ * + * .google.type.LocalizedText name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = null; + if (nameBuilder_ != null) { + nameBuilder_.dispose(); + nameBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * The name of this vehicle, capitalized.
+     * 
+ * + * .google.type.LocalizedText name = 1; + */ + public com.google.type.LocalizedText.Builder getNameBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getNameFieldBuilder().getBuilder(); + } + /** + *
+     * The name of this vehicle, capitalized.
+     * 
+ * + * .google.type.LocalizedText name = 1; + */ + public com.google.type.LocalizedTextOrBuilder getNameOrBuilder() { + if (nameBuilder_ != null) { + return nameBuilder_.getMessageOrBuilder(); + } else { + return name_ == null ? + com.google.type.LocalizedText.getDefaultInstance() : name_; + } + } + /** + *
+     * The name of this vehicle, capitalized.
+     * 
+ * + * .google.type.LocalizedText name = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + getNameFieldBuilder() { + if (nameBuilder_ == null) { + nameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( + getName(), + getParentForChildren(), + isClean()); + name_ = null; + } + return nameBuilder_; + } + + private int type_ = 0; + /** + *
+     * The type of vehicle used.
+     * 
+ * + * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override public int getTypeValue() { + return type_; + } + /** + *
+     * The type of vehicle used.
+     * 
+ * + * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * The type of vehicle used.
+     * 
+ * + * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * @return The type. + */ + @java.lang.Override + public com.google.maps.routing.v2.TransitVehicle.TransitVehicleType getType() { + com.google.maps.routing.v2.TransitVehicle.TransitVehicleType result = com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.forNumber(type_); + return result == null ? com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.UNRECOGNIZED : result; + } + /** + *
+     * The type of vehicle used.
+     * 
+ * + * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.maps.routing.v2.TransitVehicle.TransitVehicleType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The type of vehicle used.
+     * 
+ * + * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object iconUri_ = ""; + /** + *
+     * The URI for an icon associated with this vehicle type.
+     * 
+ * + * string icon_uri = 3; + * @return The iconUri. + */ + public java.lang.String getIconUri() { + java.lang.Object ref = iconUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The URI for an icon associated with this vehicle type.
+     * 
+ * + * string icon_uri = 3; + * @return The bytes for iconUri. + */ + public com.google.protobuf.ByteString + getIconUriBytes() { + java.lang.Object ref = iconUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + iconUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The URI for an icon associated with this vehicle type.
+     * 
+ * + * string icon_uri = 3; + * @param value The iconUri to set. + * @return This builder for chaining. + */ + public Builder setIconUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + iconUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * The URI for an icon associated with this vehicle type.
+     * 
+ * + * string icon_uri = 3; + * @return This builder for chaining. + */ + public Builder clearIconUri() { + iconUri_ = getDefaultInstance().getIconUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * The URI for an icon associated with this vehicle type.
+     * 
+ * + * string icon_uri = 3; + * @param value The bytes for iconUri to set. + * @return This builder for chaining. + */ + public Builder setIconUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + iconUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object localIconUri_ = ""; + /** + *
+     * The URI for the icon associated with this vehicle type, based on the local
+     * transport signage.
+     * 
+ * + * string local_icon_uri = 4; + * @return The localIconUri. + */ + public java.lang.String getLocalIconUri() { + java.lang.Object ref = localIconUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + localIconUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The URI for the icon associated with this vehicle type, based on the local
+     * transport signage.
+     * 
+ * + * string local_icon_uri = 4; + * @return The bytes for localIconUri. + */ + public com.google.protobuf.ByteString + getLocalIconUriBytes() { + java.lang.Object ref = localIconUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + localIconUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The URI for the icon associated with this vehicle type, based on the local
+     * transport signage.
+     * 
+ * + * string local_icon_uri = 4; + * @param value The localIconUri to set. + * @return This builder for chaining. + */ + public Builder setLocalIconUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + localIconUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * The URI for the icon associated with this vehicle type, based on the local
+     * transport signage.
+     * 
+ * + * string local_icon_uri = 4; + * @return This builder for chaining. + */ + public Builder clearLocalIconUri() { + localIconUri_ = getDefaultInstance().getLocalIconUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * The URI for the icon associated with this vehicle type, based on the local
+     * transport signage.
+     * 
+ * + * string local_icon_uri = 4; + * @param value The bytes for localIconUri to set. + * @return This builder for chaining. + */ + public Builder setLocalIconUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + localIconUri_ = value; + bitField0_ |= 0x00000008; + 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.maps.routing.v2.TransitVehicle) + } + + // @@protoc_insertion_point(class_scope:google.maps.routing.v2.TransitVehicle) + private static final com.google.maps.routing.v2.TransitVehicle DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.maps.routing.v2.TransitVehicle(); + } + + public static com.google.maps.routing.v2.TransitVehicle getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TransitVehicle 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.maps.routing.v2.TransitVehicle getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicleOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicleOrBuilder.java new file mode 100644 index 000000000000..284d15f6a496 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicleOrBuilder.java @@ -0,0 +1,97 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/transit.proto + +package com.google.maps.routing.v2; + +public interface TransitVehicleOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.TransitVehicle) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of this vehicle, capitalized.
+   * 
+ * + * .google.type.LocalizedText name = 1; + * @return Whether the name field is set. + */ + boolean hasName(); + /** + *
+   * The name of this vehicle, capitalized.
+   * 
+ * + * .google.type.LocalizedText name = 1; + * @return The name. + */ + com.google.type.LocalizedText getName(); + /** + *
+   * The name of this vehicle, capitalized.
+   * 
+ * + * .google.type.LocalizedText name = 1; + */ + com.google.type.LocalizedTextOrBuilder getNameOrBuilder(); + + /** + *
+   * The type of vehicle used.
+   * 
+ * + * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + *
+   * The type of vehicle used.
+   * 
+ * + * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * @return The type. + */ + com.google.maps.routing.v2.TransitVehicle.TransitVehicleType getType(); + + /** + *
+   * The URI for an icon associated with this vehicle type.
+   * 
+ * + * string icon_uri = 3; + * @return The iconUri. + */ + java.lang.String getIconUri(); + /** + *
+   * The URI for an icon associated with this vehicle type.
+   * 
+ * + * string icon_uri = 3; + * @return The bytes for iconUri. + */ + com.google.protobuf.ByteString + getIconUriBytes(); + + /** + *
+   * The URI for the icon associated with this vehicle type, based on the local
+   * transport signage.
+   * 
+ * + * string local_icon_uri = 4; + * @return The localIconUri. + */ + java.lang.String getLocalIconUri(); + /** + *
+   * The URI for the icon associated with this vehicle type, based on the local
+   * transport signage.
+   * 
+ * + * string local_icon_uri = 4; + * @return The bytes for localIconUri. + */ + com.google.protobuf.ByteString + getLocalIconUriBytes(); +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Units.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Units.java similarity index 66% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Units.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Units.java index 7544adf16e6c..cdb7fcb40100 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Units.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Units.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/maps/routing/v2/units.proto package com.google.maps.routing.v2; /** - * - * *
  * A set of values that specify the unit of measure used in the display.
  * 
* * Protobuf enum {@code google.maps.routing.v2.Units} */ -public enum Units implements com.google.protobuf.ProtocolMessageEnum { +public enum Units + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Units of measure not specified. Defaults to the unit of measure inferred
    * from the request.
@@ -40,8 +22,6 @@ public enum Units implements com.google.protobuf.ProtocolMessageEnum {
    */
   UNITS_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * Metric units of measure.
    * 
@@ -50,8 +30,6 @@ public enum Units implements com.google.protobuf.ProtocolMessageEnum { */ METRIC(1), /** - * - * *
    * Imperial (English) units of measure.
    * 
@@ -63,8 +41,6 @@ public enum Units implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Units of measure not specified. Defaults to the unit of measure inferred
    * from the request.
@@ -74,8 +50,6 @@ public enum Units implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int UNITS_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * Metric units of measure.
    * 
@@ -84,8 +58,6 @@ public enum Units implements com.google.protobuf.ProtocolMessageEnum { */ public static final int METRIC_VALUE = 1; /** - * - * *
    * Imperial (English) units of measure.
    * 
@@ -94,6 +66,7 @@ public enum Units implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMPERIAL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -118,49 +91,49 @@ public static Units valueOf(int value) { */ public static Units forNumber(int value) { switch (value) { - case 0: - return UNITS_UNSPECIFIED; - case 1: - return METRIC; - case 2: - return IMPERIAL; - default: - return null; + case 0: return UNITS_UNSPECIFIED; + case 1: return METRIC; + case 2: return IMPERIAL; + 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 Units findValueByNumber(int number) { - return Units.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Units> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Units findValueByNumber(int number) { + return Units.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.maps.routing.v2.UnitsProto.getDescriptor().getEnumTypes().get(0); } private static final Units[] VALUES = values(); - public static Units valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Units 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; @@ -176,3 +149,4 @@ private Units(int value) { // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.Units) } + diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java new file mode 100644 index 000000000000..ecc013cce1e0 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java @@ -0,0 +1,42 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/units.proto + +package com.google.maps.routing.v2; + +public final class UnitsProto { + private UnitsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + 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/maps/routing/v2/units.proto\022\026go" + + "ogle.maps.routing.v2*8\n\005Units\022\025\n\021UNITS_U" + + "NSPECIFIED\020\000\022\n\n\006METRIC\020\001\022\014\n\010IMPERIAL\020\002B\277" + + "\001\n\032com.google.maps.routing.v2B\nUnitsProt" + + "oP\001Z:cloud.google.com/go/maps/routing/ap" + + "iv2/routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Goo" + + "gle.Maps.Routing.V2\312\002\026Google\\Maps\\Routin" + + "g\\V2\352\002\031Google::Maps::Routing::V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionType.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionType.java similarity index 70% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionType.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionType.java index 59988552ebbf..7395efab3070 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionType.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionType.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/maps/routing/v2/vehicle_emission_type.proto package com.google.maps.routing.v2; /** - * - * *
  * A set of values describing the vehicle's emission type.
  * Applies only to the `DRIVE`
@@ -29,10 +12,9 @@
  *
  * Protobuf enum {@code google.maps.routing.v2.VehicleEmissionType}
  */
-public enum VehicleEmissionType implements com.google.protobuf.ProtocolMessageEnum {
+public enum VehicleEmissionType
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * No emission type specified. Default to `GASOLINE`.
    * 
@@ -41,8 +23,6 @@ public enum VehicleEmissionType implements com.google.protobuf.ProtocolMessageEn */ VEHICLE_EMISSION_TYPE_UNSPECIFIED(0), /** - * - * *
    * Gasoline/petrol fueled vehicle.
    * 
@@ -51,8 +31,6 @@ public enum VehicleEmissionType implements com.google.protobuf.ProtocolMessageEn */ GASOLINE(1), /** - * - * *
    * Electricity powered vehicle.
    * 
@@ -61,8 +39,6 @@ public enum VehicleEmissionType implements com.google.protobuf.ProtocolMessageEn */ ELECTRIC(2), /** - * - * *
    * Hybrid fuel (such as gasoline + electric) vehicle.
    * 
@@ -71,8 +47,6 @@ public enum VehicleEmissionType implements com.google.protobuf.ProtocolMessageEn */ HYBRID(3), /** - * - * *
    * Diesel fueled vehicle.
    * 
@@ -84,8 +58,6 @@ public enum VehicleEmissionType implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
    * No emission type specified. Default to `GASOLINE`.
    * 
@@ -94,8 +66,6 @@ public enum VehicleEmissionType implements com.google.protobuf.ProtocolMessageEn */ public static final int VEHICLE_EMISSION_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Gasoline/petrol fueled vehicle.
    * 
@@ -104,8 +74,6 @@ public enum VehicleEmissionType implements com.google.protobuf.ProtocolMessageEn */ public static final int GASOLINE_VALUE = 1; /** - * - * *
    * Electricity powered vehicle.
    * 
@@ -114,8 +82,6 @@ public enum VehicleEmissionType implements com.google.protobuf.ProtocolMessageEn */ public static final int ELECTRIC_VALUE = 2; /** - * - * *
    * Hybrid fuel (such as gasoline + electric) vehicle.
    * 
@@ -124,8 +90,6 @@ public enum VehicleEmissionType implements com.google.protobuf.ProtocolMessageEn */ public static final int HYBRID_VALUE = 3; /** - * - * *
    * Diesel fueled vehicle.
    * 
@@ -134,6 +98,7 @@ public enum VehicleEmissionType implements com.google.protobuf.ProtocolMessageEn */ public static final int DIESEL_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -158,18 +123,12 @@ public static VehicleEmissionType valueOf(int value) { */ public static VehicleEmissionType forNumber(int value) { switch (value) { - case 0: - return VEHICLE_EMISSION_TYPE_UNSPECIFIED; - case 1: - return GASOLINE; - case 2: - return ELECTRIC; - case 3: - return HYBRID; - case 4: - return DIESEL; - default: - return null; + case 0: return VEHICLE_EMISSION_TYPE_UNSPECIFIED; + case 1: return GASOLINE; + case 2: return ELECTRIC; + case 3: return HYBRID; + case 4: return DIESEL; + default: return null; } } @@ -177,31 +136,29 @@ public static VehicleEmissionType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public VehicleEmissionType findValueByNumber(int number) { - return VehicleEmissionType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + VehicleEmissionType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VehicleEmissionType findValueByNumber(int number) { + return VehicleEmissionType.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.maps.routing.v2.VehicleEmissionTypeProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.maps.routing.v2.VehicleEmissionTypeProto.getDescriptor().getEnumTypes().get(0); } private static final VehicleEmissionType[] VALUES = values(); @@ -209,7 +166,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static VehicleEmissionType 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; @@ -225,3 +183,4 @@ private VehicleEmissionType(int value) { // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.VehicleEmissionType) } + diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java new file mode 100644 index 000000000000..038f14f02931 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java @@ -0,0 +1,45 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/vehicle_emission_type.proto + +package com.google.maps.routing.v2; + +public final class VehicleEmissionTypeProto { + private VehicleEmissionTypeProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/maps/routing/v2/vehicle_emissio" + + "n_type.proto\022\026google.maps.routing.v2*p\n\023" + + "VehicleEmissionType\022%\n!VEHICLE_EMISSION_" + + "TYPE_UNSPECIFIED\020\000\022\014\n\010GASOLINE\020\001\022\014\n\010ELEC" + + "TRIC\020\002\022\n\n\006HYBRID\020\003\022\n\n\006DIESEL\020\004B\315\001\n\032com.g" + + "oogle.maps.routing.v2B\030VehicleEmissionTy" + + "peProtoP\001Z:cloud.google.com/go/maps/rout" + + "ing/apiv2/routingpb;routingpb\370\001\001\242\002\005GMRV2" + + "\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Maps\\" + + "Routing\\V2\352\002\031Google::Maps::Routing::V2b\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfo.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfo.java similarity index 63% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfo.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfo.java index b8f6ac428edb..bb61cafdbac0 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfo.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfo.java @@ -1,107 +1,79 @@ -/* - * 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/maps/routing/v2/vehicle_info.proto package com.google.maps.routing.v2; /** - * - * *
- * Encapsulates the vehicle information, such as the license plate last
- * character.
+ * Contains the vehicle information, such as the vehicle emission type.
  * 
* * Protobuf type {@code google.maps.routing.v2.VehicleInfo} */ -public final class VehicleInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VehicleInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.VehicleInfo) VehicleInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VehicleInfo.newBuilder() to construct. private VehicleInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VehicleInfo() { emissionType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VehicleInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.VehicleInfoProto - .internal_static_google_maps_routing_v2_VehicleInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.VehicleInfoProto.internal_static_google_maps_routing_v2_VehicleInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.VehicleInfoProto - .internal_static_google_maps_routing_v2_VehicleInfo_fieldAccessorTable + return com.google.maps.routing.v2.VehicleInfoProto.internal_static_google_maps_routing_v2_VehicleInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.VehicleInfo.class, - com.google.maps.routing.v2.VehicleInfo.Builder.class); + com.google.maps.routing.v2.VehicleInfo.class, com.google.maps.routing.v2.VehicleInfo.Builder.class); } public static final int EMISSION_TYPE_FIELD_NUMBER = 2; private int emissionType_ = 0; /** - * - * *
    * Describes the vehicle's emission type.
-   * Applies only to the `DRIVE` travel mode.
+   * Applies only to the `DRIVE`
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; - * * @return The enum numeric value on the wire for emissionType. */ - @java.lang.Override - public int getEmissionTypeValue() { + @java.lang.Override public int getEmissionTypeValue() { return emissionType_; } /** - * - * *
    * Describes the vehicle's emission type.
-   * Applies only to the `DRIVE` travel mode.
+   * Applies only to the `DRIVE`
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; - * * @return The emissionType. */ - @java.lang.Override - public com.google.maps.routing.v2.VehicleEmissionType getEmissionType() { - com.google.maps.routing.v2.VehicleEmissionType result = - com.google.maps.routing.v2.VehicleEmissionType.forNumber(emissionType_); + @java.lang.Override public com.google.maps.routing.v2.VehicleEmissionType getEmissionType() { + com.google.maps.routing.v2.VehicleEmissionType result = com.google.maps.routing.v2.VehicleEmissionType.forNumber(emissionType_); return result == null ? com.google.maps.routing.v2.VehicleEmissionType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -113,10 +85,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (emissionType_ - != com.google.maps.routing.v2.VehicleEmissionType.VEHICLE_EMISSION_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (emissionType_ != com.google.maps.routing.v2.VehicleEmissionType.VEHICLE_EMISSION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, emissionType_); } getUnknownFields().writeTo(output); @@ -128,10 +99,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (emissionType_ - != com.google.maps.routing.v2.VehicleEmissionType.VEHICLE_EMISSION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, emissionType_); + if (emissionType_ != com.google.maps.routing.v2.VehicleEmissionType.VEHICLE_EMISSION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, emissionType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -141,7 +111,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.maps.routing.v2.VehicleInfo)) { return super.equals(obj); @@ -167,137 +137,132 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.VehicleInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.VehicleInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo 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 the vehicle information, such as the license plate last
-   * character.
+   * Contains the vehicle information, such as the vehicle emission type.
    * 
* * Protobuf type {@code google.maps.routing.v2.VehicleInfo} */ - 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.maps.routing.v2.VehicleInfo) com.google.maps.routing.v2.VehicleInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.maps.routing.v2.VehicleInfoProto - .internal_static_google_maps_routing_v2_VehicleInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.maps.routing.v2.VehicleInfoProto.internal_static_google_maps_routing_v2_VehicleInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.VehicleInfoProto - .internal_static_google_maps_routing_v2_VehicleInfo_fieldAccessorTable + return com.google.maps.routing.v2.VehicleInfoProto.internal_static_google_maps_routing_v2_VehicleInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.VehicleInfo.class, - com.google.maps.routing.v2.VehicleInfo.Builder.class); + com.google.maps.routing.v2.VehicleInfo.class, com.google.maps.routing.v2.VehicleInfo.Builder.class); } // Construct using com.google.maps.routing.v2.VehicleInfo.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(); @@ -307,9 +272,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.maps.routing.v2.VehicleInfoProto - .internal_static_google_maps_routing_v2_VehicleInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.maps.routing.v2.VehicleInfoProto.internal_static_google_maps_routing_v2_VehicleInfo_descriptor; } @java.lang.Override @@ -328,11 +293,8 @@ public com.google.maps.routing.v2.VehicleInfo build() { @java.lang.Override public com.google.maps.routing.v2.VehicleInfo buildPartial() { - com.google.maps.routing.v2.VehicleInfo result = - new com.google.maps.routing.v2.VehicleInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.maps.routing.v2.VehicleInfo result = new com.google.maps.routing.v2.VehicleInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -348,39 +310,38 @@ private void buildPartial0(com.google.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo) { - return mergeFrom((com.google.maps.routing.v2.VehicleInfo) other); + return mergeFrom((com.google.maps.routing.v2.VehicleInfo)other); } else { super.mergeFrom(other); return this; @@ -418,19 +379,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 16: - { - emissionType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 16: { + emissionType_ = input.readEnum(); + 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) { @@ -440,36 +399,30 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int emissionType_ = 0; /** - * - * *
      * Describes the vehicle's emission type.
-     * Applies only to the `DRIVE` travel mode.
+     * Applies only to the `DRIVE`
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; - * * @return The enum numeric value on the wire for emissionType. */ - @java.lang.Override - public int getEmissionTypeValue() { + @java.lang.Override public int getEmissionTypeValue() { return emissionType_; } /** - * - * *
      * Describes the vehicle's emission type.
-     * Applies only to the `DRIVE` travel mode.
+     * Applies only to the `DRIVE`
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; - * * @param value The enum numeric value on the wire for emissionType to set. * @return This builder for chaining. */ @@ -480,33 +433,28 @@ public Builder setEmissionTypeValue(int value) { return this; } /** - * - * *
      * Describes the vehicle's emission type.
-     * Applies only to the `DRIVE` travel mode.
+     * Applies only to the `DRIVE`
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; - * * @return The emissionType. */ @java.lang.Override public com.google.maps.routing.v2.VehicleEmissionType getEmissionType() { - com.google.maps.routing.v2.VehicleEmissionType result = - com.google.maps.routing.v2.VehicleEmissionType.forNumber(emissionType_); + com.google.maps.routing.v2.VehicleEmissionType result = com.google.maps.routing.v2.VehicleEmissionType.forNumber(emissionType_); return result == null ? com.google.maps.routing.v2.VehicleEmissionType.UNRECOGNIZED : result; } /** - * - * *
      * Describes the vehicle's emission type.
-     * Applies only to the `DRIVE` travel mode.
+     * Applies only to the `DRIVE`
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; - * * @param value The emissionType to set. * @return This builder for chaining. */ @@ -520,15 +468,13 @@ public Builder setEmissionType(com.google.maps.routing.v2.VehicleEmissionType va return this; } /** - * - * *
      * Describes the vehicle's emission type.
-     * Applies only to the `DRIVE` travel mode.
+     * Applies only to the `DRIVE`
+     * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
      * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; - * * @return This builder for chaining. */ public Builder clearEmissionType() { @@ -537,9 +483,9 @@ public Builder clearEmissionType() { 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); } @@ -549,12 +495,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.VehicleInfo) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.VehicleInfo) private static final com.google.maps.routing.v2.VehicleInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.VehicleInfo(); } @@ -563,27 +509,27 @@ public static com.google.maps.routing.v2.VehicleInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VehicleInfo 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 VehicleInfo 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; @@ -598,4 +544,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.VehicleInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoOrBuilder.java similarity index 51% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoOrBuilder.java index 646d57cd1f9d..38da0b8f59af 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoOrBuilder.java @@ -1,51 +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/maps/routing/v2/vehicle_info.proto package com.google.maps.routing.v2; -public interface VehicleInfoOrBuilder - extends +public interface VehicleInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.VehicleInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Describes the vehicle's emission type.
-   * Applies only to the `DRIVE` travel mode.
+   * Applies only to the `DRIVE`
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; - * * @return The enum numeric value on the wire for emissionType. */ int getEmissionTypeValue(); /** - * - * *
    * Describes the vehicle's emission type.
-   * Applies only to the `DRIVE` travel mode.
+   * Applies only to the `DRIVE`
+   * [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
    * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; - * * @return The emissionType. */ com.google.maps.routing.v2.VehicleEmissionType getEmissionType(); diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java new file mode 100644 index 000000000000..1737fd5d3796 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/vehicle_info.proto + +package com.google.maps.routing.v2; + +public final class VehicleInfoProto { + private VehicleInfoProto() {} + 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_maps_routing_v2_VehicleInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_VehicleInfo_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/maps/routing/v2/vehicle_info.pr" + + "oto\022\026google.maps.routing.v2\0322google/maps" + + "/routing/v2/vehicle_emission_type.proto\"" + + "Q\n\013VehicleInfo\022B\n\remission_type\030\002 \001(\0162+." + + "google.maps.routing.v2.VehicleEmissionTy" + + "peB\305\001\n\032com.google.maps.routing.v2B\020Vehic" + + "leInfoProtoP\001Z:cloud.google.com/go/maps/" + + "routing/apiv2/routingpb;routingpb\370\001\001\242\002\005G" + + "MRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\M" + + "aps\\Routing\\V2\352\002\031Google::Maps::Routing::" + + "V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.maps.routing.v2.VehicleEmissionTypeProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_VehicleInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_VehicleInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_VehicleInfo_descriptor, + new java.lang.String[] { "EmissionType", }); + com.google.maps.routing.v2.VehicleEmissionTypeProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Waypoint.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Waypoint.java similarity index 75% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Waypoint.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Waypoint.java index 30dfbd715cc8..748a2014b220 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Waypoint.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/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/maps/routing/v2/waypoint.proto package com.google.maps.routing.v2; /** - * - * *
  * Encapsulates a waypoint. Waypoints mark both the beginning and end of a
  * route, and include intermediate stops along the route.
@@ -28,54 +11,49 @@
  *
  * Protobuf type {@code google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.WaypointProto
-        .internal_static_google_maps_routing_v2_Waypoint_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.maps.routing.v2.WaypointProto.internal_static_google_maps_routing_v2_Waypoint_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.WaypointProto
-        .internal_static_google_maps_routing_v2_Waypoint_fieldAccessorTable
+    return com.google.maps.routing.v2.WaypointProto.internal_static_google_maps_routing_v2_Waypoint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.Waypoint.class,
-            com.google.maps.routing.v2.Waypoint.Builder.class);
+            com.google.maps.routing.v2.Waypoint.class, com.google.maps.routing.v2.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),
     ADDRESS(7),
     LOCATIONTYPE_NOT_SET(0);
     private final int value;
-
     private LocationTypeCase(int value) {
       this.value = value;
     }
@@ -91,39 +69,32 @@ public static LocationTypeCase valueOf(int value) {
 
     public static LocationTypeCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return LOCATION;
-        case 2:
-          return PLACE_ID;
-        case 7:
-          return ADDRESS;
-        case 0:
-          return LOCATIONTYPE_NOT_SET;
-        default:
-          return null;
+        case 1: return LOCATION;
+        case 2: return PLACE_ID;
+        case 7: return ADDRESS;
+        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.maps.routing.v2.Location location = 1; - * * @return Whether the location field is set. */ @java.lang.Override @@ -131,27 +102,22 @@ public boolean hasLocation() { return locationTypeCase_ == 1; } /** - * - * *
    * A point specified using geographic coordinates, including an optional
    * heading.
    * 
* * .google.maps.routing.v2.Location location = 1; - * * @return The location. */ @java.lang.Override public com.google.maps.routing.v2.Location getLocation() { if (locationTypeCase_ == 1) { - return (com.google.maps.routing.v2.Location) locationType_; + return (com.google.maps.routing.v2.Location) locationType_; } return com.google.maps.routing.v2.Location.getDefaultInstance(); } /** - * - * *
    * A point specified using geographic coordinates, including an optional
    * heading.
@@ -162,35 +128,29 @@ public com.google.maps.routing.v2.Location getLocation() {
   @java.lang.Override
   public com.google.maps.routing.v2.LocationOrBuilder getLocationOrBuilder() {
     if (locationTypeCase_ == 1) {
-      return (com.google.maps.routing.v2.Location) locationType_;
+       return (com.google.maps.routing.v2.Location) locationType_;
     }
     return com.google.maps.routing.v2.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() { @@ -201,7 +161,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; @@ -210,24 +171,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; } @@ -239,30 +199,24 @@ public com.google.protobuf.ByteString getPlaceIdBytes() { public static final int ADDRESS_FIELD_NUMBER = 7; /** - * - * *
    * Human readable address or a plus code.
    * See https://plus.codes for details.
    * 
* * string address = 7; - * * @return Whether the address field is set. */ public boolean hasAddress() { return locationTypeCase_ == 7; } /** - * - * *
    * Human readable address or a plus code.
    * See https://plus.codes for details.
    * 
* * string address = 7; - * * @return The address. */ public java.lang.String getAddress() { @@ -273,7 +227,8 @@ public java.lang.String getAddress() { 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_ == 7) { locationType_ = s; @@ -282,25 +237,24 @@ public java.lang.String getAddress() { } } /** - * - * *
    * Human readable address or a plus code.
    * See https://plus.codes for details.
    * 
* * string address = 7; - * * @return The bytes for address. */ - public com.google.protobuf.ByteString getAddressBytes() { + public com.google.protobuf.ByteString + getAddressBytes() { java.lang.Object ref = ""; if (locationTypeCase_ == 7) { 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_ == 7) { locationType_ = b; } @@ -313,8 +267,6 @@ public com.google.protobuf.ByteString getAddressBytes() { public static final int VIA_FIELD_NUMBER = 3; private boolean via_ = false; /** - * - * *
    * Marks this waypoint as a milestone rather a stopping point. For
    * each non-via waypoint in the request, the response appends an entry to the
@@ -330,7 +282,6 @@ public com.google.protobuf.ByteString getAddressBytes() {
    * 
* * bool via = 3; - * * @return The via. */ @java.lang.Override @@ -341,8 +292,6 @@ public boolean getVia() { public static final int VEHICLE_STOPOVER_FIELD_NUMBER = 4; private boolean vehicleStopover_ = false; /** - * - * *
    * Indicates that the waypoint is meant for vehicles to stop at, where the
    * intention is to either pickup or drop-off. When you set this value, the
@@ -353,7 +302,6 @@ public boolean getVia() {
    * 
* * bool vehicle_stopover = 4; - * * @return The vehicleStopover. */ @java.lang.Override @@ -364,8 +312,6 @@ public boolean getVehicleStopover() { public static final int SIDE_OF_ROAD_FIELD_NUMBER = 5; 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
@@ -376,7 +322,6 @@ public boolean getVehicleStopover() {
    * 
* * bool side_of_road = 5; - * * @return The sideOfRoad. */ @java.lang.Override @@ -385,7 +330,6 @@ public boolean getSideOfRoad() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -397,7 +341,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.maps.routing.v2.Location) locationType_); } @@ -426,21 +371,23 @@ public int getSerializedSize() { size = 0; if (locationTypeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.maps.routing.v2.Location) locationType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.maps.routing.v2.Location) locationType_); } if (locationTypeCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, locationType_); } if (via_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, via_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, via_); } if (vehicleStopover_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, vehicleStopover_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, vehicleStopover_); } if (sideOfRoad_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, sideOfRoad_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, sideOfRoad_); } if (locationTypeCase_ == 7) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, locationType_); @@ -453,26 +400,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.maps.routing.v2.Waypoint)) { return super.equals(obj); } com.google.maps.routing.v2.Waypoint other = (com.google.maps.routing.v2.Waypoint) obj; - if (getVia() != other.getVia()) return false; - if (getVehicleStopover() != other.getVehicleStopover()) return false; - if (getSideOfRoad() != other.getSideOfRoad()) return false; + if (getVia() + != other.getVia()) return false; + if (getVehicleStopover() + != other.getVehicleStopover()) 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 7: - if (!getAddress().equals(other.getAddress())) return false; + if (!getAddress() + .equals(other.getAddress())) return false; break; case 0: default: @@ -489,11 +442,14 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VIA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVia()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVia()); hash = (37 * hash) + VEHICLE_STOPOVER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVehicleStopover()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVehicleStopover()); 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; @@ -515,103 +471,99 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.Waypoint parseFrom(java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.Waypoint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.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.maps.routing.v2.Waypoint parseFrom(com.google.protobuf.ByteString data) + public static com.google.maps.routing.v2.Waypoint parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.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.maps.routing.v2.Waypoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.Waypoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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 both the beginning and end of a
    * route, and include intermediate stops along the route.
@@ -619,32 +571,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.maps.routing.v2.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.maps.routing.v2.Waypoint)
       com.google.maps.routing.v2.WaypointOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.maps.routing.v2.WaypointProto
-          .internal_static_google_maps_routing_v2_Waypoint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.maps.routing.v2.WaypointProto.internal_static_google_maps_routing_v2_Waypoint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.WaypointProto
-          .internal_static_google_maps_routing_v2_Waypoint_fieldAccessorTable
+      return com.google.maps.routing.v2.WaypointProto.internal_static_google_maps_routing_v2_Waypoint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.Waypoint.class,
-              com.google.maps.routing.v2.Waypoint.Builder.class);
+              com.google.maps.routing.v2.Waypoint.class, com.google.maps.routing.v2.Waypoint.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.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();
@@ -661,9 +614,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.maps.routing.v2.WaypointProto
-          .internal_static_google_maps_routing_v2_Waypoint_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.maps.routing.v2.WaypointProto.internal_static_google_maps_routing_v2_Waypoint_descriptor;
     }
 
     @java.lang.Override
@@ -683,9 +636,7 @@ public com.google.maps.routing.v2.Waypoint build() {
     @java.lang.Override
     public com.google.maps.routing.v2.Waypoint buildPartial() {
       com.google.maps.routing.v2.Waypoint result = new com.google.maps.routing.v2.Waypoint(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -707,7 +658,8 @@ private void buildPartial0(com.google.maps.routing.v2.Waypoint result) {
     private void buildPartialOneofs(com.google.maps.routing.v2.Waypoint result) {
       result.locationTypeCase_ = locationTypeCase_;
       result.locationType_ = this.locationType_;
-      if (locationTypeCase_ == 1 && locationBuilder_ != null) {
+      if (locationTypeCase_ == 1 &&
+          locationBuilder_ != null) {
         result.locationType_ = locationBuilder_.build();
       }
     }
@@ -716,39 +668,38 @@ private void buildPartialOneofs(com.google.maps.routing.v2.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.maps.routing.v2.Waypoint) {
-        return mergeFrom((com.google.maps.routing.v2.Waypoint) other);
+        return mergeFrom((com.google.maps.routing.v2.Waypoint)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -767,29 +718,25 @@ public Builder mergeFrom(com.google.maps.routing.v2.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 ADDRESS:
-          {
-            locationTypeCase_ = 7;
-            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 ADDRESS: {
+          locationTypeCase_ = 7;
+          locationType_ = other.locationType_;
+          onChanged();
+          break;
+        }
+        case LOCATIONTYPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -817,51 +764,46 @@ 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:
-              {
-                via_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 24
-            case 32:
-              {
-                vehicleStopover_ = input.readBool();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 32
-            case 40:
-              {
-                sideOfRoad_ = input.readBool();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 40
-            case 58:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                locationTypeCase_ = 7;
-                locationType_ = s;
-                break;
-              } // case 58
-            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: {
+              via_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 24
+            case 32: {
+              vehicleStopover_ = input.readBool();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 32
+            case 40: {
+              sideOfRoad_ = input.readBool();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 40
+            case 58: {
+              java.lang.String s = input.readStringRequireUtf8();
+              locationTypeCase_ = 7;
+              locationType_ = s;
+              break;
+            } // case 58
+            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,12 +813,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() {
@@ -889,20 +831,14 @@ public Builder clearLocationType() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.Location,
-            com.google.maps.routing.v2.Location.Builder,
-            com.google.maps.routing.v2.LocationOrBuilder>
-        locationBuilder_;
+        com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> locationBuilder_;
     /**
-     *
-     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
      * 
* * .google.maps.routing.v2.Location location = 1; - * * @return Whether the location field is set. */ @java.lang.Override @@ -910,15 +846,12 @@ public boolean hasLocation() { return locationTypeCase_ == 1; } /** - * - * *
      * A point specified using geographic coordinates, including an optional
      * heading.
      * 
* * .google.maps.routing.v2.Location location = 1; - * * @return The location. */ @java.lang.Override @@ -936,8 +869,6 @@ public com.google.maps.routing.v2.Location getLocation() { } } /** - * - * *
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -959,8 +890,6 @@ public Builder setLocation(com.google.maps.routing.v2.Location value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -968,7 +897,8 @@ public Builder setLocation(com.google.maps.routing.v2.Location value) {
      *
      * .google.maps.routing.v2.Location location = 1;
      */
-    public Builder setLocation(com.google.maps.routing.v2.Location.Builder builderForValue) {
+    public Builder setLocation(
+        com.google.maps.routing.v2.Location.Builder builderForValue) {
       if (locationBuilder_ == null) {
         locationType_ = builderForValue.build();
         onChanged();
@@ -979,8 +909,6 @@ public Builder setLocation(com.google.maps.routing.v2.Location.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -990,13 +918,10 @@ public Builder setLocation(com.google.maps.routing.v2.Location.Builder builderFo
      */
     public Builder mergeLocation(com.google.maps.routing.v2.Location value) {
       if (locationBuilder_ == null) {
-        if (locationTypeCase_ == 1
-            && locationType_ != com.google.maps.routing.v2.Location.getDefaultInstance()) {
-          locationType_ =
-              com.google.maps.routing.v2.Location.newBuilder(
-                      (com.google.maps.routing.v2.Location) locationType_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (locationTypeCase_ == 1 &&
+            locationType_ != com.google.maps.routing.v2.Location.getDefaultInstance()) {
+          locationType_ = com.google.maps.routing.v2.Location.newBuilder((com.google.maps.routing.v2.Location) locationType_)
+              .mergeFrom(value).buildPartial();
         } else {
           locationType_ = value;
         }
@@ -1012,8 +937,6 @@ public Builder mergeLocation(com.google.maps.routing.v2.Location value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -1038,8 +961,6 @@ public Builder clearLocation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -1051,8 +972,6 @@ public com.google.maps.routing.v2.Location.Builder getLocationBuilder() {
       return getLocationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -1072,8 +991,6 @@ public com.google.maps.routing.v2.LocationOrBuilder getLocationOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -1082,19 +999,14 @@ public com.google.maps.routing.v2.LocationOrBuilder getLocationOrBuilder() {
      * .google.maps.routing.v2.Location location = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.Location,
-            com.google.maps.routing.v2.Location.Builder,
-            com.google.maps.routing.v2.LocationOrBuilder>
+        com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> 
         getLocationFieldBuilder() {
       if (locationBuilder_ == null) {
         if (!(locationTypeCase_ == 1)) {
           locationType_ = com.google.maps.routing.v2.Location.getDefaultInstance();
         }
-        locationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.maps.routing.v2.Location,
-                com.google.maps.routing.v2.Location.Builder,
-                com.google.maps.routing.v2.LocationOrBuilder>(
+        locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder>(
                 (com.google.maps.routing.v2.Location) locationType_,
                 getParentForChildren(),
                 isClean());
@@ -1106,14 +1018,11 @@ public com.google.maps.routing.v2.LocationOrBuilder getLocationOrBuilder() {
     }
 
     /**
-     *
-     *
      * 
      * The POI Place ID associated with the waypoint.
      * 
* * string place_id = 2; - * * @return Whether the placeId field is set. */ @java.lang.Override @@ -1121,14 +1030,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 @@ -1138,7 +1044,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; @@ -1149,25 +1056,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; } @@ -1177,35 +1083,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() { @@ -1217,21 +1116,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; @@ -1240,15 +1135,12 @@ public Builder setPlaceIdBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * Human readable address or a plus code.
      * See https://plus.codes for details.
      * 
* * string address = 7; - * * @return Whether the address field is set. */ @java.lang.Override @@ -1256,15 +1148,12 @@ public boolean hasAddress() { return locationTypeCase_ == 7; } /** - * - * *
      * Human readable address or a plus code.
      * See https://plus.codes for details.
      * 
* * string address = 7; - * * @return The address. */ @java.lang.Override @@ -1274,7 +1163,8 @@ public java.lang.String getAddress() { 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_ == 7) { locationType_ = s; @@ -1285,26 +1175,25 @@ public java.lang.String getAddress() { } } /** - * - * *
      * Human readable address or a plus code.
      * See https://plus.codes for details.
      * 
* * string address = 7; - * * @return The bytes for address. */ @java.lang.Override - public com.google.protobuf.ByteString getAddressBytes() { + public com.google.protobuf.ByteString + getAddressBytes() { java.lang.Object ref = ""; if (locationTypeCase_ == 7) { 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_ == 7) { locationType_ = b; } @@ -1314,37 +1203,30 @@ public com.google.protobuf.ByteString getAddressBytes() { } } /** - * - * *
      * Human readable address or a plus code.
      * See https://plus.codes for details.
      * 
* * string address = 7; - * * @param value The address to set. * @return This builder for chaining. */ - public Builder setAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } locationTypeCase_ = 7; locationType_ = value; onChanged(); return this; } /** - * - * *
      * Human readable address or a plus code.
      * See https://plus.codes for details.
      * 
* * string address = 7; - * * @return This builder for chaining. */ public Builder clearAddress() { @@ -1356,22 +1238,18 @@ public Builder clearAddress() { return this; } /** - * - * *
      * Human readable address or a plus code.
      * See https://plus.codes for details.
      * 
* * string address = 7; - * * @param value The bytes for address to set. * @return This builder for chaining. */ - public Builder setAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); locationTypeCase_ = 7; locationType_ = value; @@ -1379,10 +1257,8 @@ public Builder setAddressBytes(com.google.protobuf.ByteString value) { return this; } - private boolean via_; + private boolean via_ ; /** - * - * *
      * Marks this waypoint as a milestone rather a stopping point. For
      * each non-via waypoint in the request, the response appends an entry to the
@@ -1398,7 +1274,6 @@ public Builder setAddressBytes(com.google.protobuf.ByteString value) {
      * 
* * bool via = 3; - * * @return The via. */ @java.lang.Override @@ -1406,8 +1281,6 @@ public boolean getVia() { return via_; } /** - * - * *
      * Marks this waypoint as a milestone rather a stopping point. For
      * each non-via waypoint in the request, the response appends an entry to the
@@ -1423,7 +1296,6 @@ public boolean getVia() {
      * 
* * bool via = 3; - * * @param value The via to set. * @return This builder for chaining. */ @@ -1435,8 +1307,6 @@ public Builder setVia(boolean value) { return this; } /** - * - * *
      * Marks this waypoint as a milestone rather a stopping point. For
      * each non-via waypoint in the request, the response appends an entry to the
@@ -1452,7 +1322,6 @@ public Builder setVia(boolean value) {
      * 
* * bool via = 3; - * * @return This builder for chaining. */ public Builder clearVia() { @@ -1462,10 +1331,8 @@ public Builder clearVia() { return this; } - private boolean vehicleStopover_; + private boolean vehicleStopover_ ; /** - * - * *
      * Indicates that the waypoint is meant for vehicles to stop at, where the
      * intention is to either pickup or drop-off. When you set this value, the
@@ -1476,7 +1343,6 @@ public Builder clearVia() {
      * 
* * bool vehicle_stopover = 4; - * * @return The vehicleStopover. */ @java.lang.Override @@ -1484,8 +1350,6 @@ public boolean getVehicleStopover() { return vehicleStopover_; } /** - * - * *
      * Indicates that the waypoint is meant for vehicles to stop at, where the
      * intention is to either pickup or drop-off. When you set this value, the
@@ -1496,7 +1360,6 @@ public boolean getVehicleStopover() {
      * 
* * bool vehicle_stopover = 4; - * * @param value The vehicleStopover to set. * @return This builder for chaining. */ @@ -1508,8 +1371,6 @@ public Builder setVehicleStopover(boolean value) { return this; } /** - * - * *
      * Indicates that the waypoint is meant for vehicles to stop at, where the
      * intention is to either pickup or drop-off. When you set this value, the
@@ -1520,7 +1381,6 @@ public Builder setVehicleStopover(boolean value) {
      * 
* * bool vehicle_stopover = 4; - * * @return This builder for chaining. */ public Builder clearVehicleStopover() { @@ -1530,10 +1390,8 @@ public Builder clearVehicleStopover() { 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
@@ -1544,7 +1402,6 @@ public Builder clearVehicleStopover() {
      * 
* * bool side_of_road = 5; - * * @return The sideOfRoad. */ @java.lang.Override @@ -1552,8 +1409,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
@@ -1564,7 +1419,6 @@ public boolean getSideOfRoad() {
      * 
* * bool side_of_road = 5; - * * @param value The sideOfRoad to set. * @return This builder for chaining. */ @@ -1576,8 +1430,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
@@ -1588,7 +1440,6 @@ public Builder setSideOfRoad(boolean value) {
      * 
* * bool side_of_road = 5; - * * @return This builder for chaining. */ public Builder clearSideOfRoad() { @@ -1597,9 +1448,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); } @@ -1609,12 +1460,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.Waypoint) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.Waypoint) private static final com.google.maps.routing.v2.Waypoint DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.Waypoint(); } @@ -1623,27 +1474,27 @@ public static com.google.maps.routing.v2.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; @@ -1658,4 +1509,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.Waypoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointOrBuilder.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointOrBuilder.java similarity index 82% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointOrBuilder.java rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointOrBuilder.java index a8dd3c06db50..dfe3af571e73 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointOrBuilder.java +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/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/maps/routing/v2/waypoint.proto package com.google.maps.routing.v2; -public interface WaypointOrBuilder - extends +public interface WaypointOrBuilder extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.Waypoint) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A point specified using geographic coordinates, including an optional
    * heading.
    * 
* * .google.maps.routing.v2.Location location = 1; - * * @return Whether the location field is set. */ boolean hasLocation(); /** - * - * *
    * A point specified using geographic coordinates, including an optional
    * heading.
    * 
* * .google.maps.routing.v2.Location location = 1; - * * @return The location. */ com.google.maps.routing.v2.Location getLocation(); /** - * - * *
    * A point specified using geographic coordinates, including an optional
    * heading.
@@ -62,85 +38,67 @@ public interface WaypointOrBuilder
   com.google.maps.routing.v2.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(); /** - * - * *
    * Human readable address or a plus code.
    * See https://plus.codes for details.
    * 
* * string address = 7; - * * @return Whether the address field is set. */ boolean hasAddress(); /** - * - * *
    * Human readable address or a plus code.
    * See https://plus.codes for details.
    * 
* * string address = 7; - * * @return The address. */ java.lang.String getAddress(); /** - * - * *
    * Human readable address or a plus code.
    * See https://plus.codes for details.
    * 
* * string address = 7; - * * @return The bytes for address. */ - com.google.protobuf.ByteString getAddressBytes(); + com.google.protobuf.ByteString + getAddressBytes(); /** - * - * *
    * Marks this waypoint as a milestone rather a stopping point. For
    * each non-via waypoint in the request, the response appends an entry to the
@@ -156,14 +114,11 @@ public interface WaypointOrBuilder
    * 
* * bool via = 3; - * * @return The via. */ boolean getVia(); /** - * - * *
    * Indicates that the waypoint is meant for vehicles to stop at, where the
    * intention is to either pickup or drop-off. When you set this value, the
@@ -174,14 +129,11 @@ public interface WaypointOrBuilder
    * 
* * bool vehicle_stopover = 4; - * * @return The vehicleStopover. */ boolean getVehicleStopover(); /** - * - * *
    * 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
@@ -192,7 +144,6 @@ public interface WaypointOrBuilder
    * 
* * bool side_of_road = 5; - * * @return The sideOfRoad. */ boolean getSideOfRoad(); diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java new file mode 100644 index 000000000000..77e55dec69b4 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/maps/routing/v2/waypoint.proto + +package com.google.maps.routing.v2; + +public final class WaypointProto { + private WaypointProto() {} + 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_maps_routing_v2_Waypoint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_Waypoint_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/maps/routing/v2/waypoint.proto\022" + + "\026google.maps.routing.v2\032%google/maps/rou" + + "ting/v2/location.proto\"\265\001\n\010Waypoint\0224\n\010l" + + "ocation\030\001 \001(\0132 .google.maps.routing.v2.L" + + "ocationH\000\022\022\n\010place_id\030\002 \001(\tH\000\022\021\n\007address" + + "\030\007 \001(\tH\000\022\013\n\003via\030\003 \001(\010\022\030\n\020vehicle_stopove" + + "r\030\004 \001(\010\022\024\n\014side_of_road\030\005 \001(\010B\017\n\rlocatio" + + "n_typeB\302\001\n\032com.google.maps.routing.v2B\rW" + + "aypointProtoP\001Z:cloud.google.com/go/maps" + + "/routing/apiv2/routingpb;routingpb\370\001\001\242\002\005" + + "GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\" + + "Maps\\Routing\\V2\352\002\031Google::Maps::Routing:" + + ":V2b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.maps.routing.v2.LocationProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_Waypoint_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_Waypoint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_Waypoint_descriptor, + new java.lang.String[] { "Location", "PlaceId", "Address", "Via", "VehicleStopover", "SideOfRoad", "LocationType", }); + com.google.maps.routing.v2.LocationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/fallback_info.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/fallback_info.proto similarity index 100% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/fallback_info.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/fallback_info.proto diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/geocoding_results.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/geocoding_results.proto similarity index 100% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/geocoding_results.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/geocoding_results.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/localized_time.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/localized_time.proto new file mode 100644 index 000000000000..1f19ef196c47 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/localized_time.proto @@ -0,0 +1,40 @@ +// 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 +// +// http://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. + +syntax = "proto3"; + +package google.maps.routing.v2; + +import "google/type/localized_text.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Maps.Routing.V2"; +option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; +option java_multiple_files = true; +option java_outer_classname = "LocalizedTimeProto"; +option java_package = "com.google.maps.routing.v2"; +option objc_class_prefix = "GMRV2"; +option php_namespace = "Google\\Maps\\Routing\\V2"; +option ruby_package = "Google::Maps::Routing::V2"; + +// Localized description of time. +message LocalizedTime { + // The time specified as a string in a given time zone. + google.type.LocalizedText time = 1; + + // Contains the time zone. The value is the name of the time zone as defined + // in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g. + // "America/New_York". + string time_zone = 2; +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto similarity index 84% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto index 9731544f5dd6..8794169d1a15 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto @@ -35,10 +35,10 @@ message Location { google.type.LatLng lat_lng = 1; // 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 - // drop-off. Heading values can be from 0 to 360, where 0 specifies a heading - // of due North, 90 specifies a heading of due East, etc. You can use this - // field only for `DRIVE` and `TWO_WHEELER` + // This value specifies the side of the road for pickup and drop-off. Heading + // values can be from 0 to 360, where 0 specifies a heading of due North, 90 + // specifies a heading of due East, and so on. You can use this field only for + // `DRIVE` and `TWO_WHEELER` // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode]. google.protobuf.Int32Value heading = 2; } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto similarity index 95% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto index 49efd3500a36..dac7b8e3d35a 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto @@ -85,4 +85,10 @@ enum Maneuver { // Turn right at the roundabout. ROUNDABOUT_RIGHT = 18; + + // Initial maneuver. + DEPART = 19; + + // Used to indicate a street name change. + NAME_CHANGE = 20; } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/navigation_instruction.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/navigation_instruction.proto similarity index 100% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/navigation_instruction.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/navigation_instruction.proto diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline.proto similarity index 100% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto new file mode 100644 index 000000000000..3a982db04b04 --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto @@ -0,0 +1,395 @@ +// 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 +// +// http://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. + +syntax = "proto3"; + +package google.maps.routing.v2; + +import "google/geo/type/viewport.proto"; +import "google/maps/routing/v2/localized_time.proto"; +import "google/maps/routing/v2/location.proto"; +import "google/maps/routing/v2/navigation_instruction.proto"; +import "google/maps/routing/v2/polyline.proto"; +import "google/maps/routing/v2/route_label.proto"; +import "google/maps/routing/v2/route_travel_mode.proto"; +import "google/maps/routing/v2/speed_reading_interval.proto"; +import "google/maps/routing/v2/toll_info.proto"; +import "google/maps/routing/v2/transit.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/localized_text.proto"; +import "google/type/money.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Maps.Routing.V2"; +option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; +option java_multiple_files = true; +option java_outer_classname = "RouteProto"; +option java_package = "com.google.maps.routing.v2"; +option objc_class_prefix = "GMRV2"; +option php_namespace = "Google\\Maps\\Routing\\V2"; +option ruby_package = "Google::Maps::Routing::V2"; + +// Contains a route, which consists of a series of connected road segments +// that join beginning, ending, and intermediate waypoints. +message Route { + // Text representations of certain properties. + message RouteLocalizedValues { + // Travel distance represented in text form. + google.type.LocalizedText distance = 1; + + // Duration taking traffic conditions into consideration, represented in + // text form. Note: If you did not request traffic information, this value + // will be the same value as static_duration. + google.type.LocalizedText duration = 2; + + // Duration without taking traffic conditions into + // consideration, represented in text form. + google.type.LocalizedText static_duration = 3; + + // Transit fare represented in text form. + google.type.LocalizedText transit_fare = 4; + } + + // Labels for the `Route` that are useful to identify specific properties + // of the route to compare against others. + repeated RouteLabel route_labels = 13; + + // A collection of legs (path segments between waypoints) that make up the + // route. Each leg corresponds to the trip between two non-`via` + // [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no + // intermediate waypoints has only one leg. A route that includes one + // non-`via` intermediate waypoint has two legs. A route that includes one + // `via` intermediate waypoint has one leg. The order of the legs matches the + // order of waypoints from `origin` to `intermediates` to `destination`. + repeated RouteLeg legs = 1; + + // The travel distance of the route, in meters. + int32 distance_meters = 2; + + // The length of time needed to navigate the route. If you set the + // `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as + // `static_duration`. If you set the `routing_preference` to either + // `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated + // taking traffic conditions into account. + google.protobuf.Duration duration = 3; + + // The duration of travel through the route without taking traffic + // conditions into consideration. + google.protobuf.Duration static_duration = 4; + + // The overall route polyline. This polyline is the combined polyline of + // all `legs`. + Polyline polyline = 5; + + // A description of the route. + string description = 6; + + // An array of warnings to show when displaying the route. + repeated string warnings = 7; + + // The viewport bounding box of the polyline. + google.geo.type.Viewport viewport = 8; + + // Additional information about the route. + RouteTravelAdvisory travel_advisory = 9; + + // If you set + // [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order] + // to true, this field contains the optimized ordering of intermediate + // waypoints. Otherwise, this field is empty. + // For example, if you give an input of Origin: LA; Intermediate waypoints: + // Dallas, Bangor, Phoenix; Destination: New York; and the optimized + // intermediate waypoint order is Phoenix, Dallas, Bangor, then this field + // contains the values [2, 0, 1]. The index starts with 0 for the first + // intermediate waypoint provided in the input. + repeated int32 optimized_intermediate_waypoint_index = 10; + + // Text representations of properties of the `Route`. + RouteLocalizedValues localized_values = 11; + + // A web-safe, base64-encoded route token that can be passed to the Navigation + // SDK, that allows the Navigation SDK to reconstruct the route during + // navigation, and, in the event of rerouting, honor the original intention + // when you created the route by calling ComputeRoutes. Customers should treat + // this token as an opaque blob. It is not meant for reading or mutating. + // NOTE: `Route.route_token` is only available for requests that have set + // `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or + // `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests + // that have Via waypoints. + string route_token = 12; +} + +// Contains the additional information that the user should be informed +// about, such as possible traffic zone restrictions. +message RouteTravelAdvisory { + // Contains information about tolls on the route. This field is only populated + // if tolls are expected on the route. If this field is set, but the + // estimatedPrice subfield is not populated, then the route contains tolls, + // but the estimated price is unknown. If this field is not set, then there + // are no tolls expected on the route. + TollInfo toll_info = 2; + + // Speed reading intervals detailing traffic density. Applicable in case of + // `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences. + // The intervals cover the entire polyline of the route without overlap. + // The start point of a specified interval is the same as the end point of the + // preceding interval. + // + // Example: + // + // polyline: A ---- B ---- C ---- D ---- E ---- F ---- G + // speed_reading_intervals: [A,C), [C,D), [D,G). + repeated SpeedReadingInterval speed_reading_intervals = 3; + + // The predicted fuel consumption in microliters. + int64 fuel_consumption_microliters = 5; + + // Returned route may have restrictions that are not suitable for requested + // travel mode or route modifiers. + bool route_restrictions_partially_ignored = 6; + + // If present, contains the total fare or ticket costs on this route + // This property is only returned for `TRANSIT` requests and only + // for routes where fare information is available for all transit steps. + google.type.Money transit_fare = 7; +} + +// Contains the additional information that the user should be informed +// about on a leg step, such as possible traffic zone restrictions. +message RouteLegTravelAdvisory { + // Contains information about tolls on the specific `RouteLeg`. + // This field is only populated if we expect there are tolls on the + // `RouteLeg`. If this field is set but the estimated_price subfield is not + // populated, we expect that road contains tolls but we do not know an + // estimated price. If this field does not exist, then there is no toll on the + // `RouteLeg`. + TollInfo toll_info = 1; + + // Speed reading intervals detailing traffic density. Applicable in case of + // `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences. + // The intervals cover the entire polyline of the `RouteLeg` without overlap. + // The start point of a specified interval is the same as the end point of the + // preceding interval. + // + // Example: + // + // polyline: A ---- B ---- C ---- D ---- E ---- F ---- G + // speed_reading_intervals: [A,C), [C,D), [D,G). + repeated SpeedReadingInterval speed_reading_intervals = 2; +} + +// Contains the additional information that the user should be informed +// about, such as possible traffic zone restrictions on a leg step. +message RouteLegStepTravelAdvisory { + // NOTE: This field is not currently populated. + repeated SpeedReadingInterval speed_reading_intervals = 1; +} + +// Contains a segment between non-`via` waypoints. +message RouteLeg { + // Text representations of certain properties. + message RouteLegLocalizedValues { + // Travel distance represented in text form. + google.type.LocalizedText distance = 1; + + // Duration taking traffic conditions into consideration represented in text + // form. Note: If you did not request traffic information, this value will + // be the same value as static_duration. + google.type.LocalizedText duration = 2; + + // Duration without taking traffic conditions into + // consideration, represented in text form. + google.type.LocalizedText static_duration = 3; + } + + // Provides overview information about a list of `RouteLegStep`s. + message StepsOverview { + // Provides summarized information about different multi-modal segments of + // the `RouteLeg.steps`. A multi-modal segment is defined as one or more + // contiguous `RouteLegStep` that have the same `RouteTravelMode`. + // This field is not populated if the `RouteLeg` does not contain any + // multi-modal segments in the steps. + message MultiModalSegment { + // The corresponding `RouteLegStep` index that is the start of a + // multi-modal segment. + optional int32 step_start_index = 1; + + // The corresponding `RouteLegStep` index that is the end of a + // multi-modal segment. + optional int32 step_end_index = 2; + + // NavigationInstruction for the multi-modal segment. + NavigationInstruction navigation_instruction = 3; + + // The travel mode of the multi-modal segment. + RouteTravelMode travel_mode = 4; + } + + // Summarized information about different multi-modal segments of + // the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does + // not contain any multi-modal segments in the steps. + repeated MultiModalSegment multi_modal_segments = 1; + } + + // The travel distance of the route leg, in meters. + int32 distance_meters = 1; + + // The length of time needed to navigate the leg. If the `route_preference` + // is set to `TRAFFIC_UNAWARE`, then this value is the same as + // `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or + // `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic + // conditions into account. + google.protobuf.Duration duration = 2; + + // The duration of travel through the leg, calculated without taking + // traffic conditions into consideration. + google.protobuf.Duration static_duration = 3; + + // The overall polyline for this leg that includes each `step`'s + // polyline. + Polyline polyline = 4; + + // The start location of this leg. This location might be different from the + // provided `origin`. For example, when the provided `origin` is not near a + // road, this is a point on the road. + Location start_location = 5; + + // The end location of this leg. This location might be different from the + // provided `destination`. For example, when the provided `destination` is not + // near a road, this is a point on the road. + Location end_location = 6; + + // An array of steps denoting segments within this leg. Each step represents + // one navigation instruction. + repeated RouteLegStep steps = 7; + + // Contains the additional information that the user should be informed + // about, such as possible traffic zone restrictions, on a route leg. + RouteLegTravelAdvisory travel_advisory = 8; + + // Text representations of properties of the `RouteLeg`. + RouteLegLocalizedValues localized_values = 9; + + // Overview information about the steps in this `RouteLeg`. This field is only + // populated for TRANSIT routes. + StepsOverview steps_overview = 10; +} + +// Contains a segment of a [RouteLeg][google.maps.routing.v2.RouteLeg]. A +// step corresponds to a single navigation instruction. Route legs are made up +// of steps. +message RouteLegStep { + // Text representations of certain properties. + message RouteLegStepLocalizedValues { + // Travel distance represented in text form. + google.type.LocalizedText distance = 1; + + // Duration without taking traffic conditions into + // consideration, represented in text form. + google.type.LocalizedText static_duration = 3; + } + + // The travel distance of this step, in meters. In some circumstances, this + // field might not have a value. + int32 distance_meters = 1; + + // The duration of travel through this step without taking traffic conditions + // into consideration. In some circumstances, this field might not have a + // value. + google.protobuf.Duration static_duration = 2; + + // The polyline associated with this step. + Polyline polyline = 3; + + // The start location of this step. + Location start_location = 4; + + // The end location of this step. + Location end_location = 5; + + // Navigation instructions. + NavigationInstruction navigation_instruction = 6; + + // Contains the additional information that the user should be informed + // about, such as possible traffic zone restrictions, on a leg step. + RouteLegStepTravelAdvisory travel_advisory = 7; + + // Text representations of properties of the `RouteLegStep`. + RouteLegStepLocalizedValues localized_values = 8; + + // Details pertaining to this step if the travel mode is `TRANSIT`. + RouteLegStepTransitDetails transit_details = 9; + + // The travel mode used for this step. + RouteTravelMode travel_mode = 10; +} + +// Additional information for the `RouteLegStep` related to `TRANSIT` routes. +message RouteLegStepTransitDetails { + // Details about the transit stops for the `RouteLegStep` + message TransitStopDetails { + // Information about the arrival stop for the step. + TransitStop arrival_stop = 1; + + // The estimated time of arrival for the step. + google.protobuf.Timestamp arrival_time = 2; + + // Information about the departure stop for the step. + TransitStop departure_stop = 3; + + // The estimated time of departure for the step. + google.protobuf.Timestamp departure_time = 4; + } + + // Localized descriptions of values for RouteTransitDetails. + message TransitDetailsLocalizedValues { + // Time in its formatted text representation with a corresponding time zone. + LocalizedTime arrival_time = 1; + + // Time in its formatted text representation with a corresponding time zone. + LocalizedTime departure_time = 2; + } + + // Information about the arrival and departure stops for the step. + TransitStopDetails stop_details = 1; + + // Text representations of properties of the `RouteLegStepTransitDetails`. + TransitDetailsLocalizedValues localized_values = 2; + + // Specifies the direction in which to travel on this line as marked on + // the vehicle or at the departure stop. The direction is often the terminus + // station. + string headsign = 3; + + // Specifies the expected time as a duration between departures from the same + // stop at this time. For example, with a headway seconds value of 600, you + // would expect a ten minute wait if you should miss your bus. + google.protobuf.Duration headway = 4; + + // Information about the transit line used in this step. + TransitLine transit_line = 5; + + // The number of stops from the departure to the arrival stop. This count + // includes the arrival stop, but excludes the departure stop. For example, if + // your route leaves from Stop A, passes through stops B and C, and arrives at + // stop D, stop_count will return 3. + int32 stop_count = 6; + + // The text that appears in schedules and sign boards to identify a transit + // trip to passengers. The text should uniquely identify a trip within a + // service day. For example, "538" is the `trip_short_text` of the Amtrak + // train that leaves San Jose, CA at 15:10 on weekdays to Sacramento, CA. + string trip_short_text = 7; +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_label.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_label.proto similarity index 100% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_label.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_label.proto diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto similarity index 74% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto index a16f3cc7511b..33dcb7bd8376 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto @@ -32,26 +32,24 @@ option ruby_package = "Google::Maps::Routing::V2"; // Encapsulates a set of optional conditions to satisfy when calculating the // routes. message RouteModifiers { - // Specifies whether to avoid toll roads where reasonable. Preference will be - // given to routes not containing toll roads. Applies only to the `DRIVE` and + // When set to true, avoids toll roads where reasonable, giving preference to + // routes not containing toll roads. Applies only to the `DRIVE` and // `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode]. bool avoid_tolls = 1; - // Specifies whether to avoid highways where reasonable. Preference will be - // given to routes not containing highways. Applies only to the `DRIVE` and + // When set to true, avoids highways where reasonable, giving preference to + // routes not containing highways. Applies only to the `DRIVE` and // `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode]. bool avoid_highways = 2; - // Specifies whether to avoid ferries where reasonable. Preference will be - // given to routes not containing travel by ferries. - // Applies only to the `DRIVE` and`TWO_WHEELER` + // When set to true, avoids ferries where reasonable, giving preference to + // routes not containing ferries. Applies only to the `DRIVE` and`TWO_WHEELER` // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode]. bool avoid_ferries = 3; - // Specifies whether to avoid navigating indoors where reasonable. Preference - // will be given to routes not containing indoor navigation. - // Applies only to the `WALK` - // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode]. + // When set to true, avoids navigating indoors where reasonable, giving + // preference to routes not containing indoor navigation. Applies only to the + // `WALK` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode]. bool avoid_indoor = 4; // Specifies the vehicle information. diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto similarity index 96% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto index aff8b0353277..f6bd3e52a83c 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto @@ -47,4 +47,7 @@ enum RouteTravelMode { // Two-wheeled, motorized vehicle. For example, motorcycle. Note that this // differs from the `BICYCLE` travel mode which covers human-powered mode. TWO_WHEELER = 4; + + // Travel by public transit routes, where available. + TRANSIT = 7; } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto similarity index 76% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto index d86a2b94ec15..1ef6db734685 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto @@ -26,11 +26,14 @@ import "google/maps/routing/v2/route.proto"; import "google/maps/routing/v2/route_modifiers.proto"; import "google/maps/routing/v2/route_travel_mode.proto"; import "google/maps/routing/v2/routing_preference.proto"; +import "google/maps/routing/v2/traffic_model.proto"; +import "google/maps/routing/v2/transit_preferences.proto"; import "google/maps/routing/v2/units.proto"; import "google/maps/routing/v2/waypoint.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; +import "google/type/localized_text.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routing.V2"; @@ -157,6 +160,13 @@ message ComputeRoutesRequest { // Traffic aware polylines for the route(s). TRAFFIC_ON_POLYLINE = 3; + + // [Navigation + // Instructions][google.maps.routing.v2.NavigationInstructions.instructions] + // presented as a formatted HTML text string. This content + // is meant to be read as-is. This content is for display only. + // Do not programmatically parse it. + HTML_FORMATTED_NAVIGATION_INSTRUCTIONS = 4; } // Required. Origin waypoint. @@ -189,11 +199,21 @@ message ComputeRoutesRequest { [(google.api.field_behavior) = OPTIONAL]; // Optional. The departure time. If you don't set this value, then this value - // defaults to the time that you made the request. If you set this value to a - // time that has already occurred, then the request fails. + // defaults to the time that you made the request. + // NOTE: You can only specify a `departure_time` in the past when + // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to + // `TRANSIT`. google.protobuf.Timestamp departure_time = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The arrival time. + // NOTE: Can only be set when + // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to + // `TRANSIT`. You can specify either departure_time or arrival_time, but not + // both. + google.protobuf.Timestamp arrival_time = 19 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Specifies whether to calculate alternate routes in addition to // the route. No alternative routes are returned for requests that have // intermediate waypoints. @@ -216,14 +236,26 @@ message ComputeRoutesRequest { // https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains string region_code = 16 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Specifies the units of measure for the display fields. This - // includes the `instruction` field in + // Optional. Specifies the units of measure for the display fields. These + // fields include the `instruction` field in // [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The // units of measure used for the route, leg, step distance, and duration are // not affected by this value. If you don't provide this value, then the - // display units are inferred from the location of the request. + // display units are inferred from the location of the first origin. Units units = 11 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If set to true, the service attempts to minimize the overall cost + // of the route by re-ordering the specified intermediate waypoints. The + // request fails if any of the intermediate waypoints is a `via` waypoint. Use + // `ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index` to + // find the new ordering. + // If `ComputeRoutesResponseroutes.optimized_intermediate_waypoint_index` is + // not requested in the `X-Goog-FieldMask` header, the request fails. + // If `optimize_waypoint_order` is set to false, + // `ComputeRoutesResponse.optimized_intermediate_waypoint_index` will be + // empty. + bool optimize_waypoint_order = 13 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Specifies what reference routes to calculate as part of the // request in addition to the default route. A reference route is a route with // a different route calculation objective than the default route. For example @@ -238,6 +270,26 @@ message ComputeRoutesRequest { // returned in the response. repeated ExtraComputation extra_computations = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the assumptions to use when calculating time in + // traffic. This setting affects the value returned in the duration field in + // the [Route][google.maps.routing.v2.Route] and + // [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted + // time in traffic based on historical averages. + // `TrafficModel` is only available for requests that have set + // [RoutingPreference][google.maps.routing.v2.RoutingPreference] to + // `TRAFFIC_AWARE_OPTIMAL` and + // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`. + // Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not + // specified. + TrafficModel traffic_model = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies preferences that influence the route returned for + // `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when + // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to + // `TRANSIT`. + TransitPreferences transit_preferences = 20 + [(google.api.field_behavior) = OPTIONAL]; } // ComputeRoutes the response message. @@ -299,12 +351,22 @@ message ComputeRouteMatrixRequest { RoutingPreference routing_preference = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The departure time. If you don't set this value, this defaults to - // the time that you made the request. If you set this value to a time that - // has already occurred, the request fails. + // Optional. The departure time. If you don't set this value, then this value + // defaults to the time that you made the request. + // NOTE: You can only specify a `departure_time` in the past when + // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to + // `TRANSIT`. google.protobuf.Timestamp departure_time = 5 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The arrival time. + // NOTE: Can only be set when + // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to + // `TRANSIT`. You can specify either departure_time or arrival_time, but not + // both. + google.protobuf.Timestamp arrival_time = 11 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more // information, see // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See @@ -324,6 +386,24 @@ message ComputeRouteMatrixRequest { // returned in the response. repeated ExtraComputation extra_computations = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the assumptions to use when calculating time in + // traffic. This setting affects the value returned in the duration field in + // the [RouteMatrixElement][google.maps.routing.v2.RouteMatrixElement] which + // contains the predicted time in traffic based on historical averages. + // [RoutingPreference][google.maps.routing.v2.RoutingPreference] to + // `TRAFFIC_AWARE_OPTIMAL` and + // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`. + // Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not + // specified. + TrafficModel traffic_model = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies preferences that influence the route returned for + // `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when + // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to + // `TRANSIT`. + TransitPreferences transit_preferences = 12 + [(google.api.field_behavior) = OPTIONAL]; } // A single origin for ComputeRouteMatrixRequest @@ -341,9 +421,27 @@ message RouteMatrixDestination { Waypoint waypoint = 1 [(google.api.field_behavior) = REQUIRED]; } -// Encapsulates route information computed for an origin/destination pair in the +// Contains route information computed for an origin/destination pair in the // ComputeRouteMatrix API. This proto can be streamed to the client. message RouteMatrixElement { + // Text representations of certain properties. + message LocalizedValues { + // Travel distance represented in text form. + google.type.LocalizedText distance = 1; + + // Duration represented in text form taking traffic conditions into + // consideration. Note: If traffic information was not requested, this value + // is the same value as static_duration. + google.type.LocalizedText duration = 2; + + // Duration represented in text form without taking traffic conditions into + // consideration. + google.type.LocalizedText static_duration = 3; + + // Transit fare represented in text form. + google.type.LocalizedText transit_fare = 4; + } + // Zero-based index of the origin in the request. optional int32 origin_index = 1; @@ -381,6 +479,9 @@ message RouteMatrixElement { // used, this field contains detailed information about the fallback response. // Otherwise this field is unset. FallbackInfo fallback_info = 8; + + // Text representations of properties of the `RouteMatrixElement`. + LocalizedValues localized_values = 10; } // The condition of the route being returned. diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routing_preference.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routing_preference.proto similarity index 100% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routing_preference.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routing_preference.proto diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/speed_reading_interval.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/speed_reading_interval.proto similarity index 100% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/speed_reading_interval.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/speed_reading_interval.proto diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_info.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_info.proto similarity index 100% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_info.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_info.proto diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto similarity index 97% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto index bb72bc79b8a1..72598e560a33 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto @@ -218,7 +218,11 @@ enum TollPass { US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG = 37; // MI, USA. - US_MI_IQ_PROX_CARD = 38; + // Deprecated as this pass type no longer exists. + US_MI_IQ_PROX_CARD = 38 [deprecated = true]; + + // MI, USA. + US_MI_IQ_TAG = 95; // MI, USA. US_MI_MACKINAC_BRIDGE_MAC_PASS = 39; @@ -265,6 +269,9 @@ enum TollPass { // SC, USA. US_SC_PALPASS = 47; + // TX, USA. + US_TX_AVI_TAG = 97; + // TX, USA. US_TX_BANCPASS = 48; @@ -286,6 +293,9 @@ enum TollPass { // TX, USA. US_TX_EZTAG = 54; + // TX, USA. + US_TX_FUEGO_TAG = 96; + // TX, USA. US_TX_LAREDO_TRADE_TAG = 55; diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/traffic_model.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/traffic_model.proto new file mode 100644 index 000000000000..4326b4b12f7c --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/traffic_model.proto @@ -0,0 +1,52 @@ +// 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 +// +// http://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. + +syntax = "proto3"; + +package google.maps.routing.v2; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Maps.Routing.V2"; +option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; +option java_multiple_files = true; +option java_outer_classname = "TrafficModelProto"; +option java_package = "com.google.maps.routing.v2"; +option objc_class_prefix = "GMRV2"; +option php_namespace = "Google\\Maps\\Routing\\V2"; +option ruby_package = "Google::Maps::Routing::V2"; + +// Specifies the assumptions to use when calculating time in traffic. This +// setting affects the value returned in the `duration` field in the +// response, which contains the predicted time in traffic based on historical +// averages. +enum TrafficModel { + // Unused. If specified, will default to `BEST_GUESS`. + TRAFFIC_MODEL_UNSPECIFIED = 0; + + // Indicates that the returned `duration` should be the best + // estimate of travel time given what is known about both historical traffic + // conditions and live traffic. Live traffic becomes more important the closer + // the `departure_time` is to now. + BEST_GUESS = 1; + + // Indicates that the returned duration should be longer than the + // actual travel time on most days, though occasional days with particularly + // bad traffic conditions may exceed this value. + PESSIMISTIC = 2; + + // Indicates that the returned duration should be shorter than the actual + // travel time on most days, though occasional days with particularly good + // traffic conditions may be faster than this value. + OPTIMISTIC = 3; +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit.proto new file mode 100644 index 000000000000..5099a4ff131f --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit.proto @@ -0,0 +1,161 @@ +// 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 +// +// http://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. + +syntax = "proto3"; + +package google.maps.routing.v2; + +import "google/maps/routing/v2/location.proto"; +import "google/type/localized_text.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Maps.Routing.V2"; +option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; +option java_multiple_files = true; +option java_outer_classname = "TransitProto"; +option java_package = "com.google.maps.routing.v2"; +option objc_class_prefix = "GMRV2"; +option php_namespace = "Google\\Maps\\Routing\\V2"; +option ruby_package = "Google::Maps::Routing::V2"; + +// A transit agency that operates a transit line. +message TransitAgency { + // The name of this transit agency. + string name = 1; + + // The transit agency's locale-specific formatted phone number. + string phone_number = 2; + + // The transit agency's URI. + string uri = 3; +} + +// Contains information about the transit line used in this step. +message TransitLine { + // The transit agency (or agencies) that operates this transit line. + repeated TransitAgency agencies = 1; + + // The full name of this transit line, For example, "8 Avenue Local". + string name = 2; + + // the URI for this transit line as provided by the transit agency. + string uri = 3; + + // The color commonly used in signage for this line. Represented in + // hexadecimal. + string color = 4; + + // The URI for the icon associated with this line. + string icon_uri = 5; + + // The short name of this transit line. This name will normally be a line + // number, such as "M7" or "355". + string name_short = 6; + + // The color commonly used in text on signage for this line. Represented in + // hexadecimal. + string text_color = 7; + + // The type of vehicle that operates on this transit line. + TransitVehicle vehicle = 8; +} + +// Information about a transit stop. +message TransitStop { + // The name of the transit stop. + string name = 1; + + // The location of the stop expressed in latitude/longitude coordinates. + Location location = 2; +} + +// Information about a vehicle used in transit routes. +message TransitVehicle { + // The type of vehicles for transit routes. + enum TransitVehicleType { + // Unused. + TRANSIT_VEHICLE_TYPE_UNSPECIFIED = 0; + + // Bus. + BUS = 1; + + // A vehicle that operates on a cable, usually on the ground. Aerial cable + // cars may be of the type `GONDOLA_LIFT`. + CABLE_CAR = 2; + + // Commuter rail. + COMMUTER_TRAIN = 3; + + // Ferry. + FERRY = 4; + + // A vehicle that is pulled up a steep incline by a cable. A Funicular + // typically consists of two cars, with each car acting as a counterweight + // for the other. + FUNICULAR = 5; + + // An aerial cable car. + GONDOLA_LIFT = 6; + + // Heavy rail. + HEAVY_RAIL = 7; + + // High speed train. + HIGH_SPEED_TRAIN = 8; + + // Intercity bus. + INTERCITY_BUS = 9; + + // Long distance train. + LONG_DISTANCE_TRAIN = 10; + + // Light rail transit. + METRO_RAIL = 11; + + // Monorail. + MONORAIL = 12; + + // All other vehicles. + OTHER = 13; + + // Rail. + RAIL = 14; + + // Share taxi is a kind of bus with the ability to drop off and pick up + // passengers anywhere on its route. + SHARE_TAXI = 15; + + // Underground light rail. + SUBWAY = 16; + + // Above ground light rail. + TRAM = 17; + + // Trolleybus. + TROLLEYBUS = 18; + } + + // The name of this vehicle, capitalized. + google.type.LocalizedText name = 1; + + // The type of vehicle used. + TransitVehicleType type = 2; + + // The URI for an icon associated with this vehicle type. + string icon_uri = 3; + + // The URI for the icon associated with this vehicle type, based on the local + // transport signage. + string local_icon_uri = 4; +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit_preferences.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit_preferences.proto new file mode 100644 index 000000000000..987c062284ec --- /dev/null +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit_preferences.proto @@ -0,0 +1,75 @@ +// 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 +// +// http://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. + +syntax = "proto3"; + +package google.maps.routing.v2; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Maps.Routing.V2"; +option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb"; +option java_multiple_files = true; +option java_outer_classname = "TransitPreferencesProto"; +option java_package = "com.google.maps.routing.v2"; +option objc_class_prefix = "GMRV2"; +option php_namespace = "Google\\Maps\\Routing\\V2"; +option ruby_package = "Google::Maps::Routing::V2"; + +// Preferences for `TRANSIT` based routes that influence the route that is +// returned. +message TransitPreferences { + // A set of values used to specify the mode of transit. + enum TransitTravelMode { + // No transit travel mode specified. + TRANSIT_TRAVEL_MODE_UNSPECIFIED = 0; + + // Travel by bus. + BUS = 1; + + // Travel by subway. + SUBWAY = 2; + + // Travel by train. + TRAIN = 3; + + // Travel by light rail or tram. + LIGHT_RAIL = 4; + + // Travel by rail. This is equivalent to a combination of `SUBWAY`, `TRAIN`, + // and `LIGHT_RAIL`. + RAIL = 5; + } + + // Specifies routing preferences for transit routes. + enum TransitRoutingPreference { + // No preference specified. + TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED = 0; + + // Indicates that the calculated route should prefer limited amounts of + // walking. + LESS_WALKING = 1; + + // Indicates that the calculated route should prefer a limited number of + // transfers. + FEWER_TRANSFERS = 2; + } + + // A set of travel modes to use when getting a `TRANSIT` route. Defaults to + // all supported modes of travel. + repeated TransitTravelMode allowed_travel_modes = 1; + + // A routing preference that, when specified, influences the `TRANSIT` route + // returned. + TransitRoutingPreference routing_preference = 2; +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/units.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/units.proto similarity index 100% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/units.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/units.proto diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_emission_type.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_emission_type.proto similarity index 100% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_emission_type.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_emission_type.proto diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_info.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_info.proto similarity index 88% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_info.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_info.proto index be7ce6ff0db2..574d15f5de80 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_info.proto +++ b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_info.proto @@ -28,10 +28,10 @@ option objc_class_prefix = "GMRV2"; option php_namespace = "Google\\Maps\\Routing\\V2"; option ruby_package = "Google::Maps::Routing::V2"; -// Encapsulates the vehicle information, such as the license plate last -// character. +// Contains the vehicle information, such as the vehicle emission type. message VehicleInfo { // Describes the vehicle's emission type. - // Applies only to the `DRIVE` travel mode. + // Applies only to the `DRIVE` + // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode]. VehicleEmissionType emission_type = 2; } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/waypoint.proto b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/waypoint.proto similarity index 100% rename from java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/waypoint.proto rename to owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/waypoint.proto diff --git a/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutematrix/AsyncComputeRouteMatrix.java b/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutematrix/AsyncComputeRouteMatrix.java similarity index 90% rename from java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutematrix/AsyncComputeRouteMatrix.java rename to owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutematrix/AsyncComputeRouteMatrix.java index 507db2cb0dbb..7a064e8b1486 100644 --- a/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutematrix/AsyncComputeRouteMatrix.java +++ b/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutematrix/AsyncComputeRouteMatrix.java @@ -25,6 +25,8 @@ import com.google.maps.routing.v2.RouteTravelMode; import com.google.maps.routing.v2.RoutesClient; import com.google.maps.routing.v2.RoutingPreference; +import com.google.maps.routing.v2.TrafficModel; +import com.google.maps.routing.v2.TransitPreferences; import com.google.protobuf.Timestamp; import java.util.ArrayList; @@ -48,9 +50,12 @@ public static void asyncComputeRouteMatrix() throws Exception { .setTravelMode(RouteTravelMode.forNumber(0)) .setRoutingPreference(RoutingPreference.forNumber(0)) .setDepartureTime(Timestamp.newBuilder().build()) + .setArrivalTime(Timestamp.newBuilder().build()) .setLanguageCode("languageCode-2092349083") .setRegionCode("regionCode-1991004415") .addAllExtraComputations(new ArrayList()) + .setTrafficModel(TrafficModel.forNumber(0)) + .setTransitPreferences(TransitPreferences.newBuilder().build()) .build(); ServerStream stream = routesClient.computeRouteMatrixCallable().call(request); diff --git a/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/AsyncComputeRoutes.java b/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/AsyncComputeRoutes.java similarity index 90% rename from java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/AsyncComputeRoutes.java rename to owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/AsyncComputeRoutes.java index ac32d53124f3..14209aedbedb 100644 --- a/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/AsyncComputeRoutes.java +++ b/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/AsyncComputeRoutes.java @@ -26,6 +26,8 @@ import com.google.maps.routing.v2.RouteTravelMode; import com.google.maps.routing.v2.RoutesClient; import com.google.maps.routing.v2.RoutingPreference; +import com.google.maps.routing.v2.TrafficModel; +import com.google.maps.routing.v2.TransitPreferences; import com.google.maps.routing.v2.Units; import com.google.maps.routing.v2.Waypoint; import com.google.protobuf.Timestamp; @@ -54,13 +56,17 @@ public static void asyncComputeRoutes() throws Exception { .setPolylineQuality(PolylineQuality.forNumber(0)) .setPolylineEncoding(PolylineEncoding.forNumber(0)) .setDepartureTime(Timestamp.newBuilder().build()) + .setArrivalTime(Timestamp.newBuilder().build()) .setComputeAlternativeRoutes(true) .setRouteModifiers(RouteModifiers.newBuilder().build()) .setLanguageCode("languageCode-2092349083") .setRegionCode("regionCode-1991004415") .setUnits(Units.forNumber(0)) + .setOptimizeWaypointOrder(true) .addAllRequestedReferenceRoutes(new ArrayList()) .addAllExtraComputations(new ArrayList()) + .setTrafficModel(TrafficModel.forNumber(0)) + .setTransitPreferences(TransitPreferences.newBuilder().build()) .build(); ApiFuture future = routesClient.computeRoutesCallable().futureCall(request); diff --git a/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/SyncComputeRoutes.java b/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/SyncComputeRoutes.java similarity index 90% rename from java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/SyncComputeRoutes.java rename to owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/SyncComputeRoutes.java index b3967adfe735..c82fd1f694b1 100644 --- a/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/SyncComputeRoutes.java +++ b/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/SyncComputeRoutes.java @@ -25,6 +25,8 @@ import com.google.maps.routing.v2.RouteTravelMode; import com.google.maps.routing.v2.RoutesClient; import com.google.maps.routing.v2.RoutingPreference; +import com.google.maps.routing.v2.TrafficModel; +import com.google.maps.routing.v2.TransitPreferences; import com.google.maps.routing.v2.Units; import com.google.maps.routing.v2.Waypoint; import com.google.protobuf.Timestamp; @@ -53,13 +55,17 @@ public static void syncComputeRoutes() throws Exception { .setPolylineQuality(PolylineQuality.forNumber(0)) .setPolylineEncoding(PolylineEncoding.forNumber(0)) .setDepartureTime(Timestamp.newBuilder().build()) + .setArrivalTime(Timestamp.newBuilder().build()) .setComputeAlternativeRoutes(true) .setRouteModifiers(RouteModifiers.newBuilder().build()) .setLanguageCode("languageCode-2092349083") .setRegionCode("regionCode-1991004415") .setUnits(Units.forNumber(0)) + .setOptimizeWaypointOrder(true) .addAllRequestedReferenceRoutes(new ArrayList()) .addAllExtraComputations(new ArrayList()) + .setTrafficModel(TrafficModel.forNumber(0)) + .setTransitPreferences(TransitPreferences.newBuilder().build()) .build(); ComputeRoutesResponse response = routesClient.computeRoutes(request); } diff --git a/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider.java diff --git a/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetEndpoint.java diff --git a/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routessettings/computeroutes/SyncComputeRoutes.java b/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routessettings/computeroutes/SyncComputeRoutes.java similarity index 100% rename from java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routessettings/computeroutes/SyncComputeRoutes.java rename to owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routessettings/computeroutes/SyncComputeRoutes.java diff --git a/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/stub/routesstubsettings/computeroutes/SyncComputeRoutes.java b/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/stub/routesstubsettings/computeroutes/SyncComputeRoutes.java similarity index 100% rename from java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/stub/routesstubsettings/computeroutes/SyncComputeRoutes.java rename to owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/stub/routesstubsettings/computeroutes/SyncComputeRoutes.java From 7cb7cbcdfb7309c9f55778fca24719cee79b6baa Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 28 Jun 2023 22:41:59 +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-maps-routing/README.md | 4 +- .../google/maps/routing/v2/RoutesClient.java | 0 .../maps/routing/v2/RoutesSettings.java | 1 - .../maps/routing/v2/gapic_metadata.json | 0 .../google/maps/routing/v2/package-info.java | 0 .../v2/stub/GrpcRoutesCallableFactory.java | 0 .../maps/routing/v2/stub/GrpcRoutesStub.java | 0 .../stub/HttpJsonRoutesCallableFactory.java | 0 .../routing/v2/stub/HttpJsonRoutesStub.java | 0 .../maps/routing/v2/stub/RoutesStub.java | 0 .../routing/v2/stub/RoutesStubSettings.java | 0 .../google/maps/routing/v2/MockRoutes.java | 0 .../maps/routing/v2/MockRoutesImpl.java | 0 .../routing/v2/RoutesClientHttpJsonTest.java | 0 .../maps/routing/v2/RoutesClientTest.java | 0 .../google/maps/routing/v2/RoutesGrpc.java | 323 +- .../routing/v2/ComputeRouteMatrixRequest.java | 1828 +++++++---- .../ComputeRouteMatrixRequestOrBuilder.java | 252 +- .../maps/routing/v2/ComputeRoutesRequest.java | 2592 ++++++++++----- .../v2/ComputeRoutesRequestOrBuilder.java | 358 ++- .../routing/v2/ComputeRoutesResponse.java | 604 ++-- .../v2/ComputeRoutesResponseOrBuilder.java | 53 +- .../google/maps/routing/v2/FallbackInfo.java | 351 +- .../routing/v2/FallbackInfoOrBuilder.java | 30 +- .../maps/routing/v2/FallbackInfoProto.java | 74 + .../maps/routing/v2/FallbackReason.java | 82 +- .../maps/routing/v2/FallbackRoutingMode.java | 77 +- .../maps/routing/v2/GeocodedWaypoint.java | 585 ++-- .../routing/v2/GeocodedWaypointOrBuilder.java | 62 +- .../maps/routing/v2/GeocodingResults.java | 582 ++-- .../routing/v2/GeocodingResultsOrBuilder.java | 52 +- .../routing/v2/GeocodingResultsProto.java | 98 + .../google/maps/routing/v2/LocalizedTime.java | 392 ++- .../routing/v2/LocalizedTimeOrBuilder.java | 35 +- .../maps/routing/v2/LocalizedTimeProto.java | 72 + .../com/google/maps/routing/v2/Location.java | 397 ++- .../maps/routing/v2/LocationOrBuilder.java | 34 +- .../google/maps/routing/v2/LocationProto.java | 75 + .../com/google/maps/routing/v2/Maneuver.java | 206 +- .../google/maps/routing/v2/ManeuverProto.java | 62 + .../routing/v2/NavigationInstruction.java | 369 ++- .../v2/NavigationInstructionOrBuilder.java | 33 +- .../v2/NavigationInstructionProto.java | 73 + .../com/google/maps/routing/v2/Polyline.java | 466 +-- .../maps/routing/v2/PolylineEncoding.java | 82 +- .../maps/routing/v2/PolylineOrBuilder.java | 38 +- .../google/maps/routing/v2/PolylineProto.java | 77 + .../maps/routing/v2/PolylineQuality.java | 82 +- .../com/google/maps/routing/v2/Route.java | 2083 +++++++----- .../google/maps/routing/v2/RouteLabel.java | 89 +- .../maps/routing/v2/RouteLabelProto.java | 55 + .../com/google/maps/routing/v2/RouteLeg.java | 2847 +++++++++++------ .../maps/routing/v2/RouteLegOrBuilder.java | 106 +- .../google/maps/routing/v2/RouteLegStep.java | 1664 ++++++---- .../routing/v2/RouteLegStepOrBuilder.java | 103 +- .../v2/RouteLegStepTransitDetails.java | 2277 ++++++++----- .../RouteLegStepTransitDetailsOrBuilder.java | 101 +- .../v2/RouteLegStepTravelAdvisory.java | 459 ++- .../RouteLegStepTravelAdvisoryOrBuilder.java | 33 +- .../routing/v2/RouteLegTravelAdvisory.java | 545 ++-- .../v2/RouteLegTravelAdvisoryOrBuilder.java | 41 +- .../routing/v2/RouteMatrixDestination.java | 384 ++- .../v2/RouteMatrixDestinationOrBuilder.java | 35 +- .../maps/routing/v2/RouteMatrixElement.java | 1656 ++++++---- .../v2/RouteMatrixElementCondition.java | 77 +- .../v2/RouteMatrixElementOrBuilder.java | 90 +- .../maps/routing/v2/RouteMatrixOrigin.java | 520 +-- .../v2/RouteMatrixOriginOrBuilder.java | 55 +- .../maps/routing/v2/RouteModifiers.java | 598 ++-- .../routing/v2/RouteModifiersOrBuilder.java | 56 +- .../maps/routing/v2/RouteModifiersProto.java | 84 + .../maps/routing/v2/RouteOrBuilder.java | 151 +- .../google/maps/routing/v2/RouteProto.java | 418 +++ .../maps/routing/v2/RouteTravelAdvisory.java | 691 ++-- .../v2/RouteTravelAdvisoryOrBuilder.java | 55 +- .../maps/routing/v2/RouteTravelMode.java | 103 +- .../maps/routing/v2/RouteTravelModeProto.java | 55 + .../maps/routing/v2/RoutesServiceProto.java | 339 ++ .../maps/routing/v2/RoutingPreference.java | 87 +- .../routing/v2/RoutingPreferenceProto.java | 56 + .../maps/routing/v2/SpeedReadingInterval.java | 502 +-- .../v2/SpeedReadingIntervalOrBuilder.java | 39 +- .../routing/v2/SpeedReadingIntervalProto.java | 79 + .../com/google/maps/routing/v2/TollInfo.java | 386 ++- .../maps/routing/v2/TollInfoOrBuilder.java | 37 +- .../google/maps/routing/v2/TollInfoProto.java | 71 + .../com/google/maps/routing/v2/TollPass.java | 731 ++++- .../maps/routing/v2/TollPassesProto.java | 109 + .../google/maps/routing/v2/TrafficModel.java | 89 +- .../maps/routing/v2/TrafficModelProto.java | 55 + .../google/maps/routing/v2/TransitAgency.java | 453 +-- .../routing/v2/TransitAgencyOrBuilder.java | 45 +- .../google/maps/routing/v2/TransitLine.java | 920 ++++-- .../maps/routing/v2/TransitLineOrBuilder.java | 98 +- .../maps/routing/v2/TransitPreferences.java | 705 ++-- .../v2/TransitPreferencesOrBuilder.java | 73 +- .../routing/v2/TransitPreferencesProto.java | 77 + .../google/maps/routing/v2/TransitProto.java | 131 + .../google/maps/routing/v2/TransitStop.java | 394 ++- .../maps/routing/v2/TransitStopOrBuilder.java | 35 +- .../maps/routing/v2/TransitVehicle.java | 706 ++-- .../routing/v2/TransitVehicleOrBuilder.java | 50 +- .../com/google/maps/routing/v2/Units.java | 82 +- .../google/maps/routing/v2/UnitsProto.java | 53 + .../maps/routing/v2/VehicleEmissionType.java | 95 +- .../routing/v2/VehicleEmissionTypeProto.java | 56 + .../google/maps/routing/v2/VehicleInfo.java | 291 +- .../maps/routing/v2/VehicleInfoOrBuilder.java | 24 +- .../maps/routing/v2/VehicleInfoProto.java | 73 + .../com/google/maps/routing/v2/Waypoint.java | 659 ++-- .../maps/routing/v2/WaypointOrBuilder.java | 59 +- .../google/maps/routing/v2/WaypointProto.java | 81 + .../maps/routing/v2/fallback_info.proto | 0 .../maps/routing/v2/geocoding_results.proto | 0 .../maps/routing/v2/localized_time.proto | 0 .../google/maps/routing/v2/location.proto | 0 .../google/maps/routing/v2/maneuver.proto | 0 .../routing/v2/navigation_instruction.proto | 0 .../google/maps/routing/v2/polyline.proto | 0 .../proto/google/maps/routing/v2/route.proto | 0 .../google/maps/routing/v2/route_label.proto | 0 .../maps/routing/v2/route_modifiers.proto | 0 .../maps/routing/v2/route_travel_mode.proto | 0 .../maps/routing/v2/routes_service.proto | 0 .../maps/routing/v2/routing_preference.proto | 0 .../routing/v2/speed_reading_interval.proto | 0 .../google/maps/routing/v2/toll_info.proto | 0 .../google/maps/routing/v2/toll_passes.proto | 0 .../maps/routing/v2/traffic_model.proto | 0 .../google/maps/routing/v2/transit.proto | 0 .../maps/routing/v2/transit_preferences.proto | 0 .../proto/google/maps/routing/v2/units.proto | 0 .../routing/v2/vehicle_emission_type.proto | 0 .../google/maps/routing/v2/vehicle_info.proto | 0 .../google/maps/routing/v2/waypoint.proto | 0 .../AsyncComputeRouteMatrix.java | 0 .../computeroutes/AsyncComputeRoutes.java | 0 .../computeroutes/SyncComputeRoutes.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../routes/create/SyncCreateSetEndpoint.java | 0 .../computeroutes/SyncComputeRoutes.java | 0 .../computeroutes/SyncComputeRoutes.java | 0 .../maps/routing/v2/FallbackInfoProto.java | 61 - .../routing/v2/GeocodingResultsProto.java | 77 - .../maps/routing/v2/LocalizedTimeProto.java | 57 - .../google/maps/routing/v2/LocationProto.java | 60 - .../google/maps/routing/v2/ManeuverProto.java | 51 - .../v2/NavigationInstructionProto.java | 58 - .../google/maps/routing/v2/PolylineProto.java | 62 - .../maps/routing/v2/RouteLabelProto.java | 44 - .../maps/routing/v2/RouteModifiersProto.java | 64 - .../google/maps/routing/v2/RouteProto.java | 339 -- .../maps/routing/v2/RouteTravelModeProto.java | 44 - .../maps/routing/v2/RoutesServiceProto.java | 277 -- .../routing/v2/RoutingPreferenceProto.java | 45 - .../routing/v2/SpeedReadingIntervalProto.java | 61 - .../google/maps/routing/v2/TollInfoProto.java | 56 - .../maps/routing/v2/TollPassesProto.java | 98 - .../maps/routing/v2/TrafficModelProto.java | 44 - .../routing/v2/TransitPreferencesProto.java | 64 - .../google/maps/routing/v2/TransitProto.java | 113 - .../google/maps/routing/v2/UnitsProto.java | 42 - .../routing/v2/VehicleEmissionTypeProto.java | 45 - .../maps/routing/v2/VehicleInfoProto.java | 58 - .../google/maps/routing/v2/WaypointProto.java | 60 - 166 files changed, 23208 insertions(+), 12344 deletions(-) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java (99%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/google-maps-routing/src/main/java/com/google/maps/routing/v2/gapic_metadata.json (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/google-maps-routing/src/main/java/com/google/maps/routing/v2/package-info.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesCallableFactory.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesStub.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesCallableFactory.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesStub.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStub.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutes.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutesImpl.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientTest.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java (69%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java (71%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java (74%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java (70%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java (73%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponse.java (76%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponseOrBuilder.java (83%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfo.java (69%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoOrBuilder.java (72%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackReason.java (70%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackRoutingMode.java (71%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypoint.java (74%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypointOrBuilder.java (79%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResults.java (73%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsOrBuilder.java (79%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTime.java (69%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeOrBuilder.java (66%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Location.java (73%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationOrBuilder.java (78%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Maneuver.java (75%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstruction.java (70%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionOrBuilder.java (63%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Polyline.java (70%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineEncoding.java (69%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineOrBuilder.java (74%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineQuality.java (71%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java (78%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java (72%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java (73%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegOrBuilder.java (89%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStep.java (70%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepOrBuilder.java (86%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetails.java (67%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetailsOrBuilder.java (76%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisory.java (69%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisoryOrBuilder.java (68%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisory.java (78%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisoryOrBuilder.java (87%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestination.java (61%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestinationOrBuilder.java (52%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElement.java (75%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementCondition.java (71%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementOrBuilder.java (89%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOrigin.java (60%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOriginOrBuilder.java (54%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiers.java (77%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersOrBuilder.java (85%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java (91%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisory.java (79%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisoryOrBuilder.java (89%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java (72%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreference.java (78%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingInterval.java (73%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalOrBuilder.java (73%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfo.java (78%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoOrBuilder.java (77%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPass.java (80%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModel.java (74%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgency.java (68%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgencyOrBuilder.java (59%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLine.java (73%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLineOrBuilder.java (77%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferences.java (66%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesOrBuilder.java (56%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStop.java (68%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStopOrBuilder.java (63%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicle.java (72%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicleOrBuilder.java (71%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Units.java (66%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionType.java (70%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfo.java (66%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoOrBuilder.java (59%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Waypoint.java (75%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointOrBuilder.java (82%) create mode 100644 java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/fallback_info.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/geocoding_results.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/localized_time.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/navigation_instruction.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_label.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routing_preference.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/speed_reading_interval.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_info.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/traffic_model.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit_preferences.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/units.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_emission_type.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_info.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/waypoint.proto (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutematrix/AsyncComputeRouteMatrix.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/AsyncComputeRoutes.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/SyncComputeRoutes.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/samples/snippets/generated/com/google/maps/routing/v2/routessettings/computeroutes/SyncComputeRoutes.java (100%) rename {owl-bot-staging/java-maps-routing/v2 => java-maps-routing}/samples/snippets/generated/com/google/maps/routing/v2/stub/routesstubsettings/computeroutes/SyncComputeRoutes.java (100%) delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java delete mode 100644 owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java diff --git a/java-maps-routing/README.md b/java-maps-routing/README.md index ff61b3200d78..ea78ebbe53ba 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/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.16.0 + 26.18.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/java-maps-routing/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.5.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-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java rename to java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesClient.java diff --git a/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java similarity index 99% rename from owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java rename to java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java index 38264d0b5557..44cc5ad8a188 100644 --- a/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.java +++ b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/RoutesSettings.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.ServerStreamingCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.maps.routing.v2.stub.RoutesStubSettings; diff --git a/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/gapic_metadata.json b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/gapic_metadata.json rename to java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/gapic_metadata.json diff --git a/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/package-info.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/package-info.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/package-info.java rename to java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/package-info.java diff --git a/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesCallableFactory.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesCallableFactory.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesCallableFactory.java rename to java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesCallableFactory.java diff --git a/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesStub.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesStub.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesStub.java rename to java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/GrpcRoutesStub.java diff --git a/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesCallableFactory.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesCallableFactory.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesCallableFactory.java rename to java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesCallableFactory.java diff --git a/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesStub.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesStub.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesStub.java rename to java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/HttpJsonRoutesStub.java diff --git a/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStub.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStub.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStub.java rename to java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStub.java diff --git a/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java rename to java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/RoutesStubSettings.java diff --git a/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutes.java b/java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutes.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutes.java rename to java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutes.java diff --git a/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutesImpl.java b/java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutesImpl.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutesImpl.java rename to java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/MockRoutesImpl.java diff --git a/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientHttpJsonTest.java b/java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientHttpJsonTest.java rename to java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientHttpJsonTest.java diff --git a/owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientTest.java b/java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientTest.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientTest.java rename to java-maps-routing/google-maps-routing/src/test/java/com/google/maps/routing/v2/RoutesClientTest.java diff --git a/owl-bot-staging/java-maps-routing/v2/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java b/java-maps-routing/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java similarity index 69% rename from owl-bot-staging/java-maps-routing/v2/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java rename to java-maps-routing/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java index 88e31aa0f94a..8d1ecd0c5f2a 100644 --- a/owl-bot-staging/java-maps-routing/v2/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.java +++ b/java-maps-routing/grpc-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesGrpc.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.maps.routing.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * The Routes API.
  * 
@@ -18,113 +35,139 @@ private RoutesGrpc() {} public static final String SERVICE_NAME = "google.maps.routing.v2.Routes"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getComputeRoutesMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.maps.routing.v2.ComputeRoutesRequest, + com.google.maps.routing.v2.ComputeRoutesResponse> + getComputeRoutesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ComputeRoutes", requestType = com.google.maps.routing.v2.ComputeRoutesRequest.class, responseType = com.google.maps.routing.v2.ComputeRoutesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getComputeRoutesMethod() { - io.grpc.MethodDescriptor getComputeRoutesMethod; + public static io.grpc.MethodDescriptor< + com.google.maps.routing.v2.ComputeRoutesRequest, + com.google.maps.routing.v2.ComputeRoutesResponse> + getComputeRoutesMethod() { + io.grpc.MethodDescriptor< + com.google.maps.routing.v2.ComputeRoutesRequest, + com.google.maps.routing.v2.ComputeRoutesResponse> + getComputeRoutesMethod; if ((getComputeRoutesMethod = RoutesGrpc.getComputeRoutesMethod) == null) { synchronized (RoutesGrpc.class) { if ((getComputeRoutesMethod = RoutesGrpc.getComputeRoutesMethod) == null) { - RoutesGrpc.getComputeRoutesMethod = getComputeRoutesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeRoutes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.maps.routing.v2.ComputeRoutesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.maps.routing.v2.ComputeRoutesResponse.getDefaultInstance())) - .setSchemaDescriptor(new RoutesMethodDescriptorSupplier("ComputeRoutes")) - .build(); + RoutesGrpc.getComputeRoutesMethod = + getComputeRoutesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeRoutes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.routing.v2.ComputeRoutesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.routing.v2.ComputeRoutesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new RoutesMethodDescriptorSupplier("ComputeRoutes")) + .build(); } } } return getComputeRoutesMethod; } - private static volatile io.grpc.MethodDescriptor getComputeRouteMatrixMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.maps.routing.v2.ComputeRouteMatrixRequest, + com.google.maps.routing.v2.RouteMatrixElement> + getComputeRouteMatrixMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ComputeRouteMatrix", requestType = com.google.maps.routing.v2.ComputeRouteMatrixRequest.class, responseType = com.google.maps.routing.v2.RouteMatrixElement.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor getComputeRouteMatrixMethod() { - io.grpc.MethodDescriptor getComputeRouteMatrixMethod; + public static io.grpc.MethodDescriptor< + com.google.maps.routing.v2.ComputeRouteMatrixRequest, + com.google.maps.routing.v2.RouteMatrixElement> + getComputeRouteMatrixMethod() { + io.grpc.MethodDescriptor< + com.google.maps.routing.v2.ComputeRouteMatrixRequest, + com.google.maps.routing.v2.RouteMatrixElement> + getComputeRouteMatrixMethod; if ((getComputeRouteMatrixMethod = RoutesGrpc.getComputeRouteMatrixMethod) == null) { synchronized (RoutesGrpc.class) { if ((getComputeRouteMatrixMethod = RoutesGrpc.getComputeRouteMatrixMethod) == null) { - RoutesGrpc.getComputeRouteMatrixMethod = getComputeRouteMatrixMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeRouteMatrix")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.maps.routing.v2.ComputeRouteMatrixRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.maps.routing.v2.RouteMatrixElement.getDefaultInstance())) - .setSchemaDescriptor(new RoutesMethodDescriptorSupplier("ComputeRouteMatrix")) - .build(); + RoutesGrpc.getComputeRouteMatrixMethod = + getComputeRouteMatrixMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeRouteMatrix")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.routing.v2.ComputeRouteMatrixRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.maps.routing.v2.RouteMatrixElement.getDefaultInstance())) + .setSchemaDescriptor(new RoutesMethodDescriptorSupplier("ComputeRouteMatrix")) + .build(); } } } return getComputeRouteMatrixMethod; } - /** - * 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 RoutesStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RoutesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RoutesStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RoutesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RoutesStub(channel, callOptions); + } + }; return RoutesStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static RoutesBlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static RoutesBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RoutesBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RoutesBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RoutesBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RoutesBlockingStub(channel, callOptions); + } + }; return RoutesBlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static RoutesFutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static RoutesFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public RoutesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new RoutesFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RoutesFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RoutesFutureStub(channel, callOptions); + } + }; return RoutesFutureStub.newStub(factory, channel); } /** + * + * *
    * The Routes API.
    * 
@@ -132,6 +175,8 @@ public RoutesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions cal public interface AsyncService { /** + * + * *
      * Returns the primary route along with optional alternate routes, given a set
      * of terminal and intermediate waypoints.
@@ -165,12 +210,17 @@ public interface AsyncService {
      * size, and thus higher network throughput.
      * 
*/ - default void computeRoutes(com.google.maps.routing.v2.ComputeRoutesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeRoutesMethod(), responseObserver); + default void computeRoutes( + com.google.maps.routing.v2.ComputeRoutesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getComputeRoutesMethod(), responseObserver); } /** + * + * *
      * Takes in a list of origins and destinations and returns a stream containing
      * route information for each combination of origin and destination.
@@ -204,46 +254,50 @@ default void computeRoutes(com.google.maps.routing.v2.ComputeRoutesRequest reque
      * size, and thus higher network throughput.
      * 
*/ - default void computeRouteMatrix(com.google.maps.routing.v2.ComputeRouteMatrixRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeRouteMatrixMethod(), responseObserver); + default void computeRouteMatrix( + com.google.maps.routing.v2.ComputeRouteMatrixRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getComputeRouteMatrixMethod(), responseObserver); } } /** * Base class for the server implementation of the service Routes. + * *
    * The Routes API.
    * 
*/ - public static abstract class RoutesImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static class RoutesImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return RoutesGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Routes. + * *
    * The Routes API.
    * 
*/ - public static final class RoutesStub - extends io.grpc.stub.AbstractAsyncStub { - private RoutesStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class RoutesStub extends io.grpc.stub.AbstractAsyncStub { + private RoutesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected RoutesStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected RoutesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RoutesStub(channel, callOptions); } /** + * + * *
      * Returns the primary route along with optional alternate routes, given a set
      * of terminal and intermediate waypoints.
@@ -277,13 +331,19 @@ protected RoutesStub build(
      * size, and thus higher network throughput.
      * 
*/ - public void computeRoutes(com.google.maps.routing.v2.ComputeRoutesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void computeRoutes( + com.google.maps.routing.v2.ComputeRoutesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getComputeRoutesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getComputeRoutesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Takes in a list of origins and destinations and returns a stream containing
      * route information for each combination of origin and destination.
@@ -317,33 +377,38 @@ public void computeRoutes(com.google.maps.routing.v2.ComputeRoutesRequest reques
      * size, and thus higher network throughput.
      * 
*/ - public void computeRouteMatrix(com.google.maps.routing.v2.ComputeRouteMatrixRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void computeRouteMatrix( + com.google.maps.routing.v2.ComputeRouteMatrixRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getComputeRouteMatrixMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getComputeRouteMatrixMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Routes. + * *
    * The Routes API.
    * 
*/ public static final class RoutesBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private RoutesBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private RoutesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected RoutesBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected RoutesBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RoutesBlockingStub(channel, callOptions); } /** + * + * *
      * Returns the primary route along with optional alternate routes, given a set
      * of terminal and intermediate waypoints.
@@ -377,12 +442,15 @@ protected RoutesBlockingStub build(
      * size, and thus higher network throughput.
      * 
*/ - public com.google.maps.routing.v2.ComputeRoutesResponse computeRoutes(com.google.maps.routing.v2.ComputeRoutesRequest request) { + public com.google.maps.routing.v2.ComputeRoutesResponse computeRoutes( + com.google.maps.routing.v2.ComputeRoutesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getComputeRoutesMethod(), getCallOptions(), request); } /** + * + * *
      * Takes in a list of origins and destinations and returns a stream containing
      * route information for each combination of origin and destination.
@@ -425,24 +493,25 @@ public java.util.Iterator compute
 
   /**
    * A stub to allow clients to do ListenableFuture-style rpc calls to service Routes.
+   *
    * 
    * The Routes API.
    * 
*/ public static final class RoutesFutureStub extends io.grpc.stub.AbstractFutureStub { - private RoutesFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private RoutesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected RoutesFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected RoutesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RoutesFutureStub(channel, callOptions); } /** + * + * *
      * Returns the primary route along with optional alternate routes, given a set
      * of terminal and intermediate waypoints.
@@ -476,8 +545,9 @@ protected RoutesFutureStub build(
      * size, and thus higher network throughput.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture computeRoutes( - com.google.maps.routing.v2.ComputeRoutesRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.maps.routing.v2.ComputeRoutesResponse> + computeRoutes(com.google.maps.routing.v2.ComputeRoutesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getComputeRoutesMethod(), getCallOptions()), request); } @@ -486,11 +556,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; @@ -504,12 +574,16 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_COMPUTE_ROUTES: - serviceImpl.computeRoutes((com.google.maps.routing.v2.ComputeRoutesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.computeRoutes( + (com.google.maps.routing.v2.ComputeRoutesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_COMPUTE_ROUTE_MATRIX: - serviceImpl.computeRouteMatrix((com.google.maps.routing.v2.ComputeRouteMatrixRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.computeRouteMatrix( + (com.google.maps.routing.v2.ComputeRouteMatrixRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; default: throw new AssertionError(); @@ -530,24 +604,25 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getComputeRoutesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.maps.routing.v2.ComputeRoutesRequest, - com.google.maps.routing.v2.ComputeRoutesResponse>( - service, METHODID_COMPUTE_ROUTES))) + getComputeRoutesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.maps.routing.v2.ComputeRoutesRequest, + com.google.maps.routing.v2.ComputeRoutesResponse>( + service, METHODID_COMPUTE_ROUTES))) .addMethod( - getComputeRouteMatrixMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.maps.routing.v2.ComputeRouteMatrixRequest, - com.google.maps.routing.v2.RouteMatrixElement>( - service, METHODID_COMPUTE_ROUTE_MATRIX))) + getComputeRouteMatrixMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.maps.routing.v2.ComputeRouteMatrixRequest, + com.google.maps.routing.v2.RouteMatrixElement>( + service, METHODID_COMPUTE_ROUTE_MATRIX))) .build(); } - private static abstract class RoutesBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class RoutesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { RoutesBaseDescriptorSupplier() {} @java.lang.Override @@ -561,13 +636,11 @@ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() } } - private static final class RoutesFileDescriptorSupplier - extends RoutesBaseDescriptorSupplier { + private static final class RoutesFileDescriptorSupplier extends RoutesBaseDescriptorSupplier { RoutesFileDescriptorSupplier() {} } - private static final class RoutesMethodDescriptorSupplier - extends RoutesBaseDescriptorSupplier + private static final class RoutesMethodDescriptorSupplier extends RoutesBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; @@ -589,11 +662,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (RoutesGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new RoutesFileDescriptorSupplier()) - .addMethod(getComputeRoutesMethod()) - .addMethod(getComputeRouteMatrixMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new RoutesFileDescriptorSupplier()) + .addMethod(getComputeRoutesMethod()) + .addMethod(getComputeRouteMatrixMethod()) + .build(); } } } diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java similarity index 71% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java index 942a47caef9b..89e2ca6c9f04 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequest.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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; /** + * + * *
  * ComputeRouteMatrix request message
  * 
* * Protobuf type {@code google.maps.routing.v2.ComputeRouteMatrixRequest} */ -public final class ComputeRouteMatrixRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ComputeRouteMatrixRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.ComputeRouteMatrixRequest) ComputeRouteMatrixRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ComputeRouteMatrixRequest.newBuilder() to construct. private ComputeRouteMatrixRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ComputeRouteMatrixRequest() { origins_ = java.util.Collections.emptyList(); destinations_ = java.util.Collections.emptyList(); @@ -32,34 +50,38 @@ private ComputeRouteMatrixRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ComputeRouteMatrixRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.ComputeRouteMatrixRequest.class, com.google.maps.routing.v2.ComputeRouteMatrixRequest.Builder.class); + com.google.maps.routing.v2.ComputeRouteMatrixRequest.class, + com.google.maps.routing.v2.ComputeRouteMatrixRequest.Builder.class); } /** + * + * *
    * Extra computations to perform while completing the request.
    * 
* * Protobuf enum {@code google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation} */ - public enum ExtraComputation - implements com.google.protobuf.ProtocolMessageEnum { + public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not used. Requests containing this value will fail.
      * 
@@ -68,6 +90,8 @@ public enum ExtraComputation */ EXTRA_COMPUTATION_UNSPECIFIED(0), /** + * + * *
      * Toll information for the matrix element(s).
      * 
@@ -79,6 +103,8 @@ public enum ExtraComputation ; /** + * + * *
      * Not used. Requests containing this value will fail.
      * 
@@ -87,6 +113,8 @@ public enum ExtraComputation */ public static final int EXTRA_COMPUTATION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Toll information for the matrix element(s).
      * 
@@ -95,7 +123,6 @@ public enum ExtraComputation */ public static final int TOLLS_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -120,39 +147,43 @@ public static ExtraComputation valueOf(int value) { */ public static ExtraComputation forNumber(int value) { switch (value) { - case 0: return EXTRA_COMPUTATION_UNSPECIFIED; - case 1: return TOLLS; - default: return null; + case 0: + return EXTRA_COMPUTATION_UNSPECIFIED; + case 1: + return TOLLS; + 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< - ExtraComputation> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExtraComputation findValueByNumber(int number) { - return ExtraComputation.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 ExtraComputation findValueByNumber(int number) { + return ExtraComputation.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.maps.routing.v2.ComputeRouteMatrixRequest.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.maps.routing.v2.ComputeRouteMatrixRequest.getDescriptor() + .getEnumTypes() + .get(0); } private static final ExtraComputation[] VALUES = values(); @@ -160,8 +191,7 @@ public ExtraComputation findValueByNumber(int number) { public static ExtraComputation 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; @@ -179,9 +209,12 @@ private ExtraComputation(int value) { } public static final int ORIGINS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List origins_; /** + * + * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -195,13 +228,17 @@ private ExtraComputation(int value) {
    * must be no greater than 50.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getOriginsList() { return origins_; } /** + * + * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -215,14 +252,18 @@ public java.util.List getOriginsLi
    * must be no greater than 50.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getOriginsOrBuilderList() { return origins_; } /** + * + * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -236,13 +277,17 @@ public java.util.List getOriginsLi
    * must be no greater than 50.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getOriginsCount() { return origins_.size(); } /** + * + * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -256,13 +301,17 @@ public int getOriginsCount() {
    * must be no greater than 50.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.maps.routing.v2.RouteMatrixOrigin getOrigins(int index) { return origins_.get(index); } /** + * + * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -276,73 +325,95 @@ public com.google.maps.routing.v2.RouteMatrixOrigin getOrigins(int index) {
    * must be no greater than 50.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder( - int index) { + public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder(int index) { return origins_.get(index); } public static final int DESTINATIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List destinations_; /** + * + * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getDestinationsList() { return destinations_; } /** + * + * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getDestinationsOrBuilderList() { return destinations_; } /** + * + * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getDestinationsCount() { return destinations_.size(); } /** + * + * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.maps.routing.v2.RouteMatrixDestination getDestinations(int index) { return destinations_.get(index); } /** + * + * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuilder( @@ -353,32 +424,47 @@ public com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestination public static final int TRAVEL_MODE_FIELD_NUMBER = 3; private int travelMode_ = 0; /** + * + * *
    * Optional. Specifies the mode of transportation.
    * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for travelMode. */ - @java.lang.Override public int getTravelModeValue() { + @java.lang.Override + public int getTravelModeValue() { return travelMode_; } /** + * + * *
    * Optional. Specifies the mode of transportation.
    * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The travelMode. */ - @java.lang.Override public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { - com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + @java.lang.Override + public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { + com.google.maps.routing.v2.RouteTravelMode result = + com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; } public static final int ROUTING_PREFERENCE_FIELD_NUMBER = 4; private int routingPreference_ = 0; /** + * + * *
    * Optional. Specifies how to compute the route. The server attempts to use
    * the selected routing preference to compute the route. If the routing
@@ -387,13 +473,19 @@ public com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestination
    * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for routingPreference. */ - @java.lang.Override public int getRoutingPreferenceValue() { + @java.lang.Override + public int getRoutingPreferenceValue() { return routingPreference_; } /** + * + * *
    * Optional. Specifies how to compute the route. The server attempts to use
    * the selected routing preference to compute the route. If the routing
@@ -402,17 +494,24 @@ public com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestination
    * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The routingPreference. */ - @java.lang.Override public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() { - com.google.maps.routing.v2.RoutingPreference result = com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); + @java.lang.Override + public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() { + com.google.maps.routing.v2.RoutingPreference result = + com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); return result == null ? com.google.maps.routing.v2.RoutingPreference.UNRECOGNIZED : result; } public static final int DEPARTURE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp departureTime_; /** + * + * *
    * Optional. The departure time. If you don't set this value, then this value
    * defaults to the time that you made the request.
@@ -421,7 +520,9 @@ public com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestination
    * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the departureTime field is set. */ @java.lang.Override @@ -429,6 +530,8 @@ public boolean hasDepartureTime() { return departureTime_ != null; } /** + * + * *
    * Optional. The departure time. If you don't set this value, then this value
    * defaults to the time that you made the request.
@@ -437,14 +540,20 @@ public boolean hasDepartureTime() {
    * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The departureTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDepartureTime() { - return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : departureTime_; } /** + * + * *
    * Optional. The departure time. If you don't set this value, then this value
    * defaults to the time that you made the request.
@@ -453,16 +562,21 @@ public com.google.protobuf.Timestamp getDepartureTime() {
    * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { - return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : departureTime_; } public static final int ARRIVAL_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp arrivalTime_; /** + * + * *
    * Optional. The arrival time.
    * NOTE: Can only be set when
@@ -471,7 +585,9 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() {
    * both.
    * 
* - * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the arrivalTime field is set. */ @java.lang.Override @@ -479,6 +595,8 @@ public boolean hasArrivalTime() { return arrivalTime_ != null; } /** + * + * *
    * Optional. The arrival time.
    * NOTE: Can only be set when
@@ -487,7 +605,9 @@ public boolean hasArrivalTime() {
    * both.
    * 
* - * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The arrivalTime. */ @java.lang.Override @@ -495,6 +615,8 @@ public com.google.protobuf.Timestamp getArrivalTime() { return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; } /** + * + * *
    * Optional. The arrival time.
    * NOTE: Can only be set when
@@ -503,7 +625,8 @@ public com.google.protobuf.Timestamp getArrivalTime() {
    * both.
    * 
* - * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { @@ -511,9 +634,12 @@ public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** + * + * *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -524,6 +650,7 @@ public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ @java.lang.Override @@ -532,14 +659,15 @@ public java.lang.String getLanguageCode() { 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(); languageCode_ = s; return s; } } /** + * + * *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -550,16 +678,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -568,9 +695,12 @@ public java.lang.String getLanguageCode() { } public static final int REGION_CODE_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object regionCode_ = ""; /** + * + * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -578,6 +708,7 @@ public java.lang.String getLanguageCode() {
    * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The regionCode. */ @java.lang.Override @@ -586,14 +717,15 @@ public java.lang.String getRegionCode() { 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(); regionCode_ = s; return s; } } /** + * + * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -601,16 +733,15 @@ public java.lang.String getRegionCode() {
    * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for regionCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionCodeBytes() { + public com.google.protobuf.ByteString getRegionCodeBytes() { java.lang.Object ref = regionCode_; 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); regionCode_ = b; return b; } else { @@ -619,18 +750,30 @@ public java.lang.String getRegionCode() { } public static final int EXTRA_COMPUTATIONS_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private java.util.List extraComputations_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation> extraComputations_converter_ = + java.lang.Integer, com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation> + extraComputations_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>() { - public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation convert(java.lang.Integer from) { - com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation result = com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation.forNumber(from); - return result == null ? com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation.UNRECOGNIZED : result; + java.lang.Integer, + com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>() { + public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation convert( + java.lang.Integer from) { + com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation result = + com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation.forNumber( + from); + return result == null + ? com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation + .UNRECOGNIZED + : result; } }; /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -638,15 +781,22 @@ public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation con
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the extraComputations. */ @java.lang.Override - public java.util.List getExtraComputationsList() { + public java.util.List + getExtraComputationsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>(extraComputations_, extraComputations_converter_); + java.lang.Integer, com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>( + extraComputations_, extraComputations_converter_); } /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -654,7 +804,10 @@ public java.util.List
    *
-   * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   *
    * @return The count of extraComputations.
    */
   @java.lang.Override
@@ -662,6 +815,8 @@ public int getExtraComputationsCount() {
     return extraComputations_.size();
   }
   /**
+   *
+   *
    * 
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -669,15 +824,21 @@ public int getExtraComputationsCount() {
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The extraComputations at the given index. */ @java.lang.Override - public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation getExtraComputations(int index) { + public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation getExtraComputations( + int index) { return extraComputations_converter_.convert(extraComputations_.get(index)); } /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -685,15 +846,19 @@ public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation get
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for extraComputations. */ @java.lang.Override - public java.util.List - getExtraComputationsValueList() { + public java.util.List getExtraComputationsValueList() { return extraComputations_; } /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -701,7 +866,10 @@ public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation get
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of extraComputations at the given index. */ @@ -709,11 +877,14 @@ public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation get public int getExtraComputationsValue(int index) { return extraComputations_.get(index); } + private int extraComputationsMemoizedSerializedSize; public static final int TRAFFIC_MODEL_FIELD_NUMBER = 10; private int trafficModel_ = 0; /** + * + * *
    * Optional. Specifies the assumptions to use when calculating time in
    * traffic. This setting affects the value returned in the duration field in
@@ -726,13 +897,19 @@ public int getExtraComputationsValue(int index) {
    * specified.
    * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for trafficModel. */ - @java.lang.Override public int getTrafficModelValue() { + @java.lang.Override + public int getTrafficModelValue() { return trafficModel_; } /** + * + * *
    * Optional. Specifies the assumptions to use when calculating time in
    * traffic. This setting affects the value returned in the duration field in
@@ -745,17 +922,24 @@ public int getExtraComputationsValue(int index) {
    * specified.
    * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The trafficModel. */ - @java.lang.Override public com.google.maps.routing.v2.TrafficModel getTrafficModel() { - com.google.maps.routing.v2.TrafficModel result = com.google.maps.routing.v2.TrafficModel.forNumber(trafficModel_); + @java.lang.Override + public com.google.maps.routing.v2.TrafficModel getTrafficModel() { + com.google.maps.routing.v2.TrafficModel result = + com.google.maps.routing.v2.TrafficModel.forNumber(trafficModel_); return result == null ? com.google.maps.routing.v2.TrafficModel.UNRECOGNIZED : result; } public static final int TRANSIT_PREFERENCES_FIELD_NUMBER = 12; private com.google.maps.routing.v2.TransitPreferences transitPreferences_; /** + * + * *
    * Optional. Specifies preferences that influence the route returned for
    * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -763,7 +947,10 @@ public int getExtraComputationsValue(int index) {
    * `TRANSIT`.
    * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transitPreferences field is set. */ @java.lang.Override @@ -771,6 +958,8 @@ public boolean hasTransitPreferences() { return transitPreferences_ != null; } /** + * + * *
    * Optional. Specifies preferences that influence the route returned for
    * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -778,14 +967,21 @@ public boolean hasTransitPreferences() {
    * `TRANSIT`.
    * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transitPreferences. */ @java.lang.Override public com.google.maps.routing.v2.TransitPreferences getTransitPreferences() { - return transitPreferences_ == null ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + return transitPreferences_ == null + ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() + : transitPreferences_; } /** + * + * *
    * Optional. Specifies preferences that influence the route returned for
    * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -793,14 +989,19 @@ public com.google.maps.routing.v2.TransitPreferences getTransitPreferences() {
    * `TRANSIT`.
    * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.maps.routing.v2.TransitPreferencesOrBuilder getTransitPreferencesOrBuilder() { - return transitPreferences_ == null ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + return transitPreferences_ == null + ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() + : transitPreferences_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -812,8 +1013,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 < origins_.size(); i++) { output.writeMessage(1, origins_.get(i)); @@ -821,10 +1021,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < destinations_.size(); i++) { output.writeMessage(2, destinations_.get(i)); } - if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + if (travelMode_ + != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(3, travelMode_); } - if (routingPreference_ != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED.getNumber()) { + if (routingPreference_ + != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, routingPreference_); } if (departureTime_ != null) { @@ -843,7 +1046,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, regionCode_); } - if (trafficModel_ != com.google.maps.routing.v2.TrafficModel.TRAFFIC_MODEL_UNSPECIFIED.getNumber()) { + if (trafficModel_ + != com.google.maps.routing.v2.TrafficModel.TRAFFIC_MODEL_UNSPECIFIED.getNumber()) { output.writeEnum(10, trafficModel_); } if (arrivalTime_ != null) { @@ -862,24 +1066,22 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < origins_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, origins_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, origins_.get(i)); } for (int i = 0; i < destinations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, destinations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, destinations_.get(i)); } - if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, travelMode_); + if (travelMode_ + != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, travelMode_); } - if (routingPreference_ != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, routingPreference_); + if (routingPreference_ + != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, routingPreference_); } if (departureTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getDepartureTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDepartureTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, languageCode_); @@ -887,29 +1089,28 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < extraComputations_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(extraComputations_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(extraComputations_.get(i)); } size += dataSize; - if (!getExtraComputationsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }extraComputationsMemoizedSerializedSize = dataSize; + if (!getExtraComputationsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + extraComputationsMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, regionCode_); } - if (trafficModel_ != com.google.maps.routing.v2.TrafficModel.TRAFFIC_MODEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, trafficModel_); + if (trafficModel_ + != com.google.maps.routing.v2.TrafficModel.TRAFFIC_MODEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, trafficModel_); } if (arrivalTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getArrivalTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getArrivalTime()); } if (transitPreferences_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getTransitPreferences()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getTransitPreferences()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -919,39 +1120,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.maps.routing.v2.ComputeRouteMatrixRequest)) { return super.equals(obj); } - com.google.maps.routing.v2.ComputeRouteMatrixRequest other = (com.google.maps.routing.v2.ComputeRouteMatrixRequest) obj; + com.google.maps.routing.v2.ComputeRouteMatrixRequest other = + (com.google.maps.routing.v2.ComputeRouteMatrixRequest) obj; - if (!getOriginsList() - .equals(other.getOriginsList())) return false; - if (!getDestinationsList() - .equals(other.getDestinationsList())) return false; + if (!getOriginsList().equals(other.getOriginsList())) return false; + if (!getDestinationsList().equals(other.getDestinationsList())) return false; if (travelMode_ != other.travelMode_) return false; if (routingPreference_ != other.routingPreference_) return false; if (hasDepartureTime() != other.hasDepartureTime()) return false; if (hasDepartureTime()) { - if (!getDepartureTime() - .equals(other.getDepartureTime())) return false; + if (!getDepartureTime().equals(other.getDepartureTime())) return false; } if (hasArrivalTime() != other.hasArrivalTime()) return false; if (hasArrivalTime()) { - if (!getArrivalTime() - .equals(other.getArrivalTime())) return false; + if (!getArrivalTime().equals(other.getArrivalTime())) return false; } - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getRegionCode() - .equals(other.getRegionCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getRegionCode().equals(other.getRegionCode())) return false; if (!extraComputations_.equals(other.extraComputations_)) return false; if (trafficModel_ != other.trafficModel_) return false; if (hasTransitPreferences() != other.hasTransitPreferences()) return false; if (hasTransitPreferences()) { - if (!getTransitPreferences() - .equals(other.getTransitPreferences())) return false; + if (!getTransitPreferences().equals(other.getTransitPreferences())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1004,131 +1199,135 @@ public int hashCode() { } public static com.google.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.maps.routing.v2.ComputeRouteMatrixRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.ComputeRouteMatrixRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest 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; } /** + * + * *
    * ComputeRouteMatrix request message
    * 
* * Protobuf type {@code google.maps.routing.v2.ComputeRouteMatrixRequest} */ - 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.maps.routing.v2.ComputeRouteMatrixRequest) com.google.maps.routing.v2.ComputeRouteMatrixRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.ComputeRouteMatrixRequest.class, com.google.maps.routing.v2.ComputeRouteMatrixRequest.Builder.class); + com.google.maps.routing.v2.ComputeRouteMatrixRequest.class, + com.google.maps.routing.v2.ComputeRouteMatrixRequest.Builder.class); } // Construct using com.google.maps.routing.v2.ComputeRouteMatrixRequest.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(); @@ -1173,9 +1372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; } @java.lang.Override @@ -1194,14 +1393,18 @@ public com.google.maps.routing.v2.ComputeRouteMatrixRequest build() { @java.lang.Override public com.google.maps.routing.v2.ComputeRouteMatrixRequest buildPartial() { - com.google.maps.routing.v2.ComputeRouteMatrixRequest result = new com.google.maps.routing.v2.ComputeRouteMatrixRequest(this); + com.google.maps.routing.v2.ComputeRouteMatrixRequest result = + new com.google.maps.routing.v2.ComputeRouteMatrixRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.maps.routing.v2.ComputeRouteMatrixRequest result) { + private void buildPartialRepeatedFields( + com.google.maps.routing.v2.ComputeRouteMatrixRequest result) { if (originsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { origins_ = java.util.Collections.unmodifiableList(origins_); @@ -1236,14 +1439,12 @@ private void buildPartial0(com.google.maps.routing.v2.ComputeRouteMatrixRequest result.routingPreference_ = routingPreference_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.departureTime_ = departureTimeBuilder_ == null - ? departureTime_ - : departureTimeBuilder_.build(); + result.departureTime_ = + departureTimeBuilder_ == null ? departureTime_ : departureTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.arrivalTime_ = arrivalTimeBuilder_ == null - ? arrivalTime_ - : arrivalTimeBuilder_.build(); + result.arrivalTime_ = + arrivalTimeBuilder_ == null ? arrivalTime_ : arrivalTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.languageCode_ = languageCode_; @@ -1255,9 +1456,10 @@ private void buildPartial0(com.google.maps.routing.v2.ComputeRouteMatrixRequest result.trafficModel_ = trafficModel_; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.transitPreferences_ = transitPreferencesBuilder_ == null - ? transitPreferences_ - : transitPreferencesBuilder_.build(); + result.transitPreferences_ = + transitPreferencesBuilder_ == null + ? transitPreferences_ + : transitPreferencesBuilder_.build(); } } @@ -1265,38 +1467,39 @@ private void buildPartial0(com.google.maps.routing.v2.ComputeRouteMatrixRequest 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.maps.routing.v2.ComputeRouteMatrixRequest) { - return mergeFrom((com.google.maps.routing.v2.ComputeRouteMatrixRequest)other); + return mergeFrom((com.google.maps.routing.v2.ComputeRouteMatrixRequest) other); } else { super.mergeFrom(other); return this; @@ -1304,7 +1507,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.maps.routing.v2.ComputeRouteMatrixRequest other) { - if (other == com.google.maps.routing.v2.ComputeRouteMatrixRequest.getDefaultInstance()) return this; + if (other == com.google.maps.routing.v2.ComputeRouteMatrixRequest.getDefaultInstance()) + return this; if (originsBuilder_ == null) { if (!other.origins_.isEmpty()) { if (origins_.isEmpty()) { @@ -1323,9 +1527,10 @@ public Builder mergeFrom(com.google.maps.routing.v2.ComputeRouteMatrixRequest ot originsBuilder_ = null; origins_ = other.origins_; bitField0_ = (bitField0_ & ~0x00000001); - originsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOriginsFieldBuilder() : null; + originsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOriginsFieldBuilder() + : null; } else { originsBuilder_.addAllMessages(other.origins_); } @@ -1349,9 +1554,10 @@ public Builder mergeFrom(com.google.maps.routing.v2.ComputeRouteMatrixRequest ot destinationsBuilder_ = null; destinations_ = other.destinations_; bitField0_ = (bitField0_ & ~0x00000002); - destinationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDestinationsFieldBuilder() : null; + destinationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDestinationsFieldBuilder() + : null; } else { destinationsBuilder_.addAllMessages(other.destinations_); } @@ -1421,101 +1627,108 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.maps.routing.v2.RouteMatrixOrigin m = - input.readMessage( - com.google.maps.routing.v2.RouteMatrixOrigin.parser(), - extensionRegistry); - if (originsBuilder_ == null) { - ensureOriginsIsMutable(); - origins_.add(m); - } else { - originsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - com.google.maps.routing.v2.RouteMatrixDestination m = - input.readMessage( - com.google.maps.routing.v2.RouteMatrixDestination.parser(), - extensionRegistry); - if (destinationsBuilder_ == null) { - ensureDestinationsIsMutable(); - destinations_.add(m); - } else { - destinationsBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: { - travelMode_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - routingPreference_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - getDepartureTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 64: { - int tmpRaw = input.readEnum(); - ensureExtraComputationsIsMutable(); - extraComputations_.add(tmpRaw); - break; - } // case 64 - case 66: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 10: + { + com.google.maps.routing.v2.RouteMatrixOrigin m = + input.readMessage( + com.google.maps.routing.v2.RouteMatrixOrigin.parser(), extensionRegistry); + if (originsBuilder_ == null) { + ensureOriginsIsMutable(); + origins_.add(m); + } else { + originsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.maps.routing.v2.RouteMatrixDestination m = + input.readMessage( + com.google.maps.routing.v2.RouteMatrixDestination.parser(), + extensionRegistry); + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.add(m); + } else { + destinationsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + travelMode_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + routingPreference_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getDepartureTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 64: + { int tmpRaw = input.readEnum(); ensureExtraComputationsIsMutable(); extraComputations_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 66 - case 74: { - regionCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 74 - case 80: { - trafficModel_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 90: { - input.readMessage( - getArrivalTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 90 - case 98: { - input.readMessage( - getTransitPreferencesFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 98 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 64 + case 66: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureExtraComputationsIsMutable(); + extraComputations_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 66 + case 74: + { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 80: + { + trafficModel_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: + { + input.readMessage(getArrivalTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 90 + case 98: + { + input.readMessage( + getTransitPreferencesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + 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) { @@ -1525,21 +1738,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List origins_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureOriginsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { origins_ = new java.util.ArrayList(origins_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteMatrixOrigin, com.google.maps.routing.v2.RouteMatrixOrigin.Builder, com.google.maps.routing.v2.RouteMatrixOriginOrBuilder> originsBuilder_; + com.google.maps.routing.v2.RouteMatrixOrigin, + com.google.maps.routing.v2.RouteMatrixOrigin.Builder, + com.google.maps.routing.v2.RouteMatrixOriginOrBuilder> + originsBuilder_; /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1553,7 +1773,9 @@ private void ensureOriginsIsMutable() {
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getOriginsList() { if (originsBuilder_ == null) { @@ -1563,6 +1785,8 @@ public java.util.List getOriginsLi } } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1576,7 +1800,9 @@ public java.util.List getOriginsLi
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getOriginsCount() { if (originsBuilder_ == null) { @@ -1586,6 +1812,8 @@ public int getOriginsCount() { } } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1599,7 +1827,9 @@ public int getOriginsCount() {
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.maps.routing.v2.RouteMatrixOrigin getOrigins(int index) { if (originsBuilder_ == null) { @@ -1609,6 +1839,8 @@ public com.google.maps.routing.v2.RouteMatrixOrigin getOrigins(int index) { } } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1622,10 +1854,11 @@ public com.google.maps.routing.v2.RouteMatrixOrigin getOrigins(int index) {
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setOrigins( - int index, com.google.maps.routing.v2.RouteMatrixOrigin value) { + public Builder setOrigins(int index, com.google.maps.routing.v2.RouteMatrixOrigin value) { if (originsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1639,6 +1872,8 @@ public Builder setOrigins( return this; } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1652,7 +1887,9 @@ public Builder setOrigins(
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOrigins( int index, com.google.maps.routing.v2.RouteMatrixOrigin.Builder builderForValue) { @@ -1666,6 +1903,8 @@ public Builder setOrigins( return this; } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1679,7 +1918,9 @@ public Builder setOrigins(
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addOrigins(com.google.maps.routing.v2.RouteMatrixOrigin value) { if (originsBuilder_ == null) { @@ -1695,6 +1936,8 @@ public Builder addOrigins(com.google.maps.routing.v2.RouteMatrixOrigin value) { return this; } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1708,10 +1951,11 @@ public Builder addOrigins(com.google.maps.routing.v2.RouteMatrixOrigin value) {
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addOrigins( - int index, com.google.maps.routing.v2.RouteMatrixOrigin value) { + public Builder addOrigins(int index, com.google.maps.routing.v2.RouteMatrixOrigin value) { if (originsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1725,6 +1969,8 @@ public Builder addOrigins( return this; } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1738,7 +1984,9 @@ public Builder addOrigins(
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addOrigins( com.google.maps.routing.v2.RouteMatrixOrigin.Builder builderForValue) { @@ -1752,6 +2000,8 @@ public Builder addOrigins( return this; } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1765,7 +2015,9 @@ public Builder addOrigins(
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addOrigins( int index, com.google.maps.routing.v2.RouteMatrixOrigin.Builder builderForValue) { @@ -1779,6 +2031,8 @@ public Builder addOrigins( return this; } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1792,14 +2046,15 @@ public Builder addOrigins(
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllOrigins( java.lang.Iterable values) { if (originsBuilder_ == null) { ensureOriginsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, origins_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, origins_); onChanged(); } else { originsBuilder_.addAllMessages(values); @@ -1807,6 +2062,8 @@ public Builder addAllOrigins( return this; } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1820,7 +2077,9 @@ public Builder addAllOrigins(
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOrigins() { if (originsBuilder_ == null) { @@ -1833,6 +2092,8 @@ public Builder clearOrigins() { return this; } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1846,7 +2107,9 @@ public Builder clearOrigins() {
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeOrigins(int index) { if (originsBuilder_ == null) { @@ -1859,6 +2122,8 @@ public Builder removeOrigins(int index) { return this; } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1872,13 +2137,16 @@ public Builder removeOrigins(int index) {
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.maps.routing.v2.RouteMatrixOrigin.Builder getOriginsBuilder( - int index) { + public com.google.maps.routing.v2.RouteMatrixOrigin.Builder getOriginsBuilder(int index) { return getOriginsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1892,16 +2160,20 @@ public com.google.maps.routing.v2.RouteMatrixOrigin.Builder getOriginsBuilder(
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder( - int index) { + public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder(int index) { if (originsBuilder_ == null) { - return origins_.get(index); } else { + return origins_.get(index); + } else { return originsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1915,10 +2187,12 @@ public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getOriginsOrBuilderList() { + public java.util.List + getOriginsOrBuilderList() { if (originsBuilder_ != null) { return originsBuilder_.getMessageOrBuilderList(); } else { @@ -1926,6 +2200,8 @@ public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder } } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1939,13 +2215,17 @@ public com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.maps.routing.v2.RouteMatrixOrigin.Builder addOriginsBuilder() { - return getOriginsFieldBuilder().addBuilder( - com.google.maps.routing.v2.RouteMatrixOrigin.getDefaultInstance()); + return getOriginsFieldBuilder() + .addBuilder(com.google.maps.routing.v2.RouteMatrixOrigin.getDefaultInstance()); } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1959,14 +2239,17 @@ public com.google.maps.routing.v2.RouteMatrixOrigin.Builder addOriginsBuilder()
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.maps.routing.v2.RouteMatrixOrigin.Builder addOriginsBuilder( - int index) { - return getOriginsFieldBuilder().addBuilder( - index, com.google.maps.routing.v2.RouteMatrixOrigin.getDefaultInstance()); + public com.google.maps.routing.v2.RouteMatrixOrigin.Builder addOriginsBuilder(int index) { + return getOriginsFieldBuilder() + .addBuilder(index, com.google.maps.routing.v2.RouteMatrixOrigin.getDefaultInstance()); } /** + * + * *
      * Required. Array of origins, which determines the rows of the response
      * matrix. Several size restrictions apply to the cardinality of origins and
@@ -1980,46 +2263,61 @@ public com.google.maps.routing.v2.RouteMatrixOrigin.Builder addOriginsBuilder(
      * must be no greater than 50.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getOriginsBuilderList() { + public java.util.List + getOriginsBuilderList() { return getOriginsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteMatrixOrigin, com.google.maps.routing.v2.RouteMatrixOrigin.Builder, com.google.maps.routing.v2.RouteMatrixOriginOrBuilder> + com.google.maps.routing.v2.RouteMatrixOrigin, + com.google.maps.routing.v2.RouteMatrixOrigin.Builder, + com.google.maps.routing.v2.RouteMatrixOriginOrBuilder> getOriginsFieldBuilder() { if (originsBuilder_ == null) { - originsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteMatrixOrigin, com.google.maps.routing.v2.RouteMatrixOrigin.Builder, com.google.maps.routing.v2.RouteMatrixOriginOrBuilder>( - origins_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + originsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.RouteMatrixOrigin, + com.google.maps.routing.v2.RouteMatrixOrigin.Builder, + com.google.maps.routing.v2.RouteMatrixOriginOrBuilder>( + origins_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); origins_ = null; } return originsBuilder_; } private java.util.List destinations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDestinationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - destinations_ = new java.util.ArrayList(destinations_); + destinations_ = + new java.util.ArrayList( + destinations_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteMatrixDestination, com.google.maps.routing.v2.RouteMatrixDestination.Builder, com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder> destinationsBuilder_; + com.google.maps.routing.v2.RouteMatrixDestination, + com.google.maps.routing.v2.RouteMatrixDestination.Builder, + com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder> + destinationsBuilder_; /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getDestinationsList() { if (destinationsBuilder_ == null) { @@ -2029,12 +2327,16 @@ public java.util.List getDest } } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getDestinationsCount() { if (destinationsBuilder_ == null) { @@ -2044,12 +2346,16 @@ public int getDestinationsCount() { } } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.maps.routing.v2.RouteMatrixDestination getDestinations(int index) { if (destinationsBuilder_ == null) { @@ -2059,12 +2365,16 @@ public com.google.maps.routing.v2.RouteMatrixDestination getDestinations(int ind } } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDestinations( int index, com.google.maps.routing.v2.RouteMatrixDestination value) { @@ -2081,12 +2391,16 @@ public Builder setDestinations( return this; } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDestinations( int index, com.google.maps.routing.v2.RouteMatrixDestination.Builder builderForValue) { @@ -2100,12 +2414,16 @@ public Builder setDestinations( return this; } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addDestinations(com.google.maps.routing.v2.RouteMatrixDestination value) { if (destinationsBuilder_ == null) { @@ -2121,12 +2439,16 @@ public Builder addDestinations(com.google.maps.routing.v2.RouteMatrixDestination return this; } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addDestinations( int index, com.google.maps.routing.v2.RouteMatrixDestination value) { @@ -2143,12 +2465,16 @@ public Builder addDestinations( return this; } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addDestinations( com.google.maps.routing.v2.RouteMatrixDestination.Builder builderForValue) { @@ -2162,12 +2488,16 @@ public Builder addDestinations( return this; } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addDestinations( int index, com.google.maps.routing.v2.RouteMatrixDestination.Builder builderForValue) { @@ -2181,19 +2511,22 @@ public Builder addDestinations( return this; } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllDestinations( java.lang.Iterable values) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, destinations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destinations_); onChanged(); } else { destinationsBuilder_.addAllMessages(values); @@ -2201,12 +2534,16 @@ public Builder addAllDestinations( return this; } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDestinations() { if (destinationsBuilder_ == null) { @@ -2219,12 +2556,16 @@ public Builder clearDestinations() { return this; } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeDestinations(int index) { if (destinationsBuilder_ == null) { @@ -2237,42 +2578,55 @@ public Builder removeDestinations(int index) { return this; } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.maps.routing.v2.RouteMatrixDestination.Builder getDestinationsBuilder( int index) { return getDestinationsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuilder( int index) { if (destinationsBuilder_ == null) { - return destinations_.get(index); } else { + return destinations_.get(index); + } else { return destinationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getDestinationsOrBuilderList() { + public java.util.List + getDestinationsOrBuilderList() { if (destinationsBuilder_ != null) { return destinationsBuilder_.getMessageOrBuilderList(); } else { @@ -2280,52 +2634,68 @@ public com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestination } } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.maps.routing.v2.RouteMatrixDestination.Builder addDestinationsBuilder() { - return getDestinationsFieldBuilder().addBuilder( - com.google.maps.routing.v2.RouteMatrixDestination.getDefaultInstance()); + return getDestinationsFieldBuilder() + .addBuilder(com.google.maps.routing.v2.RouteMatrixDestination.getDefaultInstance()); } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.maps.routing.v2.RouteMatrixDestination.Builder addDestinationsBuilder( int index) { - return getDestinationsFieldBuilder().addBuilder( - index, com.google.maps.routing.v2.RouteMatrixDestination.getDefaultInstance()); + return getDestinationsFieldBuilder() + .addBuilder( + index, com.google.maps.routing.v2.RouteMatrixDestination.getDefaultInstance()); } /** + * + * *
      * Required. Array of destinations, which determines the columns of the
      * response matrix.
      * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getDestinationsBuilderList() { + public java.util.List + getDestinationsBuilderList() { return getDestinationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteMatrixDestination, com.google.maps.routing.v2.RouteMatrixDestination.Builder, com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder> + com.google.maps.routing.v2.RouteMatrixDestination, + com.google.maps.routing.v2.RouteMatrixDestination.Builder, + com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder> getDestinationsFieldBuilder() { if (destinationsBuilder_ == null) { - destinationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteMatrixDestination, com.google.maps.routing.v2.RouteMatrixDestination.Builder, com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder>( - destinations_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + destinationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.RouteMatrixDestination, + com.google.maps.routing.v2.RouteMatrixDestination.Builder, + com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder>( + destinations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); destinations_ = null; } return destinationsBuilder_; @@ -2333,22 +2703,33 @@ public com.google.maps.routing.v2.RouteMatrixDestination.Builder addDestinations private int travelMode_ = 0; /** + * + * *
      * Optional. Specifies the mode of transportation.
      * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for travelMode. */ - @java.lang.Override public int getTravelModeValue() { + @java.lang.Override + public int getTravelModeValue() { return travelMode_; } /** + * + * *
      * Optional. Specifies the mode of transportation.
      * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for travelMode to set. * @return This builder for chaining. */ @@ -2359,24 +2740,35 @@ public Builder setTravelModeValue(int value) { return this; } /** + * + * *
      * Optional. Specifies the mode of transportation.
      * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The travelMode. */ @java.lang.Override public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { - com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + com.google.maps.routing.v2.RouteTravelMode result = + com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; } /** + * + * *
      * Optional. Specifies the mode of transportation.
      * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The travelMode to set. * @return This builder for chaining. */ @@ -2390,11 +2782,16 @@ public Builder setTravelMode(com.google.maps.routing.v2.RouteTravelMode value) { return this; } /** + * + * *
      * Optional. Specifies the mode of transportation.
      * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearTravelMode() { @@ -2406,6 +2803,8 @@ public Builder clearTravelMode() { private int routingPreference_ = 0; /** + * + * *
      * Optional. Specifies how to compute the route. The server attempts to use
      * the selected routing preference to compute the route. If the routing
@@ -2414,13 +2813,19 @@ public Builder clearTravelMode() {
      * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for routingPreference. */ - @java.lang.Override public int getRoutingPreferenceValue() { + @java.lang.Override + public int getRoutingPreferenceValue() { return routingPreference_; } /** + * + * *
      * Optional. Specifies how to compute the route. The server attempts to use
      * the selected routing preference to compute the route. If the routing
@@ -2429,7 +2834,10 @@ public Builder clearTravelMode() {
      * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for routingPreference to set. * @return This builder for chaining. */ @@ -2440,6 +2848,8 @@ public Builder setRoutingPreferenceValue(int value) { return this; } /** + * + * *
      * Optional. Specifies how to compute the route. The server attempts to use
      * the selected routing preference to compute the route. If the routing
@@ -2448,15 +2858,21 @@ public Builder setRoutingPreferenceValue(int value) {
      * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The routingPreference. */ @java.lang.Override public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() { - com.google.maps.routing.v2.RoutingPreference result = com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); + com.google.maps.routing.v2.RoutingPreference result = + com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); return result == null ? com.google.maps.routing.v2.RoutingPreference.UNRECOGNIZED : result; } /** + * + * *
      * Optional. Specifies how to compute the route. The server attempts to use
      * the selected routing preference to compute the route. If the routing
@@ -2465,7 +2881,10 @@ public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() {
      * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The routingPreference to set. * @return This builder for chaining. */ @@ -2479,6 +2898,8 @@ public Builder setRoutingPreference(com.google.maps.routing.v2.RoutingPreference return this; } /** + * + * *
      * Optional. Specifies how to compute the route. The server attempts to use
      * the selected routing preference to compute the route. If the routing
@@ -2487,7 +2908,10 @@ public Builder setRoutingPreference(com.google.maps.routing.v2.RoutingPreference
      * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearRoutingPreference() { @@ -2499,8 +2923,13 @@ public Builder clearRoutingPreference() { private com.google.protobuf.Timestamp departureTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> departureTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + departureTimeBuilder_; /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -2509,13 +2938,18 @@ public Builder clearRoutingPreference() {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the departureTime field is set. */ public boolean hasDepartureTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -2524,17 +2958,24 @@ public boolean hasDepartureTime() {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The departureTime. */ public com.google.protobuf.Timestamp getDepartureTime() { if (departureTimeBuilder_ == null) { - return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : departureTime_; } else { return departureTimeBuilder_.getMessage(); } } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -2543,7 +2984,9 @@ public com.google.protobuf.Timestamp getDepartureTime() {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDepartureTime(com.google.protobuf.Timestamp value) { if (departureTimeBuilder_ == null) { @@ -2559,6 +3002,8 @@ public Builder setDepartureTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -2567,10 +3012,11 @@ public Builder setDepartureTime(com.google.protobuf.Timestamp value) {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDepartureTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDepartureTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (departureTimeBuilder_ == null) { departureTime_ = builderForValue.build(); } else { @@ -2581,6 +3027,8 @@ public Builder setDepartureTime( return this; } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -2589,13 +3037,15 @@ public Builder setDepartureTime(
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeDepartureTime(com.google.protobuf.Timestamp value) { if (departureTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - departureTime_ != null && - departureTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && departureTime_ != null + && departureTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDepartureTimeBuilder().mergeFrom(value); } else { departureTime_ = value; @@ -2608,6 +3058,8 @@ public Builder mergeDepartureTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -2616,7 +3068,9 @@ public Builder mergeDepartureTime(com.google.protobuf.Timestamp value) {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDepartureTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2629,6 +3083,8 @@ public Builder clearDepartureTime() { return this; } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -2637,7 +3093,9 @@ public Builder clearDepartureTime() {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getDepartureTimeBuilder() { bitField0_ |= 0x00000010; @@ -2645,6 +3103,8 @@ public com.google.protobuf.Timestamp.Builder getDepartureTimeBuilder() { return getDepartureTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -2653,17 +3113,22 @@ public com.google.protobuf.Timestamp.Builder getDepartureTimeBuilder() {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { if (departureTimeBuilder_ != null) { return departureTimeBuilder_.getMessageOrBuilder(); } else { - return departureTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : departureTime_; } } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -2672,17 +3137,22 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getDepartureTimeFieldBuilder() { if (departureTimeBuilder_ == null) { - departureTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDepartureTime(), - getParentForChildren(), - isClean()); + departureTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDepartureTime(), getParentForChildren(), isClean()); departureTime_ = null; } return departureTimeBuilder_; @@ -2690,8 +3160,13 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { private com.google.protobuf.Timestamp arrivalTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> arrivalTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + arrivalTimeBuilder_; /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -2700,13 +3175,17 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the arrivalTime field is set. */ public boolean hasArrivalTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -2715,17 +3194,23 @@ public boolean hasArrivalTime() {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The arrivalTime. */ public com.google.protobuf.Timestamp getArrivalTime() { if (arrivalTimeBuilder_ == null) { - return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + return arrivalTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : arrivalTime_; } else { return arrivalTimeBuilder_.getMessage(); } } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -2734,7 +3219,8 @@ public com.google.protobuf.Timestamp getArrivalTime() {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setArrivalTime(com.google.protobuf.Timestamp value) { if (arrivalTimeBuilder_ == null) { @@ -2750,6 +3236,8 @@ public Builder setArrivalTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -2758,10 +3246,10 @@ public Builder setArrivalTime(com.google.protobuf.Timestamp value) {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setArrivalTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setArrivalTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (arrivalTimeBuilder_ == null) { arrivalTime_ = builderForValue.build(); } else { @@ -2772,6 +3260,8 @@ public Builder setArrivalTime( return this; } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -2780,13 +3270,14 @@ public Builder setArrivalTime(
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeArrivalTime(com.google.protobuf.Timestamp value) { if (arrivalTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - arrivalTime_ != null && - arrivalTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && arrivalTime_ != null + && arrivalTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getArrivalTimeBuilder().mergeFrom(value); } else { arrivalTime_ = value; @@ -2799,6 +3290,8 @@ public Builder mergeArrivalTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -2807,7 +3300,8 @@ public Builder mergeArrivalTime(com.google.protobuf.Timestamp value) {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearArrivalTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2820,6 +3314,8 @@ public Builder clearArrivalTime() { return this; } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -2828,7 +3324,8 @@ public Builder clearArrivalTime() {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getArrivalTimeBuilder() { bitField0_ |= 0x00000020; @@ -2836,6 +3333,8 @@ public com.google.protobuf.Timestamp.Builder getArrivalTimeBuilder() { return getArrivalTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -2844,17 +3343,21 @@ public com.google.protobuf.Timestamp.Builder getArrivalTimeBuilder() {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { if (arrivalTimeBuilder_ != null) { return arrivalTimeBuilder_.getMessageOrBuilder(); } else { - return arrivalTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + return arrivalTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : arrivalTime_; } } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -2863,17 +3366,21 @@ public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getArrivalTimeFieldBuilder() { if (arrivalTimeBuilder_ == null) { - arrivalTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getArrivalTime(), - getParentForChildren(), - isClean()); + arrivalTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getArrivalTime(), getParentForChildren(), isClean()); arrivalTime_ = null; } return arrivalTimeBuilder_; @@ -2881,6 +3388,8 @@ public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { private java.lang.Object languageCode_ = ""; /** + * + * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -2891,13 +3400,13 @@ public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; 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(); languageCode_ = s; return s; @@ -2906,6 +3415,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -2916,15 +3427,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -2932,6 +3442,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -2942,18 +3454,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -2964,6 +3480,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -2973,6 +3490,8 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -2983,12 +3502,14 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000040; @@ -2998,6 +3519,8 @@ public Builder setLanguageCodeBytes( private java.lang.Object regionCode_ = ""; /** + * + * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -3005,13 +3528,13 @@ public Builder setLanguageCodeBytes(
      * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The regionCode. */ public java.lang.String getRegionCode() { java.lang.Object ref = regionCode_; 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(); regionCode_ = s; return s; @@ -3020,6 +3543,8 @@ public java.lang.String getRegionCode() { } } /** + * + * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -3027,15 +3552,14 @@ public java.lang.String getRegionCode() {
      * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for regionCode. */ - public com.google.protobuf.ByteString - getRegionCodeBytes() { + public com.google.protobuf.ByteString getRegionCodeBytes() { java.lang.Object ref = regionCode_; 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); regionCode_ = b; return b; } else { @@ -3043,6 +3567,8 @@ public java.lang.String getRegionCode() { } } /** + * + * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -3050,18 +3576,22 @@ public java.lang.String getRegionCode() {
      * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } regionCode_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -3069,6 +3599,7 @@ public Builder setRegionCode(
      * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRegionCode() { @@ -3078,6 +3609,8 @@ public Builder clearRegionCode() { return this; } /** + * + * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -3085,12 +3618,14 @@ public Builder clearRegionCode() {
      * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); regionCode_ = value; bitField0_ |= 0x00000080; @@ -3099,7 +3634,8 @@ public Builder setRegionCodeBytes( } private java.util.List extraComputations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureExtraComputationsIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { extraComputations_ = new java.util.ArrayList(extraComputations_); @@ -3107,6 +3643,8 @@ private void ensureExtraComputationsIsMutable() { } } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3114,14 +3652,21 @@ private void ensureExtraComputationsIsMutable() {
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the extraComputations. */ - public java.util.List getExtraComputationsList() { + public java.util.List + getExtraComputationsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>(extraComputations_, extraComputations_converter_); + java.lang.Integer, com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>( + extraComputations_, extraComputations_converter_); } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3129,13 +3674,18 @@ public java.util.List
      *
-     * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     *
      * @return The count of extraComputations.
      */
     public int getExtraComputationsCount() {
       return extraComputations_.size();
     }
     /**
+     *
+     *
      * 
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3143,14 +3693,20 @@ public int getExtraComputationsCount() {
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The extraComputations at the given index. */ - public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation getExtraComputations(int index) { + public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation + getExtraComputations(int index) { return extraComputations_converter_.convert(extraComputations_.get(index)); } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3158,7 +3714,10 @@ public com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation get
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The extraComputations to set. * @return This builder for chaining. @@ -3174,6 +3733,8 @@ public Builder setExtraComputations( return this; } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3181,11 +3742,15 @@ public Builder setExtraComputations(
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The extraComputations to add. * @return This builder for chaining. */ - public Builder addExtraComputations(com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation value) { + public Builder addExtraComputations( + com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation value) { if (value == null) { throw new NullPointerException(); } @@ -3195,6 +3760,8 @@ public Builder addExtraComputations(com.google.maps.routing.v2.ComputeRouteMatri return this; } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3202,12 +3769,17 @@ public Builder addExtraComputations(com.google.maps.routing.v2.ComputeRouteMatri
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The extraComputations to add. * @return This builder for chaining. */ public Builder addAllExtraComputations( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation> + values) { ensureExtraComputationsIsMutable(); for (com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation value : values) { extraComputations_.add(value.getNumber()); @@ -3216,6 +3788,8 @@ public Builder addAllExtraComputations( return this; } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3223,7 +3797,10 @@ public Builder addAllExtraComputations(
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearExtraComputations() { @@ -3233,6 +3810,8 @@ public Builder clearExtraComputations() { return this; } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3240,14 +3819,18 @@ public Builder clearExtraComputations() {
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for extraComputations. */ - public java.util.List - getExtraComputationsValueList() { + public java.util.List getExtraComputationsValueList() { return java.util.Collections.unmodifiableList(extraComputations_); } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3255,7 +3838,10 @@ public Builder clearExtraComputations() {
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of extraComputations at the given index. */ @@ -3263,6 +3849,8 @@ public int getExtraComputationsValue(int index) { return extraComputations_.get(index); } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3270,19 +3858,23 @@ public int getExtraComputationsValue(int index) {
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for extraComputations to set. * @return This builder for chaining. */ - public Builder setExtraComputationsValue( - int index, int value) { + public Builder setExtraComputationsValue(int index, int value) { ensureExtraComputationsIsMutable(); extraComputations_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3290,7 +3882,10 @@ public Builder setExtraComputationsValue(
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for extraComputations to add. * @return This builder for chaining. */ @@ -3301,6 +3896,8 @@ public Builder addExtraComputationsValue(int value) { return this; } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -3308,12 +3905,14 @@ public Builder addExtraComputationsValue(int value) {
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The enum numeric values on the wire for extraComputations to add. * @return This builder for chaining. */ - public Builder addAllExtraComputationsValue( - java.lang.Iterable values) { + public Builder addAllExtraComputationsValue(java.lang.Iterable values) { ensureExtraComputationsIsMutable(); for (int value : values) { extraComputations_.add(value); @@ -3324,6 +3923,8 @@ public Builder addAllExtraComputationsValue( private int trafficModel_ = 0; /** + * + * *
      * Optional. Specifies the assumptions to use when calculating time in
      * traffic. This setting affects the value returned in the duration field in
@@ -3336,13 +3937,19 @@ public Builder addAllExtraComputationsValue(
      * specified.
      * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for trafficModel. */ - @java.lang.Override public int getTrafficModelValue() { + @java.lang.Override + public int getTrafficModelValue() { return trafficModel_; } /** + * + * *
      * Optional. Specifies the assumptions to use when calculating time in
      * traffic. This setting affects the value returned in the duration field in
@@ -3355,7 +3962,10 @@ public Builder addAllExtraComputationsValue(
      * specified.
      * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for trafficModel to set. * @return This builder for chaining. */ @@ -3366,6 +3976,8 @@ public Builder setTrafficModelValue(int value) { return this; } /** + * + * *
      * Optional. Specifies the assumptions to use when calculating time in
      * traffic. This setting affects the value returned in the duration field in
@@ -3378,15 +3990,21 @@ public Builder setTrafficModelValue(int value) {
      * specified.
      * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The trafficModel. */ @java.lang.Override public com.google.maps.routing.v2.TrafficModel getTrafficModel() { - com.google.maps.routing.v2.TrafficModel result = com.google.maps.routing.v2.TrafficModel.forNumber(trafficModel_); + com.google.maps.routing.v2.TrafficModel result = + com.google.maps.routing.v2.TrafficModel.forNumber(trafficModel_); return result == null ? com.google.maps.routing.v2.TrafficModel.UNRECOGNIZED : result; } /** + * + * *
      * Optional. Specifies the assumptions to use when calculating time in
      * traffic. This setting affects the value returned in the duration field in
@@ -3399,7 +4017,10 @@ public com.google.maps.routing.v2.TrafficModel getTrafficModel() {
      * specified.
      * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The trafficModel to set. * @return This builder for chaining. */ @@ -3413,6 +4034,8 @@ public Builder setTrafficModel(com.google.maps.routing.v2.TrafficModel value) { return this; } /** + * + * *
      * Optional. Specifies the assumptions to use when calculating time in
      * traffic. This setting affects the value returned in the duration field in
@@ -3425,7 +4048,10 @@ public Builder setTrafficModel(com.google.maps.routing.v2.TrafficModel value) {
      * specified.
      * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearTrafficModel() { @@ -3437,8 +4063,13 @@ public Builder clearTrafficModel() { private com.google.maps.routing.v2.TransitPreferences transitPreferences_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitPreferences, com.google.maps.routing.v2.TransitPreferences.Builder, com.google.maps.routing.v2.TransitPreferencesOrBuilder> transitPreferencesBuilder_; + com.google.maps.routing.v2.TransitPreferences, + com.google.maps.routing.v2.TransitPreferences.Builder, + com.google.maps.routing.v2.TransitPreferencesOrBuilder> + transitPreferencesBuilder_; /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -3446,13 +4077,18 @@ public Builder clearTrafficModel() {
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transitPreferences field is set. */ public boolean hasTransitPreferences() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -3460,17 +4096,24 @@ public boolean hasTransitPreferences() {
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transitPreferences. */ public com.google.maps.routing.v2.TransitPreferences getTransitPreferences() { if (transitPreferencesBuilder_ == null) { - return transitPreferences_ == null ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + return transitPreferences_ == null + ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() + : transitPreferences_; } else { return transitPreferencesBuilder_.getMessage(); } } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -3478,7 +4121,9 @@ public com.google.maps.routing.v2.TransitPreferences getTransitPreferences() {
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTransitPreferences(com.google.maps.routing.v2.TransitPreferences value) { if (transitPreferencesBuilder_ == null) { @@ -3494,6 +4139,8 @@ public Builder setTransitPreferences(com.google.maps.routing.v2.TransitPreferenc return this; } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -3501,7 +4148,9 @@ public Builder setTransitPreferences(com.google.maps.routing.v2.TransitPreferenc
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTransitPreferences( com.google.maps.routing.v2.TransitPreferences.Builder builderForValue) { @@ -3515,6 +4164,8 @@ public Builder setTransitPreferences( return this; } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -3522,13 +4173,16 @@ public Builder setTransitPreferences(
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeTransitPreferences(com.google.maps.routing.v2.TransitPreferences value) { if (transitPreferencesBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - transitPreferences_ != null && - transitPreferences_ != com.google.maps.routing.v2.TransitPreferences.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) + && transitPreferences_ != null + && transitPreferences_ + != com.google.maps.routing.v2.TransitPreferences.getDefaultInstance()) { getTransitPreferencesBuilder().mergeFrom(value); } else { transitPreferences_ = value; @@ -3541,6 +4195,8 @@ public Builder mergeTransitPreferences(com.google.maps.routing.v2.TransitPrefere return this; } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -3548,7 +4204,9 @@ public Builder mergeTransitPreferences(com.google.maps.routing.v2.TransitPrefere
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTransitPreferences() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3561,6 +4219,8 @@ public Builder clearTransitPreferences() { return this; } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -3568,7 +4228,9 @@ public Builder clearTransitPreferences() {
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.maps.routing.v2.TransitPreferences.Builder getTransitPreferencesBuilder() { bitField0_ |= 0x00000400; @@ -3576,6 +4238,8 @@ public com.google.maps.routing.v2.TransitPreferences.Builder getTransitPreferenc return getTransitPreferencesFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -3583,17 +4247,22 @@ public com.google.maps.routing.v2.TransitPreferences.Builder getTransitPreferenc
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.maps.routing.v2.TransitPreferencesOrBuilder getTransitPreferencesOrBuilder() { if (transitPreferencesBuilder_ != null) { return transitPreferencesBuilder_.getMessageOrBuilder(); } else { - return transitPreferences_ == null ? - com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + return transitPreferences_ == null + ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() + : transitPreferences_; } } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -3601,24 +4270,29 @@ public com.google.maps.routing.v2.TransitPreferencesOrBuilder getTransitPreferen
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitPreferences, com.google.maps.routing.v2.TransitPreferences.Builder, com.google.maps.routing.v2.TransitPreferencesOrBuilder> + com.google.maps.routing.v2.TransitPreferences, + com.google.maps.routing.v2.TransitPreferences.Builder, + com.google.maps.routing.v2.TransitPreferencesOrBuilder> getTransitPreferencesFieldBuilder() { if (transitPreferencesBuilder_ == null) { - transitPreferencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitPreferences, com.google.maps.routing.v2.TransitPreferences.Builder, com.google.maps.routing.v2.TransitPreferencesOrBuilder>( - getTransitPreferences(), - getParentForChildren(), - isClean()); + transitPreferencesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitPreferences, + com.google.maps.routing.v2.TransitPreferences.Builder, + com.google.maps.routing.v2.TransitPreferencesOrBuilder>( + getTransitPreferences(), getParentForChildren(), isClean()); transitPreferences_ = null; } return transitPreferencesBuilder_; } + @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); } @@ -3628,12 +4302,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.ComputeRouteMatrixRequest) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.ComputeRouteMatrixRequest) private static final com.google.maps.routing.v2.ComputeRouteMatrixRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.ComputeRouteMatrixRequest(); } @@ -3642,27 +4316,27 @@ public static com.google.maps.routing.v2.ComputeRouteMatrixRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeRouteMatrixRequest 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 ComputeRouteMatrixRequest 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; @@ -3677,6 +4351,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.maps.routing.v2.ComputeRouteMatrixRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java index 050b66b0cbc4..5ded30ca7cc3 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRouteMatrixRequestOrBuilder.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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; -public interface ComputeRouteMatrixRequestOrBuilder extends +public interface ComputeRouteMatrixRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.ComputeRouteMatrixRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -21,11 +39,14 @@ public interface ComputeRouteMatrixRequestOrBuilder extends
    * must be no greater than 50.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getOriginsList(); + java.util.List getOriginsList(); /** + * + * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -39,10 +60,14 @@ public interface ComputeRouteMatrixRequestOrBuilder extends
    * must be no greater than 50.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.maps.routing.v2.RouteMatrixOrigin getOrigins(int index); /** + * + * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -56,10 +81,14 @@ public interface ComputeRouteMatrixRequestOrBuilder extends
    * must be no greater than 50.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getOriginsCount(); /** + * + * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -73,11 +102,15 @@ public interface ComputeRouteMatrixRequestOrBuilder extends
    * must be no greater than 50.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getOriginsOrBuilderList(); /** + * + * *
    * Required. Array of origins, which determines the rows of the response
    * matrix. Several size restrictions apply to the cardinality of origins and
@@ -91,80 +124,111 @@ public interface ComputeRouteMatrixRequestOrBuilder extends
    * must be no greater than 50.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixOrigin origins = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder( - int index); + com.google.maps.routing.v2.RouteMatrixOriginOrBuilder getOriginsOrBuilder(int index); /** + * + * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getDestinationsList(); + java.util.List getDestinationsList(); /** + * + * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.maps.routing.v2.RouteMatrixDestination getDestinations(int index); /** + * + * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ int getDestinationsCount(); /** + * + * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List getDestinationsOrBuilderList(); /** + * + * *
    * Required. Array of destinations, which determines the columns of the
    * response matrix.
    * 
* - * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.maps.routing.v2.RouteMatrixDestination destinations = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuilder( - int index); + com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuilder(int index); /** + * + * *
    * Optional. Specifies the mode of transportation.
    * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for travelMode. */ int getTravelModeValue(); /** + * + * *
    * Optional. Specifies the mode of transportation.
    * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The travelMode. */ com.google.maps.routing.v2.RouteTravelMode getTravelMode(); /** + * + * *
    * Optional. Specifies how to compute the route. The server attempts to use
    * the selected routing preference to compute the route. If the routing
@@ -173,11 +237,16 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for routingPreference. */ int getRoutingPreferenceValue(); /** + * + * *
    * Optional. Specifies how to compute the route. The server attempts to use
    * the selected routing preference to compute the route. If the routing
@@ -186,12 +255,17 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The routingPreference. */ com.google.maps.routing.v2.RoutingPreference getRoutingPreference(); /** + * + * *
    * Optional. The departure time. If you don't set this value, then this value
    * defaults to the time that you made the request.
@@ -200,11 +274,15 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the departureTime field is set. */ boolean hasDepartureTime(); /** + * + * *
    * Optional. The departure time. If you don't set this value, then this value
    * defaults to the time that you made the request.
@@ -213,11 +291,15 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The departureTime. */ com.google.protobuf.Timestamp getDepartureTime(); /** + * + * *
    * Optional. The departure time. If you don't set this value, then this value
    * defaults to the time that you made the request.
@@ -226,11 +308,14 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp departure_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder(); /** + * + * *
    * Optional. The arrival time.
    * NOTE: Can only be set when
@@ -239,11 +324,15 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * both.
    * 
* - * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the arrivalTime field is set. */ boolean hasArrivalTime(); /** + * + * *
    * Optional. The arrival time.
    * NOTE: Can only be set when
@@ -252,11 +341,15 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * both.
    * 
* - * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The arrivalTime. */ com.google.protobuf.Timestamp getArrivalTime(); /** + * + * *
    * Optional. The arrival time.
    * NOTE: Can only be set when
@@ -265,11 +358,14 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * both.
    * 
* - * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder(); /** + * + * *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -280,10 +376,13 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -294,12 +393,14 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -307,10 +408,13 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The regionCode. */ java.lang.String getRegionCode(); /** + * + * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -318,12 +422,14 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * 
* * string region_code = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for regionCode. */ - com.google.protobuf.ByteString - getRegionCodeBytes(); + com.google.protobuf.ByteString getRegionCodeBytes(); /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -331,11 +437,17 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the extraComputations. */ - java.util.List getExtraComputationsList(); + java.util.List + getExtraComputationsList(); /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -343,11 +455,16 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of extraComputations. */ int getExtraComputationsCount(); /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -355,12 +472,18 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The extraComputations at the given index. */ - com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation getExtraComputations(int index); + com.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation getExtraComputations( + int index); /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -368,12 +491,16 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for extraComputations. */ - java.util.List - getExtraComputationsValueList(); + java.util.List getExtraComputationsValueList(); /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -381,13 +508,18 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation extra_computations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of extraComputations at the given index. */ int getExtraComputationsValue(int index); /** + * + * *
    * Optional. Specifies the assumptions to use when calculating time in
    * traffic. This setting affects the value returned in the duration field in
@@ -400,11 +532,16 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * specified.
    * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for trafficModel. */ int getTrafficModelValue(); /** + * + * *
    * Optional. Specifies the assumptions to use when calculating time in
    * traffic. This setting affects the value returned in the duration field in
@@ -417,12 +554,17 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * specified.
    * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The trafficModel. */ com.google.maps.routing.v2.TrafficModel getTrafficModel(); /** + * + * *
    * Optional. Specifies preferences that influence the route returned for
    * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -430,11 +572,16 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * `TRANSIT`.
    * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transitPreferences field is set. */ boolean hasTransitPreferences(); /** + * + * *
    * Optional. Specifies preferences that influence the route returned for
    * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -442,11 +589,16 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * `TRANSIT`.
    * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transitPreferences. */ com.google.maps.routing.v2.TransitPreferences getTransitPreferences(); /** + * + * *
    * Optional. Specifies preferences that influence the route returned for
    * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -454,7 +606,9 @@ com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder getDestinationsOrBuil
    * `TRANSIT`.
    * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.maps.routing.v2.TransitPreferencesOrBuilder getTransitPreferencesOrBuilder(); } diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java similarity index 70% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java index 6a6fea534235..77c4a1452cdb 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequest.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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; /** + * + * *
  * ComputeRoutes request message.
  * 
* * Protobuf type {@code google.maps.routing.v2.ComputeRoutesRequest} */ -public final class ComputeRoutesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ComputeRoutesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.ComputeRoutesRequest) ComputeRoutesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ComputeRoutesRequest.newBuilder() to construct. private ComputeRoutesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ComputeRoutesRequest() { intermediates_ = java.util.Collections.emptyList(); travelMode_ = 0; @@ -35,34 +53,38 @@ private ComputeRoutesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ComputeRoutesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.ComputeRoutesRequest.class, com.google.maps.routing.v2.ComputeRoutesRequest.Builder.class); + com.google.maps.routing.v2.ComputeRoutesRequest.class, + com.google.maps.routing.v2.ComputeRoutesRequest.Builder.class); } /** + * + * *
    * A supported reference route on the ComputeRoutesRequest.
    * 
* * Protobuf enum {@code google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute} */ - public enum ReferenceRoute - implements com.google.protobuf.ProtocolMessageEnum { + public enum ReferenceRoute implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not used. Requests containing this value fail.
      * 
@@ -71,6 +93,8 @@ public enum ReferenceRoute */ REFERENCE_ROUTE_UNSPECIFIED(0), /** + * + * *
      * Fuel efficient route. Routes labeled with this value are determined to be
      * optimized for parameters such as fuel consumption.
@@ -83,6 +107,8 @@ public enum ReferenceRoute
     ;
 
     /**
+     *
+     *
      * 
      * Not used. Requests containing this value fail.
      * 
@@ -91,6 +117,8 @@ public enum ReferenceRoute */ public static final int REFERENCE_ROUTE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Fuel efficient route. Routes labeled with this value are determined to be
      * optimized for parameters such as fuel consumption.
@@ -100,7 +128,6 @@ public enum ReferenceRoute
      */
     public static final int FUEL_EFFICIENT_VALUE = 1;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -125,48 +152,47 @@ public static ReferenceRoute valueOf(int value) {
      */
     public static ReferenceRoute forNumber(int value) {
       switch (value) {
-        case 0: return REFERENCE_ROUTE_UNSPECIFIED;
-        case 1: return FUEL_EFFICIENT;
-        default: return null;
+        case 0:
+          return REFERENCE_ROUTE_UNSPECIFIED;
+        case 1:
+          return FUEL_EFFICIENT;
+        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<
-        ReferenceRoute> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public ReferenceRoute findValueByNumber(int number) {
-              return ReferenceRoute.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 ReferenceRoute findValueByNumber(int number) {
+            return ReferenceRoute.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.maps.routing.v2.ComputeRoutesRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final ReferenceRoute[] VALUES = values();
 
-    public static ReferenceRoute valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static ReferenceRoute 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;
@@ -184,15 +210,18 @@ private ReferenceRoute(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Extra computations to perform while completing the request.
    * 
* * Protobuf enum {@code google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation} */ - public enum ExtraComputation - implements com.google.protobuf.ProtocolMessageEnum { + public enum ExtraComputation implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Not used. Requests containing this value will fail.
      * 
@@ -201,6 +230,8 @@ public enum ExtraComputation */ EXTRA_COMPUTATION_UNSPECIFIED(0), /** + * + * *
      * Toll information for the route(s).
      * 
@@ -209,6 +240,8 @@ public enum ExtraComputation */ TOLLS(1), /** + * + * *
      * Estimated fuel consumption for the route(s).
      * 
@@ -217,6 +250,8 @@ public enum ExtraComputation */ FUEL_CONSUMPTION(2), /** + * + * *
      * Traffic aware polylines for the route(s).
      * 
@@ -225,6 +260,8 @@ public enum ExtraComputation */ TRAFFIC_ON_POLYLINE(3), /** + * + * *
      * [Navigation
      * Instructions][google.maps.routing.v2.NavigationInstructions.instructions]
@@ -240,6 +277,8 @@ public enum ExtraComputation
     ;
 
     /**
+     *
+     *
      * 
      * Not used. Requests containing this value will fail.
      * 
@@ -248,6 +287,8 @@ public enum ExtraComputation */ public static final int EXTRA_COMPUTATION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Toll information for the route(s).
      * 
@@ -256,6 +297,8 @@ public enum ExtraComputation */ public static final int TOLLS_VALUE = 1; /** + * + * *
      * Estimated fuel consumption for the route(s).
      * 
@@ -264,6 +307,8 @@ public enum ExtraComputation */ public static final int FUEL_CONSUMPTION_VALUE = 2; /** + * + * *
      * Traffic aware polylines for the route(s).
      * 
@@ -272,6 +317,8 @@ public enum ExtraComputation */ public static final int TRAFFIC_ON_POLYLINE_VALUE = 3; /** + * + * *
      * [Navigation
      * Instructions][google.maps.routing.v2.NavigationInstructions.instructions]
@@ -284,7 +331,6 @@ public enum ExtraComputation
      */
     public static final int HTML_FORMATTED_NAVIGATION_INSTRUCTIONS_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -309,41 +355,46 @@ public static ExtraComputation valueOf(int value) {
      */
     public static ExtraComputation forNumber(int value) {
       switch (value) {
-        case 0: return EXTRA_COMPUTATION_UNSPECIFIED;
-        case 1: return TOLLS;
-        case 2: return FUEL_CONSUMPTION;
-        case 3: return TRAFFIC_ON_POLYLINE;
-        case 4: return HTML_FORMATTED_NAVIGATION_INSTRUCTIONS;
-        default: return null;
+        case 0:
+          return EXTRA_COMPUTATION_UNSPECIFIED;
+        case 1:
+          return TOLLS;
+        case 2:
+          return FUEL_CONSUMPTION;
+        case 3:
+          return TRAFFIC_ON_POLYLINE;
+        case 4:
+          return HTML_FORMATTED_NAVIGATION_INSTRUCTIONS;
+        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<
-        ExtraComputation> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public ExtraComputation findValueByNumber(int number) {
-              return ExtraComputation.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 ExtraComputation findValueByNumber(int number) {
+                return ExtraComputation.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.maps.routing.v2.ComputeRoutesRequest.getDescriptor().getEnumTypes().get(1);
     }
 
@@ -352,8 +403,7 @@ public ExtraComputation findValueByNumber(int number) {
     public static ExtraComputation 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;
@@ -373,11 +423,15 @@ private ExtraComputation(int value) {
   public static final int ORIGIN_FIELD_NUMBER = 1;
   private com.google.maps.routing.v2.Waypoint origin_;
   /**
+   *
+   *
    * 
    * Required. Origin waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the origin field is set. */ @java.lang.Override @@ -385,11 +439,15 @@ public boolean hasOrigin() { return origin_ != null; } /** + * + * *
    * Required. Origin waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The origin. */ @java.lang.Override @@ -397,11 +455,14 @@ public com.google.maps.routing.v2.Waypoint getOrigin() { return origin_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : origin_; } /** + * + * *
    * Required. Origin waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.maps.routing.v2.WaypointOrBuilder getOriginOrBuilder() { @@ -411,11 +472,16 @@ public com.google.maps.routing.v2.WaypointOrBuilder getOriginOrBuilder() { public static final int DESTINATION_FIELD_NUMBER = 2; private com.google.maps.routing.v2.Waypoint destination_; /** + * + * *
    * Required. Destination waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the destination field is set. */ @java.lang.Override @@ -423,129 +489,177 @@ public boolean hasDestination() { return destination_ != null; } /** + * + * *
    * Required. Destination waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The destination. */ @java.lang.Override public com.google.maps.routing.v2.Waypoint getDestination() { - return destination_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : destination_; + return destination_ == null + ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() + : destination_; } /** + * + * *
    * Required. Destination waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.maps.routing.v2.WaypointOrBuilder getDestinationOrBuilder() { - return destination_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : destination_; + return destination_ == null + ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() + : destination_; } public static final int INTERMEDIATES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List intermediates_; /** + * + * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getIntermediatesList() { return intermediates_; } /** + * + * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getIntermediatesOrBuilderList() { return intermediates_; } /** + * + * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getIntermediatesCount() { return intermediates_.size(); } /** + * + * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.maps.routing.v2.Waypoint getIntermediates(int index) { return intermediates_.get(index); } /** + * + * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder( - int index) { + public com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(int index) { return intermediates_.get(index); } public static final int TRAVEL_MODE_FIELD_NUMBER = 4; private int travelMode_ = 0; /** + * + * *
    * Optional. Specifies the mode of transportation.
    * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for travelMode. */ - @java.lang.Override public int getTravelModeValue() { + @java.lang.Override + public int getTravelModeValue() { return travelMode_; } /** + * + * *
    * Optional. Specifies the mode of transportation.
    * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The travelMode. */ - @java.lang.Override public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { - com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + @java.lang.Override + public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { + com.google.maps.routing.v2.RouteTravelMode result = + com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; } public static final int ROUTING_PREFERENCE_FIELD_NUMBER = 5; private int routingPreference_ = 0; /** + * + * *
    * Optional. Specifies how to compute the route. The server
    * attempts to use the selected routing preference to compute the route. If
@@ -554,13 +668,19 @@ public com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for routingPreference. */ - @java.lang.Override public int getRoutingPreferenceValue() { + @java.lang.Override + public int getRoutingPreferenceValue() { return routingPreference_; } /** + * + * *
    * Optional. Specifies how to compute the route. The server
    * attempts to use the selected routing preference to compute the route. If
@@ -569,69 +689,102 @@ public com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The routingPreference. */ - @java.lang.Override public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() { - com.google.maps.routing.v2.RoutingPreference result = com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); + @java.lang.Override + public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() { + com.google.maps.routing.v2.RoutingPreference result = + com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); return result == null ? com.google.maps.routing.v2.RoutingPreference.UNRECOGNIZED : result; } public static final int POLYLINE_QUALITY_FIELD_NUMBER = 6; private int polylineQuality_ = 0; /** + * + * *
    * Optional. Specifies your preference for the quality of the polyline.
    * 
* - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for polylineQuality. */ - @java.lang.Override public int getPolylineQualityValue() { + @java.lang.Override + public int getPolylineQualityValue() { return polylineQuality_; } /** + * + * *
    * Optional. Specifies your preference for the quality of the polyline.
    * 
* - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The polylineQuality. */ - @java.lang.Override public com.google.maps.routing.v2.PolylineQuality getPolylineQuality() { - com.google.maps.routing.v2.PolylineQuality result = com.google.maps.routing.v2.PolylineQuality.forNumber(polylineQuality_); + @java.lang.Override + public com.google.maps.routing.v2.PolylineQuality getPolylineQuality() { + com.google.maps.routing.v2.PolylineQuality result = + com.google.maps.routing.v2.PolylineQuality.forNumber(polylineQuality_); return result == null ? com.google.maps.routing.v2.PolylineQuality.UNRECOGNIZED : result; } public static final int POLYLINE_ENCODING_FIELD_NUMBER = 12; private int polylineEncoding_ = 0; /** + * + * *
    * Optional. Specifies the preferred encoding for the polyline.
    * 
* - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for polylineEncoding. */ - @java.lang.Override public int getPolylineEncodingValue() { + @java.lang.Override + public int getPolylineEncodingValue() { return polylineEncoding_; } /** + * + * *
    * Optional. Specifies the preferred encoding for the polyline.
    * 
* - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The polylineEncoding. */ - @java.lang.Override public com.google.maps.routing.v2.PolylineEncoding getPolylineEncoding() { - com.google.maps.routing.v2.PolylineEncoding result = com.google.maps.routing.v2.PolylineEncoding.forNumber(polylineEncoding_); + @java.lang.Override + public com.google.maps.routing.v2.PolylineEncoding getPolylineEncoding() { + com.google.maps.routing.v2.PolylineEncoding result = + com.google.maps.routing.v2.PolylineEncoding.forNumber(polylineEncoding_); return result == null ? com.google.maps.routing.v2.PolylineEncoding.UNRECOGNIZED : result; } public static final int DEPARTURE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp departureTime_; /** + * + * *
    * Optional. The departure time. If you don't set this value, then this value
    * defaults to the time that you made the request.
@@ -640,7 +793,9 @@ public com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the departureTime field is set. */ @java.lang.Override @@ -648,6 +803,8 @@ public boolean hasDepartureTime() { return departureTime_ != null; } /** + * + * *
    * Optional. The departure time. If you don't set this value, then this value
    * defaults to the time that you made the request.
@@ -656,14 +813,20 @@ public boolean hasDepartureTime() {
    * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The departureTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDepartureTime() { - return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : departureTime_; } /** + * + * *
    * Optional. The departure time. If you don't set this value, then this value
    * defaults to the time that you made the request.
@@ -672,16 +835,21 @@ public com.google.protobuf.Timestamp getDepartureTime() {
    * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { - return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : departureTime_; } public static final int ARRIVAL_TIME_FIELD_NUMBER = 19; private com.google.protobuf.Timestamp arrivalTime_; /** + * + * *
    * Optional. The arrival time.
    * NOTE: Can only be set when
@@ -690,7 +858,9 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() {
    * both.
    * 
* - * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the arrivalTime field is set. */ @java.lang.Override @@ -698,6 +868,8 @@ public boolean hasArrivalTime() { return arrivalTime_ != null; } /** + * + * *
    * Optional. The arrival time.
    * NOTE: Can only be set when
@@ -706,7 +878,9 @@ public boolean hasArrivalTime() {
    * both.
    * 
* - * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The arrivalTime. */ @java.lang.Override @@ -714,6 +888,8 @@ public com.google.protobuf.Timestamp getArrivalTime() { return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; } /** + * + * *
    * Optional. The arrival time.
    * NOTE: Can only be set when
@@ -722,7 +898,8 @@ public com.google.protobuf.Timestamp getArrivalTime() {
    * both.
    * 
* - * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { @@ -732,6 +909,8 @@ public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { public static final int COMPUTE_ALTERNATIVE_ROUTES_FIELD_NUMBER = 8; private boolean computeAlternativeRoutes_ = false; /** + * + * *
    * Optional. Specifies whether to calculate alternate routes in addition to
    * the route. No alternative routes are returned for requests that have
@@ -739,6 +918,7 @@ public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() {
    * 
* * bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The computeAlternativeRoutes. */ @java.lang.Override @@ -749,12 +929,17 @@ public boolean getComputeAlternativeRoutes() { public static final int ROUTE_MODIFIERS_FIELD_NUMBER = 9; private com.google.maps.routing.v2.RouteModifiers routeModifiers_; /** + * + * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated.
    * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the routeModifiers field is set. */ @java.lang.Override @@ -762,35 +947,51 @@ public boolean hasRouteModifiers() { return routeModifiers_ != null; } /** + * + * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated.
    * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The routeModifiers. */ @java.lang.Override public com.google.maps.routing.v2.RouteModifiers getRouteModifiers() { - return routeModifiers_ == null ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; + return routeModifiers_ == null + ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() + : routeModifiers_; } /** + * + * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated.
    * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBuilder() { - return routeModifiers_ == null ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; + return routeModifiers_ == null + ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() + : routeModifiers_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** + * + * *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -801,6 +1002,7 @@ public com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBui
    * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ @java.lang.Override @@ -809,14 +1011,15 @@ public java.lang.String getLanguageCode() { 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(); languageCode_ = s; return s; } } /** + * + * *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -827,16 +1030,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -845,9 +1047,12 @@ public java.lang.String getLanguageCode() { } public static final int REGION_CODE_FIELD_NUMBER = 16; + @SuppressWarnings("serial") private volatile java.lang.Object regionCode_ = ""; /** + * + * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -855,6 +1060,7 @@ public java.lang.String getLanguageCode() {
    * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The regionCode. */ @java.lang.Override @@ -863,14 +1069,15 @@ public java.lang.String getRegionCode() { 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(); regionCode_ = s; return s; } } /** + * + * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -878,16 +1085,15 @@ public java.lang.String getRegionCode() {
    * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for regionCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionCodeBytes() { + public com.google.protobuf.ByteString getRegionCodeBytes() { java.lang.Object ref = regionCode_; 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); regionCode_ = b; return b; } else { @@ -898,6 +1104,8 @@ public java.lang.String getRegionCode() { public static final int UNITS_FIELD_NUMBER = 11; private int units_ = 0; /** + * + * *
    * Optional. Specifies the units of measure for the display fields. These
    * fields include the `instruction` field in
@@ -907,13 +1115,18 @@ public java.lang.String getRegionCode() {
    * display units are inferred from the location of the first origin.
    * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for units. */ - @java.lang.Override public int getUnitsValue() { + @java.lang.Override + public int getUnitsValue() { return units_; } /** + * + * *
    * Optional. Specifies the units of measure for the display fields. These
    * fields include the `instruction` field in
@@ -923,10 +1136,13 @@ public java.lang.String getRegionCode() {
    * display units are inferred from the location of the first origin.
    * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The units. */ - @java.lang.Override public com.google.maps.routing.v2.Units getUnits() { + @java.lang.Override + public com.google.maps.routing.v2.Units getUnits() { com.google.maps.routing.v2.Units result = com.google.maps.routing.v2.Units.forNumber(units_); return result == null ? com.google.maps.routing.v2.Units.UNRECOGNIZED : result; } @@ -934,6 +1150,8 @@ public java.lang.String getRegionCode() { public static final int OPTIMIZE_WAYPOINT_ORDER_FIELD_NUMBER = 13; private boolean optimizeWaypointOrder_ = false; /** + * + * *
    * Optional. If set to true, the service attempts to minimize the overall cost
    * of the route by re-ordering the specified intermediate waypoints. The
@@ -948,6 +1166,7 @@ public java.lang.String getRegionCode() {
    * 
* * bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The optimizeWaypointOrder. */ @java.lang.Override @@ -956,18 +1175,27 @@ public boolean getOptimizeWaypointOrder() { } public static final int REQUESTED_REFERENCE_ROUTES_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private java.util.List requestedReferenceRoutes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute> requestedReferenceRoutes_converter_ = + java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute> + requestedReferenceRoutes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute>() { - public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute convert(java.lang.Integer from) { - com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute result = com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute.forNumber(from); - return result == null ? com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute.UNRECOGNIZED : result; + public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute convert( + java.lang.Integer from) { + com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute result = + com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute.forNumber(from); + return result == null + ? com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute.UNRECOGNIZED + : result; } }; /** + * + * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -976,15 +1204,22 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute convert(ja
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the requestedReferenceRoutes. */ @java.lang.Override - public java.util.List getRequestedReferenceRoutesList() { + public java.util.List + getRequestedReferenceRoutesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute>(requestedReferenceRoutes_, requestedReferenceRoutes_converter_); + java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute>( + requestedReferenceRoutes_, requestedReferenceRoutes_converter_); } /** + * + * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -993,7 +1228,10 @@ public java.util.List
    *
-   * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   *
    * @return The count of requestedReferenceRoutes.
    */
   @java.lang.Override
@@ -1001,6 +1239,8 @@ public int getRequestedReferenceRoutesCount() {
     return requestedReferenceRoutes_.size();
   }
   /**
+   *
+   *
    * 
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -1009,15 +1249,21 @@ public int getRequestedReferenceRoutesCount() {
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The requestedReferenceRoutes at the given index. */ @java.lang.Override - public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedReferenceRoutes(int index) { + public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedReferenceRoutes( + int index) { return requestedReferenceRoutes_converter_.convert(requestedReferenceRoutes_.get(index)); } /** + * + * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -1026,15 +1272,19 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequest
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for requestedReferenceRoutes. */ @java.lang.Override - public java.util.List - getRequestedReferenceRoutesValueList() { + public java.util.List getRequestedReferenceRoutesValueList() { return requestedReferenceRoutes_; } /** + * + * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -1043,7 +1293,10 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequest
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of requestedReferenceRoutes at the given index. */ @@ -1051,21 +1304,32 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequest public int getRequestedReferenceRoutesValue(int index) { return requestedReferenceRoutes_.get(index); } + private int requestedReferenceRoutesMemoizedSerializedSize; public static final int EXTRA_COMPUTATIONS_FIELD_NUMBER = 15; + @SuppressWarnings("serial") private java.util.List extraComputations_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation> extraComputations_converter_ = + java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation> + extraComputations_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation>() { - public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation convert(java.lang.Integer from) { - com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation result = com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation.forNumber(from); - return result == null ? com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation.UNRECOGNIZED : result; + java.lang.Integer, + com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation>() { + public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation convert( + java.lang.Integer from) { + com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation result = + com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation.forNumber(from); + return result == null + ? com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation.UNRECOGNIZED + : result; } }; /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -1073,15 +1337,22 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation convert(
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the extraComputations. */ @java.lang.Override - public java.util.List getExtraComputationsList() { + public java.util.List + getExtraComputationsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation>(extraComputations_, extraComputations_converter_); + java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation>( + extraComputations_, extraComputations_converter_); } /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -1089,7 +1360,10 @@ public java.util.List
    *
-   * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   *
    * @return The count of extraComputations.
    */
   @java.lang.Override
@@ -1097,6 +1371,8 @@ public int getExtraComputationsCount() {
     return extraComputations_.size();
   }
   /**
+   *
+   *
    * 
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -1104,15 +1380,21 @@ public int getExtraComputationsCount() {
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The extraComputations at the given index. */ @java.lang.Override - public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtraComputations(int index) { + public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtraComputations( + int index) { return extraComputations_converter_.convert(extraComputations_.get(index)); } /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -1120,15 +1402,19 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtra
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for extraComputations. */ @java.lang.Override - public java.util.List - getExtraComputationsValueList() { + public java.util.List getExtraComputationsValueList() { return extraComputations_; } /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -1136,7 +1422,10 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtra
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of extraComputations at the given index. */ @@ -1144,11 +1433,14 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtra public int getExtraComputationsValue(int index) { return extraComputations_.get(index); } + private int extraComputationsMemoizedSerializedSize; public static final int TRAFFIC_MODEL_FIELD_NUMBER = 18; private int trafficModel_ = 0; /** + * + * *
    * Optional. Specifies the assumptions to use when calculating time in
    * traffic. This setting affects the value returned in the duration field in
@@ -1163,13 +1455,19 @@ public int getExtraComputationsValue(int index) {
    * specified.
    * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for trafficModel. */ - @java.lang.Override public int getTrafficModelValue() { + @java.lang.Override + public int getTrafficModelValue() { return trafficModel_; } /** + * + * *
    * Optional. Specifies the assumptions to use when calculating time in
    * traffic. This setting affects the value returned in the duration field in
@@ -1184,17 +1482,24 @@ public int getExtraComputationsValue(int index) {
    * specified.
    * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The trafficModel. */ - @java.lang.Override public com.google.maps.routing.v2.TrafficModel getTrafficModel() { - com.google.maps.routing.v2.TrafficModel result = com.google.maps.routing.v2.TrafficModel.forNumber(trafficModel_); + @java.lang.Override + public com.google.maps.routing.v2.TrafficModel getTrafficModel() { + com.google.maps.routing.v2.TrafficModel result = + com.google.maps.routing.v2.TrafficModel.forNumber(trafficModel_); return result == null ? com.google.maps.routing.v2.TrafficModel.UNRECOGNIZED : result; } public static final int TRANSIT_PREFERENCES_FIELD_NUMBER = 20; private com.google.maps.routing.v2.TransitPreferences transitPreferences_; /** + * + * *
    * Optional. Specifies preferences that influence the route returned for
    * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -1202,7 +1507,10 @@ public int getExtraComputationsValue(int index) {
    * `TRANSIT`.
    * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transitPreferences field is set. */ @java.lang.Override @@ -1210,6 +1518,8 @@ public boolean hasTransitPreferences() { return transitPreferences_ != null; } /** + * + * *
    * Optional. Specifies preferences that influence the route returned for
    * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -1217,14 +1527,21 @@ public boolean hasTransitPreferences() {
    * `TRANSIT`.
    * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transitPreferences. */ @java.lang.Override public com.google.maps.routing.v2.TransitPreferences getTransitPreferences() { - return transitPreferences_ == null ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + return transitPreferences_ == null + ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() + : transitPreferences_; } /** + * + * *
    * Optional. Specifies preferences that influence the route returned for
    * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -1232,14 +1549,19 @@ public com.google.maps.routing.v2.TransitPreferences getTransitPreferences() {
    * `TRANSIT`.
    * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.maps.routing.v2.TransitPreferencesOrBuilder getTransitPreferencesOrBuilder() { - return transitPreferences_ == null ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + return transitPreferences_ == null + ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() + : transitPreferences_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1251,8 +1573,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(); if (origin_ != null) { output.writeMessage(1, getOrigin()); @@ -1263,13 +1584,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < intermediates_.size(); i++) { output.writeMessage(3, intermediates_.get(i)); } - if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + if (travelMode_ + != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(4, travelMode_); } - if (routingPreference_ != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED.getNumber()) { + if (routingPreference_ + != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, routingPreference_); } - if (polylineQuality_ != com.google.maps.routing.v2.PolylineQuality.POLYLINE_QUALITY_UNSPECIFIED.getNumber()) { + if (polylineQuality_ + != com.google.maps.routing.v2.PolylineQuality.POLYLINE_QUALITY_UNSPECIFIED.getNumber()) { output.writeEnum(6, polylineQuality_); } if (departureTime_ != null) { @@ -1287,7 +1612,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (units_ != com.google.maps.routing.v2.Units.UNITS_UNSPECIFIED.getNumber()) { output.writeEnum(11, units_); } - if (polylineEncoding_ != com.google.maps.routing.v2.PolylineEncoding.POLYLINE_ENCODING_UNSPECIFIED.getNumber()) { + if (polylineEncoding_ + != com.google.maps.routing.v2.PolylineEncoding.POLYLINE_ENCODING_UNSPECIFIED.getNumber()) { output.writeEnum(12, polylineEncoding_); } if (optimizeWaypointOrder_ != false) { @@ -1310,7 +1636,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, regionCode_); } - if (trafficModel_ != com.google.maps.routing.v2.TrafficModel.TRAFFIC_MODEL_UNSPECIFIED.getNumber()) { + if (trafficModel_ + != com.google.maps.routing.v2.TrafficModel.TRAFFIC_MODEL_UNSPECIFIED.getNumber()) { output.writeEnum(18, trafficModel_); } if (arrivalTime_ != null) { @@ -1329,94 +1656,88 @@ public int getSerializedSize() { size = 0; if (origin_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOrigin()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOrigin()); } if (destination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDestination()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDestination()); } for (int i = 0; i < intermediates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, intermediates_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, intermediates_.get(i)); } - if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, travelMode_); + if (travelMode_ + != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, travelMode_); } - if (routingPreference_ != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, routingPreference_); + if (routingPreference_ + != com.google.maps.routing.v2.RoutingPreference.ROUTING_PREFERENCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, routingPreference_); } - if (polylineQuality_ != com.google.maps.routing.v2.PolylineQuality.POLYLINE_QUALITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, polylineQuality_); + if (polylineQuality_ + != com.google.maps.routing.v2.PolylineQuality.POLYLINE_QUALITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, polylineQuality_); } if (departureTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getDepartureTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDepartureTime()); } if (computeAlternativeRoutes_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, computeAlternativeRoutes_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, computeAlternativeRoutes_); } if (routeModifiers_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getRouteModifiers()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getRouteModifiers()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, languageCode_); } if (units_ != com.google.maps.routing.v2.Units.UNITS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, units_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, units_); } - if (polylineEncoding_ != com.google.maps.routing.v2.PolylineEncoding.POLYLINE_ENCODING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, polylineEncoding_); + if (polylineEncoding_ + != com.google.maps.routing.v2.PolylineEncoding.POLYLINE_ENCODING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, polylineEncoding_); } if (optimizeWaypointOrder_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, optimizeWaypointOrder_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, optimizeWaypointOrder_); } { int dataSize = 0; for (int i = 0; i < requestedReferenceRoutes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(requestedReferenceRoutes_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + requestedReferenceRoutes_.get(i)); } size += dataSize; - if (!getRequestedReferenceRoutesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }requestedReferenceRoutesMemoizedSerializedSize = dataSize; + if (!getRequestedReferenceRoutesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + requestedReferenceRoutesMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < extraComputations_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(extraComputations_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(extraComputations_.get(i)); } size += dataSize; - if (!getExtraComputationsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }extraComputationsMemoizedSerializedSize = dataSize; + if (!getExtraComputationsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + extraComputationsMemoizedSerializedSize = dataSize; } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, regionCode_); } - if (trafficModel_ != com.google.maps.routing.v2.TrafficModel.TRAFFIC_MODEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(18, trafficModel_); + if (trafficModel_ + != com.google.maps.routing.v2.TrafficModel.TRAFFIC_MODEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(18, trafficModel_); } if (arrivalTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getArrivalTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getArrivalTime()); } if (transitPreferences_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getTransitPreferences()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getTransitPreferences()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1426,60 +1747,50 @@ 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.maps.routing.v2.ComputeRoutesRequest)) { return super.equals(obj); } - com.google.maps.routing.v2.ComputeRoutesRequest other = (com.google.maps.routing.v2.ComputeRoutesRequest) obj; + com.google.maps.routing.v2.ComputeRoutesRequest other = + (com.google.maps.routing.v2.ComputeRoutesRequest) obj; if (hasOrigin() != other.hasOrigin()) return false; if (hasOrigin()) { - if (!getOrigin() - .equals(other.getOrigin())) return false; + if (!getOrigin().equals(other.getOrigin())) return false; } if (hasDestination() != other.hasDestination()) return false; if (hasDestination()) { - if (!getDestination() - .equals(other.getDestination())) return false; + if (!getDestination().equals(other.getDestination())) return false; } - if (!getIntermediatesList() - .equals(other.getIntermediatesList())) return false; + if (!getIntermediatesList().equals(other.getIntermediatesList())) return false; if (travelMode_ != other.travelMode_) return false; if (routingPreference_ != other.routingPreference_) return false; if (polylineQuality_ != other.polylineQuality_) return false; if (polylineEncoding_ != other.polylineEncoding_) return false; if (hasDepartureTime() != other.hasDepartureTime()) return false; if (hasDepartureTime()) { - if (!getDepartureTime() - .equals(other.getDepartureTime())) return false; + if (!getDepartureTime().equals(other.getDepartureTime())) return false; } if (hasArrivalTime() != other.hasArrivalTime()) return false; if (hasArrivalTime()) { - if (!getArrivalTime() - .equals(other.getArrivalTime())) return false; + if (!getArrivalTime().equals(other.getArrivalTime())) return false; } - if (getComputeAlternativeRoutes() - != other.getComputeAlternativeRoutes()) return false; + if (getComputeAlternativeRoutes() != other.getComputeAlternativeRoutes()) 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 (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getRegionCode() - .equals(other.getRegionCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getRegionCode().equals(other.getRegionCode())) return false; if (units_ != other.units_) return false; - if (getOptimizeWaypointOrder() - != other.getOptimizeWaypointOrder()) return false; + if (getOptimizeWaypointOrder() != other.getOptimizeWaypointOrder()) return false; if (!requestedReferenceRoutes_.equals(other.requestedReferenceRoutes_)) return false; if (!extraComputations_.equals(other.extraComputations_)) return false; if (trafficModel_ != other.trafficModel_) return false; if (hasTransitPreferences() != other.hasTransitPreferences()) return false; if (hasTransitPreferences()) { - if (!getTransitPreferences() - .equals(other.getTransitPreferences())) return false; + if (!getTransitPreferences().equals(other.getTransitPreferences())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1521,8 +1832,7 @@ public int hashCode() { hash = (53 * hash) + getArrivalTime().hashCode(); } hash = (37 * hash) + COMPUTE_ALTERNATIVE_ROUTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getComputeAlternativeRoutes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getComputeAlternativeRoutes()); if (hasRouteModifiers()) { hash = (37 * hash) + ROUTE_MODIFIERS_FIELD_NUMBER; hash = (53 * hash) + getRouteModifiers().hashCode(); @@ -1534,8 +1844,7 @@ public int hashCode() { hash = (37 * hash) + UNITS_FIELD_NUMBER; hash = (53 * hash) + units_; hash = (37 * hash) + OPTIMIZE_WAYPOINT_ORDER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOptimizeWaypointOrder()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOptimizeWaypointOrder()); if (getRequestedReferenceRoutesCount() > 0) { hash = (37 * hash) + REQUESTED_REFERENCE_ROUTES_FIELD_NUMBER; hash = (53 * hash) + requestedReferenceRoutes_.hashCode(); @@ -1555,132 +1864,136 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.ComputeRoutesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.ComputeRoutesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.ComputeRoutesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest 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; } /** + * + * *
    * ComputeRoutes request message.
    * 
* * Protobuf type {@code google.maps.routing.v2.ComputeRoutesRequest} */ - 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.maps.routing.v2.ComputeRoutesRequest) com.google.maps.routing.v2.ComputeRoutesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.ComputeRoutesRequest.class, com.google.maps.routing.v2.ComputeRoutesRequest.Builder.class); + com.google.maps.routing.v2.ComputeRoutesRequest.class, + com.google.maps.routing.v2.ComputeRoutesRequest.Builder.class); } // Construct using com.google.maps.routing.v2.ComputeRoutesRequest.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(); @@ -1740,9 +2053,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor; } @java.lang.Override @@ -1761,14 +2074,18 @@ public com.google.maps.routing.v2.ComputeRoutesRequest build() { @java.lang.Override public com.google.maps.routing.v2.ComputeRoutesRequest buildPartial() { - com.google.maps.routing.v2.ComputeRoutesRequest result = new com.google.maps.routing.v2.ComputeRoutesRequest(this); + com.google.maps.routing.v2.ComputeRoutesRequest result = + new com.google.maps.routing.v2.ComputeRoutesRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.maps.routing.v2.ComputeRoutesRequest result) { + private void buildPartialRepeatedFields( + com.google.maps.routing.v2.ComputeRoutesRequest result) { if (intermediatesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { intermediates_ = java.util.Collections.unmodifiableList(intermediates_); @@ -1779,7 +2096,8 @@ private void buildPartialRepeatedFields(com.google.maps.routing.v2.ComputeRoutes result.intermediates_ = intermediatesBuilder_.build(); } if (((bitField0_ & 0x00008000) != 0)) { - requestedReferenceRoutes_ = java.util.Collections.unmodifiableList(requestedReferenceRoutes_); + requestedReferenceRoutes_ = + java.util.Collections.unmodifiableList(requestedReferenceRoutes_); bitField0_ = (bitField0_ & ~0x00008000); } result.requestedReferenceRoutes_ = requestedReferenceRoutes_; @@ -1793,14 +2111,11 @@ private void buildPartialRepeatedFields(com.google.maps.routing.v2.ComputeRoutes private void buildPartial0(com.google.maps.routing.v2.ComputeRoutesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.origin_ = originBuilder_ == null - ? origin_ - : originBuilder_.build(); + result.origin_ = originBuilder_ == null ? origin_ : originBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.destination_ = destinationBuilder_ == null - ? destination_ - : destinationBuilder_.build(); + result.destination_ = + destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.travelMode_ = travelMode_; @@ -1815,22 +2130,19 @@ private void buildPartial0(com.google.maps.routing.v2.ComputeRoutesRequest resul result.polylineEncoding_ = polylineEncoding_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.departureTime_ = departureTimeBuilder_ == null - ? departureTime_ - : departureTimeBuilder_.build(); + result.departureTime_ = + departureTimeBuilder_ == null ? departureTime_ : departureTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.arrivalTime_ = arrivalTimeBuilder_ == null - ? arrivalTime_ - : arrivalTimeBuilder_.build(); + result.arrivalTime_ = + arrivalTimeBuilder_ == null ? arrivalTime_ : arrivalTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.computeAlternativeRoutes_ = computeAlternativeRoutes_; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.routeModifiers_ = routeModifiersBuilder_ == null - ? routeModifiers_ - : routeModifiersBuilder_.build(); + result.routeModifiers_ = + routeModifiersBuilder_ == null ? routeModifiers_ : routeModifiersBuilder_.build(); } if (((from_bitField0_ & 0x00000800) != 0)) { result.languageCode_ = languageCode_; @@ -1848,9 +2160,10 @@ private void buildPartial0(com.google.maps.routing.v2.ComputeRoutesRequest resul result.trafficModel_ = trafficModel_; } if (((from_bitField0_ & 0x00040000) != 0)) { - result.transitPreferences_ = transitPreferencesBuilder_ == null - ? transitPreferences_ - : transitPreferencesBuilder_.build(); + result.transitPreferences_ = + transitPreferencesBuilder_ == null + ? transitPreferences_ + : transitPreferencesBuilder_.build(); } } @@ -1858,38 +2171,39 @@ private void buildPartial0(com.google.maps.routing.v2.ComputeRoutesRequest 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.maps.routing.v2.ComputeRoutesRequest) { - return mergeFrom((com.google.maps.routing.v2.ComputeRoutesRequest)other); + return mergeFrom((com.google.maps.routing.v2.ComputeRoutesRequest) other); } else { super.mergeFrom(other); return this; @@ -1897,7 +2211,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.maps.routing.v2.ComputeRoutesRequest other) { - if (other == com.google.maps.routing.v2.ComputeRoutesRequest.getDefaultInstance()) return this; + if (other == com.google.maps.routing.v2.ComputeRoutesRequest.getDefaultInstance()) + return this; if (other.hasOrigin()) { mergeOrigin(other.getOrigin()); } @@ -1922,9 +2237,10 @@ public Builder mergeFrom(com.google.maps.routing.v2.ComputeRoutesRequest other) intermediatesBuilder_ = null; intermediates_ = other.intermediates_; bitField0_ = (bitField0_ & ~0x00000004); - intermediatesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getIntermediatesFieldBuilder() : null; + intermediatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIntermediatesFieldBuilder() + : null; } else { intermediatesBuilder_.addAllMessages(other.intermediates_); } @@ -2022,151 +2338,161 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getOriginFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDestinationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.maps.routing.v2.Waypoint m = - input.readMessage( - com.google.maps.routing.v2.Waypoint.parser(), - extensionRegistry); - if (intermediatesBuilder_ == null) { - ensureIntermediatesIsMutable(); - intermediates_.add(m); - } else { - intermediatesBuilder_.addMessage(m); - } - break; - } // case 26 - case 32: { - travelMode_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - routingPreference_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - polylineQuality_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - input.readMessage( - getDepartureTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 64: { - computeAlternativeRoutes_ = input.readBool(); - bitField0_ |= 0x00000200; - break; - } // case 64 - case 74: { - input.readMessage( - getRouteModifiersFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 74 - case 82: { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 82 - case 88: { - units_ = input.readEnum(); - bitField0_ |= 0x00002000; - break; - } // case 88 - case 96: { - polylineEncoding_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 96 - case 104: { - optimizeWaypointOrder_ = input.readBool(); - bitField0_ |= 0x00004000; - break; - } // case 104 - case 112: { - int tmpRaw = input.readEnum(); - ensureRequestedReferenceRoutesIsMutable(); - requestedReferenceRoutes_.add(tmpRaw); - break; - } // case 112 - case 114: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 10: + { + input.readMessage(getOriginFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.maps.routing.v2.Waypoint m = + input.readMessage( + com.google.maps.routing.v2.Waypoint.parser(), extensionRegistry); + if (intermediatesBuilder_ == null) { + ensureIntermediatesIsMutable(); + intermediates_.add(m); + } else { + intermediatesBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: + { + travelMode_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + routingPreference_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + polylineQuality_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + input.readMessage(getDepartureTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 64: + { + computeAlternativeRoutes_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 64 + case 74: + { + input.readMessage(getRouteModifiersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 74 + case 82: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 82 + case 88: + { + units_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 88 + case 96: + { + polylineEncoding_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 96 + case 104: + { + optimizeWaypointOrder_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 104 + case 112: + { int tmpRaw = input.readEnum(); ensureRequestedReferenceRoutesIsMutable(); requestedReferenceRoutes_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 114 - case 120: { - int tmpRaw = input.readEnum(); - ensureExtraComputationsIsMutable(); - extraComputations_.add(tmpRaw); - break; - } // case 120 - case 122: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + break; + } // case 112 + case 114: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureRequestedReferenceRoutesIsMutable(); + requestedReferenceRoutes_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 114 + case 120: + { int tmpRaw = input.readEnum(); ensureExtraComputationsIsMutable(); extraComputations_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 122 - case 130: { - regionCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 130 - case 144: { - trafficModel_ = input.readEnum(); - bitField0_ |= 0x00020000; - break; - } // case 144 - case 154: { - input.readMessage( - getArrivalTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 154 - case 162: { - input.readMessage( - getTransitPreferencesFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 162 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 120 + case 122: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureExtraComputationsIsMutable(); + extraComputations_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 122 + case 130: + { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 130 + case 144: + { + trafficModel_ = input.readEnum(); + bitField0_ |= 0x00020000; + break; + } // case 144 + case 154: + { + input.readMessage(getArrivalTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 154 + case 162: + { + input.readMessage( + getTransitPreferencesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 162 + 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) { @@ -2176,28 +2502,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.maps.routing.v2.Waypoint origin_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> originBuilder_; + com.google.maps.routing.v2.Waypoint, + com.google.maps.routing.v2.Waypoint.Builder, + com.google.maps.routing.v2.WaypointOrBuilder> + originBuilder_; /** + * + * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the origin field is set. */ public boolean hasOrigin() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The origin. */ public com.google.maps.routing.v2.Waypoint getOrigin() { @@ -2208,11 +2546,14 @@ public com.google.maps.routing.v2.Waypoint getOrigin() { } } /** + * + * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOrigin(com.google.maps.routing.v2.Waypoint value) { if (originBuilder_ == null) { @@ -2228,14 +2569,16 @@ public Builder setOrigin(com.google.maps.routing.v2.Waypoint value) { return this; } /** + * + * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setOrigin( - com.google.maps.routing.v2.Waypoint.Builder builderForValue) { + public Builder setOrigin(com.google.maps.routing.v2.Waypoint.Builder builderForValue) { if (originBuilder_ == null) { origin_ = builderForValue.build(); } else { @@ -2246,17 +2589,20 @@ public Builder setOrigin( return this; } /** + * + * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOrigin(com.google.maps.routing.v2.Waypoint value) { if (originBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - origin_ != null && - origin_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && origin_ != null + && origin_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { getOriginBuilder().mergeFrom(value); } else { origin_ = value; @@ -2269,11 +2615,14 @@ public Builder mergeOrigin(com.google.maps.routing.v2.Waypoint value) { return this; } /** + * + * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOrigin() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2286,11 +2635,14 @@ public Builder clearOrigin() { return this; } /** + * + * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.maps.routing.v2.Waypoint.Builder getOriginBuilder() { bitField0_ |= 0x00000001; @@ -2298,36 +2650,44 @@ public com.google.maps.routing.v2.Waypoint.Builder getOriginBuilder() { return getOriginFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.maps.routing.v2.WaypointOrBuilder getOriginOrBuilder() { if (originBuilder_ != null) { return originBuilder_.getMessageOrBuilder(); } else { - return origin_ == null ? - com.google.maps.routing.v2.Waypoint.getDefaultInstance() : origin_; + return origin_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : origin_; } } /** + * + * *
      * Required. Origin waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> + com.google.maps.routing.v2.Waypoint, + com.google.maps.routing.v2.Waypoint.Builder, + com.google.maps.routing.v2.WaypointOrBuilder> getOriginFieldBuilder() { if (originBuilder_ == null) { - originBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder>( - getOrigin(), - getParentForChildren(), - isClean()); + originBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Waypoint, + com.google.maps.routing.v2.Waypoint.Builder, + com.google.maps.routing.v2.WaypointOrBuilder>( + getOrigin(), getParentForChildren(), isClean()); origin_ = null; } return originBuilder_; @@ -2335,39 +2695,58 @@ public com.google.maps.routing.v2.WaypointOrBuilder getOriginOrBuilder() { private com.google.maps.routing.v2.Waypoint destination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> destinationBuilder_; + com.google.maps.routing.v2.Waypoint, + com.google.maps.routing.v2.Waypoint.Builder, + com.google.maps.routing.v2.WaypointOrBuilder> + destinationBuilder_; /** + * + * *
      * Required. Destination waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the destination field is set. */ public boolean hasDestination() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Destination waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The destination. */ public com.google.maps.routing.v2.Waypoint getDestination() { if (destinationBuilder_ == null) { - return destination_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : destination_; + return destination_ == null + ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() + : destination_; } else { return destinationBuilder_.getMessage(); } } /** + * + * *
      * Required. Destination waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDestination(com.google.maps.routing.v2.Waypoint value) { if (destinationBuilder_ == null) { @@ -2383,14 +2762,17 @@ public Builder setDestination(com.google.maps.routing.v2.Waypoint value) { return this; } /** + * + * *
      * Required. Destination waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDestination( - com.google.maps.routing.v2.Waypoint.Builder builderForValue) { + public Builder setDestination(com.google.maps.routing.v2.Waypoint.Builder builderForValue) { if (destinationBuilder_ == null) { destination_ = builderForValue.build(); } else { @@ -2401,17 +2783,21 @@ public Builder setDestination( return this; } /** + * + * *
      * Required. Destination waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDestination(com.google.maps.routing.v2.Waypoint value) { if (destinationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - destination_ != null && - destination_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && destination_ != null + && destination_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { getDestinationBuilder().mergeFrom(value); } else { destination_ = value; @@ -2424,11 +2810,15 @@ public Builder mergeDestination(com.google.maps.routing.v2.Waypoint value) { return this; } /** + * + * *
      * Required. Destination waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDestination() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2441,11 +2831,15 @@ public Builder clearDestination() { return this; } /** + * + * *
      * Required. Destination waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.maps.routing.v2.Waypoint.Builder getDestinationBuilder() { bitField0_ |= 0x00000002; @@ -2453,61 +2847,82 @@ public com.google.maps.routing.v2.Waypoint.Builder getDestinationBuilder() { return getDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Destination waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.maps.routing.v2.WaypointOrBuilder getDestinationOrBuilder() { if (destinationBuilder_ != null) { return destinationBuilder_.getMessageOrBuilder(); } else { - return destination_ == null ? - com.google.maps.routing.v2.Waypoint.getDefaultInstance() : destination_; + return destination_ == null + ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() + : destination_; } } /** + * + * *
      * Required. Destination waypoint.
      * 
* - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> + com.google.maps.routing.v2.Waypoint, + com.google.maps.routing.v2.Waypoint.Builder, + com.google.maps.routing.v2.WaypointOrBuilder> getDestinationFieldBuilder() { if (destinationBuilder_ == null) { - destinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder>( - getDestination(), - getParentForChildren(), - isClean()); + destinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Waypoint, + com.google.maps.routing.v2.Waypoint.Builder, + com.google.maps.routing.v2.WaypointOrBuilder>( + getDestination(), getParentForChildren(), isClean()); destination_ = null; } return destinationBuilder_; } private java.util.List intermediates_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureIntermediatesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - intermediates_ = new java.util.ArrayList(intermediates_); + intermediates_ = + new java.util.ArrayList(intermediates_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> intermediatesBuilder_; + com.google.maps.routing.v2.Waypoint, + com.google.maps.routing.v2.Waypoint.Builder, + com.google.maps.routing.v2.WaypointOrBuilder> + intermediatesBuilder_; /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getIntermediatesList() { if (intermediatesBuilder_ == null) { @@ -2517,13 +2932,17 @@ public java.util.List getIntermediatesList( } } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getIntermediatesCount() { if (intermediatesBuilder_ == null) { @@ -2533,13 +2952,17 @@ public int getIntermediatesCount() { } } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.maps.routing.v2.Waypoint getIntermediates(int index) { if (intermediatesBuilder_ == null) { @@ -2549,16 +2972,19 @@ public com.google.maps.routing.v2.Waypoint getIntermediates(int index) { } } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setIntermediates( - int index, com.google.maps.routing.v2.Waypoint value) { + public Builder setIntermediates(int index, com.google.maps.routing.v2.Waypoint value) { if (intermediatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2572,13 +2998,17 @@ public Builder setIntermediates( return this; } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setIntermediates( int index, com.google.maps.routing.v2.Waypoint.Builder builderForValue) { @@ -2592,13 +3022,17 @@ public Builder setIntermediates( return this; } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addIntermediates(com.google.maps.routing.v2.Waypoint value) { if (intermediatesBuilder_ == null) { @@ -2614,16 +3048,19 @@ public Builder addIntermediates(com.google.maps.routing.v2.Waypoint value) { return this; } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addIntermediates( - int index, com.google.maps.routing.v2.Waypoint value) { + public Builder addIntermediates(int index, com.google.maps.routing.v2.Waypoint value) { if (intermediatesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2637,16 +3074,19 @@ public Builder addIntermediates( return this; } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addIntermediates( - com.google.maps.routing.v2.Waypoint.Builder builderForValue) { + public Builder addIntermediates(com.google.maps.routing.v2.Waypoint.Builder builderForValue) { if (intermediatesBuilder_ == null) { ensureIntermediatesIsMutable(); intermediates_.add(builderForValue.build()); @@ -2657,13 +3097,17 @@ public Builder addIntermediates( return this; } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addIntermediates( int index, com.google.maps.routing.v2.Waypoint.Builder builderForValue) { @@ -2677,20 +3121,23 @@ public Builder addIntermediates( return this; } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllIntermediates( java.lang.Iterable values) { if (intermediatesBuilder_ == null) { ensureIntermediatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, intermediates_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, intermediates_); onChanged(); } else { intermediatesBuilder_.addAllMessages(values); @@ -2698,13 +3145,17 @@ public Builder addAllIntermediates( return this; } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearIntermediates() { if (intermediatesBuilder_ == null) { @@ -2717,13 +3168,17 @@ public Builder clearIntermediates() { return this; } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeIntermediates(int index) { if (intermediatesBuilder_ == null) { @@ -2736,45 +3191,56 @@ public Builder removeIntermediates(int index) { return this; } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.maps.routing.v2.Waypoint.Builder getIntermediatesBuilder( - int index) { + public com.google.maps.routing.v2.Waypoint.Builder getIntermediatesBuilder(int index) { return getIntermediatesFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder( - int index) { + public com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(int index) { if (intermediatesBuilder_ == null) { - return intermediates_.get(index); } else { + return intermediates_.get(index); + } else { return intermediatesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getIntermediatesOrBuilderList() { + public java.util.List + getIntermediatesOrBuilderList() { if (intermediatesBuilder_ != null) { return intermediatesBuilder_.getMessageOrBuilderList(); } else { @@ -2782,51 +3248,68 @@ public com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder( } } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.maps.routing.v2.Waypoint.Builder addIntermediatesBuilder() { - return getIntermediatesFieldBuilder().addBuilder( - com.google.maps.routing.v2.Waypoint.getDefaultInstance()); + return getIntermediatesFieldBuilder() + .addBuilder(com.google.maps.routing.v2.Waypoint.getDefaultInstance()); } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.maps.routing.v2.Waypoint.Builder addIntermediatesBuilder( - int index) { - return getIntermediatesFieldBuilder().addBuilder( - index, com.google.maps.routing.v2.Waypoint.getDefaultInstance()); + public com.google.maps.routing.v2.Waypoint.Builder addIntermediatesBuilder(int index) { + return getIntermediatesFieldBuilder() + .addBuilder(index, com.google.maps.routing.v2.Waypoint.getDefaultInstance()); } /** + * + * *
      * Optional. A set of waypoints along the route (excluding terminal points),
      * for either stopping at or passing by. Up to 25 intermediate waypoints are
      * supported.
      * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getIntermediatesBuilderList() { + public java.util.List + getIntermediatesBuilderList() { return getIntermediatesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> + com.google.maps.routing.v2.Waypoint, + com.google.maps.routing.v2.Waypoint.Builder, + com.google.maps.routing.v2.WaypointOrBuilder> getIntermediatesFieldBuilder() { if (intermediatesBuilder_ == null) { - intermediatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder>( + intermediatesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.Waypoint, + com.google.maps.routing.v2.Waypoint.Builder, + com.google.maps.routing.v2.WaypointOrBuilder>( intermediates_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), @@ -2838,22 +3321,33 @@ public com.google.maps.routing.v2.Waypoint.Builder addIntermediatesBuilder( private int travelMode_ = 0; /** + * + * *
      * Optional. Specifies the mode of transportation.
      * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for travelMode. */ - @java.lang.Override public int getTravelModeValue() { + @java.lang.Override + public int getTravelModeValue() { return travelMode_; } /** + * + * *
      * Optional. Specifies the mode of transportation.
      * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for travelMode to set. * @return This builder for chaining. */ @@ -2864,24 +3358,35 @@ public Builder setTravelModeValue(int value) { return this; } /** + * + * *
      * Optional. Specifies the mode of transportation.
      * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The travelMode. */ @java.lang.Override public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { - com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + com.google.maps.routing.v2.RouteTravelMode result = + com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; } /** + * + * *
      * Optional. Specifies the mode of transportation.
      * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The travelMode to set. * @return This builder for chaining. */ @@ -2895,11 +3400,16 @@ public Builder setTravelMode(com.google.maps.routing.v2.RouteTravelMode value) { return this; } /** + * + * *
      * Optional. Specifies the mode of transportation.
      * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearTravelMode() { @@ -2911,6 +3421,8 @@ public Builder clearTravelMode() { private int routingPreference_ = 0; /** + * + * *
      * Optional. Specifies how to compute the route. The server
      * attempts to use the selected routing preference to compute the route. If
@@ -2919,13 +3431,19 @@ public Builder clearTravelMode() {
      * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for routingPreference. */ - @java.lang.Override public int getRoutingPreferenceValue() { + @java.lang.Override + public int getRoutingPreferenceValue() { return routingPreference_; } /** + * + * *
      * Optional. Specifies how to compute the route. The server
      * attempts to use the selected routing preference to compute the route. If
@@ -2934,7 +3452,10 @@ public Builder clearTravelMode() {
      * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for routingPreference to set. * @return This builder for chaining. */ @@ -2945,6 +3466,8 @@ public Builder setRoutingPreferenceValue(int value) { return this; } /** + * + * *
      * Optional. Specifies how to compute the route. The server
      * attempts to use the selected routing preference to compute the route. If
@@ -2953,15 +3476,21 @@ public Builder setRoutingPreferenceValue(int value) {
      * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The routingPreference. */ @java.lang.Override public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() { - com.google.maps.routing.v2.RoutingPreference result = com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); + com.google.maps.routing.v2.RoutingPreference result = + com.google.maps.routing.v2.RoutingPreference.forNumber(routingPreference_); return result == null ? com.google.maps.routing.v2.RoutingPreference.UNRECOGNIZED : result; } /** + * + * *
      * Optional. Specifies how to compute the route. The server
      * attempts to use the selected routing preference to compute the route. If
@@ -2970,7 +3499,10 @@ public com.google.maps.routing.v2.RoutingPreference getRoutingPreference() {
      * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The routingPreference to set. * @return This builder for chaining. */ @@ -2984,6 +3516,8 @@ public Builder setRoutingPreference(com.google.maps.routing.v2.RoutingPreference return this; } /** + * + * *
      * Optional. Specifies how to compute the route. The server
      * attempts to use the selected routing preference to compute the route. If
@@ -2992,7 +3526,10 @@ public Builder setRoutingPreference(com.google.maps.routing.v2.RoutingPreference
      * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
      * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearRoutingPreference() { @@ -3004,22 +3541,33 @@ public Builder clearRoutingPreference() { private int polylineQuality_ = 0; /** + * + * *
      * Optional. Specifies your preference for the quality of the polyline.
      * 
* - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for polylineQuality. */ - @java.lang.Override public int getPolylineQualityValue() { + @java.lang.Override + public int getPolylineQualityValue() { return polylineQuality_; } /** + * + * *
      * Optional. Specifies your preference for the quality of the polyline.
      * 
* - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for polylineQuality to set. * @return This builder for chaining. */ @@ -3030,24 +3578,35 @@ public Builder setPolylineQualityValue(int value) { return this; } /** + * + * *
      * Optional. Specifies your preference for the quality of the polyline.
      * 
* - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The polylineQuality. */ @java.lang.Override public com.google.maps.routing.v2.PolylineQuality getPolylineQuality() { - com.google.maps.routing.v2.PolylineQuality result = com.google.maps.routing.v2.PolylineQuality.forNumber(polylineQuality_); + com.google.maps.routing.v2.PolylineQuality result = + com.google.maps.routing.v2.PolylineQuality.forNumber(polylineQuality_); return result == null ? com.google.maps.routing.v2.PolylineQuality.UNRECOGNIZED : result; } /** + * + * *
      * Optional. Specifies your preference for the quality of the polyline.
      * 
* - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The polylineQuality to set. * @return This builder for chaining. */ @@ -3061,11 +3620,16 @@ public Builder setPolylineQuality(com.google.maps.routing.v2.PolylineQuality val return this; } /** + * + * *
      * Optional. Specifies your preference for the quality of the polyline.
      * 
* - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearPolylineQuality() { @@ -3077,22 +3641,33 @@ public Builder clearPolylineQuality() { private int polylineEncoding_ = 0; /** + * + * *
      * Optional. Specifies the preferred encoding for the polyline.
      * 
* - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for polylineEncoding. */ - @java.lang.Override public int getPolylineEncodingValue() { + @java.lang.Override + public int getPolylineEncodingValue() { return polylineEncoding_; } /** + * + * *
      * Optional. Specifies the preferred encoding for the polyline.
      * 
* - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for polylineEncoding to set. * @return This builder for chaining. */ @@ -3103,24 +3678,35 @@ public Builder setPolylineEncodingValue(int value) { return this; } /** + * + * *
      * Optional. Specifies the preferred encoding for the polyline.
      * 
* - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The polylineEncoding. */ @java.lang.Override public com.google.maps.routing.v2.PolylineEncoding getPolylineEncoding() { - com.google.maps.routing.v2.PolylineEncoding result = com.google.maps.routing.v2.PolylineEncoding.forNumber(polylineEncoding_); + com.google.maps.routing.v2.PolylineEncoding result = + com.google.maps.routing.v2.PolylineEncoding.forNumber(polylineEncoding_); return result == null ? com.google.maps.routing.v2.PolylineEncoding.UNRECOGNIZED : result; } /** + * + * *
      * Optional. Specifies the preferred encoding for the polyline.
      * 
* - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The polylineEncoding to set. * @return This builder for chaining. */ @@ -3134,11 +3720,16 @@ public Builder setPolylineEncoding(com.google.maps.routing.v2.PolylineEncoding v return this; } /** + * + * *
      * Optional. Specifies the preferred encoding for the polyline.
      * 
* - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearPolylineEncoding() { @@ -3150,8 +3741,13 @@ public Builder clearPolylineEncoding() { private com.google.protobuf.Timestamp departureTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> departureTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + departureTimeBuilder_; /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -3160,13 +3756,18 @@ public Builder clearPolylineEncoding() {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the departureTime field is set. */ public boolean hasDepartureTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -3175,17 +3776,24 @@ public boolean hasDepartureTime() {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The departureTime. */ public com.google.protobuf.Timestamp getDepartureTime() { if (departureTimeBuilder_ == null) { - return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : departureTime_; } else { return departureTimeBuilder_.getMessage(); } } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -3194,7 +3802,9 @@ public com.google.protobuf.Timestamp getDepartureTime() {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDepartureTime(com.google.protobuf.Timestamp value) { if (departureTimeBuilder_ == null) { @@ -3210,6 +3820,8 @@ public Builder setDepartureTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -3218,10 +3830,11 @@ public Builder setDepartureTime(com.google.protobuf.Timestamp value) {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDepartureTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDepartureTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (departureTimeBuilder_ == null) { departureTime_ = builderForValue.build(); } else { @@ -3232,6 +3845,8 @@ public Builder setDepartureTime( return this; } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -3240,13 +3855,15 @@ public Builder setDepartureTime(
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeDepartureTime(com.google.protobuf.Timestamp value) { if (departureTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - departureTime_ != null && - departureTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && departureTime_ != null + && departureTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDepartureTimeBuilder().mergeFrom(value); } else { departureTime_ = value; @@ -3259,6 +3876,8 @@ public Builder mergeDepartureTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -3267,7 +3886,9 @@ public Builder mergeDepartureTime(com.google.protobuf.Timestamp value) {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDepartureTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3280,6 +3901,8 @@ public Builder clearDepartureTime() { return this; } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -3288,7 +3911,9 @@ public Builder clearDepartureTime() {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getDepartureTimeBuilder() { bitField0_ |= 0x00000080; @@ -3296,6 +3921,8 @@ public com.google.protobuf.Timestamp.Builder getDepartureTimeBuilder() { return getDepartureTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -3304,17 +3931,22 @@ public com.google.protobuf.Timestamp.Builder getDepartureTimeBuilder() {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { if (departureTimeBuilder_ != null) { return departureTimeBuilder_.getMessageOrBuilder(); } else { - return departureTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : departureTime_; } } /** + * + * *
      * Optional. The departure time. If you don't set this value, then this value
      * defaults to the time that you made the request.
@@ -3323,17 +3955,22 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() {
      * `TRANSIT`.
      * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getDepartureTimeFieldBuilder() { if (departureTimeBuilder_ == null) { - departureTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDepartureTime(), - getParentForChildren(), - isClean()); + departureTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDepartureTime(), getParentForChildren(), isClean()); departureTime_ = null; } return departureTimeBuilder_; @@ -3341,8 +3978,13 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { private com.google.protobuf.Timestamp arrivalTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> arrivalTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + arrivalTimeBuilder_; /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -3351,13 +3993,17 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the arrivalTime field is set. */ public boolean hasArrivalTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -3366,17 +4012,23 @@ public boolean hasArrivalTime() {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The arrivalTime. */ public com.google.protobuf.Timestamp getArrivalTime() { if (arrivalTimeBuilder_ == null) { - return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + return arrivalTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : arrivalTime_; } else { return arrivalTimeBuilder_.getMessage(); } } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -3385,7 +4037,8 @@ public com.google.protobuf.Timestamp getArrivalTime() {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setArrivalTime(com.google.protobuf.Timestamp value) { if (arrivalTimeBuilder_ == null) { @@ -3401,6 +4054,8 @@ public Builder setArrivalTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -3409,10 +4064,10 @@ public Builder setArrivalTime(com.google.protobuf.Timestamp value) {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setArrivalTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setArrivalTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (arrivalTimeBuilder_ == null) { arrivalTime_ = builderForValue.build(); } else { @@ -3423,6 +4078,8 @@ public Builder setArrivalTime( return this; } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -3431,13 +4088,14 @@ public Builder setArrivalTime(
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeArrivalTime(com.google.protobuf.Timestamp value) { if (arrivalTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - arrivalTime_ != null && - arrivalTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && arrivalTime_ != null + && arrivalTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getArrivalTimeBuilder().mergeFrom(value); } else { arrivalTime_ = value; @@ -3450,6 +4108,8 @@ public Builder mergeArrivalTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -3458,7 +4118,8 @@ public Builder mergeArrivalTime(com.google.protobuf.Timestamp value) {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearArrivalTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3471,6 +4132,8 @@ public Builder clearArrivalTime() { return this; } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -3479,7 +4142,8 @@ public Builder clearArrivalTime() {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getArrivalTimeBuilder() { bitField0_ |= 0x00000100; @@ -3487,6 +4151,8 @@ public com.google.protobuf.Timestamp.Builder getArrivalTimeBuilder() { return getArrivalTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -3495,17 +4161,21 @@ public com.google.protobuf.Timestamp.Builder getArrivalTimeBuilder() {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { if (arrivalTimeBuilder_ != null) { return arrivalTimeBuilder_.getMessageOrBuilder(); } else { - return arrivalTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + return arrivalTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : arrivalTime_; } } /** + * + * *
      * Optional. The arrival time.
      * NOTE: Can only be set when
@@ -3514,24 +4184,30 @@ public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() {
      * both.
      * 
* - * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getArrivalTimeFieldBuilder() { if (arrivalTimeBuilder_ == null) { - arrivalTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getArrivalTime(), - getParentForChildren(), - isClean()); + arrivalTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getArrivalTime(), getParentForChildren(), isClean()); arrivalTime_ = null; } return arrivalTimeBuilder_; } - private boolean computeAlternativeRoutes_ ; + private boolean computeAlternativeRoutes_; /** + * + * *
      * Optional. Specifies whether to calculate alternate routes in addition to
      * the route. No alternative routes are returned for requests that have
@@ -3539,6 +4215,7 @@ public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() {
      * 
* * bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The computeAlternativeRoutes. */ @java.lang.Override @@ -3546,6 +4223,8 @@ public boolean getComputeAlternativeRoutes() { return computeAlternativeRoutes_; } /** + * + * *
      * Optional. Specifies whether to calculate alternate routes in addition to
      * the route. No alternative routes are returned for requests that have
@@ -3553,6 +4232,7 @@ public boolean getComputeAlternativeRoutes() {
      * 
* * bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The computeAlternativeRoutes to set. * @return This builder for chaining. */ @@ -3564,6 +4244,8 @@ public Builder setComputeAlternativeRoutes(boolean value) { return this; } /** + * + * *
      * Optional. Specifies whether to calculate alternate routes in addition to
      * the route. No alternative routes are returned for requests that have
@@ -3571,6 +4253,7 @@ public Builder setComputeAlternativeRoutes(boolean value) {
      * 
* * bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearComputeAlternativeRoutes() { @@ -3582,42 +4265,61 @@ public Builder clearComputeAlternativeRoutes() { private com.google.maps.routing.v2.RouteModifiers routeModifiers_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteModifiers, com.google.maps.routing.v2.RouteModifiers.Builder, com.google.maps.routing.v2.RouteModifiersOrBuilder> routeModifiersBuilder_; + com.google.maps.routing.v2.RouteModifiers, + com.google.maps.routing.v2.RouteModifiers.Builder, + com.google.maps.routing.v2.RouteModifiersOrBuilder> + routeModifiersBuilder_; /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the routeModifiers field is set. */ public boolean hasRouteModifiers() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The routeModifiers. */ public com.google.maps.routing.v2.RouteModifiers getRouteModifiers() { if (routeModifiersBuilder_ == null) { - return routeModifiers_ == null ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; + return routeModifiers_ == null + ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() + : routeModifiers_; } else { return routeModifiersBuilder_.getMessage(); } } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRouteModifiers(com.google.maps.routing.v2.RouteModifiers value) { if (routeModifiersBuilder_ == null) { @@ -3633,12 +4335,16 @@ public Builder setRouteModifiers(com.google.maps.routing.v2.RouteModifiers value return this; } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRouteModifiers( com.google.maps.routing.v2.RouteModifiers.Builder builderForValue) { @@ -3652,18 +4358,22 @@ public Builder setRouteModifiers( return this; } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeRouteModifiers(com.google.maps.routing.v2.RouteModifiers value) { if (routeModifiersBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - routeModifiers_ != null && - routeModifiers_ != com.google.maps.routing.v2.RouteModifiers.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) + && routeModifiers_ != null + && routeModifiers_ != com.google.maps.routing.v2.RouteModifiers.getDefaultInstance()) { getRouteModifiersBuilder().mergeFrom(value); } else { routeModifiers_ = value; @@ -3676,12 +4386,16 @@ public Builder mergeRouteModifiers(com.google.maps.routing.v2.RouteModifiers val return this; } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearRouteModifiers() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3694,12 +4408,16 @@ public Builder clearRouteModifiers() { return this; } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.maps.routing.v2.RouteModifiers.Builder getRouteModifiersBuilder() { bitField0_ |= 0x00000400; @@ -3707,38 +4425,50 @@ public com.google.maps.routing.v2.RouteModifiers.Builder getRouteModifiersBuilde return getRouteModifiersFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBuilder() { if (routeModifiersBuilder_ != null) { return routeModifiersBuilder_.getMessageOrBuilder(); } else { - return routeModifiers_ == null ? - com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; + return routeModifiers_ == null + ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() + : routeModifiers_; } } /** + * + * *
      * Optional. A set of conditions to satisfy that affect the way routes are
      * calculated.
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteModifiers, com.google.maps.routing.v2.RouteModifiers.Builder, com.google.maps.routing.v2.RouteModifiersOrBuilder> + com.google.maps.routing.v2.RouteModifiers, + com.google.maps.routing.v2.RouteModifiers.Builder, + com.google.maps.routing.v2.RouteModifiersOrBuilder> getRouteModifiersFieldBuilder() { if (routeModifiersBuilder_ == null) { - routeModifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteModifiers, com.google.maps.routing.v2.RouteModifiers.Builder, com.google.maps.routing.v2.RouteModifiersOrBuilder>( - getRouteModifiers(), - getParentForChildren(), - isClean()); + routeModifiersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteModifiers, + com.google.maps.routing.v2.RouteModifiers.Builder, + com.google.maps.routing.v2.RouteModifiersOrBuilder>( + getRouteModifiers(), getParentForChildren(), isClean()); routeModifiers_ = null; } return routeModifiersBuilder_; @@ -3746,6 +4476,8 @@ public com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBui private java.lang.Object languageCode_ = ""; /** + * + * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -3756,13 +4488,13 @@ public com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBui
      * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; 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(); languageCode_ = s; return s; @@ -3771,6 +4503,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -3781,15 +4515,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -3797,6 +4530,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -3807,18 +4542,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -3829,6 +4568,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -3838,6 +4578,8 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
      * information, see
@@ -3848,12 +4590,14 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000800; @@ -3863,6 +4607,8 @@ public Builder setLanguageCodeBytes( private java.lang.Object regionCode_ = ""; /** + * + * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -3870,13 +4616,13 @@ public Builder setLanguageCodeBytes(
      * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The regionCode. */ public java.lang.String getRegionCode() { java.lang.Object ref = regionCode_; 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(); regionCode_ = s; return s; @@ -3885,6 +4631,8 @@ public java.lang.String getRegionCode() { } } /** + * + * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -3892,15 +4640,14 @@ public java.lang.String getRegionCode() {
      * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for regionCode. */ - public com.google.protobuf.ByteString - getRegionCodeBytes() { + public com.google.protobuf.ByteString getRegionCodeBytes() { java.lang.Object ref = regionCode_; 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); regionCode_ = b; return b; } else { @@ -3908,6 +4655,8 @@ public java.lang.String getRegionCode() { } } /** + * + * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -3915,18 +4664,22 @@ public java.lang.String getRegionCode() {
      * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } regionCode_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -3934,6 +4687,7 @@ public Builder setRegionCode(
      * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRegionCode() { @@ -3943,6 +4697,8 @@ public Builder clearRegionCode() { return this; } /** + * + * *
      * Optional. The region code, specified as a ccTLD ("top-level domain")
      * two-character value. For more information see
@@ -3950,12 +4706,14 @@ public Builder clearRegionCode() {
      * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for regionCode to set. * @return This builder for chaining. */ - public Builder setRegionCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); regionCode_ = value; bitField0_ |= 0x00001000; @@ -3965,6 +4723,8 @@ public Builder setRegionCodeBytes( private int units_ = 0; /** + * + * *
      * Optional. Specifies the units of measure for the display fields. These
      * fields include the `instruction` field in
@@ -3974,13 +4734,18 @@ public Builder setRegionCodeBytes(
      * display units are inferred from the location of the first origin.
      * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for units. */ - @java.lang.Override public int getUnitsValue() { + @java.lang.Override + public int getUnitsValue() { return units_; } /** + * + * *
      * Optional. Specifies the units of measure for the display fields. These
      * fields include the `instruction` field in
@@ -3990,7 +4755,9 @@ public Builder setRegionCodeBytes(
      * display units are inferred from the location of the first origin.
      * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for units to set. * @return This builder for chaining. */ @@ -4001,6 +4768,8 @@ public Builder setUnitsValue(int value) { return this; } /** + * + * *
      * Optional. Specifies the units of measure for the display fields. These
      * fields include the `instruction` field in
@@ -4010,7 +4779,9 @@ public Builder setUnitsValue(int value) {
      * display units are inferred from the location of the first origin.
      * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The units. */ @java.lang.Override @@ -4019,6 +4790,8 @@ public com.google.maps.routing.v2.Units getUnits() { return result == null ? com.google.maps.routing.v2.Units.UNRECOGNIZED : result; } /** + * + * *
      * Optional. Specifies the units of measure for the display fields. These
      * fields include the `instruction` field in
@@ -4028,7 +4801,9 @@ public com.google.maps.routing.v2.Units getUnits() {
      * display units are inferred from the location of the first origin.
      * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The units to set. * @return This builder for chaining. */ @@ -4042,6 +4817,8 @@ public Builder setUnits(com.google.maps.routing.v2.Units value) { return this; } /** + * + * *
      * Optional. Specifies the units of measure for the display fields. These
      * fields include the `instruction` field in
@@ -4051,7 +4828,9 @@ public Builder setUnits(com.google.maps.routing.v2.Units value) {
      * display units are inferred from the location of the first origin.
      * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearUnits() { @@ -4061,8 +4840,10 @@ public Builder clearUnits() { return this; } - private boolean optimizeWaypointOrder_ ; + private boolean optimizeWaypointOrder_; /** + * + * *
      * Optional. If set to true, the service attempts to minimize the overall cost
      * of the route by re-ordering the specified intermediate waypoints. The
@@ -4077,6 +4858,7 @@ public Builder clearUnits() {
      * 
* * bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The optimizeWaypointOrder. */ @java.lang.Override @@ -4084,6 +4866,8 @@ public boolean getOptimizeWaypointOrder() { return optimizeWaypointOrder_; } /** + * + * *
      * Optional. If set to true, the service attempts to minimize the overall cost
      * of the route by re-ordering the specified intermediate waypoints. The
@@ -4098,6 +4882,7 @@ public boolean getOptimizeWaypointOrder() {
      * 
* * bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The optimizeWaypointOrder to set. * @return This builder for chaining. */ @@ -4109,6 +4894,8 @@ public Builder setOptimizeWaypointOrder(boolean value) { return this; } /** + * + * *
      * Optional. If set to true, the service attempts to minimize the overall cost
      * of the route by re-ordering the specified intermediate waypoints. The
@@ -4123,6 +4910,7 @@ public Builder setOptimizeWaypointOrder(boolean value) {
      * 
* * bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOptimizeWaypointOrder() { @@ -4133,14 +4921,18 @@ public Builder clearOptimizeWaypointOrder() { } private java.util.List requestedReferenceRoutes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRequestedReferenceRoutesIsMutable() { if (!((bitField0_ & 0x00008000) != 0)) { - requestedReferenceRoutes_ = new java.util.ArrayList(requestedReferenceRoutes_); + requestedReferenceRoutes_ = + new java.util.ArrayList(requestedReferenceRoutes_); bitField0_ |= 0x00008000; } } /** + * + * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4149,14 +4941,21 @@ private void ensureRequestedReferenceRoutesIsMutable() {
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the requestedReferenceRoutes. */ - public java.util.List getRequestedReferenceRoutesList() { + public java.util.List + getRequestedReferenceRoutesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute>(requestedReferenceRoutes_, requestedReferenceRoutes_converter_); + java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute>( + requestedReferenceRoutes_, requestedReferenceRoutes_converter_); } /** + * + * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4165,13 +4964,18 @@ public java.util.List
      *
-     * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     *
      * @return The count of requestedReferenceRoutes.
      */
     public int getRequestedReferenceRoutesCount() {
       return requestedReferenceRoutes_.size();
     }
     /**
+     *
+     *
      * 
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4180,14 +4984,20 @@ public int getRequestedReferenceRoutesCount() {
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The requestedReferenceRoutes at the given index. */ - public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedReferenceRoutes(int index) { + public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute + getRequestedReferenceRoutes(int index) { return requestedReferenceRoutes_converter_.convert(requestedReferenceRoutes_.get(index)); } /** + * + * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4196,7 +5006,10 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequest
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The requestedReferenceRoutes to set. * @return This builder for chaining. @@ -4212,6 +5025,8 @@ public Builder setRequestedReferenceRoutes( return this; } /** + * + * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4220,11 +5035,15 @@ public Builder setRequestedReferenceRoutes(
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The requestedReferenceRoutes to add. * @return This builder for chaining. */ - public Builder addRequestedReferenceRoutes(com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute value) { + public Builder addRequestedReferenceRoutes( + com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute value) { if (value == null) { throw new NullPointerException(); } @@ -4234,6 +5053,8 @@ public Builder addRequestedReferenceRoutes(com.google.maps.routing.v2.ComputeRou return this; } /** + * + * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4242,12 +5063,16 @@ public Builder addRequestedReferenceRoutes(com.google.maps.routing.v2.ComputeRou
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The requestedReferenceRoutes to add. * @return This builder for chaining. */ public Builder addAllRequestedReferenceRoutes( - java.lang.Iterable values) { + java.lang.Iterable + values) { ensureRequestedReferenceRoutesIsMutable(); for (com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute value : values) { requestedReferenceRoutes_.add(value.getNumber()); @@ -4256,6 +5081,8 @@ public Builder addAllRequestedReferenceRoutes( return this; } /** + * + * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4264,7 +5091,10 @@ public Builder addAllRequestedReferenceRoutes(
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearRequestedReferenceRoutes() { @@ -4274,6 +5104,8 @@ public Builder clearRequestedReferenceRoutes() { return this; } /** + * + * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4282,14 +5114,18 @@ public Builder clearRequestedReferenceRoutes() {
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for requestedReferenceRoutes. */ - public java.util.List - getRequestedReferenceRoutesValueList() { + public java.util.List getRequestedReferenceRoutesValueList() { return java.util.Collections.unmodifiableList(requestedReferenceRoutes_); } /** + * + * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4298,7 +5134,10 @@ public Builder clearRequestedReferenceRoutes() {
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of requestedReferenceRoutes at the given index. */ @@ -4306,6 +5145,8 @@ public int getRequestedReferenceRoutesValue(int index) { return requestedReferenceRoutes_.get(index); } /** + * + * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4314,19 +5155,23 @@ public int getRequestedReferenceRoutesValue(int index) {
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for requestedReferenceRoutes to set. * @return This builder for chaining. */ - public Builder setRequestedReferenceRoutesValue( - int index, int value) { + public Builder setRequestedReferenceRoutesValue(int index, int value) { ensureRequestedReferenceRoutesIsMutable(); requestedReferenceRoutes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4335,7 +5180,10 @@ public Builder setRequestedReferenceRoutesValue(
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for requestedReferenceRoutes to add. * @return This builder for chaining. */ @@ -4346,6 +5194,8 @@ public Builder addRequestedReferenceRoutesValue(int value) { return this; } /** + * + * *
      * Optional. Specifies what reference routes to calculate as part of the
      * request in addition to the default route. A reference route is a route with
@@ -4354,7 +5204,10 @@ public Builder addRequestedReferenceRoutesValue(int value) {
      * parameters that would generate an optimal fuel efficient route.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The enum numeric values on the wire for requestedReferenceRoutes to add. * @return This builder for chaining. */ @@ -4369,7 +5222,8 @@ public Builder addAllRequestedReferenceRoutesValue( } private java.util.List extraComputations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureExtraComputationsIsMutable() { if (!((bitField0_ & 0x00010000) != 0)) { extraComputations_ = new java.util.ArrayList(extraComputations_); @@ -4377,6 +5231,8 @@ private void ensureExtraComputationsIsMutable() { } } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4384,14 +5240,21 @@ private void ensureExtraComputationsIsMutable() {
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the extraComputations. */ - public java.util.List getExtraComputationsList() { + public java.util.List + getExtraComputationsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation>(extraComputations_, extraComputations_converter_); + java.lang.Integer, com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation>( + extraComputations_, extraComputations_converter_); } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4399,13 +5262,18 @@ public java.util.List
      *
-     * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     *
      * @return The count of extraComputations.
      */
     public int getExtraComputationsCount() {
       return extraComputations_.size();
     }
     /**
+     *
+     *
      * 
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4413,14 +5281,20 @@ public int getExtraComputationsCount() {
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The extraComputations at the given index. */ - public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtraComputations(int index) { + public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtraComputations( + int index) { return extraComputations_converter_.convert(extraComputations_.get(index)); } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4428,7 +5302,10 @@ public com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtra
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The extraComputations to set. * @return This builder for chaining. @@ -4444,6 +5321,8 @@ public Builder setExtraComputations( return this; } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4451,11 +5330,15 @@ public Builder setExtraComputations(
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The extraComputations to add. * @return This builder for chaining. */ - public Builder addExtraComputations(com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation value) { + public Builder addExtraComputations( + com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation value) { if (value == null) { throw new NullPointerException(); } @@ -4465,6 +5348,8 @@ public Builder addExtraComputations(com.google.maps.routing.v2.ComputeRoutesRequ return this; } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4472,12 +5357,17 @@ public Builder addExtraComputations(com.google.maps.routing.v2.ComputeRoutesRequ
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The extraComputations to add. * @return This builder for chaining. */ public Builder addAllExtraComputations( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation> + values) { ensureExtraComputationsIsMutable(); for (com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation value : values) { extraComputations_.add(value.getNumber()); @@ -4486,6 +5376,8 @@ public Builder addAllExtraComputations( return this; } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4493,7 +5385,10 @@ public Builder addAllExtraComputations(
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearExtraComputations() { @@ -4503,6 +5398,8 @@ public Builder clearExtraComputations() { return this; } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4510,14 +5407,18 @@ public Builder clearExtraComputations() {
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for extraComputations. */ - public java.util.List - getExtraComputationsValueList() { + public java.util.List getExtraComputationsValueList() { return java.util.Collections.unmodifiableList(extraComputations_); } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4525,7 +5426,10 @@ public Builder clearExtraComputations() {
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of extraComputations at the given index. */ @@ -4533,6 +5437,8 @@ public int getExtraComputationsValue(int index) { return extraComputations_.get(index); } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4540,19 +5446,23 @@ public int getExtraComputationsValue(int index) {
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for extraComputations to set. * @return This builder for chaining. */ - public Builder setExtraComputationsValue( - int index, int value) { + public Builder setExtraComputationsValue(int index, int value) { ensureExtraComputationsIsMutable(); extraComputations_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4560,7 +5470,10 @@ public Builder setExtraComputationsValue(
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for extraComputations to add. * @return This builder for chaining. */ @@ -4571,6 +5484,8 @@ public Builder addExtraComputationsValue(int value) { return this; } /** + * + * *
      * Optional. A list of extra computations which may be used to complete the
      * request. Note: These extra computations may return extra fields on the
@@ -4578,12 +5493,14 @@ public Builder addExtraComputationsValue(int value) {
      * returned in the response.
      * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The enum numeric values on the wire for extraComputations to add. * @return This builder for chaining. */ - public Builder addAllExtraComputationsValue( - java.lang.Iterable values) { + public Builder addAllExtraComputationsValue(java.lang.Iterable values) { ensureExtraComputationsIsMutable(); for (int value : values) { extraComputations_.add(value); @@ -4594,6 +5511,8 @@ public Builder addAllExtraComputationsValue( private int trafficModel_ = 0; /** + * + * *
      * Optional. Specifies the assumptions to use when calculating time in
      * traffic. This setting affects the value returned in the duration field in
@@ -4608,13 +5527,19 @@ public Builder addAllExtraComputationsValue(
      * specified.
      * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for trafficModel. */ - @java.lang.Override public int getTrafficModelValue() { + @java.lang.Override + public int getTrafficModelValue() { return trafficModel_; } /** + * + * *
      * Optional. Specifies the assumptions to use when calculating time in
      * traffic. This setting affects the value returned in the duration field in
@@ -4629,7 +5554,10 @@ public Builder addAllExtraComputationsValue(
      * specified.
      * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for trafficModel to set. * @return This builder for chaining. */ @@ -4640,6 +5568,8 @@ public Builder setTrafficModelValue(int value) { return this; } /** + * + * *
      * Optional. Specifies the assumptions to use when calculating time in
      * traffic. This setting affects the value returned in the duration field in
@@ -4654,15 +5584,21 @@ public Builder setTrafficModelValue(int value) {
      * specified.
      * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The trafficModel. */ @java.lang.Override public com.google.maps.routing.v2.TrafficModel getTrafficModel() { - com.google.maps.routing.v2.TrafficModel result = com.google.maps.routing.v2.TrafficModel.forNumber(trafficModel_); + com.google.maps.routing.v2.TrafficModel result = + com.google.maps.routing.v2.TrafficModel.forNumber(trafficModel_); return result == null ? com.google.maps.routing.v2.TrafficModel.UNRECOGNIZED : result; } /** + * + * *
      * Optional. Specifies the assumptions to use when calculating time in
      * traffic. This setting affects the value returned in the duration field in
@@ -4677,7 +5613,10 @@ public com.google.maps.routing.v2.TrafficModel getTrafficModel() {
      * specified.
      * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The trafficModel to set. * @return This builder for chaining. */ @@ -4691,6 +5630,8 @@ public Builder setTrafficModel(com.google.maps.routing.v2.TrafficModel value) { return this; } /** + * + * *
      * Optional. Specifies the assumptions to use when calculating time in
      * traffic. This setting affects the value returned in the duration field in
@@ -4705,7 +5646,10 @@ public Builder setTrafficModel(com.google.maps.routing.v2.TrafficModel value) {
      * specified.
      * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearTrafficModel() { @@ -4717,8 +5661,13 @@ public Builder clearTrafficModel() { private com.google.maps.routing.v2.TransitPreferences transitPreferences_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitPreferences, com.google.maps.routing.v2.TransitPreferences.Builder, com.google.maps.routing.v2.TransitPreferencesOrBuilder> transitPreferencesBuilder_; + com.google.maps.routing.v2.TransitPreferences, + com.google.maps.routing.v2.TransitPreferences.Builder, + com.google.maps.routing.v2.TransitPreferencesOrBuilder> + transitPreferencesBuilder_; /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -4726,13 +5675,18 @@ public Builder clearTrafficModel() {
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transitPreferences field is set. */ public boolean hasTransitPreferences() { return ((bitField0_ & 0x00040000) != 0); } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -4740,17 +5694,24 @@ public boolean hasTransitPreferences() {
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transitPreferences. */ public com.google.maps.routing.v2.TransitPreferences getTransitPreferences() { if (transitPreferencesBuilder_ == null) { - return transitPreferences_ == null ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + return transitPreferences_ == null + ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() + : transitPreferences_; } else { return transitPreferencesBuilder_.getMessage(); } } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -4758,7 +5719,9 @@ public com.google.maps.routing.v2.TransitPreferences getTransitPreferences() {
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTransitPreferences(com.google.maps.routing.v2.TransitPreferences value) { if (transitPreferencesBuilder_ == null) { @@ -4774,6 +5737,8 @@ public Builder setTransitPreferences(com.google.maps.routing.v2.TransitPreferenc return this; } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -4781,7 +5746,9 @@ public Builder setTransitPreferences(com.google.maps.routing.v2.TransitPreferenc
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTransitPreferences( com.google.maps.routing.v2.TransitPreferences.Builder builderForValue) { @@ -4795,6 +5762,8 @@ public Builder setTransitPreferences( return this; } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -4802,13 +5771,16 @@ public Builder setTransitPreferences(
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeTransitPreferences(com.google.maps.routing.v2.TransitPreferences value) { if (transitPreferencesBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) && - transitPreferences_ != null && - transitPreferences_ != com.google.maps.routing.v2.TransitPreferences.getDefaultInstance()) { + if (((bitField0_ & 0x00040000) != 0) + && transitPreferences_ != null + && transitPreferences_ + != com.google.maps.routing.v2.TransitPreferences.getDefaultInstance()) { getTransitPreferencesBuilder().mergeFrom(value); } else { transitPreferences_ = value; @@ -4821,6 +5793,8 @@ public Builder mergeTransitPreferences(com.google.maps.routing.v2.TransitPrefere return this; } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -4828,7 +5802,9 @@ public Builder mergeTransitPreferences(com.google.maps.routing.v2.TransitPrefere
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTransitPreferences() { bitField0_ = (bitField0_ & ~0x00040000); @@ -4841,6 +5817,8 @@ public Builder clearTransitPreferences() { return this; } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -4848,7 +5826,9 @@ public Builder clearTransitPreferences() {
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.maps.routing.v2.TransitPreferences.Builder getTransitPreferencesBuilder() { bitField0_ |= 0x00040000; @@ -4856,6 +5836,8 @@ public com.google.maps.routing.v2.TransitPreferences.Builder getTransitPreferenc return getTransitPreferencesFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -4863,17 +5845,22 @@ public com.google.maps.routing.v2.TransitPreferences.Builder getTransitPreferenc
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.maps.routing.v2.TransitPreferencesOrBuilder getTransitPreferencesOrBuilder() { if (transitPreferencesBuilder_ != null) { return transitPreferencesBuilder_.getMessageOrBuilder(); } else { - return transitPreferences_ == null ? - com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() : transitPreferences_; + return transitPreferences_ == null + ? com.google.maps.routing.v2.TransitPreferences.getDefaultInstance() + : transitPreferences_; } } /** + * + * *
      * Optional. Specifies preferences that influence the route returned for
      * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -4881,24 +5868,29 @@ public com.google.maps.routing.v2.TransitPreferencesOrBuilder getTransitPreferen
      * `TRANSIT`.
      * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitPreferences, com.google.maps.routing.v2.TransitPreferences.Builder, com.google.maps.routing.v2.TransitPreferencesOrBuilder> + com.google.maps.routing.v2.TransitPreferences, + com.google.maps.routing.v2.TransitPreferences.Builder, + com.google.maps.routing.v2.TransitPreferencesOrBuilder> getTransitPreferencesFieldBuilder() { if (transitPreferencesBuilder_ == null) { - transitPreferencesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitPreferences, com.google.maps.routing.v2.TransitPreferences.Builder, com.google.maps.routing.v2.TransitPreferencesOrBuilder>( - getTransitPreferences(), - getParentForChildren(), - isClean()); + transitPreferencesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitPreferences, + com.google.maps.routing.v2.TransitPreferences.Builder, + com.google.maps.routing.v2.TransitPreferencesOrBuilder>( + getTransitPreferences(), getParentForChildren(), isClean()); transitPreferences_ = null; } return transitPreferencesBuilder_; } + @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); } @@ -4908,12 +5900,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.ComputeRoutesRequest) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.ComputeRoutesRequest) private static final com.google.maps.routing.v2.ComputeRoutesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.ComputeRoutesRequest(); } @@ -4922,27 +5914,27 @@ public static com.google.maps.routing.v2.ComputeRoutesRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeRoutesRequest 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 ComputeRoutesRequest 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; @@ -4957,6 +5949,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.ComputeRoutesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java index e91e7ecceb11..8a3e7ba3255c 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesRequestOrBuilder.java @@ -1,140 +1,211 @@ +/* + * 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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; -public interface ComputeRoutesRequestOrBuilder extends +public interface ComputeRoutesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.ComputeRoutesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Origin waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the origin field is set. */ boolean hasOrigin(); /** + * + * *
    * Required. Origin waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The origin. */ com.google.maps.routing.v2.Waypoint getOrigin(); /** + * + * *
    * Required. Origin waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint origin = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.maps.routing.v2.WaypointOrBuilder getOriginOrBuilder(); /** + * + * *
    * Required. Destination waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the destination field is set. */ boolean hasDestination(); /** + * + * *
    * Required. Destination waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The destination. */ com.google.maps.routing.v2.Waypoint getDestination(); /** + * + * *
    * Required. Destination waypoint.
    * 
* - * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint destination = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.maps.routing.v2.WaypointOrBuilder getDestinationOrBuilder(); /** + * + * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getIntermediatesList(); + java.util.List getIntermediatesList(); /** + * + * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.maps.routing.v2.Waypoint getIntermediates(int index); /** + * + * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getIntermediatesCount(); /** + * + * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getIntermediatesOrBuilderList(); /** + * + * *
    * Optional. A set of waypoints along the route (excluding terminal points),
    * for either stopping at or passing by. Up to 25 intermediate waypoints are
    * supported.
    * 
* - * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.Waypoint intermediates = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder( - int index); + com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(int index); /** + * + * *
    * Optional. Specifies the mode of transportation.
    * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for travelMode. */ int getTravelModeValue(); /** + * + * *
    * Optional. Specifies the mode of transportation.
    * 
* - * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteTravelMode travel_mode = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The travelMode. */ com.google.maps.routing.v2.RouteTravelMode getTravelMode(); /** + * + * *
    * Optional. Specifies how to compute the route. The server
    * attempts to use the selected routing preference to compute the route. If
@@ -143,11 +214,16 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for routingPreference. */ int getRoutingPreferenceValue(); /** + * + * *
    * Optional. Specifies how to compute the route. The server
    * attempts to use the selected routing preference to compute the route. If
@@ -156,50 +232,75 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
    * 
* - * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RoutingPreference routing_preference = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The routingPreference. */ com.google.maps.routing.v2.RoutingPreference getRoutingPreference(); /** + * + * *
    * Optional. Specifies your preference for the quality of the polyline.
    * 
* - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for polylineQuality. */ int getPolylineQualityValue(); /** + * + * *
    * Optional. Specifies your preference for the quality of the polyline.
    * 
* - * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineQuality polyline_quality = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The polylineQuality. */ com.google.maps.routing.v2.PolylineQuality getPolylineQuality(); /** + * + * *
    * Optional. Specifies the preferred encoding for the polyline.
    * 
* - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for polylineEncoding. */ int getPolylineEncodingValue(); /** + * + * *
    * Optional. Specifies the preferred encoding for the polyline.
    * 
* - * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.PolylineEncoding polyline_encoding = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The polylineEncoding. */ com.google.maps.routing.v2.PolylineEncoding getPolylineEncoding(); /** + * + * *
    * Optional. The departure time. If you don't set this value, then this value
    * defaults to the time that you made the request.
@@ -208,11 +309,15 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the departureTime field is set. */ boolean hasDepartureTime(); /** + * + * *
    * Optional. The departure time. If you don't set this value, then this value
    * defaults to the time that you made the request.
@@ -221,11 +326,15 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The departureTime. */ com.google.protobuf.Timestamp getDepartureTime(); /** + * + * *
    * Optional. The departure time. If you don't set this value, then this value
    * defaults to the time that you made the request.
@@ -234,11 +343,14 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * `TRANSIT`.
    * 
* - * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp departure_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder(); /** + * + * *
    * Optional. The arrival time.
    * NOTE: Can only be set when
@@ -247,11 +359,15 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * both.
    * 
* - * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the arrivalTime field is set. */ boolean hasArrivalTime(); /** + * + * *
    * Optional. The arrival time.
    * NOTE: Can only be set when
@@ -260,11 +376,15 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * both.
    * 
* - * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The arrivalTime. */ com.google.protobuf.Timestamp getArrivalTime(); /** + * + * *
    * Optional. The arrival time.
    * NOTE: Can only be set when
@@ -273,11 +393,14 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * both.
    * 
* - * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp arrival_time = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder(); /** + * + * *
    * Optional. Specifies whether to calculate alternate routes in addition to
    * the route. No alternative routes are returned for requests that have
@@ -285,41 +408,58 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * 
* * bool compute_alternative_routes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The computeAlternativeRoutes. */ boolean getComputeAlternativeRoutes(); /** + * + * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated.
    * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.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.
    * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The routeModifiers. */ com.google.maps.routing.v2.RouteModifiers getRouteModifiers(); /** + * + * *
    * Optional. A set of conditions to satisfy that affect the way routes are
    * calculated.
    * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBuilder(); /** + * + * *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -330,10 +470,13 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    * information, see
@@ -344,12 +487,14 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * 
* * string language_code = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -357,10 +502,13 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The regionCode. */ java.lang.String getRegionCode(); /** + * + * *
    * Optional. The region code, specified as a ccTLD ("top-level domain")
    * two-character value. For more information see
@@ -368,12 +516,14 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * 
* * string region_code = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for regionCode. */ - com.google.protobuf.ByteString - getRegionCodeBytes(); + com.google.protobuf.ByteString getRegionCodeBytes(); /** + * + * *
    * Optional. Specifies the units of measure for the display fields. These
    * fields include the `instruction` field in
@@ -383,11 +533,15 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * display units are inferred from the location of the first origin.
    * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for units. */ int getUnitsValue(); /** + * + * *
    * Optional. Specifies the units of measure for the display fields. These
    * fields include the `instruction` field in
@@ -397,12 +551,16 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * display units are inferred from the location of the first origin.
    * 
* - * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.maps.routing.v2.Units units = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The units. */ com.google.maps.routing.v2.Units getUnits(); /** + * + * *
    * Optional. If set to true, the service attempts to minimize the overall cost
    * of the route by re-ordering the specified intermediate waypoints. The
@@ -417,11 +575,14 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * 
* * bool optimize_waypoint_order = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The optimizeWaypointOrder. */ boolean getOptimizeWaypointOrder(); /** + * + * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -430,11 +591,17 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the requestedReferenceRoutes. */ - java.util.List getRequestedReferenceRoutesList(); + java.util.List + getRequestedReferenceRoutesList(); /** + * + * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -443,11 +610,16 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of requestedReferenceRoutes. */ int getRequestedReferenceRoutesCount(); /** + * + * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -456,12 +628,18 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The requestedReferenceRoutes at the given index. */ - com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedReferenceRoutes(int index); + com.google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute getRequestedReferenceRoutes( + int index); /** + * + * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -470,12 +648,16 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for requestedReferenceRoutes. */ - java.util.List - getRequestedReferenceRoutesValueList(); + java.util.List getRequestedReferenceRoutesValueList(); /** + * + * *
    * Optional. Specifies what reference routes to calculate as part of the
    * request in addition to the default route. A reference route is a route with
@@ -484,13 +666,18 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * parameters that would generate an optimal fuel efficient route.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute requested_reference_routes = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of requestedReferenceRoutes at the given index. */ int getRequestedReferenceRoutesValue(int index); /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -498,11 +685,17 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the extraComputations. */ - java.util.List getExtraComputationsList(); + java.util.List + getExtraComputationsList(); /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -510,11 +703,16 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of extraComputations. */ int getExtraComputationsCount(); /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -522,12 +720,17 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The extraComputations at the given index. */ com.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation getExtraComputations(int index); /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -535,12 +738,16 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the enum numeric values on the wire for extraComputations. */ - java.util.List - getExtraComputationsValueList(); + java.util.List getExtraComputationsValueList(); /** + * + * *
    * Optional. A list of extra computations which may be used to complete the
    * request. Note: These extra computations may return extra fields on the
@@ -548,13 +755,18 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * returned in the response.
    * 
* - * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation extra_computations = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of extraComputations at the given index. */ int getExtraComputationsValue(int index); /** + * + * *
    * Optional. Specifies the assumptions to use when calculating time in
    * traffic. This setting affects the value returned in the duration field in
@@ -569,11 +781,16 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * specified.
    * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for trafficModel. */ int getTrafficModelValue(); /** + * + * *
    * Optional. Specifies the assumptions to use when calculating time in
    * traffic. This setting affects the value returned in the duration field in
@@ -588,12 +805,17 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * specified.
    * 
* - * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TrafficModel traffic_model = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The trafficModel. */ com.google.maps.routing.v2.TrafficModel getTrafficModel(); /** + * + * *
    * Optional. Specifies preferences that influence the route returned for
    * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -601,11 +823,16 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * `TRANSIT`.
    * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the transitPreferences field is set. */ boolean hasTransitPreferences(); /** + * + * *
    * Optional. Specifies preferences that influence the route returned for
    * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -613,11 +840,16 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * `TRANSIT`.
    * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The transitPreferences. */ com.google.maps.routing.v2.TransitPreferences getTransitPreferences(); /** + * + * *
    * Optional. Specifies preferences that influence the route returned for
    * `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
@@ -625,7 +857,9 @@ com.google.maps.routing.v2.WaypointOrBuilder getIntermediatesOrBuilder(
    * `TRANSIT`.
    * 
* - * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.TransitPreferences transit_preferences = 20 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.maps.routing.v2.TransitPreferencesOrBuilder getTransitPreferencesOrBuilder(); } diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponse.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponse.java similarity index 76% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponse.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponse.java index 872abe5a12c4..6105522fdc97 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponse.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponse.java @@ -1,52 +1,74 @@ +/* + * 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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; /** + * + * *
  * ComputeRoutes the response message.
  * 
* * Protobuf type {@code google.maps.routing.v2.ComputeRoutesResponse} */ -public final class ComputeRoutesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ComputeRoutesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.ComputeRoutesResponse) ComputeRoutesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ComputeRoutesResponse.newBuilder() to construct. private ComputeRoutesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ComputeRoutesResponse() { routes_ = 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 ComputeRoutesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.ComputeRoutesResponse.class, com.google.maps.routing.v2.ComputeRoutesResponse.Builder.class); + com.google.maps.routing.v2.ComputeRoutesResponse.class, + com.google.maps.routing.v2.ComputeRoutesResponse.Builder.class); } public static final int ROUTES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List routes_; /** + * + * *
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -62,6 +84,8 @@ public java.util.List getRoutesList() {
     return routes_;
   }
   /**
+   *
+   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -73,11 +97,13 @@ public java.util.List getRoutesList() {
    * repeated .google.maps.routing.v2.Route routes = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getRoutesOrBuilderList() {
     return routes_;
   }
   /**
+   *
+   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -93,6 +119,8 @@ public int getRoutesCount() {
     return routes_.size();
   }
   /**
+   *
+   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -108,6 +136,8 @@ public com.google.maps.routing.v2.Route getRoutes(int index) {
     return routes_.get(index);
   }
   /**
+   *
+   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -119,14 +149,15 @@ public com.google.maps.routing.v2.Route getRoutes(int index) {
    * repeated .google.maps.routing.v2.Route routes = 1;
    */
   @java.lang.Override
-  public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(
-      int index) {
+  public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(int index) {
     return routes_.get(index);
   }
 
   public static final int FALLBACK_INFO_FIELD_NUMBER = 2;
   private com.google.maps.routing.v2.FallbackInfo fallbackInfo_;
   /**
+   *
+   *
    * 
    * In some cases when the server is not able to compute the route results with
    * all of the input preferences, it may fallback to using a different way of
@@ -135,6 +166,7 @@ public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(
    * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 2; + * * @return Whether the fallbackInfo field is set. */ @java.lang.Override @@ -142,6 +174,8 @@ public boolean hasFallbackInfo() { return fallbackInfo_ != null; } /** + * + * *
    * In some cases when the server is not able to compute the route results with
    * all of the input preferences, it may fallback to using a different way of
@@ -150,13 +184,18 @@ public boolean hasFallbackInfo() {
    * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 2; + * * @return The fallbackInfo. */ @java.lang.Override public com.google.maps.routing.v2.FallbackInfo getFallbackInfo() { - return fallbackInfo_ == null ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_; + return fallbackInfo_ == null + ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() + : fallbackInfo_; } /** + * + * *
    * In some cases when the server is not able to compute the route results with
    * all of the input preferences, it may fallback to using a different way of
@@ -168,17 +207,22 @@ public com.google.maps.routing.v2.FallbackInfo getFallbackInfo() {
    */
   @java.lang.Override
   public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder() {
-    return fallbackInfo_ == null ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_;
+    return fallbackInfo_ == null
+        ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance()
+        : fallbackInfo_;
   }
 
   public static final int GEOCODING_RESULTS_FIELD_NUMBER = 3;
   private com.google.maps.routing.v2.GeocodingResults geocodingResults_;
   /**
+   *
+   *
    * 
    * Contains geocoding response info for waypoints specified as addresses.
    * 
* * .google.maps.routing.v2.GeocodingResults geocoding_results = 3; + * * @return Whether the geocodingResults field is set. */ @java.lang.Override @@ -186,18 +230,25 @@ public boolean hasGeocodingResults() { return geocodingResults_ != null; } /** + * + * *
    * Contains geocoding response info for waypoints specified as addresses.
    * 
* * .google.maps.routing.v2.GeocodingResults geocoding_results = 3; + * * @return The geocodingResults. */ @java.lang.Override public com.google.maps.routing.v2.GeocodingResults getGeocodingResults() { - return geocodingResults_ == null ? com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() : geocodingResults_; + return geocodingResults_ == null + ? com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() + : geocodingResults_; } /** + * + * *
    * Contains geocoding response info for waypoints specified as addresses.
    * 
@@ -206,10 +257,13 @@ public com.google.maps.routing.v2.GeocodingResults getGeocodingResults() { */ @java.lang.Override public com.google.maps.routing.v2.GeocodingResultsOrBuilder getGeocodingResultsOrBuilder() { - return geocodingResults_ == null ? com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() : geocodingResults_; + return geocodingResults_ == null + ? com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() + : geocodingResults_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,8 +275,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)); } @@ -242,16 +295,13 @@ 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 (fallbackInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFallbackInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFallbackInfo()); } if (geocodingResults_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getGeocodingResults()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGeocodingResults()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -261,24 +311,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.maps.routing.v2.ComputeRoutesResponse)) { return super.equals(obj); } - com.google.maps.routing.v2.ComputeRoutesResponse other = (com.google.maps.routing.v2.ComputeRoutesResponse) obj; + com.google.maps.routing.v2.ComputeRoutesResponse other = + (com.google.maps.routing.v2.ComputeRoutesResponse) obj; - if (!getRoutesList() - .equals(other.getRoutesList())) return false; + if (!getRoutesList().equals(other.getRoutesList())) return false; if (hasFallbackInfo() != other.hasFallbackInfo()) return false; if (hasFallbackInfo()) { - if (!getFallbackInfo() - .equals(other.getFallbackInfo())) return false; + if (!getFallbackInfo().equals(other.getFallbackInfo())) return false; } if (hasGeocodingResults() != other.hasGeocodingResults()) return false; if (hasGeocodingResults()) { - if (!getGeocodingResults() - .equals(other.getGeocodingResults())) return false; + if (!getGeocodingResults().equals(other.getGeocodingResults())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -308,132 +356,136 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.ComputeRoutesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.ComputeRoutesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.maps.routing.v2.ComputeRoutesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.ComputeRoutesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse 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; } /** + * + * *
    * ComputeRoutes the response message.
    * 
* * Protobuf type {@code google.maps.routing.v2.ComputeRoutesResponse} */ - 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.maps.routing.v2.ComputeRoutesResponse) com.google.maps.routing.v2.ComputeRoutesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.ComputeRoutesResponse.class, com.google.maps.routing.v2.ComputeRoutesResponse.Builder.class); + com.google.maps.routing.v2.ComputeRoutesResponse.class, + com.google.maps.routing.v2.ComputeRoutesResponse.Builder.class); } // Construct using com.google.maps.routing.v2.ComputeRoutesResponse.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 +511,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; } @java.lang.Override @@ -480,14 +532,18 @@ public com.google.maps.routing.v2.ComputeRoutesResponse build() { @java.lang.Override public com.google.maps.routing.v2.ComputeRoutesResponse buildPartial() { - com.google.maps.routing.v2.ComputeRoutesResponse result = new com.google.maps.routing.v2.ComputeRoutesResponse(this); + com.google.maps.routing.v2.ComputeRoutesResponse result = + new com.google.maps.routing.v2.ComputeRoutesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.maps.routing.v2.ComputeRoutesResponse result) { + private void buildPartialRepeatedFields( + com.google.maps.routing.v2.ComputeRoutesResponse result) { if (routesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { routes_ = java.util.Collections.unmodifiableList(routes_); @@ -502,14 +558,12 @@ private void buildPartialRepeatedFields(com.google.maps.routing.v2.ComputeRoutes private void buildPartial0(com.google.maps.routing.v2.ComputeRoutesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { - result.fallbackInfo_ = fallbackInfoBuilder_ == null - ? fallbackInfo_ - : fallbackInfoBuilder_.build(); + result.fallbackInfo_ = + fallbackInfoBuilder_ == null ? fallbackInfo_ : fallbackInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.geocodingResults_ = geocodingResultsBuilder_ == null - ? geocodingResults_ - : geocodingResultsBuilder_.build(); + result.geocodingResults_ = + geocodingResultsBuilder_ == null ? geocodingResults_ : geocodingResultsBuilder_.build(); } } @@ -517,38 +571,39 @@ private void buildPartial0(com.google.maps.routing.v2.ComputeRoutesResponse 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.maps.routing.v2.ComputeRoutesResponse) { - return mergeFrom((com.google.maps.routing.v2.ComputeRoutesResponse)other); + return mergeFrom((com.google.maps.routing.v2.ComputeRoutesResponse) other); } else { super.mergeFrom(other); return this; @@ -556,7 +611,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.maps.routing.v2.ComputeRoutesResponse other) { - if (other == com.google.maps.routing.v2.ComputeRoutesResponse.getDefaultInstance()) return this; + if (other == com.google.maps.routing.v2.ComputeRoutesResponse.getDefaultInstance()) + return this; if (routesBuilder_ == null) { if (!other.routes_.isEmpty()) { if (routes_.isEmpty()) { @@ -575,9 +631,10 @@ public Builder mergeFrom(com.google.maps.routing.v2.ComputeRoutesResponse other) 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_); } @@ -615,39 +672,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.maps.routing.v2.Route m = - input.readMessage( - com.google.maps.routing.v2.Route.parser(), - extensionRegistry); - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.add(m); - } else { - routesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - input.readMessage( - getFallbackInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getGeocodingResultsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.maps.routing.v2.Route m = + input.readMessage(com.google.maps.routing.v2.Route.parser(), extensionRegistry); + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(m); + } else { + routesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage(getFallbackInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getGeocodingResultsFieldBuilder().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) { @@ -657,21 +713,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.maps.routing.v2.Route, com.google.maps.routing.v2.Route.Builder, com.google.maps.routing.v2.RouteOrBuilder> routesBuilder_; + com.google.maps.routing.v2.Route, + com.google.maps.routing.v2.Route.Builder, + com.google.maps.routing.v2.RouteOrBuilder> + routesBuilder_; /** + * + * *
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -690,6 +753,8 @@ public java.util.List getRoutesList() {
       }
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -708,6 +773,8 @@ public int getRoutesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -726,6 +793,8 @@ public com.google.maps.routing.v2.Route getRoutes(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -736,8 +805,7 @@ public com.google.maps.routing.v2.Route getRoutes(int index) {
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public Builder setRoutes(
-        int index, com.google.maps.routing.v2.Route value) {
+    public Builder setRoutes(int index, com.google.maps.routing.v2.Route value) {
       if (routesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -751,6 +819,8 @@ public Builder setRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -761,8 +831,7 @@ public Builder setRoutes(
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public Builder setRoutes(
-        int index, com.google.maps.routing.v2.Route.Builder builderForValue) {
+    public Builder setRoutes(int index, com.google.maps.routing.v2.Route.Builder builderForValue) {
       if (routesBuilder_ == null) {
         ensureRoutesIsMutable();
         routes_.set(index, builderForValue.build());
@@ -773,6 +842,8 @@ public Builder setRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -797,6 +868,8 @@ public Builder addRoutes(com.google.maps.routing.v2.Route value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -807,8 +880,7 @@ public Builder addRoutes(com.google.maps.routing.v2.Route value) {
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public Builder addRoutes(
-        int index, com.google.maps.routing.v2.Route value) {
+    public Builder addRoutes(int index, com.google.maps.routing.v2.Route value) {
       if (routesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -822,6 +894,8 @@ public Builder addRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -832,8 +906,7 @@ public Builder addRoutes(
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public Builder addRoutes(
-        com.google.maps.routing.v2.Route.Builder builderForValue) {
+    public Builder addRoutes(com.google.maps.routing.v2.Route.Builder builderForValue) {
       if (routesBuilder_ == null) {
         ensureRoutesIsMutable();
         routes_.add(builderForValue.build());
@@ -844,6 +917,8 @@ public Builder addRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -854,8 +929,7 @@ public Builder addRoutes(
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public Builder addRoutes(
-        int index, com.google.maps.routing.v2.Route.Builder builderForValue) {
+    public Builder addRoutes(int index, com.google.maps.routing.v2.Route.Builder builderForValue) {
       if (routesBuilder_ == null) {
         ensureRoutesIsMutable();
         routes_.add(index, builderForValue.build());
@@ -866,6 +940,8 @@ public Builder addRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -880,8 +956,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);
@@ -889,6 +964,8 @@ public Builder addAllRoutes(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -910,6 +987,8 @@ public Builder clearRoutes() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -931,6 +1010,8 @@ public Builder removeRoutes(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -941,11 +1022,12 @@ public Builder removeRoutes(int index) {
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public com.google.maps.routing.v2.Route.Builder getRoutesBuilder(
-        int index) {
+    public com.google.maps.routing.v2.Route.Builder getRoutesBuilder(int index) {
       return getRoutesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -956,14 +1038,16 @@ public com.google.maps.routing.v2.Route.Builder getRoutesBuilder(
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(
-        int index) {
+    public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(int index) {
       if (routesBuilder_ == null) {
-        return routes_.get(index);  } else {
+        return routes_.get(index);
+      } else {
         return routesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -974,8 +1058,8 @@ public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public java.util.List 
-         getRoutesOrBuilderList() {
+    public java.util.List
+        getRoutesOrBuilderList() {
       if (routesBuilder_ != null) {
         return routesBuilder_.getMessageOrBuilderList();
       } else {
@@ -983,6 +1067,8 @@ public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -994,10 +1080,12 @@ public com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
     public com.google.maps.routing.v2.Route.Builder addRoutesBuilder() {
-      return getRoutesFieldBuilder().addBuilder(
-          com.google.maps.routing.v2.Route.getDefaultInstance());
+      return getRoutesFieldBuilder()
+          .addBuilder(com.google.maps.routing.v2.Route.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -1008,12 +1096,13 @@ public com.google.maps.routing.v2.Route.Builder addRoutesBuilder() {
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public com.google.maps.routing.v2.Route.Builder addRoutesBuilder(
-        int index) {
-      return getRoutesFieldBuilder().addBuilder(
-          index, com.google.maps.routing.v2.Route.getDefaultInstance());
+    public com.google.maps.routing.v2.Route.Builder addRoutesBuilder(int index) {
+      return getRoutesFieldBuilder()
+          .addBuilder(index, com.google.maps.routing.v2.Route.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Contains an array of computed routes (up to three) when you specify
      * compute_alternatives_routes, and contains just one route when you don't.
@@ -1024,20 +1113,22 @@ public com.google.maps.routing.v2.Route.Builder addRoutesBuilder(
      *
      * repeated .google.maps.routing.v2.Route routes = 1;
      */
-    public java.util.List 
-         getRoutesBuilderList() {
+    public java.util.List getRoutesBuilderList() {
       return getRoutesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.maps.routing.v2.Route, com.google.maps.routing.v2.Route.Builder, com.google.maps.routing.v2.RouteOrBuilder> 
+            com.google.maps.routing.v2.Route,
+            com.google.maps.routing.v2.Route.Builder,
+            com.google.maps.routing.v2.RouteOrBuilder>
         getRoutesFieldBuilder() {
       if (routesBuilder_ == null) {
-        routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.maps.routing.v2.Route, com.google.maps.routing.v2.Route.Builder, com.google.maps.routing.v2.RouteOrBuilder>(
-                routes_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        routesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.maps.routing.v2.Route,
+                com.google.maps.routing.v2.Route.Builder,
+                com.google.maps.routing.v2.RouteOrBuilder>(
+                routes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         routes_ = null;
       }
       return routesBuilder_;
@@ -1045,8 +1136,13 @@ public com.google.maps.routing.v2.Route.Builder addRoutesBuilder(
 
     private com.google.maps.routing.v2.FallbackInfo fallbackInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.FallbackInfo, com.google.maps.routing.v2.FallbackInfo.Builder, com.google.maps.routing.v2.FallbackInfoOrBuilder> fallbackInfoBuilder_;
+            com.google.maps.routing.v2.FallbackInfo,
+            com.google.maps.routing.v2.FallbackInfo.Builder,
+            com.google.maps.routing.v2.FallbackInfoOrBuilder>
+        fallbackInfoBuilder_;
     /**
+     *
+     *
      * 
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1055,12 +1151,15 @@ public com.google.maps.routing.v2.Route.Builder addRoutesBuilder(
      * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 2; + * * @return Whether the fallbackInfo field is set. */ public boolean hasFallbackInfo() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1069,16 +1168,21 @@ public boolean hasFallbackInfo() {
      * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 2; + * * @return The fallbackInfo. */ public com.google.maps.routing.v2.FallbackInfo getFallbackInfo() { if (fallbackInfoBuilder_ == null) { - return fallbackInfo_ == null ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_; + return fallbackInfo_ == null + ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() + : fallbackInfo_; } else { return fallbackInfoBuilder_.getMessage(); } } /** + * + * *
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1102,6 +1206,8 @@ public Builder setFallbackInfo(com.google.maps.routing.v2.FallbackInfo value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1123,6 +1229,8 @@ public Builder setFallbackInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1134,9 +1242,9 @@ public Builder setFallbackInfo(
      */
     public Builder mergeFallbackInfo(com.google.maps.routing.v2.FallbackInfo value) {
       if (fallbackInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          fallbackInfo_ != null &&
-          fallbackInfo_ != com.google.maps.routing.v2.FallbackInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && fallbackInfo_ != null
+            && fallbackInfo_ != com.google.maps.routing.v2.FallbackInfo.getDefaultInstance()) {
           getFallbackInfoBuilder().mergeFrom(value);
         } else {
           fallbackInfo_ = value;
@@ -1149,6 +1257,8 @@ public Builder mergeFallbackInfo(com.google.maps.routing.v2.FallbackInfo value)
       return this;
     }
     /**
+     *
+     *
      * 
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1169,6 +1279,8 @@ public Builder clearFallbackInfo() {
       return this;
     }
     /**
+     *
+     *
      * 
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1184,6 +1296,8 @@ public com.google.maps.routing.v2.FallbackInfo.Builder getFallbackInfoBuilder()
       return getFallbackInfoFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1197,11 +1311,14 @@ public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder
       if (fallbackInfoBuilder_ != null) {
         return fallbackInfoBuilder_.getMessageOrBuilder();
       } else {
-        return fallbackInfo_ == null ?
-            com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_;
+        return fallbackInfo_ == null
+            ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance()
+            : fallbackInfo_;
       }
     }
     /**
+     *
+     *
      * 
      * In some cases when the server is not able to compute the route results with
      * all of the input preferences, it may fallback to using a different way of
@@ -1212,14 +1329,17 @@ public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder
      * .google.maps.routing.v2.FallbackInfo fallback_info = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.FallbackInfo, com.google.maps.routing.v2.FallbackInfo.Builder, com.google.maps.routing.v2.FallbackInfoOrBuilder> 
+            com.google.maps.routing.v2.FallbackInfo,
+            com.google.maps.routing.v2.FallbackInfo.Builder,
+            com.google.maps.routing.v2.FallbackInfoOrBuilder>
         getFallbackInfoFieldBuilder() {
       if (fallbackInfoBuilder_ == null) {
-        fallbackInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.FallbackInfo, com.google.maps.routing.v2.FallbackInfo.Builder, com.google.maps.routing.v2.FallbackInfoOrBuilder>(
-                getFallbackInfo(),
-                getParentForChildren(),
-                isClean());
+        fallbackInfoBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.maps.routing.v2.FallbackInfo,
+                com.google.maps.routing.v2.FallbackInfo.Builder,
+                com.google.maps.routing.v2.FallbackInfoOrBuilder>(
+                getFallbackInfo(), getParentForChildren(), isClean());
         fallbackInfo_ = null;
       }
       return fallbackInfoBuilder_;
@@ -1227,34 +1347,47 @@ public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder
 
     private com.google.maps.routing.v2.GeocodingResults geocodingResults_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.GeocodingResults, com.google.maps.routing.v2.GeocodingResults.Builder, com.google.maps.routing.v2.GeocodingResultsOrBuilder> geocodingResultsBuilder_;
+            com.google.maps.routing.v2.GeocodingResults,
+            com.google.maps.routing.v2.GeocodingResults.Builder,
+            com.google.maps.routing.v2.GeocodingResultsOrBuilder>
+        geocodingResultsBuilder_;
     /**
+     *
+     *
      * 
      * Contains geocoding response info for waypoints specified as addresses.
      * 
* * .google.maps.routing.v2.GeocodingResults geocoding_results = 3; + * * @return Whether the geocodingResults field is set. */ public boolean hasGeocodingResults() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
* * .google.maps.routing.v2.GeocodingResults geocoding_results = 3; + * * @return The geocodingResults. */ public com.google.maps.routing.v2.GeocodingResults getGeocodingResults() { if (geocodingResultsBuilder_ == null) { - return geocodingResults_ == null ? com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() : geocodingResults_; + return geocodingResults_ == null + ? com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() + : geocodingResults_; } else { return geocodingResultsBuilder_.getMessage(); } } /** + * + * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
@@ -1275,6 +1408,8 @@ public Builder setGeocodingResults(com.google.maps.routing.v2.GeocodingResults v return this; } /** + * + * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
@@ -1293,6 +1428,8 @@ public Builder setGeocodingResults( return this; } /** + * + * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
@@ -1301,9 +1438,10 @@ public Builder setGeocodingResults( */ public Builder mergeGeocodingResults(com.google.maps.routing.v2.GeocodingResults value) { if (geocodingResultsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - geocodingResults_ != null && - geocodingResults_ != com.google.maps.routing.v2.GeocodingResults.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && geocodingResults_ != null + && geocodingResults_ + != com.google.maps.routing.v2.GeocodingResults.getDefaultInstance()) { getGeocodingResultsBuilder().mergeFrom(value); } else { geocodingResults_ = value; @@ -1316,6 +1454,8 @@ public Builder mergeGeocodingResults(com.google.maps.routing.v2.GeocodingResults return this; } /** + * + * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
@@ -1333,6 +1473,8 @@ public Builder clearGeocodingResults() { return this; } /** + * + * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
@@ -1345,6 +1487,8 @@ public com.google.maps.routing.v2.GeocodingResults.Builder getGeocodingResultsBu return getGeocodingResultsFieldBuilder().getBuilder(); } /** + * + * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
@@ -1355,11 +1499,14 @@ public com.google.maps.routing.v2.GeocodingResultsOrBuilder getGeocodingResultsO if (geocodingResultsBuilder_ != null) { return geocodingResultsBuilder_.getMessageOrBuilder(); } else { - return geocodingResults_ == null ? - com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() : geocodingResults_; + return geocodingResults_ == null + ? com.google.maps.routing.v2.GeocodingResults.getDefaultInstance() + : geocodingResults_; } } /** + * + * *
      * Contains geocoding response info for waypoints specified as addresses.
      * 
@@ -1367,21 +1514,24 @@ public com.google.maps.routing.v2.GeocodingResultsOrBuilder getGeocodingResultsO * .google.maps.routing.v2.GeocodingResults geocoding_results = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.GeocodingResults, com.google.maps.routing.v2.GeocodingResults.Builder, com.google.maps.routing.v2.GeocodingResultsOrBuilder> + com.google.maps.routing.v2.GeocodingResults, + com.google.maps.routing.v2.GeocodingResults.Builder, + com.google.maps.routing.v2.GeocodingResultsOrBuilder> getGeocodingResultsFieldBuilder() { if (geocodingResultsBuilder_ == null) { - geocodingResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.GeocodingResults, com.google.maps.routing.v2.GeocodingResults.Builder, com.google.maps.routing.v2.GeocodingResultsOrBuilder>( - getGeocodingResults(), - getParentForChildren(), - isClean()); + geocodingResultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.GeocodingResults, + com.google.maps.routing.v2.GeocodingResults.Builder, + com.google.maps.routing.v2.GeocodingResultsOrBuilder>( + getGeocodingResults(), getParentForChildren(), isClean()); geocodingResults_ = null; } return geocodingResultsBuilder_; } + @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); } @@ -1391,12 +1541,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.ComputeRoutesResponse) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.ComputeRoutesResponse) private static final com.google.maps.routing.v2.ComputeRoutesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.ComputeRoutesResponse(); } @@ -1405,27 +1555,27 @@ public static com.google.maps.routing.v2.ComputeRoutesResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeRoutesResponse 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 ComputeRoutesResponse 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; @@ -1440,6 +1590,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.ComputeRoutesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponseOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponseOrBuilder.java similarity index 83% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponseOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponseOrBuilder.java index 46961af3cb76..45fd3b29fbb5 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponseOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ComputeRoutesResponseOrBuilder.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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; -public interface ComputeRoutesResponseOrBuilder extends +public interface ComputeRoutesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.ComputeRoutesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -18,9 +36,10 @@ public interface ComputeRoutesResponseOrBuilder extends
    *
    * repeated .google.maps.routing.v2.Route routes = 1;
    */
-  java.util.List 
-      getRoutesList();
+  java.util.List getRoutesList();
   /**
+   *
+   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -33,6 +52,8 @@ public interface ComputeRoutesResponseOrBuilder extends
    */
   com.google.maps.routing.v2.Route getRoutes(int index);
   /**
+   *
+   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -45,6 +66,8 @@ public interface ComputeRoutesResponseOrBuilder extends
    */
   int getRoutesCount();
   /**
+   *
+   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -55,9 +78,10 @@ public interface ComputeRoutesResponseOrBuilder extends
    *
    * repeated .google.maps.routing.v2.Route routes = 1;
    */
-  java.util.List 
-      getRoutesOrBuilderList();
+  java.util.List getRoutesOrBuilderList();
   /**
+   *
+   *
    * 
    * Contains an array of computed routes (up to three) when you specify
    * compute_alternatives_routes, and contains just one route when you don't.
@@ -68,10 +92,11 @@ public interface ComputeRoutesResponseOrBuilder extends
    *
    * repeated .google.maps.routing.v2.Route routes = 1;
    */
-  com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(
-      int index);
+  com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * In some cases when the server is not able to compute the route results with
    * all of the input preferences, it may fallback to using a different way of
@@ -80,10 +105,13 @@ com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(
    * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 2; + * * @return Whether the fallbackInfo field is set. */ boolean hasFallbackInfo(); /** + * + * *
    * In some cases when the server is not able to compute the route results with
    * all of the input preferences, it may fallback to using a different way of
@@ -92,10 +120,13 @@ com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(
    * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 2; + * * @return The fallbackInfo. */ com.google.maps.routing.v2.FallbackInfo getFallbackInfo(); /** + * + * *
    * In some cases when the server is not able to compute the route results with
    * all of the input preferences, it may fallback to using a different way of
@@ -108,24 +139,32 @@ com.google.maps.routing.v2.RouteOrBuilder getRoutesOrBuilder(
   com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder();
 
   /**
+   *
+   *
    * 
    * Contains geocoding response info for waypoints specified as addresses.
    * 
* * .google.maps.routing.v2.GeocodingResults geocoding_results = 3; + * * @return Whether the geocodingResults field is set. */ boolean hasGeocodingResults(); /** + * + * *
    * Contains geocoding response info for waypoints specified as addresses.
    * 
* * .google.maps.routing.v2.GeocodingResults geocoding_results = 3; + * * @return The geocodingResults. */ com.google.maps.routing.v2.GeocodingResults getGeocodingResults(); /** + * + * *
    * Contains geocoding response info for waypoints specified as addresses.
    * 
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfo.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfo.java similarity index 69% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfo.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfo.java index d9785ef4086b..a0529eef7729 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfo.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfo.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/maps/routing/v2/fallback_info.proto package com.google.maps.routing.v2; /** + * + * *
  * Information related to how and why a fallback result was used. If this field
  * is set, then it means the server used a different routing mode from your
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.maps.routing.v2.FallbackInfo}
  */
-public final class FallbackInfo extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FallbackInfo extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.FallbackInfo)
     FallbackInfoOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FallbackInfo.newBuilder() to construct.
   private FallbackInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FallbackInfo() {
     routingMode_ = 0;
     reason_ = 0;
@@ -28,27 +46,30 @@ private FallbackInfo() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FallbackInfo();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.maps.routing.v2.FallbackInfoProto.internal_static_google_maps_routing_v2_FallbackInfo_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.maps.routing.v2.FallbackInfoProto
+        .internal_static_google_maps_routing_v2_FallbackInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.FallbackInfoProto.internal_static_google_maps_routing_v2_FallbackInfo_fieldAccessorTable
+    return com.google.maps.routing.v2.FallbackInfoProto
+        .internal_static_google_maps_routing_v2_FallbackInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.FallbackInfo.class, com.google.maps.routing.v2.FallbackInfo.Builder.class);
+            com.google.maps.routing.v2.FallbackInfo.class,
+            com.google.maps.routing.v2.FallbackInfo.Builder.class);
   }
 
   public static final int ROUTING_MODE_FIELD_NUMBER = 1;
   private int routingMode_ = 0;
   /**
+   *
+   *
    * 
    * Routing mode used for the response. If fallback was triggered, the mode
    * may be different from routing preference set in the original client
@@ -56,12 +77,16 @@ protected java.lang.Object newInstance(
    * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; + * * @return The enum numeric value on the wire for routingMode. */ - @java.lang.Override public int getRoutingModeValue() { + @java.lang.Override + public int getRoutingModeValue() { return routingMode_; } /** + * + * *
    * Routing mode used for the response. If fallback was triggered, the mode
    * may be different from routing preference set in the original client
@@ -69,16 +94,21 @@ protected java.lang.Object newInstance(
    * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; + * * @return The routingMode. */ - @java.lang.Override public com.google.maps.routing.v2.FallbackRoutingMode getRoutingMode() { - com.google.maps.routing.v2.FallbackRoutingMode result = com.google.maps.routing.v2.FallbackRoutingMode.forNumber(routingMode_); + @java.lang.Override + public com.google.maps.routing.v2.FallbackRoutingMode getRoutingMode() { + com.google.maps.routing.v2.FallbackRoutingMode result = + com.google.maps.routing.v2.FallbackRoutingMode.forNumber(routingMode_); return result == null ? com.google.maps.routing.v2.FallbackRoutingMode.UNRECOGNIZED : result; } public static final int REASON_FIELD_NUMBER = 2; private int reason_ = 0; /** + * + * *
    * The reason why fallback response was used instead of the original response.
    * This field is only populated when the fallback mode is triggered and the
@@ -86,12 +116,16 @@ protected java.lang.Object newInstance(
    * 
* * .google.maps.routing.v2.FallbackReason reason = 2; + * * @return The enum numeric value on the wire for reason. */ - @java.lang.Override public int getReasonValue() { + @java.lang.Override + public int getReasonValue() { return reason_; } /** + * + * *
    * The reason why fallback response was used instead of the original response.
    * This field is only populated when the fallback mode is triggered and the
@@ -99,14 +133,18 @@ protected java.lang.Object newInstance(
    * 
* * .google.maps.routing.v2.FallbackReason reason = 2; + * * @return The reason. */ - @java.lang.Override public com.google.maps.routing.v2.FallbackReason getReason() { - com.google.maps.routing.v2.FallbackReason result = com.google.maps.routing.v2.FallbackReason.forNumber(reason_); + @java.lang.Override + public com.google.maps.routing.v2.FallbackReason getReason() { + com.google.maps.routing.v2.FallbackReason result = + com.google.maps.routing.v2.FallbackReason.forNumber(reason_); return result == null ? com.google.maps.routing.v2.FallbackReason.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,12 +156,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (routingMode_ != com.google.maps.routing.v2.FallbackRoutingMode.FALLBACK_ROUTING_MODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (routingMode_ + != com.google.maps.routing.v2.FallbackRoutingMode.FALLBACK_ROUTING_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, routingMode_); } - if (reason_ != com.google.maps.routing.v2.FallbackReason.FALLBACK_REASON_UNSPECIFIED.getNumber()) { + if (reason_ + != com.google.maps.routing.v2.FallbackReason.FALLBACK_REASON_UNSPECIFIED.getNumber()) { output.writeEnum(2, reason_); } getUnknownFields().writeTo(output); @@ -135,13 +175,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (routingMode_ != com.google.maps.routing.v2.FallbackRoutingMode.FALLBACK_ROUTING_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, routingMode_); + if (routingMode_ + != com.google.maps.routing.v2.FallbackRoutingMode.FALLBACK_ROUTING_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, routingMode_); } - if (reason_ != com.google.maps.routing.v2.FallbackReason.FALLBACK_REASON_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, reason_); + if (reason_ + != com.google.maps.routing.v2.FallbackReason.FALLBACK_REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, reason_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -151,7 +192,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.maps.routing.v2.FallbackInfo)) { return super.equals(obj); @@ -180,99 +221,104 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.FallbackInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.FallbackInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.FallbackInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo 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; } /** + * + * *
    * Information related to how and why a fallback result was used. If this field
    * is set, then it means the server used a different routing mode from your
@@ -281,33 +327,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.maps.routing.v2.FallbackInfo}
    */
-  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.maps.routing.v2.FallbackInfo)
       com.google.maps.routing.v2.FallbackInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.maps.routing.v2.FallbackInfoProto.internal_static_google_maps_routing_v2_FallbackInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.maps.routing.v2.FallbackInfoProto
+          .internal_static_google_maps_routing_v2_FallbackInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.FallbackInfoProto.internal_static_google_maps_routing_v2_FallbackInfo_fieldAccessorTable
+      return com.google.maps.routing.v2.FallbackInfoProto
+          .internal_static_google_maps_routing_v2_FallbackInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.FallbackInfo.class, com.google.maps.routing.v2.FallbackInfo.Builder.class);
+              com.google.maps.routing.v2.FallbackInfo.class,
+              com.google.maps.routing.v2.FallbackInfo.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.FallbackInfo.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();
@@ -318,9 +363,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.maps.routing.v2.FallbackInfoProto.internal_static_google_maps_routing_v2_FallbackInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.maps.routing.v2.FallbackInfoProto
+          .internal_static_google_maps_routing_v2_FallbackInfo_descriptor;
     }
 
     @java.lang.Override
@@ -339,8 +384,11 @@ public com.google.maps.routing.v2.FallbackInfo build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.FallbackInfo buildPartial() {
-      com.google.maps.routing.v2.FallbackInfo result = new com.google.maps.routing.v2.FallbackInfo(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.maps.routing.v2.FallbackInfo result =
+          new com.google.maps.routing.v2.FallbackInfo(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -359,38 +407,39 @@ private void buildPartial0(com.google.maps.routing.v2.FallbackInfo 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.maps.routing.v2.FallbackInfo) {
-        return mergeFrom((com.google.maps.routing.v2.FallbackInfo)other);
+        return mergeFrom((com.google.maps.routing.v2.FallbackInfo) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -431,22 +480,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              routingMode_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              reason_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                routingMode_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                reason_ = 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) {
@@ -456,10 +508,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private int routingMode_ = 0;
     /**
+     *
+     *
      * 
      * Routing mode used for the response. If fallback was triggered, the mode
      * may be different from routing preference set in the original client
@@ -467,12 +522,16 @@ public Builder mergeFrom(
      * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; + * * @return The enum numeric value on the wire for routingMode. */ - @java.lang.Override public int getRoutingModeValue() { + @java.lang.Override + public int getRoutingModeValue() { return routingMode_; } /** + * + * *
      * Routing mode used for the response. If fallback was triggered, the mode
      * may be different from routing preference set in the original client
@@ -480,6 +539,7 @@ public Builder mergeFrom(
      * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; + * * @param value The enum numeric value on the wire for routingMode to set. * @return This builder for chaining. */ @@ -490,6 +550,8 @@ public Builder setRoutingModeValue(int value) { return this; } /** + * + * *
      * Routing mode used for the response. If fallback was triggered, the mode
      * may be different from routing preference set in the original client
@@ -497,14 +559,18 @@ public Builder setRoutingModeValue(int value) {
      * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; + * * @return The routingMode. */ @java.lang.Override public com.google.maps.routing.v2.FallbackRoutingMode getRoutingMode() { - com.google.maps.routing.v2.FallbackRoutingMode result = com.google.maps.routing.v2.FallbackRoutingMode.forNumber(routingMode_); + com.google.maps.routing.v2.FallbackRoutingMode result = + com.google.maps.routing.v2.FallbackRoutingMode.forNumber(routingMode_); return result == null ? com.google.maps.routing.v2.FallbackRoutingMode.UNRECOGNIZED : result; } /** + * + * *
      * Routing mode used for the response. If fallback was triggered, the mode
      * may be different from routing preference set in the original client
@@ -512,6 +578,7 @@ public com.google.maps.routing.v2.FallbackRoutingMode getRoutingMode() {
      * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; + * * @param value The routingMode to set. * @return This builder for chaining. */ @@ -525,6 +592,8 @@ public Builder setRoutingMode(com.google.maps.routing.v2.FallbackRoutingMode val return this; } /** + * + * *
      * Routing mode used for the response. If fallback was triggered, the mode
      * may be different from routing preference set in the original client
@@ -532,6 +601,7 @@ public Builder setRoutingMode(com.google.maps.routing.v2.FallbackRoutingMode val
      * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; + * * @return This builder for chaining. */ public Builder clearRoutingMode() { @@ -543,6 +613,8 @@ public Builder clearRoutingMode() { private int reason_ = 0; /** + * + * *
      * The reason why fallback response was used instead of the original response.
      * This field is only populated when the fallback mode is triggered and the
@@ -550,12 +622,16 @@ public Builder clearRoutingMode() {
      * 
* * .google.maps.routing.v2.FallbackReason reason = 2; + * * @return The enum numeric value on the wire for reason. */ - @java.lang.Override public int getReasonValue() { + @java.lang.Override + public int getReasonValue() { return reason_; } /** + * + * *
      * The reason why fallback response was used instead of the original response.
      * This field is only populated when the fallback mode is triggered and the
@@ -563,6 +639,7 @@ public Builder clearRoutingMode() {
      * 
* * .google.maps.routing.v2.FallbackReason reason = 2; + * * @param value The enum numeric value on the wire for reason to set. * @return This builder for chaining. */ @@ -573,6 +650,8 @@ public Builder setReasonValue(int value) { return this; } /** + * + * *
      * The reason why fallback response was used instead of the original response.
      * This field is only populated when the fallback mode is triggered and the
@@ -580,14 +659,18 @@ public Builder setReasonValue(int value) {
      * 
* * .google.maps.routing.v2.FallbackReason reason = 2; + * * @return The reason. */ @java.lang.Override public com.google.maps.routing.v2.FallbackReason getReason() { - com.google.maps.routing.v2.FallbackReason result = com.google.maps.routing.v2.FallbackReason.forNumber(reason_); + com.google.maps.routing.v2.FallbackReason result = + com.google.maps.routing.v2.FallbackReason.forNumber(reason_); return result == null ? com.google.maps.routing.v2.FallbackReason.UNRECOGNIZED : result; } /** + * + * *
      * The reason why fallback response was used instead of the original response.
      * This field is only populated when the fallback mode is triggered and the
@@ -595,6 +678,7 @@ public com.google.maps.routing.v2.FallbackReason getReason() {
      * 
* * .google.maps.routing.v2.FallbackReason reason = 2; + * * @param value The reason to set. * @return This builder for chaining. */ @@ -608,6 +692,8 @@ public Builder setReason(com.google.maps.routing.v2.FallbackReason value) { return this; } /** + * + * *
      * The reason why fallback response was used instead of the original response.
      * This field is only populated when the fallback mode is triggered and the
@@ -615,6 +701,7 @@ public Builder setReason(com.google.maps.routing.v2.FallbackReason value) {
      * 
* * .google.maps.routing.v2.FallbackReason reason = 2; + * * @return This builder for chaining. */ public Builder clearReason() { @@ -623,9 +710,9 @@ public Builder clearReason() { 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); } @@ -635,12 +722,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.FallbackInfo) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.FallbackInfo) private static final com.google.maps.routing.v2.FallbackInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.FallbackInfo(); } @@ -649,27 +736,27 @@ public static com.google.maps.routing.v2.FallbackInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FallbackInfo 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 FallbackInfo 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; @@ -684,6 +771,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.FallbackInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoOrBuilder.java similarity index 72% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoOrBuilder.java index eab36a068616..a5975cac3d8f 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoOrBuilder.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/maps/routing/v2/fallback_info.proto package com.google.maps.routing.v2; -public interface FallbackInfoOrBuilder extends +public interface FallbackInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.FallbackInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Routing mode used for the response. If fallback was triggered, the mode
    * may be different from routing preference set in the original client
@@ -15,10 +33,13 @@ public interface FallbackInfoOrBuilder extends
    * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; + * * @return The enum numeric value on the wire for routingMode. */ int getRoutingModeValue(); /** + * + * *
    * Routing mode used for the response. If fallback was triggered, the mode
    * may be different from routing preference set in the original client
@@ -26,11 +47,14 @@ public interface FallbackInfoOrBuilder extends
    * 
* * .google.maps.routing.v2.FallbackRoutingMode routing_mode = 1; + * * @return The routingMode. */ com.google.maps.routing.v2.FallbackRoutingMode getRoutingMode(); /** + * + * *
    * The reason why fallback response was used instead of the original response.
    * This field is only populated when the fallback mode is triggered and the
@@ -38,10 +62,13 @@ public interface FallbackInfoOrBuilder extends
    * 
* * .google.maps.routing.v2.FallbackReason reason = 2; + * * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** + * + * *
    * The reason why fallback response was used instead of the original response.
    * This field is only populated when the fallback mode is triggered and the
@@ -49,6 +76,7 @@ public interface FallbackInfoOrBuilder extends
    * 
* * .google.maps.routing.v2.FallbackReason reason = 2; + * * @return The reason. */ com.google.maps.routing.v2.FallbackReason getReason(); diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java new file mode 100644 index 000000000000..ca736e452f8e --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java @@ -0,0 +1,74 @@ +/* + * 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/maps/routing/v2/fallback_info.proto + +package com.google.maps.routing.v2; + +public final class FallbackInfoProto { + private FallbackInfoProto() {} + + 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_maps_routing_v2_FallbackInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_FallbackInfo_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/maps/routing/v2/fallback_info.p" + + "roto\022\026google.maps.routing.v2\"\211\001\n\014Fallbac" + + "kInfo\022A\n\014routing_mode\030\001 \001(\0162+.google.map" + + "s.routing.v2.FallbackRoutingMode\0226\n\006reas" + + "on\030\002 \001(\0162&.google.maps.routing.v2.Fallba" + + "ckReason*Y\n\016FallbackReason\022\037\n\033FALLBACK_R" + + "EASON_UNSPECIFIED\020\000\022\020\n\014SERVER_ERROR\020\001\022\024\n" + + "\020LATENCY_EXCEEDED\020\002*v\n\023FallbackRoutingMo" + + "de\022%\n!FALLBACK_ROUTING_MODE_UNSPECIFIED\020" + + "\000\022\034\n\030FALLBACK_TRAFFIC_UNAWARE\020\001\022\032\n\026FALLB" + + "ACK_TRAFFIC_AWARE\020\002B\306\001\n\032com.google.maps." + + "routing.v2B\021FallbackInfoProtoP\001Z:cloud.g" + + "oogle.com/go/maps/routing/apiv2/routingp" + + "b;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Rou" + + "ting.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Googl" + + "e::Maps::Routing::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_maps_routing_v2_FallbackInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_FallbackInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_FallbackInfo_descriptor, + new java.lang.String[] { + "RoutingMode", "Reason", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackReason.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackReason.java similarity index 70% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackReason.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackReason.java index c9b91da581c9..ce11b11e3334 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackReason.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackReason.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/maps/routing/v2/fallback_info.proto package com.google.maps.routing.v2; /** + * + * *
  * Reasons for using fallback response.
  * 
* * Protobuf enum {@code google.maps.routing.v2.FallbackReason} */ -public enum FallbackReason - implements com.google.protobuf.ProtocolMessageEnum { +public enum FallbackReason implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * No fallback reason specified.
    * 
@@ -21,6 +39,8 @@ public enum FallbackReason */ FALLBACK_REASON_UNSPECIFIED(0), /** + * + * *
    * A server error happened while calculating routes with your preferred
    * routing mode, but we were able to return a result calculated by an
@@ -31,6 +51,8 @@ public enum FallbackReason
    */
   SERVER_ERROR(1),
   /**
+   *
+   *
    * 
    * We were not able to finish the calculation with your preferred routing mode
    * on time, but we were able to return a result calculated by an alternative
@@ -44,6 +66,8 @@ public enum FallbackReason
   ;
 
   /**
+   *
+   *
    * 
    * No fallback reason specified.
    * 
@@ -52,6 +76,8 @@ public enum FallbackReason */ public static final int FALLBACK_REASON_UNSPECIFIED_VALUE = 0; /** + * + * *
    * A server error happened while calculating routes with your preferred
    * routing mode, but we were able to return a result calculated by an
@@ -62,6 +88,8 @@ public enum FallbackReason
    */
   public static final int SERVER_ERROR_VALUE = 1;
   /**
+   *
+   *
    * 
    * We were not able to finish the calculation with your preferred routing mode
    * on time, but we were able to return a result calculated by an alternative
@@ -72,7 +100,6 @@ public enum FallbackReason
    */
   public static final int LATENCY_EXCEEDED_VALUE = 2;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -97,49 +124,49 @@ public static FallbackReason valueOf(int value) {
    */
   public static FallbackReason forNumber(int value) {
     switch (value) {
-      case 0: return FALLBACK_REASON_UNSPECIFIED;
-      case 1: return SERVER_ERROR;
-      case 2: return LATENCY_EXCEEDED;
-      default: return null;
+      case 0:
+        return FALLBACK_REASON_UNSPECIFIED;
+      case 1:
+        return SERVER_ERROR;
+      case 2:
+        return LATENCY_EXCEEDED;
+      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<
-      FallbackReason> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public FallbackReason findValueByNumber(int number) {
-            return FallbackReason.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 FallbackReason findValueByNumber(int number) {
+          return FallbackReason.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.maps.routing.v2.FallbackInfoProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final FallbackReason[] VALUES = values();
 
-  public static FallbackReason valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static FallbackReason 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;
@@ -155,4 +182,3 @@ private FallbackReason(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.FallbackReason)
 }
-
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackRoutingMode.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackRoutingMode.java
similarity index 71%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackRoutingMode.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackRoutingMode.java
index 68da15f39cf0..8513c10a7068 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackRoutingMode.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackRoutingMode.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/maps/routing/v2/fallback_info.proto
 
 package com.google.maps.routing.v2;
 
 /**
+ *
+ *
  * 
  * Actual routing mode used for returned fallback response.
  * 
* * Protobuf enum {@code google.maps.routing.v2.FallbackRoutingMode} */ -public enum FallbackRoutingMode - implements com.google.protobuf.ProtocolMessageEnum { +public enum FallbackRoutingMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Not used.
    * 
@@ -21,6 +39,8 @@ public enum FallbackRoutingMode */ FALLBACK_ROUTING_MODE_UNSPECIFIED(0), /** + * + * *
    * Indicates the `TRAFFIC_UNAWARE` [google.maps.routing.v2.RoutingPreference]
    * was used to compute the response.
@@ -30,6 +50,8 @@ public enum FallbackRoutingMode
    */
   FALLBACK_TRAFFIC_UNAWARE(1),
   /**
+   *
+   *
    * 
    * Indicates the `TRAFFIC_AWARE`
    * [RoutingPreference][google.maps.routing.v2.RoutingPreference] was used to
@@ -43,6 +65,8 @@ public enum FallbackRoutingMode
   ;
 
   /**
+   *
+   *
    * 
    * Not used.
    * 
@@ -51,6 +75,8 @@ public enum FallbackRoutingMode */ public static final int FALLBACK_ROUTING_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Indicates the `TRAFFIC_UNAWARE` [google.maps.routing.v2.RoutingPreference]
    * was used to compute the response.
@@ -60,6 +86,8 @@ public enum FallbackRoutingMode
    */
   public static final int FALLBACK_TRAFFIC_UNAWARE_VALUE = 1;
   /**
+   *
+   *
    * 
    * Indicates the `TRAFFIC_AWARE`
    * [RoutingPreference][google.maps.routing.v2.RoutingPreference] was used to
@@ -70,7 +98,6 @@ public enum FallbackRoutingMode
    */
   public static final int FALLBACK_TRAFFIC_AWARE_VALUE = 2;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -95,10 +122,14 @@ public static FallbackRoutingMode valueOf(int value) {
    */
   public static FallbackRoutingMode forNumber(int value) {
     switch (value) {
-      case 0: return FALLBACK_ROUTING_MODE_UNSPECIFIED;
-      case 1: return FALLBACK_TRAFFIC_UNAWARE;
-      case 2: return FALLBACK_TRAFFIC_AWARE;
-      default: return null;
+      case 0:
+        return FALLBACK_ROUTING_MODE_UNSPECIFIED;
+      case 1:
+        return FALLBACK_TRAFFIC_UNAWARE;
+      case 2:
+        return FALLBACK_TRAFFIC_AWARE;
+      default:
+        return null;
     }
   }
 
@@ -106,28 +137,28 @@ public static FallbackRoutingMode forNumber(int value) {
       internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      FallbackRoutingMode> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public FallbackRoutingMode findValueByNumber(int number) {
-            return FallbackRoutingMode.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 FallbackRoutingMode findValueByNumber(int number) {
+              return FallbackRoutingMode.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.maps.routing.v2.FallbackInfoProto.getDescriptor().getEnumTypes().get(1);
   }
 
@@ -136,8 +167,7 @@ public FallbackRoutingMode findValueByNumber(int number) {
   public static FallbackRoutingMode 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;
@@ -153,4 +183,3 @@ private FallbackRoutingMode(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.FallbackRoutingMode)
 }
-
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypoint.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypoint.java
similarity index 74%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypoint.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypoint.java
index 929af8ab4b3a..44ff9c8f29d5 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypoint.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypoint.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/maps/routing/v2/geocoding_results.proto
 
 package com.google.maps.routing.v2;
 
 /**
+ *
+ *
  * 
  * Details about the locations used as waypoints. Only populated for address
  * waypoints. Includes details about the geocoding results for the purposes of
@@ -12,50 +29,54 @@
  *
  * Protobuf type {@code google.maps.routing.v2.GeocodedWaypoint}
  */
-public final class GeocodedWaypoint extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GeocodedWaypoint extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.GeocodedWaypoint)
     GeocodedWaypointOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GeocodedWaypoint.newBuilder() to construct.
   private GeocodedWaypoint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GeocodedWaypoint() {
-    type_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    type_ = com.google.protobuf.LazyStringArrayList.emptyList();
     placeId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GeocodedWaypoint();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.maps.routing.v2.GeocodingResultsProto
+        .internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodedWaypoint_fieldAccessorTable
+    return com.google.maps.routing.v2.GeocodingResultsProto
+        .internal_static_google_maps_routing_v2_GeocodedWaypoint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.GeocodedWaypoint.class, com.google.maps.routing.v2.GeocodedWaypoint.Builder.class);
+            com.google.maps.routing.v2.GeocodedWaypoint.class,
+            com.google.maps.routing.v2.GeocodedWaypoint.Builder.class);
   }
 
   private int bitField0_;
   public static final int GEOCODER_STATUS_FIELD_NUMBER = 1;
   private com.google.rpc.Status geocoderStatus_;
   /**
+   *
+   *
    * 
    * Indicates the status code resulting from the geocoding operation.
    * 
* * .google.rpc.Status geocoder_status = 1; + * * @return Whether the geocoderStatus field is set. */ @java.lang.Override @@ -63,11 +84,14 @@ public boolean hasGeocoderStatus() { return geocoderStatus_ != null; } /** + * + * *
    * Indicates the status code resulting from the geocoding operation.
    * 
* * .google.rpc.Status geocoder_status = 1; + * * @return The geocoderStatus. */ @java.lang.Override @@ -75,6 +99,8 @@ public com.google.rpc.Status getGeocoderStatus() { return geocoderStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : geocoderStatus_; } /** + * + * *
    * Indicates the status code resulting from the geocoding operation.
    * 
@@ -89,6 +115,8 @@ public com.google.rpc.StatusOrBuilder getGeocoderStatusOrBuilder() { public static final int INTERMEDIATE_WAYPOINT_REQUEST_INDEX_FIELD_NUMBER = 2; private int intermediateWaypointRequestIndex_ = 0; /** + * + * *
    * The index of the corresponding intermediate waypoint in the request.
    * Only populated if the corresponding waypoint is an intermediate
@@ -96,6 +124,7 @@ public com.google.rpc.StatusOrBuilder getGeocoderStatusOrBuilder() {
    * 
* * optional int32 intermediate_waypoint_request_index = 2; + * * @return Whether the intermediateWaypointRequestIndex field is set. */ @java.lang.Override @@ -103,6 +132,8 @@ public boolean hasIntermediateWaypointRequestIndex() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The index of the corresponding intermediate waypoint in the request.
    * Only populated if the corresponding waypoint is an intermediate
@@ -110,6 +141,7 @@ public boolean hasIntermediateWaypointRequestIndex() {
    * 
* * optional int32 intermediate_waypoint_request_index = 2; + * * @return The intermediateWaypointRequestIndex. */ @java.lang.Override @@ -118,10 +150,13 @@ public int getIntermediateWaypointRequestIndex() { } public static final int TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList type_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -129,13 +164,15 @@ public int getIntermediateWaypointRequestIndex() {
    * 
* * repeated string type = 3; + * * @return A list containing the type. */ - public com.google.protobuf.ProtocolStringList - getTypeList() { + public com.google.protobuf.ProtocolStringList getTypeList() { return type_; } /** + * + * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -143,12 +180,15 @@ public int getIntermediateWaypointRequestIndex() {
    * 
* * repeated string type = 3; + * * @return The count of type. */ public int getTypeCount() { return type_.size(); } /** + * + * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -156,6 +196,7 @@ public int getTypeCount() {
    * 
* * repeated string type = 3; + * * @param index The index of the element to return. * @return The type at the given index. */ @@ -163,6 +204,8 @@ public java.lang.String getType(int index) { return type_.get(index); } /** + * + * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -170,17 +213,19 @@ public java.lang.String getType(int index) {
    * 
* * repeated string type = 3; + * * @param index The index of the value to return. * @return The bytes of the type at the given index. */ - public com.google.protobuf.ByteString - getTypeBytes(int index) { + public com.google.protobuf.ByteString getTypeBytes(int index) { return type_.getByteString(index); } public static final int PARTIAL_MATCH_FIELD_NUMBER = 4; private boolean partialMatch_ = false; /** + * + * *
    * Indicates that the geocoder did not return an exact match for the original
    * request, though it was able to match part of the requested address. You may
@@ -189,6 +234,7 @@ public java.lang.String getType(int index) {
    * 
* * bool partial_match = 4; + * * @return The partialMatch. */ @java.lang.Override @@ -197,14 +243,18 @@ public boolean getPartialMatch() { } public static final int PLACE_ID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object placeId_ = ""; /** + * + * *
    * The place ID for this result.
    * 
* * string place_id = 5; + * * @return The placeId. */ @java.lang.Override @@ -213,29 +263,29 @@ 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(); placeId_ = s; return s; } } /** + * + * *
    * The place ID for this result.
    * 
* * string place_id = 5; + * * @return The bytes for placeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPlaceIdBytes() { + public com.google.protobuf.ByteString getPlaceIdBytes() { java.lang.Object ref = placeId_; 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); placeId_ = b; return b; } else { @@ -244,6 +294,7 @@ public java.lang.String getPlaceId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,8 +306,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 (geocoderStatus_ != null) { output.writeMessage(1, getGeocoderStatus()); } @@ -282,12 +332,12 @@ public int getSerializedSize() { size = 0; if (geocoderStatus_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGeocoderStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGeocoderStatus()); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, intermediateWaypointRequestIndex_); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 2, intermediateWaypointRequestIndex_); } { int dataSize = 0; @@ -298,8 +348,7 @@ public int getSerializedSize() { size += 1 * getTypeList().size(); } if (partialMatch_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, partialMatch_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, partialMatch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(placeId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, placeId_); @@ -312,29 +361,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.maps.routing.v2.GeocodedWaypoint)) { return super.equals(obj); } - com.google.maps.routing.v2.GeocodedWaypoint other = (com.google.maps.routing.v2.GeocodedWaypoint) obj; + com.google.maps.routing.v2.GeocodedWaypoint other = + (com.google.maps.routing.v2.GeocodedWaypoint) obj; if (hasGeocoderStatus() != other.hasGeocoderStatus()) return false; if (hasGeocoderStatus()) { - if (!getGeocoderStatus() - .equals(other.getGeocoderStatus())) return false; + if (!getGeocoderStatus().equals(other.getGeocoderStatus())) return false; } - if (hasIntermediateWaypointRequestIndex() != other.hasIntermediateWaypointRequestIndex()) return false; + if (hasIntermediateWaypointRequestIndex() != other.hasIntermediateWaypointRequestIndex()) + return false; if (hasIntermediateWaypointRequestIndex()) { - if (getIntermediateWaypointRequestIndex() - != other.getIntermediateWaypointRequestIndex()) return false; - } - if (!getTypeList() - .equals(other.getTypeList())) return false; - if (getPartialMatch() - != other.getPartialMatch()) return false; - if (!getPlaceId() - .equals(other.getPlaceId())) return false; + if (getIntermediateWaypointRequestIndex() != other.getIntermediateWaypointRequestIndex()) + return false; + } + if (!getTypeList().equals(other.getTypeList())) return false; + if (getPartialMatch() != other.getPartialMatch()) return false; + if (!getPlaceId().equals(other.getPlaceId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -359,8 +406,7 @@ public int hashCode() { hash = (53 * hash) + getTypeList().hashCode(); } hash = (37 * hash) + PARTIAL_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPartialMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPartialMatch()); hash = (37 * hash) + PLACE_ID_FIELD_NUMBER; hash = (53 * hash) + getPlaceId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -368,99 +414,104 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.GeocodedWaypoint parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.GeocodedWaypoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.GeocodedWaypoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint 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; } /** + * + * *
    * Details about the locations used as waypoints. Only populated for address
    * waypoints. Includes details about the geocoding results for the purposes of
@@ -469,33 +520,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.maps.routing.v2.GeocodedWaypoint}
    */
-  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.maps.routing.v2.GeocodedWaypoint)
       com.google.maps.routing.v2.GeocodedWaypointOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.maps.routing.v2.GeocodingResultsProto
+          .internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodedWaypoint_fieldAccessorTable
+      return com.google.maps.routing.v2.GeocodingResultsProto
+          .internal_static_google_maps_routing_v2_GeocodedWaypoint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.GeocodedWaypoint.class, com.google.maps.routing.v2.GeocodedWaypoint.Builder.class);
+              com.google.maps.routing.v2.GeocodedWaypoint.class,
+              com.google.maps.routing.v2.GeocodedWaypoint.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.GeocodedWaypoint.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();
@@ -506,17 +556,16 @@ public Builder clear() {
         geocoderStatusBuilder_ = null;
       }
       intermediateWaypointRequestIndex_ = 0;
-      type_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      type_ = com.google.protobuf.LazyStringArrayList.emptyList();
       partialMatch_ = false;
       placeId_ = "";
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.maps.routing.v2.GeocodingResultsProto
+          .internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor;
     }
 
     @java.lang.Override
@@ -535,8 +584,11 @@ public com.google.maps.routing.v2.GeocodedWaypoint build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.GeocodedWaypoint buildPartial() {
-      com.google.maps.routing.v2.GeocodedWaypoint result = new com.google.maps.routing.v2.GeocodedWaypoint(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.maps.routing.v2.GeocodedWaypoint result =
+          new com.google.maps.routing.v2.GeocodedWaypoint(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -544,9 +596,8 @@ public com.google.maps.routing.v2.GeocodedWaypoint buildPartial() {
     private void buildPartial0(com.google.maps.routing.v2.GeocodedWaypoint result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.geocoderStatus_ = geocoderStatusBuilder_ == null
-            ? geocoderStatus_
-            : geocoderStatusBuilder_.build();
+        result.geocoderStatus_ =
+            geocoderStatusBuilder_ == null ? geocoderStatus_ : geocoderStatusBuilder_.build();
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000002) != 0)) {
@@ -570,38 +621,39 @@ private void buildPartial0(com.google.maps.routing.v2.GeocodedWaypoint 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.maps.routing.v2.GeocodedWaypoint) {
-        return mergeFrom((com.google.maps.routing.v2.GeocodedWaypoint)other);
+        return mergeFrom((com.google.maps.routing.v2.GeocodedWaypoint) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -660,40 +712,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getGeocoderStatusFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              intermediateWaypointRequestIndex_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureTypeIsMutable();
-              type_.add(s);
-              break;
-            } // case 26
-            case 32: {
-              partialMatch_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              placeId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getGeocoderStatusFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                intermediateWaypointRequestIndex_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureTypeIsMutable();
+                type_.add(s);
+                break;
+              } // case 26
+            case 32:
+              {
+                partialMatch_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                placeId_ = 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) {
@@ -703,38 +759,50 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.rpc.Status geocoderStatus_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> geocoderStatusBuilder_;
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        geocoderStatusBuilder_;
     /**
+     *
+     *
      * 
      * Indicates the status code resulting from the geocoding operation.
      * 
* * .google.rpc.Status geocoder_status = 1; + * * @return Whether the geocoderStatus field is set. */ public boolean hasGeocoderStatus() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Indicates the status code resulting from the geocoding operation.
      * 
* * .google.rpc.Status geocoder_status = 1; + * * @return The geocoderStatus. */ public com.google.rpc.Status getGeocoderStatus() { if (geocoderStatusBuilder_ == null) { - return geocoderStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : geocoderStatus_; + return geocoderStatus_ == null + ? com.google.rpc.Status.getDefaultInstance() + : geocoderStatus_; } else { return geocoderStatusBuilder_.getMessage(); } } /** + * + * *
      * Indicates the status code resulting from the geocoding operation.
      * 
@@ -755,14 +823,15 @@ public Builder setGeocoderStatus(com.google.rpc.Status value) { return this; } /** + * + * *
      * Indicates the status code resulting from the geocoding operation.
      * 
* * .google.rpc.Status geocoder_status = 1; */ - public Builder setGeocoderStatus( - com.google.rpc.Status.Builder builderForValue) { + public Builder setGeocoderStatus(com.google.rpc.Status.Builder builderForValue) { if (geocoderStatusBuilder_ == null) { geocoderStatus_ = builderForValue.build(); } else { @@ -773,6 +842,8 @@ public Builder setGeocoderStatus( return this; } /** + * + * *
      * Indicates the status code resulting from the geocoding operation.
      * 
@@ -781,9 +852,9 @@ public Builder setGeocoderStatus( */ public Builder mergeGeocoderStatus(com.google.rpc.Status value) { if (geocoderStatusBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - geocoderStatus_ != null && - geocoderStatus_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && geocoderStatus_ != null + && geocoderStatus_ != com.google.rpc.Status.getDefaultInstance()) { getGeocoderStatusBuilder().mergeFrom(value); } else { geocoderStatus_ = value; @@ -796,6 +867,8 @@ public Builder mergeGeocoderStatus(com.google.rpc.Status value) { return this; } /** + * + * *
      * Indicates the status code resulting from the geocoding operation.
      * 
@@ -813,6 +886,8 @@ public Builder clearGeocoderStatus() { return this; } /** + * + * *
      * Indicates the status code resulting from the geocoding operation.
      * 
@@ -825,6 +900,8 @@ public com.google.rpc.Status.Builder getGeocoderStatusBuilder() { return getGeocoderStatusFieldBuilder().getBuilder(); } /** + * + * *
      * Indicates the status code resulting from the geocoding operation.
      * 
@@ -835,11 +912,14 @@ public com.google.rpc.StatusOrBuilder getGeocoderStatusOrBuilder() { if (geocoderStatusBuilder_ != null) { return geocoderStatusBuilder_.getMessageOrBuilder(); } else { - return geocoderStatus_ == null ? - com.google.rpc.Status.getDefaultInstance() : geocoderStatus_; + return geocoderStatus_ == null + ? com.google.rpc.Status.getDefaultInstance() + : geocoderStatus_; } } /** + * + * *
      * Indicates the status code resulting from the geocoding operation.
      * 
@@ -847,21 +927,24 @@ public com.google.rpc.StatusOrBuilder getGeocoderStatusOrBuilder() { * .google.rpc.Status geocoder_status = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getGeocoderStatusFieldBuilder() { if (geocoderStatusBuilder_ == null) { - geocoderStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getGeocoderStatus(), - getParentForChildren(), - isClean()); + geocoderStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + getGeocoderStatus(), getParentForChildren(), isClean()); geocoderStatus_ = null; } return geocoderStatusBuilder_; } - private int intermediateWaypointRequestIndex_ ; + private int intermediateWaypointRequestIndex_; /** + * + * *
      * The index of the corresponding intermediate waypoint in the request.
      * Only populated if the corresponding waypoint is an intermediate
@@ -869,6 +952,7 @@ public com.google.rpc.StatusOrBuilder getGeocoderStatusOrBuilder() {
      * 
* * optional int32 intermediate_waypoint_request_index = 2; + * * @return Whether the intermediateWaypointRequestIndex field is set. */ @java.lang.Override @@ -876,6 +960,8 @@ public boolean hasIntermediateWaypointRequestIndex() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The index of the corresponding intermediate waypoint in the request.
      * Only populated if the corresponding waypoint is an intermediate
@@ -883,6 +969,7 @@ public boolean hasIntermediateWaypointRequestIndex() {
      * 
* * optional int32 intermediate_waypoint_request_index = 2; + * * @return The intermediateWaypointRequestIndex. */ @java.lang.Override @@ -890,6 +977,8 @@ public int getIntermediateWaypointRequestIndex() { return intermediateWaypointRequestIndex_; } /** + * + * *
      * The index of the corresponding intermediate waypoint in the request.
      * Only populated if the corresponding waypoint is an intermediate
@@ -897,6 +986,7 @@ public int getIntermediateWaypointRequestIndex() {
      * 
* * optional int32 intermediate_waypoint_request_index = 2; + * * @param value The intermediateWaypointRequestIndex to set. * @return This builder for chaining. */ @@ -908,6 +998,8 @@ public Builder setIntermediateWaypointRequestIndex(int value) { return this; } /** + * + * *
      * The index of the corresponding intermediate waypoint in the request.
      * Only populated if the corresponding waypoint is an intermediate
@@ -915,6 +1007,7 @@ public Builder setIntermediateWaypointRequestIndex(int value) {
      * 
* * optional int32 intermediate_waypoint_request_index = 2; + * * @return This builder for chaining. */ public Builder clearIntermediateWaypointRequestIndex() { @@ -926,6 +1019,7 @@ public Builder clearIntermediateWaypointRequestIndex() { private com.google.protobuf.LazyStringArrayList type_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTypeIsMutable() { if (!type_.isModifiable()) { type_ = new com.google.protobuf.LazyStringArrayList(type_); @@ -933,6 +1027,8 @@ private void ensureTypeIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -940,14 +1036,16 @@ private void ensureTypeIsMutable() {
      * 
* * repeated string type = 3; + * * @return A list containing the type. */ - public com.google.protobuf.ProtocolStringList - getTypeList() { + public com.google.protobuf.ProtocolStringList getTypeList() { type_.makeImmutable(); return type_; } /** + * + * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -955,12 +1053,15 @@ private void ensureTypeIsMutable() {
      * 
* * repeated string type = 3; + * * @return The count of type. */ public int getTypeCount() { return type_.size(); } /** + * + * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -968,6 +1069,7 @@ public int getTypeCount() {
      * 
* * repeated string type = 3; + * * @param index The index of the element to return. * @return The type at the given index. */ @@ -975,6 +1077,8 @@ public java.lang.String getType(int index) { return type_.get(index); } /** + * + * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -982,14 +1086,16 @@ public java.lang.String getType(int index) {
      * 
* * repeated string type = 3; + * * @param index The index of the value to return. * @return The bytes of the type at the given index. */ - public com.google.protobuf.ByteString - getTypeBytes(int index) { + public com.google.protobuf.ByteString getTypeBytes(int index) { return type_.getByteString(index); } /** + * + * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -997,13 +1103,15 @@ public java.lang.String getType(int index) {
      * 
* * repeated string type = 3; + * * @param index The index to set the value at. * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setType(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTypeIsMutable(); type_.set(index, value); bitField0_ |= 0x00000004; @@ -1011,6 +1119,8 @@ public Builder setType( return this; } /** + * + * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -1018,12 +1128,14 @@ public Builder setType(
      * 
* * repeated string type = 3; + * * @param value The type to add. * @return This builder for chaining. */ - public Builder addType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTypeIsMutable(); type_.add(value); bitField0_ |= 0x00000004; @@ -1031,6 +1143,8 @@ public Builder addType( return this; } /** + * + * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -1038,19 +1152,20 @@ public Builder addType(
      * 
* * repeated string type = 3; + * * @param values The type to add. * @return This builder for chaining. */ - public Builder addAllType( - java.lang.Iterable values) { + public Builder addAllType(java.lang.Iterable values) { ensureTypeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, type_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, type_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -1058,16 +1173,19 @@ public Builder addAllType(
      * 
* * repeated string type = 3; + * * @return This builder for chaining. */ public Builder clearType() { - type_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + type_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * The type(s) of the result, in the form of zero or more type tags.
      * Supported types:
@@ -1075,12 +1193,14 @@ public Builder clearType() {
      * 
* * repeated string type = 3; + * * @param value The bytes of the type to add. * @return This builder for chaining. */ - public Builder addTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTypeIsMutable(); type_.add(value); @@ -1089,8 +1209,10 @@ public Builder addTypeBytes( return this; } - private boolean partialMatch_ ; + private boolean partialMatch_; /** + * + * *
      * Indicates that the geocoder did not return an exact match for the original
      * request, though it was able to match part of the requested address. You may
@@ -1099,6 +1221,7 @@ public Builder addTypeBytes(
      * 
* * bool partial_match = 4; + * * @return The partialMatch. */ @java.lang.Override @@ -1106,6 +1229,8 @@ public boolean getPartialMatch() { return partialMatch_; } /** + * + * *
      * Indicates that the geocoder did not return an exact match for the original
      * request, though it was able to match part of the requested address. You may
@@ -1114,6 +1239,7 @@ public boolean getPartialMatch() {
      * 
* * bool partial_match = 4; + * * @param value The partialMatch to set. * @return This builder for chaining. */ @@ -1125,6 +1251,8 @@ public Builder setPartialMatch(boolean value) { return this; } /** + * + * *
      * Indicates that the geocoder did not return an exact match for the original
      * request, though it was able to match part of the requested address. You may
@@ -1133,6 +1261,7 @@ public Builder setPartialMatch(boolean value) {
      * 
* * bool partial_match = 4; + * * @return This builder for chaining. */ public Builder clearPartialMatch() { @@ -1144,18 +1273,20 @@ public Builder clearPartialMatch() { private java.lang.Object placeId_ = ""; /** + * + * *
      * The place ID for this result.
      * 
* * string place_id = 5; + * * @return The placeId. */ public java.lang.String getPlaceId() { java.lang.Object ref = placeId_; 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(); placeId_ = s; return s; @@ -1164,20 +1295,21 @@ public java.lang.String getPlaceId() { } } /** + * + * *
      * The place ID for this result.
      * 
* * string place_id = 5; + * * @return The bytes for placeId. */ - public com.google.protobuf.ByteString - getPlaceIdBytes() { + public com.google.protobuf.ByteString getPlaceIdBytes() { java.lang.Object ref = placeId_; 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); placeId_ = b; return b; } else { @@ -1185,28 +1317,35 @@ public java.lang.String getPlaceId() { } } /** + * + * *
      * The place ID for this result.
      * 
* * string place_id = 5; + * * @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(); + } placeId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * The place ID for this result.
      * 
* * string place_id = 5; + * * @return This builder for chaining. */ public Builder clearPlaceId() { @@ -1216,26 +1355,30 @@ public Builder clearPlaceId() { return this; } /** + * + * *
      * The place ID for this result.
      * 
* * string place_id = 5; + * * @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); placeId_ = 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); } @@ -1245,12 +1388,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.GeocodedWaypoint) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.GeocodedWaypoint) private static final com.google.maps.routing.v2.GeocodedWaypoint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.GeocodedWaypoint(); } @@ -1259,27 +1402,27 @@ public static com.google.maps.routing.v2.GeocodedWaypoint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GeocodedWaypoint 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 GeocodedWaypoint 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; @@ -1294,6 +1437,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.GeocodedWaypoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypointOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypointOrBuilder.java similarity index 79% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypointOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypointOrBuilder.java index 57e36ef20ddb..22a7609e5ee8 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypointOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodedWaypointOrBuilder.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/maps/routing/v2/geocoding_results.proto package com.google.maps.routing.v2; -public interface GeocodedWaypointOrBuilder extends +public interface GeocodedWaypointOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.GeocodedWaypoint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Indicates the status code resulting from the geocoding operation.
    * 
* * .google.rpc.Status geocoder_status = 1; + * * @return Whether the geocoderStatus field is set. */ boolean hasGeocoderStatus(); /** + * + * *
    * Indicates the status code resulting from the geocoding operation.
    * 
* * .google.rpc.Status geocoder_status = 1; + * * @return The geocoderStatus. */ com.google.rpc.Status getGeocoderStatus(); /** + * + * *
    * Indicates the status code resulting from the geocoding operation.
    * 
@@ -35,6 +59,8 @@ public interface GeocodedWaypointOrBuilder extends com.google.rpc.StatusOrBuilder getGeocoderStatusOrBuilder(); /** + * + * *
    * The index of the corresponding intermediate waypoint in the request.
    * Only populated if the corresponding waypoint is an intermediate
@@ -42,10 +68,13 @@ public interface GeocodedWaypointOrBuilder extends
    * 
* * optional int32 intermediate_waypoint_request_index = 2; + * * @return Whether the intermediateWaypointRequestIndex field is set. */ boolean hasIntermediateWaypointRequestIndex(); /** + * + * *
    * The index of the corresponding intermediate waypoint in the request.
    * Only populated if the corresponding waypoint is an intermediate
@@ -53,11 +82,14 @@ public interface GeocodedWaypointOrBuilder extends
    * 
* * optional int32 intermediate_waypoint_request_index = 2; + * * @return The intermediateWaypointRequestIndex. */ int getIntermediateWaypointRequestIndex(); /** + * + * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -65,11 +97,13 @@ public interface GeocodedWaypointOrBuilder extends
    * 
* * repeated string type = 3; + * * @return A list containing the type. */ - java.util.List - getTypeList(); + java.util.List getTypeList(); /** + * + * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -77,10 +111,13 @@ public interface GeocodedWaypointOrBuilder extends
    * 
* * repeated string type = 3; + * * @return The count of type. */ int getTypeCount(); /** + * + * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -88,11 +125,14 @@ public interface GeocodedWaypointOrBuilder extends
    * 
* * repeated string type = 3; + * * @param index The index of the element to return. * @return The type at the given index. */ java.lang.String getType(int index); /** + * + * *
    * The type(s) of the result, in the form of zero or more type tags.
    * Supported types:
@@ -100,13 +140,15 @@ public interface GeocodedWaypointOrBuilder extends
    * 
* * repeated string type = 3; + * * @param index The index of the value to return. * @return The bytes of the type at the given index. */ - com.google.protobuf.ByteString - getTypeBytes(int index); + com.google.protobuf.ByteString getTypeBytes(int index); /** + * + * *
    * Indicates that the geocoder did not return an exact match for the original
    * request, though it was able to match part of the requested address. You may
@@ -115,27 +157,33 @@ public interface GeocodedWaypointOrBuilder extends
    * 
* * bool partial_match = 4; + * * @return The partialMatch. */ boolean getPartialMatch(); /** + * + * *
    * The place ID for this result.
    * 
* * string place_id = 5; + * * @return The placeId. */ java.lang.String getPlaceId(); /** + * + * *
    * The place ID for this result.
    * 
* * string place_id = 5; + * * @return The bytes for placeId. */ - com.google.protobuf.ByteString - getPlaceIdBytes(); + com.google.protobuf.ByteString getPlaceIdBytes(); } diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResults.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResults.java similarity index 73% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResults.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResults.java index e5df7fb012b2..1e4fc07399a4 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResults.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResults.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/maps/routing/v2/geocoding_results.proto package com.google.maps.routing.v2; /** + * + * *
  * Contains [GeocodedWaypoints][google.maps.routing.v2.GeocodedWaypoint] for
  * origin, destination and intermediate waypoints. Only populated for address
@@ -12,47 +29,52 @@
  *
  * Protobuf type {@code google.maps.routing.v2.GeocodingResults}
  */
-public final class GeocodingResults extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GeocodingResults extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.GeocodingResults)
     GeocodingResultsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GeocodingResults.newBuilder() to construct.
   private GeocodingResults(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GeocodingResults() {
     intermediates_ = 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 GeocodingResults();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodingResults_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.maps.routing.v2.GeocodingResultsProto
+        .internal_static_google_maps_routing_v2_GeocodingResults_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable
+    return com.google.maps.routing.v2.GeocodingResultsProto
+        .internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.GeocodingResults.class, com.google.maps.routing.v2.GeocodingResults.Builder.class);
+            com.google.maps.routing.v2.GeocodingResults.class,
+            com.google.maps.routing.v2.GeocodingResults.Builder.class);
   }
 
   public static final int ORIGIN_FIELD_NUMBER = 1;
   private com.google.maps.routing.v2.GeocodedWaypoint origin_;
   /**
+   *
+   *
    * 
    * Origin geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint origin = 1; + * * @return Whether the origin field is set. */ @java.lang.Override @@ -60,18 +82,25 @@ public boolean hasOrigin() { return origin_ != null; } /** + * + * *
    * Origin geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint origin = 1; + * * @return The origin. */ @java.lang.Override public com.google.maps.routing.v2.GeocodedWaypoint getOrigin() { - return origin_ == null ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : origin_; + return origin_ == null + ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() + : origin_; } /** + * + * *
    * Origin geocoded waypoint.
    * 
@@ -80,17 +109,22 @@ public com.google.maps.routing.v2.GeocodedWaypoint getOrigin() { */ @java.lang.Override public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getOriginOrBuilder() { - return origin_ == null ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : origin_; + return origin_ == null + ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() + : origin_; } public static final int DESTINATION_FIELD_NUMBER = 2; private com.google.maps.routing.v2.GeocodedWaypoint destination_; /** + * + * *
    * Destination geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint destination = 2; + * * @return Whether the destination field is set. */ @java.lang.Override @@ -98,18 +132,25 @@ public boolean hasDestination() { return destination_ != null; } /** + * + * *
    * Destination geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint destination = 2; + * * @return The destination. */ @java.lang.Override public com.google.maps.routing.v2.GeocodedWaypoint getDestination() { - return destination_ == null ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : destination_; + return destination_ == null + ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() + : destination_; } /** + * + * *
    * Destination geocoded waypoint.
    * 
@@ -118,13 +159,18 @@ public com.google.maps.routing.v2.GeocodedWaypoint getDestination() { */ @java.lang.Override public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getDestinationOrBuilder() { - return destination_ == null ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : destination_; + return destination_ == null + ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() + : destination_; } public static final int INTERMEDIATES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List intermediates_; /** + * + * *
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -138,6 +184,8 @@ public java.util.List getIntermedia
     return intermediates_;
   }
   /**
+   *
+   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -147,11 +195,13 @@ public java.util.List getIntermedia
    * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getIntermediatesOrBuilderList() {
     return intermediates_;
   }
   /**
+   *
+   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -165,6 +215,8 @@ public int getIntermediatesCount() {
     return intermediates_.size();
   }
   /**
+   *
+   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -178,6 +230,8 @@ public com.google.maps.routing.v2.GeocodedWaypoint getIntermediates(int index) {
     return intermediates_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -187,12 +241,12 @@ public com.google.maps.routing.v2.GeocodedWaypoint getIntermediates(int index) {
    * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    */
   @java.lang.Override
-  public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBuilder(
-      int index) {
+  public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBuilder(int index) {
     return intermediates_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -204,8 +258,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 (origin_ != null) {
       output.writeMessage(1, getOrigin());
     }
@@ -225,16 +278,13 @@ public int getSerializedSize() {
 
     size = 0;
     if (origin_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getOrigin());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOrigin());
     }
     if (destination_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getDestination());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDestination());
     }
     for (int i = 0; i < intermediates_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, intermediates_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, intermediates_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -244,25 +294,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.maps.routing.v2.GeocodingResults)) {
       return super.equals(obj);
     }
-    com.google.maps.routing.v2.GeocodingResults other = (com.google.maps.routing.v2.GeocodingResults) obj;
+    com.google.maps.routing.v2.GeocodingResults other =
+        (com.google.maps.routing.v2.GeocodingResults) obj;
 
     if (hasOrigin() != other.hasOrigin()) return false;
     if (hasOrigin()) {
-      if (!getOrigin()
-          .equals(other.getOrigin())) return false;
+      if (!getOrigin().equals(other.getOrigin())) return false;
     }
     if (hasDestination() != other.hasDestination()) return false;
     if (hasDestination()) {
-      if (!getDestination()
-          .equals(other.getDestination())) return false;
+      if (!getDestination().equals(other.getDestination())) return false;
     }
-    if (!getIntermediatesList()
-        .equals(other.getIntermediatesList())) return false;
+    if (!getIntermediatesList().equals(other.getIntermediatesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -291,99 +339,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.maps.routing.v2.GeocodingResults parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.maps.routing.v2.GeocodingResults parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.maps.routing.v2.GeocodingResults parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults 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;
   }
   /**
+   *
+   *
    * 
    * Contains [GeocodedWaypoints][google.maps.routing.v2.GeocodedWaypoint] for
    * origin, destination and intermediate waypoints. Only populated for address
@@ -392,33 +445,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.maps.routing.v2.GeocodingResults}
    */
-  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.maps.routing.v2.GeocodingResults)
       com.google.maps.routing.v2.GeocodingResultsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodingResults_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.maps.routing.v2.GeocodingResultsProto
+          .internal_static_google_maps_routing_v2_GeocodingResults_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable
+      return com.google.maps.routing.v2.GeocodingResultsProto
+          .internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.GeocodingResults.class, com.google.maps.routing.v2.GeocodingResults.Builder.class);
+              com.google.maps.routing.v2.GeocodingResults.class,
+              com.google.maps.routing.v2.GeocodingResults.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.GeocodingResults.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();
@@ -444,9 +496,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.maps.routing.v2.GeocodingResultsProto.internal_static_google_maps_routing_v2_GeocodingResults_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.maps.routing.v2.GeocodingResultsProto
+          .internal_static_google_maps_routing_v2_GeocodingResults_descriptor;
     }
 
     @java.lang.Override
@@ -465,9 +517,12 @@ public com.google.maps.routing.v2.GeocodingResults build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.GeocodingResults buildPartial() {
-      com.google.maps.routing.v2.GeocodingResults result = new com.google.maps.routing.v2.GeocodingResults(this);
+      com.google.maps.routing.v2.GeocodingResults result =
+          new com.google.maps.routing.v2.GeocodingResults(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -487,14 +542,11 @@ private void buildPartialRepeatedFields(com.google.maps.routing.v2.GeocodingResu
     private void buildPartial0(com.google.maps.routing.v2.GeocodingResults result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.origin_ = originBuilder_ == null
-            ? origin_
-            : originBuilder_.build();
+        result.origin_ = originBuilder_ == null ? origin_ : originBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.destination_ = destinationBuilder_ == null
-            ? destination_
-            : destinationBuilder_.build();
+        result.destination_ =
+            destinationBuilder_ == null ? destination_ : destinationBuilder_.build();
       }
     }
 
@@ -502,38 +554,39 @@ private void buildPartial0(com.google.maps.routing.v2.GeocodingResults 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.maps.routing.v2.GeocodingResults) {
-        return mergeFrom((com.google.maps.routing.v2.GeocodingResults)other);
+        return mergeFrom((com.google.maps.routing.v2.GeocodingResults) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -566,9 +619,10 @@ public Builder mergeFrom(com.google.maps.routing.v2.GeocodingResults other) {
             intermediatesBuilder_ = null;
             intermediates_ = other.intermediates_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            intermediatesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getIntermediatesFieldBuilder() : null;
+            intermediatesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getIntermediatesFieldBuilder()
+                    : null;
           } else {
             intermediatesBuilder_.addAllMessages(other.intermediates_);
           }
@@ -600,39 +654,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getOriginFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getDestinationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              com.google.maps.routing.v2.GeocodedWaypoint m =
-                  input.readMessage(
-                      com.google.maps.routing.v2.GeocodedWaypoint.parser(),
-                      extensionRegistry);
-              if (intermediatesBuilder_ == null) {
-                ensureIntermediatesIsMutable();
-                intermediates_.add(m);
-              } else {
-                intermediatesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getOriginFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.maps.routing.v2.GeocodedWaypoint m =
+                    input.readMessage(
+                        com.google.maps.routing.v2.GeocodedWaypoint.parser(), extensionRegistry);
+                if (intermediatesBuilder_ == null) {
+                  ensureIntermediatesIsMutable();
+                  intermediates_.add(m);
+                } else {
+                  intermediatesBuilder_.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) {
@@ -642,38 +695,52 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.maps.routing.v2.GeocodedWaypoint origin_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder> originBuilder_;
+            com.google.maps.routing.v2.GeocodedWaypoint,
+            com.google.maps.routing.v2.GeocodedWaypoint.Builder,
+            com.google.maps.routing.v2.GeocodedWaypointOrBuilder>
+        originBuilder_;
     /**
+     *
+     *
      * 
      * Origin geocoded waypoint.
      * 
* * .google.maps.routing.v2.GeocodedWaypoint origin = 1; + * * @return Whether the origin field is set. */ public boolean hasOrigin() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Origin geocoded waypoint.
      * 
* * .google.maps.routing.v2.GeocodedWaypoint origin = 1; + * * @return The origin. */ public com.google.maps.routing.v2.GeocodedWaypoint getOrigin() { if (originBuilder_ == null) { - return origin_ == null ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : origin_; + return origin_ == null + ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() + : origin_; } else { return originBuilder_.getMessage(); } } /** + * + * *
      * Origin geocoded waypoint.
      * 
@@ -694,14 +761,15 @@ public Builder setOrigin(com.google.maps.routing.v2.GeocodedWaypoint value) { return this; } /** + * + * *
      * Origin geocoded waypoint.
      * 
* * .google.maps.routing.v2.GeocodedWaypoint origin = 1; */ - public Builder setOrigin( - com.google.maps.routing.v2.GeocodedWaypoint.Builder builderForValue) { + public Builder setOrigin(com.google.maps.routing.v2.GeocodedWaypoint.Builder builderForValue) { if (originBuilder_ == null) { origin_ = builderForValue.build(); } else { @@ -712,6 +780,8 @@ public Builder setOrigin( return this; } /** + * + * *
      * Origin geocoded waypoint.
      * 
@@ -720,9 +790,9 @@ public Builder setOrigin( */ public Builder mergeOrigin(com.google.maps.routing.v2.GeocodedWaypoint value) { if (originBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - origin_ != null && - origin_ != com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && origin_ != null + && origin_ != com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance()) { getOriginBuilder().mergeFrom(value); } else { origin_ = value; @@ -735,6 +805,8 @@ public Builder mergeOrigin(com.google.maps.routing.v2.GeocodedWaypoint value) { return this; } /** + * + * *
      * Origin geocoded waypoint.
      * 
@@ -752,6 +824,8 @@ public Builder clearOrigin() { return this; } /** + * + * *
      * Origin geocoded waypoint.
      * 
@@ -764,6 +838,8 @@ public com.google.maps.routing.v2.GeocodedWaypoint.Builder getOriginBuilder() { return getOriginFieldBuilder().getBuilder(); } /** + * + * *
      * Origin geocoded waypoint.
      * 
@@ -774,11 +850,14 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getOriginOrBuilder() if (originBuilder_ != null) { return originBuilder_.getMessageOrBuilder(); } else { - return origin_ == null ? - com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : origin_; + return origin_ == null + ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() + : origin_; } } /** + * + * *
      * Origin geocoded waypoint.
      * 
@@ -786,14 +865,17 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getOriginOrBuilder() * .google.maps.routing.v2.GeocodedWaypoint origin = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder> + com.google.maps.routing.v2.GeocodedWaypoint, + com.google.maps.routing.v2.GeocodedWaypoint.Builder, + com.google.maps.routing.v2.GeocodedWaypointOrBuilder> getOriginFieldBuilder() { if (originBuilder_ == null) { - originBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder>( - getOrigin(), - getParentForChildren(), - isClean()); + originBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.GeocodedWaypoint, + com.google.maps.routing.v2.GeocodedWaypoint.Builder, + com.google.maps.routing.v2.GeocodedWaypointOrBuilder>( + getOrigin(), getParentForChildren(), isClean()); origin_ = null; } return originBuilder_; @@ -801,34 +883,47 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getOriginOrBuilder() private com.google.maps.routing.v2.GeocodedWaypoint destination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder> destinationBuilder_; + com.google.maps.routing.v2.GeocodedWaypoint, + com.google.maps.routing.v2.GeocodedWaypoint.Builder, + com.google.maps.routing.v2.GeocodedWaypointOrBuilder> + destinationBuilder_; /** + * + * *
      * Destination geocoded waypoint.
      * 
* * .google.maps.routing.v2.GeocodedWaypoint destination = 2; + * * @return Whether the destination field is set. */ public boolean hasDestination() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Destination geocoded waypoint.
      * 
* * .google.maps.routing.v2.GeocodedWaypoint destination = 2; + * * @return The destination. */ public com.google.maps.routing.v2.GeocodedWaypoint getDestination() { if (destinationBuilder_ == null) { - return destination_ == null ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : destination_; + return destination_ == null + ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() + : destination_; } else { return destinationBuilder_.getMessage(); } } /** + * + * *
      * Destination geocoded waypoint.
      * 
@@ -849,6 +944,8 @@ public Builder setDestination(com.google.maps.routing.v2.GeocodedWaypoint value) return this; } /** + * + * *
      * Destination geocoded waypoint.
      * 
@@ -867,6 +964,8 @@ public Builder setDestination( return this; } /** + * + * *
      * Destination geocoded waypoint.
      * 
@@ -875,9 +974,9 @@ public Builder setDestination( */ public Builder mergeDestination(com.google.maps.routing.v2.GeocodedWaypoint value) { if (destinationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - destination_ != null && - destination_ != com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && destination_ != null + && destination_ != com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance()) { getDestinationBuilder().mergeFrom(value); } else { destination_ = value; @@ -890,6 +989,8 @@ public Builder mergeDestination(com.google.maps.routing.v2.GeocodedWaypoint valu return this; } /** + * + * *
      * Destination geocoded waypoint.
      * 
@@ -907,6 +1008,8 @@ public Builder clearDestination() { return this; } /** + * + * *
      * Destination geocoded waypoint.
      * 
@@ -919,6 +1022,8 @@ public com.google.maps.routing.v2.GeocodedWaypoint.Builder getDestinationBuilder return getDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * Destination geocoded waypoint.
      * 
@@ -929,11 +1034,14 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getDestinationOrBuil if (destinationBuilder_ != null) { return destinationBuilder_.getMessageOrBuilder(); } else { - return destination_ == null ? - com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() : destination_; + return destination_ == null + ? com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance() + : destination_; } } /** + * + * *
      * Destination geocoded waypoint.
      * 
@@ -941,32 +1049,42 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getDestinationOrBuil * .google.maps.routing.v2.GeocodedWaypoint destination = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder> + com.google.maps.routing.v2.GeocodedWaypoint, + com.google.maps.routing.v2.GeocodedWaypoint.Builder, + com.google.maps.routing.v2.GeocodedWaypointOrBuilder> getDestinationFieldBuilder() { if (destinationBuilder_ == null) { - destinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder>( - getDestination(), - getParentForChildren(), - isClean()); + destinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.GeocodedWaypoint, + com.google.maps.routing.v2.GeocodedWaypoint.Builder, + com.google.maps.routing.v2.GeocodedWaypointOrBuilder>( + getDestination(), getParentForChildren(), isClean()); destination_ = null; } return destinationBuilder_; } private java.util.List intermediates_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureIntermediatesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - intermediates_ = new java.util.ArrayList(intermediates_); + intermediates_ = + new java.util.ArrayList(intermediates_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder> intermediatesBuilder_; + com.google.maps.routing.v2.GeocodedWaypoint, + com.google.maps.routing.v2.GeocodedWaypoint.Builder, + com.google.maps.routing.v2.GeocodedWaypointOrBuilder> + intermediatesBuilder_; /** + * + * *
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -983,6 +1101,8 @@ public java.util.List getIntermedia
       }
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -999,6 +1119,8 @@ public int getIntermediatesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1015,6 +1137,8 @@ public com.google.maps.routing.v2.GeocodedWaypoint getIntermediates(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1023,8 +1147,7 @@ public com.google.maps.routing.v2.GeocodedWaypoint getIntermediates(int index) {
      *
      * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      */
-    public Builder setIntermediates(
-        int index, com.google.maps.routing.v2.GeocodedWaypoint value) {
+    public Builder setIntermediates(int index, com.google.maps.routing.v2.GeocodedWaypoint value) {
       if (intermediatesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1038,6 +1161,8 @@ public Builder setIntermediates(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1058,6 +1183,8 @@ public Builder setIntermediates(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1080,6 +1207,8 @@ public Builder addIntermediates(com.google.maps.routing.v2.GeocodedWaypoint valu
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1088,8 +1217,7 @@ public Builder addIntermediates(com.google.maps.routing.v2.GeocodedWaypoint valu
      *
      * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      */
-    public Builder addIntermediates(
-        int index, com.google.maps.routing.v2.GeocodedWaypoint value) {
+    public Builder addIntermediates(int index, com.google.maps.routing.v2.GeocodedWaypoint value) {
       if (intermediatesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1103,6 +1231,8 @@ public Builder addIntermediates(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1123,6 +1253,8 @@ public Builder addIntermediates(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1143,6 +1275,8 @@ public Builder addIntermediates(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1155,8 +1289,7 @@ public Builder addAllIntermediates(
         java.lang.Iterable values) {
       if (intermediatesBuilder_ == null) {
         ensureIntermediatesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, intermediates_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, intermediates_);
         onChanged();
       } else {
         intermediatesBuilder_.addAllMessages(values);
@@ -1164,6 +1297,8 @@ public Builder addAllIntermediates(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1183,6 +1318,8 @@ public Builder clearIntermediates() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1202,6 +1339,8 @@ public Builder removeIntermediates(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1210,11 +1349,12 @@ public Builder removeIntermediates(int index) {
      *
      * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      */
-    public com.google.maps.routing.v2.GeocodedWaypoint.Builder getIntermediatesBuilder(
-        int index) {
+    public com.google.maps.routing.v2.GeocodedWaypoint.Builder getIntermediatesBuilder(int index) {
       return getIntermediatesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1226,11 +1366,14 @@ public com.google.maps.routing.v2.GeocodedWaypoint.Builder getIntermediatesBuild
     public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBuilder(
         int index) {
       if (intermediatesBuilder_ == null) {
-        return intermediates_.get(index);  } else {
+        return intermediates_.get(index);
+      } else {
         return intermediatesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1239,8 +1382,8 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBu
      *
      * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      */
-    public java.util.List 
-         getIntermediatesOrBuilderList() {
+    public java.util.List
+        getIntermediatesOrBuilderList() {
       if (intermediatesBuilder_ != null) {
         return intermediatesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1248,6 +1391,8 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBu
       }
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1257,10 +1402,12 @@ public com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBu
      * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      */
     public com.google.maps.routing.v2.GeocodedWaypoint.Builder addIntermediatesBuilder() {
-      return getIntermediatesFieldBuilder().addBuilder(
-          com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance());
+      return getIntermediatesFieldBuilder()
+          .addBuilder(com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1269,12 +1416,13 @@ public com.google.maps.routing.v2.GeocodedWaypoint.Builder addIntermediatesBuild
      *
      * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      */
-    public com.google.maps.routing.v2.GeocodedWaypoint.Builder addIntermediatesBuilder(
-        int index) {
-      return getIntermediatesFieldBuilder().addBuilder(
-          index, com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance());
+    public com.google.maps.routing.v2.GeocodedWaypoint.Builder addIntermediatesBuilder(int index) {
+      return getIntermediatesFieldBuilder()
+          .addBuilder(index, com.google.maps.routing.v2.GeocodedWaypoint.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of intermediate geocoded waypoints each containing an index field
      * that corresponds to the zero-based position of the waypoint in the order
@@ -1283,16 +1431,22 @@ public com.google.maps.routing.v2.GeocodedWaypoint.Builder addIntermediatesBuild
      *
      * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
      */
-    public java.util.List 
-         getIntermediatesBuilderList() {
+    public java.util.List
+        getIntermediatesBuilderList() {
       return getIntermediatesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder> 
+            com.google.maps.routing.v2.GeocodedWaypoint,
+            com.google.maps.routing.v2.GeocodedWaypoint.Builder,
+            com.google.maps.routing.v2.GeocodedWaypointOrBuilder>
         getIntermediatesFieldBuilder() {
       if (intermediatesBuilder_ == null) {
-        intermediatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.maps.routing.v2.GeocodedWaypoint, com.google.maps.routing.v2.GeocodedWaypoint.Builder, com.google.maps.routing.v2.GeocodedWaypointOrBuilder>(
+        intermediatesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.maps.routing.v2.GeocodedWaypoint,
+                com.google.maps.routing.v2.GeocodedWaypoint.Builder,
+                com.google.maps.routing.v2.GeocodedWaypointOrBuilder>(
                 intermediates_,
                 ((bitField0_ & 0x00000004) != 0),
                 getParentForChildren(),
@@ -1301,9 +1455,9 @@ public com.google.maps.routing.v2.GeocodedWaypoint.Builder addIntermediatesBuild
       }
       return intermediatesBuilder_;
     }
+
     @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);
     }
 
@@ -1313,12 +1467,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.GeocodingResults)
   }
 
   // @@protoc_insertion_point(class_scope:google.maps.routing.v2.GeocodingResults)
   private static final com.google.maps.routing.v2.GeocodingResults DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.maps.routing.v2.GeocodingResults();
   }
@@ -1327,27 +1481,27 @@ public static com.google.maps.routing.v2.GeocodingResults getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GeocodingResults 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 GeocodingResults 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;
@@ -1362,6 +1516,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.maps.routing.v2.GeocodingResults getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsOrBuilder.java
similarity index 79%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsOrBuilder.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsOrBuilder.java
index 0a5d73d091d7..eff2bd28b68c 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsOrBuilder.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsOrBuilder.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/maps/routing/v2/geocoding_results.proto
 
 package com.google.maps.routing.v2;
 
-public interface GeocodingResultsOrBuilder extends
+public interface GeocodingResultsOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.GeocodingResults)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Origin geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint origin = 1; + * * @return Whether the origin field is set. */ boolean hasOrigin(); /** + * + * *
    * Origin geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint origin = 1; + * * @return The origin. */ com.google.maps.routing.v2.GeocodedWaypoint getOrigin(); /** + * + * *
    * Origin geocoded waypoint.
    * 
@@ -35,24 +59,32 @@ public interface GeocodingResultsOrBuilder extends com.google.maps.routing.v2.GeocodedWaypointOrBuilder getOriginOrBuilder(); /** + * + * *
    * Destination geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint destination = 2; + * * @return Whether the destination field is set. */ boolean hasDestination(); /** + * + * *
    * Destination geocoded waypoint.
    * 
* * .google.maps.routing.v2.GeocodedWaypoint destination = 2; + * * @return The destination. */ com.google.maps.routing.v2.GeocodedWaypoint getDestination(); /** + * + * *
    * Destination geocoded waypoint.
    * 
@@ -62,6 +94,8 @@ public interface GeocodingResultsOrBuilder extends com.google.maps.routing.v2.GeocodedWaypointOrBuilder getDestinationOrBuilder(); /** + * + * *
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -70,9 +104,10 @@ public interface GeocodingResultsOrBuilder extends
    *
    * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    */
-  java.util.List 
-      getIntermediatesList();
+  java.util.List getIntermediatesList();
   /**
+   *
+   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -83,6 +118,8 @@ public interface GeocodingResultsOrBuilder extends
    */
   com.google.maps.routing.v2.GeocodedWaypoint getIntermediates(int index);
   /**
+   *
+   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -93,6 +130,8 @@ public interface GeocodingResultsOrBuilder extends
    */
   int getIntermediatesCount();
   /**
+   *
+   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -101,9 +140,11 @@ public interface GeocodingResultsOrBuilder extends
    *
    * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    */
-  java.util.List 
+  java.util.List
       getIntermediatesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of intermediate geocoded waypoints each containing an index field
    * that corresponds to the zero-based position of the waypoint in the order
@@ -112,6 +153,5 @@ public interface GeocodingResultsOrBuilder extends
    *
    * repeated .google.maps.routing.v2.GeocodedWaypoint intermediates = 3;
    */
-  com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBuilder(
-      int index);
+  com.google.maps.routing.v2.GeocodedWaypointOrBuilder getIntermediatesOrBuilder(int index);
 }
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java
new file mode 100644
index 000000000000..6a5f88709b6a
--- /dev/null
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java
@@ -0,0 +1,98 @@
+/*
+ * 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/maps/routing/v2/geocoding_results.proto
+
+package com.google.maps.routing.v2;
+
+public final class GeocodingResultsProto {
+  private GeocodingResultsProto() {}
+
+  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_maps_routing_v2_GeocodingResults_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_maps_routing_v2_GeocodedWaypoint_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/maps/routing/v2/geocoding_resul"
+          + "ts.proto\022\026google.maps.routing.v2\032\027google"
+          + "/rpc/status.proto\"\314\001\n\020GeocodingResults\0228"
+          + "\n\006origin\030\001 \001(\0132(.google.maps.routing.v2."
+          + "GeocodedWaypoint\022=\n\013destination\030\002 \001(\0132(."
+          + "google.maps.routing.v2.GeocodedWaypoint\022"
+          + "?\n\rintermediates\030\003 \003(\0132(.google.maps.rou"
+          + "ting.v2.GeocodedWaypoint\"\320\001\n\020GeocodedWay"
+          + "point\022+\n\017geocoder_status\030\001 \001(\0132\022.google."
+          + "rpc.Status\0220\n#intermediate_waypoint_requ"
+          + "est_index\030\002 \001(\005H\000\210\001\001\022\014\n\004type\030\003 \003(\t\022\025\n\rpa"
+          + "rtial_match\030\004 \001(\010\022\020\n\010place_id\030\005 \001(\tB&\n$_"
+          + "intermediate_waypoint_request_indexB\312\001\n\032"
+          + "com.google.maps.routing.v2B\025GeocodingRes"
+          + "ultsProtoP\001Z:cloud.google.com/go/maps/ro"
+          + "uting/apiv2/routingpb;routingpb\370\001\001\242\002\005GMR"
+          + "V2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Map"
+          + "s\\Routing\\V2\352\002\031Google::Maps::Routing::V2"
+          + "b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.rpc.StatusProto.getDescriptor(),
+            });
+    internal_static_google_maps_routing_v2_GeocodingResults_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_maps_routing_v2_GeocodingResults_descriptor,
+            new java.lang.String[] {
+              "Origin", "Destination", "Intermediates",
+            });
+    internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_maps_routing_v2_GeocodedWaypoint_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor,
+            new java.lang.String[] {
+              "GeocoderStatus",
+              "IntermediateWaypointRequestIndex",
+              "Type",
+              "PartialMatch",
+              "PlaceId",
+              "IntermediateWaypointRequestIndex",
+            });
+    com.google.rpc.StatusProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTime.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTime.java
similarity index 69%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTime.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTime.java
index 2742bf89825a..2afdacaee57c 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTime.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTime.java
@@ -1,56 +1,78 @@
+/*
+ * 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/maps/routing/v2/localized_time.proto
 
 package com.google.maps.routing.v2;
 
 /**
+ *
+ *
  * 
  * Localized description of time.
  * 
* * Protobuf type {@code google.maps.routing.v2.LocalizedTime} */ -public final class LocalizedTime extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LocalizedTime extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.LocalizedTime) LocalizedTimeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocalizedTime.newBuilder() to construct. private LocalizedTime(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LocalizedTime() { timeZone_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LocalizedTime(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.LocalizedTimeProto.internal_static_google_maps_routing_v2_LocalizedTime_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.LocalizedTimeProto + .internal_static_google_maps_routing_v2_LocalizedTime_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.LocalizedTimeProto.internal_static_google_maps_routing_v2_LocalizedTime_fieldAccessorTable + return com.google.maps.routing.v2.LocalizedTimeProto + .internal_static_google_maps_routing_v2_LocalizedTime_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.LocalizedTime.class, com.google.maps.routing.v2.LocalizedTime.Builder.class); + com.google.maps.routing.v2.LocalizedTime.class, + com.google.maps.routing.v2.LocalizedTime.Builder.class); } public static final int TIME_FIELD_NUMBER = 1; private com.google.type.LocalizedText time_; /** + * + * *
    * The time specified as a string in a given time zone.
    * 
* * .google.type.LocalizedText time = 1; + * * @return Whether the time field is set. */ @java.lang.Override @@ -58,11 +80,14 @@ public boolean hasTime() { return time_ != null; } /** + * + * *
    * The time specified as a string in a given time zone.
    * 
* * .google.type.LocalizedText time = 1; + * * @return The time. */ @java.lang.Override @@ -70,6 +95,8 @@ public com.google.type.LocalizedText getTime() { return time_ == null ? com.google.type.LocalizedText.getDefaultInstance() : time_; } /** + * + * *
    * The time specified as a string in a given time zone.
    * 
@@ -82,9 +109,12 @@ public com.google.type.LocalizedTextOrBuilder getTimeOrBuilder() { } public static final int TIME_ZONE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object timeZone_ = ""; /** + * + * *
    * Contains the time zone. The value is the name of the time zone as defined
    * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
@@ -92,6 +122,7 @@ public com.google.type.LocalizedTextOrBuilder getTimeOrBuilder() {
    * 
* * string time_zone = 2; + * * @return The timeZone. */ @java.lang.Override @@ -100,14 +131,15 @@ public java.lang.String getTimeZone() { 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(); timeZone_ = s; return s; } } /** + * + * *
    * Contains the time zone. The value is the name of the time zone as defined
    * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
@@ -115,16 +147,15 @@ public java.lang.String getTimeZone() {
    * 
* * string time_zone = 2; + * * @return The bytes for timeZone. */ @java.lang.Override - public com.google.protobuf.ByteString - getTimeZoneBytes() { + public com.google.protobuf.ByteString getTimeZoneBytes() { java.lang.Object ref = timeZone_; 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); timeZone_ = b; return b; } else { @@ -133,6 +164,7 @@ public java.lang.String getTimeZone() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,8 +176,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 (time_ != null) { output.writeMessage(1, getTime()); } @@ -162,8 +193,7 @@ public int getSerializedSize() { size = 0; if (time_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, timeZone_); @@ -176,7 +206,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.maps.routing.v2.LocalizedTime)) { return super.equals(obj); @@ -185,11 +215,9 @@ public boolean equals(final java.lang.Object obj) { if (hasTime() != other.hasTime()) return false; if (hasTime()) { - if (!getTime() - .equals(other.getTime())) return false; + if (!getTime().equals(other.getTime())) return false; } - if (!getTimeZone() - .equals(other.getTimeZone())) return false; + if (!getTimeZone().equals(other.getTimeZone())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -212,132 +240,136 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.LocalizedTime parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.LocalizedTime parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.LocalizedTime 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.maps.routing.v2.LocalizedTime parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.LocalizedTime 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.maps.routing.v2.LocalizedTime parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.LocalizedTime 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.maps.routing.v2.LocalizedTime 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.maps.routing.v2.LocalizedTime 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.maps.routing.v2.LocalizedTime parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.LocalizedTime parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.LocalizedTime 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.maps.routing.v2.LocalizedTime 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.maps.routing.v2.LocalizedTime 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.maps.routing.v2.LocalizedTime 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; } /** + * + * *
    * Localized description of time.
    * 
* * Protobuf type {@code google.maps.routing.v2.LocalizedTime} */ - 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.maps.routing.v2.LocalizedTime) com.google.maps.routing.v2.LocalizedTimeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.LocalizedTimeProto.internal_static_google_maps_routing_v2_LocalizedTime_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.LocalizedTimeProto + .internal_static_google_maps_routing_v2_LocalizedTime_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.LocalizedTimeProto.internal_static_google_maps_routing_v2_LocalizedTime_fieldAccessorTable + return com.google.maps.routing.v2.LocalizedTimeProto + .internal_static_google_maps_routing_v2_LocalizedTime_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.LocalizedTime.class, com.google.maps.routing.v2.LocalizedTime.Builder.class); + com.google.maps.routing.v2.LocalizedTime.class, + com.google.maps.routing.v2.LocalizedTime.Builder.class); } // Construct using com.google.maps.routing.v2.LocalizedTime.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(); @@ -352,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.LocalizedTimeProto.internal_static_google_maps_routing_v2_LocalizedTime_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.LocalizedTimeProto + .internal_static_google_maps_routing_v2_LocalizedTime_descriptor; } @java.lang.Override @@ -373,8 +405,11 @@ public com.google.maps.routing.v2.LocalizedTime build() { @java.lang.Override public com.google.maps.routing.v2.LocalizedTime buildPartial() { - com.google.maps.routing.v2.LocalizedTime result = new com.google.maps.routing.v2.LocalizedTime(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.maps.routing.v2.LocalizedTime result = + new com.google.maps.routing.v2.LocalizedTime(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -382,9 +417,7 @@ public com.google.maps.routing.v2.LocalizedTime buildPartial() { private void buildPartial0(com.google.maps.routing.v2.LocalizedTime result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.time_ = timeBuilder_ == null - ? time_ - : timeBuilder_.build(); + result.time_ = timeBuilder_ == null ? time_ : timeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.timeZone_ = timeZone_; @@ -395,38 +428,39 @@ private void buildPartial0(com.google.maps.routing.v2.LocalizedTime 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.maps.routing.v2.LocalizedTime) { - return mergeFrom((com.google.maps.routing.v2.LocalizedTime)other); + return mergeFrom((com.google.maps.routing.v2.LocalizedTime) other); } else { super.mergeFrom(other); return this; @@ -469,24 +503,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - timeZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + timeZone_ = 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) { @@ -496,28 +531,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.type.LocalizedText time_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> timeBuilder_; + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + timeBuilder_; /** + * + * *
      * The time specified as a string in a given time zone.
      * 
* * .google.type.LocalizedText time = 1; + * * @return Whether the time field is set. */ public boolean hasTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The time specified as a string in a given time zone.
      * 
* * .google.type.LocalizedText time = 1; + * * @return The time. */ public com.google.type.LocalizedText getTime() { @@ -528,6 +573,8 @@ public com.google.type.LocalizedText getTime() { } } /** + * + * *
      * The time specified as a string in a given time zone.
      * 
@@ -548,14 +595,15 @@ public Builder setTime(com.google.type.LocalizedText value) { return this; } /** + * + * *
      * The time specified as a string in a given time zone.
      * 
* * .google.type.LocalizedText time = 1; */ - public Builder setTime( - com.google.type.LocalizedText.Builder builderForValue) { + public Builder setTime(com.google.type.LocalizedText.Builder builderForValue) { if (timeBuilder_ == null) { time_ = builderForValue.build(); } else { @@ -566,6 +614,8 @@ public Builder setTime( return this; } /** + * + * *
      * The time specified as a string in a given time zone.
      * 
@@ -574,9 +624,9 @@ public Builder setTime( */ public Builder mergeTime(com.google.type.LocalizedText value) { if (timeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - time_ != null && - time_ != com.google.type.LocalizedText.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && time_ != null + && time_ != com.google.type.LocalizedText.getDefaultInstance()) { getTimeBuilder().mergeFrom(value); } else { time_ = value; @@ -589,6 +639,8 @@ public Builder mergeTime(com.google.type.LocalizedText value) { return this; } /** + * + * *
      * The time specified as a string in a given time zone.
      * 
@@ -606,6 +658,8 @@ public Builder clearTime() { return this; } /** + * + * *
      * The time specified as a string in a given time zone.
      * 
@@ -618,6 +672,8 @@ public com.google.type.LocalizedText.Builder getTimeBuilder() { return getTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time specified as a string in a given time zone.
      * 
@@ -628,11 +684,12 @@ public com.google.type.LocalizedTextOrBuilder getTimeOrBuilder() { if (timeBuilder_ != null) { return timeBuilder_.getMessageOrBuilder(); } else { - return time_ == null ? - com.google.type.LocalizedText.getDefaultInstance() : time_; + return time_ == null ? com.google.type.LocalizedText.getDefaultInstance() : time_; } } /** + * + * *
      * The time specified as a string in a given time zone.
      * 
@@ -640,14 +697,17 @@ public com.google.type.LocalizedTextOrBuilder getTimeOrBuilder() { * .google.type.LocalizedText time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> getTimeFieldBuilder() { if (timeBuilder_ == null) { - timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( - getTime(), - getParentForChildren(), - isClean()); + timeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getTime(), getParentForChildren(), isClean()); time_ = null; } return timeBuilder_; @@ -655,6 +715,8 @@ public com.google.type.LocalizedTextOrBuilder getTimeOrBuilder() { private java.lang.Object timeZone_ = ""; /** + * + * *
      * Contains the time zone. The value is the name of the time zone as defined
      * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
@@ -662,13 +724,13 @@ public com.google.type.LocalizedTextOrBuilder getTimeOrBuilder() {
      * 
* * string time_zone = 2; + * * @return The timeZone. */ public java.lang.String getTimeZone() { java.lang.Object ref = timeZone_; 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(); timeZone_ = s; return s; @@ -677,6 +739,8 @@ public java.lang.String getTimeZone() { } } /** + * + * *
      * Contains the time zone. The value is the name of the time zone as defined
      * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
@@ -684,15 +748,14 @@ public java.lang.String getTimeZone() {
      * 
* * string time_zone = 2; + * * @return The bytes for timeZone. */ - public com.google.protobuf.ByteString - getTimeZoneBytes() { + public com.google.protobuf.ByteString getTimeZoneBytes() { java.lang.Object ref = timeZone_; 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); timeZone_ = b; return b; } else { @@ -700,6 +763,8 @@ public java.lang.String getTimeZone() { } } /** + * + * *
      * Contains the time zone. The value is the name of the time zone as defined
      * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
@@ -707,18 +772,22 @@ public java.lang.String getTimeZone() {
      * 
* * string time_zone = 2; + * * @param value The timeZone to set. * @return This builder for chaining. */ - public Builder setTimeZone( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTimeZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } timeZone_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Contains the time zone. The value is the name of the time zone as defined
      * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
@@ -726,6 +795,7 @@ public Builder setTimeZone(
      * 
* * string time_zone = 2; + * * @return This builder for chaining. */ public Builder clearTimeZone() { @@ -735,6 +805,8 @@ public Builder clearTimeZone() { return this; } /** + * + * *
      * Contains the time zone. The value is the name of the time zone as defined
      * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
@@ -742,21 +814,23 @@ public Builder clearTimeZone() {
      * 
* * string time_zone = 2; + * * @param value The bytes for timeZone to set. * @return This builder for chaining. */ - public Builder setTimeZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); timeZone_ = value; bitField0_ |= 0x00000002; 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); } @@ -766,12 +840,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.LocalizedTime) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.LocalizedTime) private static final com.google.maps.routing.v2.LocalizedTime DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.LocalizedTime(); } @@ -780,27 +854,27 @@ public static com.google.maps.routing.v2.LocalizedTime getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocalizedTime 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 LocalizedTime 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; @@ -815,6 +889,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.LocalizedTime getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeOrBuilder.java similarity index 66% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeOrBuilder.java index 685398dce180..c1b0e4f460ed 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeOrBuilder.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/maps/routing/v2/localized_time.proto package com.google.maps.routing.v2; -public interface LocalizedTimeOrBuilder extends +public interface LocalizedTimeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.LocalizedTime) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time specified as a string in a given time zone.
    * 
* * .google.type.LocalizedText time = 1; + * * @return Whether the time field is set. */ boolean hasTime(); /** + * + * *
    * The time specified as a string in a given time zone.
    * 
* * .google.type.LocalizedText time = 1; + * * @return The time. */ com.google.type.LocalizedText getTime(); /** + * + * *
    * The time specified as a string in a given time zone.
    * 
@@ -35,6 +59,8 @@ public interface LocalizedTimeOrBuilder extends com.google.type.LocalizedTextOrBuilder getTimeOrBuilder(); /** + * + * *
    * Contains the time zone. The value is the name of the time zone as defined
    * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
@@ -42,10 +68,13 @@ public interface LocalizedTimeOrBuilder extends
    * 
* * string time_zone = 2; + * * @return The timeZone. */ java.lang.String getTimeZone(); /** + * + * *
    * Contains the time zone. The value is the name of the time zone as defined
    * in the [IANA Time Zone Database](http://www.iana.org/time-zones), e.g.
@@ -53,8 +82,8 @@ public interface LocalizedTimeOrBuilder extends
    * 
* * string time_zone = 2; + * * @return The bytes for timeZone. */ - com.google.protobuf.ByteString - getTimeZoneBytes(); + com.google.protobuf.ByteString getTimeZoneBytes(); } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java new file mode 100644 index 000000000000..70236f594525 --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java @@ -0,0 +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/maps/routing/v2/localized_time.proto + +package com.google.maps.routing.v2; + +public final class LocalizedTimeProto { + private LocalizedTimeProto() {} + + 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_maps_routing_v2_LocalizedTime_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_LocalizedTime_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/maps/routing/v2/localized_time." + + "proto\022\026google.maps.routing.v2\032 google/ty" + + "pe/localized_text.proto\"L\n\rLocalizedTime" + + "\022(\n\004time\030\001 \001(\0132\032.google.type.LocalizedTe" + + "xt\022\021\n\ttime_zone\030\002 \001(\tB\307\001\n\032com.google.map" + + "s.routing.v2B\022LocalizedTimeProtoP\001Z:clou" + + "d.google.com/go/maps/routing/apiv2/routi" + + "ngpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps." + + "Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Go" + + "ogle::Maps::Routing::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.type.LocalizedTextProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_LocalizedTime_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_LocalizedTime_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_LocalizedTime_descriptor, + new java.lang.String[] { + "Time", "TimeZone", + }); + com.google.type.LocalizedTextProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Location.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Location.java similarity index 73% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Location.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Location.java index 7d1fed4e3860..214b3d5080ed 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Location.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Location.java @@ -1,55 +1,76 @@ +/* + * 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/maps/routing/v2/location.proto package com.google.maps.routing.v2; /** + * + * *
  * Encapsulates a location (a geographic point, and an optional heading).
  * 
* * Protobuf type {@code google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.LocationProto.internal_static_google_maps_routing_v2_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.LocationProto + .internal_static_google_maps_routing_v2_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.LocationProto.internal_static_google_maps_routing_v2_Location_fieldAccessorTable + return com.google.maps.routing.v2.LocationProto + .internal_static_google_maps_routing_v2_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.Location.class, com.google.maps.routing.v2.Location.Builder.class); + com.google.maps.routing.v2.Location.class, + com.google.maps.routing.v2.Location.Builder.class); } 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 @@ -57,11 +78,14 @@ public boolean hasLatLng() { return latLng_ != null; } /** + * + * *
    * The waypoint's geographic coordinates.
    * 
* * .google.type.LatLng lat_lng = 1; + * * @return The latLng. */ @java.lang.Override @@ -69,6 +93,8 @@ public com.google.type.LatLng getLatLng() { return latLng_ == null ? com.google.type.LatLng.getDefaultInstance() : latLng_; } /** + * + * *
    * The waypoint's geographic coordinates.
    * 
@@ -83,6 +109,8 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { public static final int HEADING_FIELD_NUMBER = 2; private com.google.protobuf.Int32Value heading_; /** + * + * *
    * The compass heading associated with the direction of the flow of traffic.
    * This value specifies the side of the road for pickup and drop-off. Heading
@@ -93,6 +121,7 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() {
    * 
* * .google.protobuf.Int32Value heading = 2; + * * @return Whether the heading field is set. */ @java.lang.Override @@ -100,6 +129,8 @@ public boolean hasHeading() { return heading_ != null; } /** + * + * *
    * The compass heading associated with the direction of the flow of traffic.
    * This value specifies the side of the road for pickup and drop-off. Heading
@@ -110,6 +141,7 @@ public boolean hasHeading() {
    * 
* * .google.protobuf.Int32Value heading = 2; + * * @return The heading. */ @java.lang.Override @@ -117,6 +149,8 @@ public com.google.protobuf.Int32Value getHeading() { return heading_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : heading_; } /** + * + * *
    * The compass heading associated with the direction of the flow of traffic.
    * This value specifies the side of the road for pickup and drop-off. Heading
@@ -134,6 +168,7 @@ public com.google.protobuf.Int32ValueOrBuilder getHeadingOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -145,8 +180,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());
     }
@@ -163,12 +197,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 (heading_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getHeading());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHeading());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -178,7 +210,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.maps.routing.v2.Location)) {
       return super.equals(obj);
@@ -187,13 +219,11 @@ public boolean equals(final java.lang.Object 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()
-          .equals(other.getHeading())) return false;
+      if (!getHeading().equals(other.getHeading())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -219,132 +249,135 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.maps.routing.v2.Location parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.maps.routing.v2.Location parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.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.maps.routing.v2.Location parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.maps.routing.v2.Location parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.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.maps.routing.v2.Location parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.Location parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.Location) com.google.maps.routing.v2.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.LocationProto.internal_static_google_maps_routing_v2_Location_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.LocationProto + .internal_static_google_maps_routing_v2_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.LocationProto.internal_static_google_maps_routing_v2_Location_fieldAccessorTable + return com.google.maps.routing.v2.LocationProto + .internal_static_google_maps_routing_v2_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.Location.class, com.google.maps.routing.v2.Location.Builder.class); + com.google.maps.routing.v2.Location.class, + com.google.maps.routing.v2.Location.Builder.class); } // Construct using com.google.maps.routing.v2.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(); @@ -363,9 +396,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.LocationProto.internal_static_google_maps_routing_v2_Location_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.LocationProto + .internal_static_google_maps_routing_v2_Location_descriptor; } @java.lang.Override @@ -385,7 +418,9 @@ public com.google.maps.routing.v2.Location build() { @java.lang.Override public com.google.maps.routing.v2.Location buildPartial() { com.google.maps.routing.v2.Location result = new com.google.maps.routing.v2.Location(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -393,14 +428,10 @@ public com.google.maps.routing.v2.Location buildPartial() { private void buildPartial0(com.google.maps.routing.v2.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(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.heading_ = headingBuilder_ == null - ? heading_ - : headingBuilder_.build(); + result.heading_ = headingBuilder_ == null ? heading_ : headingBuilder_.build(); } } @@ -408,38 +439,39 @@ private void buildPartial0(com.google.maps.routing.v2.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.maps.routing.v2.Location) { - return mergeFrom((com.google.maps.routing.v2.Location)other); + return mergeFrom((com.google.maps.routing.v2.Location) other); } else { super.mergeFrom(other); return this; @@ -480,26 +512,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getLatLngFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getHeadingFieldBuilder().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(getLatLngFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getHeadingFieldBuilder().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) { @@ -509,28 +540,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() { @@ -541,6 +580,8 @@ public com.google.type.LatLng getLatLng() { } } /** + * + * *
      * The waypoint's geographic coordinates.
      * 
@@ -561,14 +602,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 { @@ -579,6 +621,8 @@ public Builder setLatLng( return this; } /** + * + * *
      * The waypoint's geographic coordinates.
      * 
@@ -587,9 +631,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; @@ -602,6 +646,8 @@ public Builder mergeLatLng(com.google.type.LatLng value) { return this; } /** + * + * *
      * The waypoint's geographic coordinates.
      * 
@@ -619,6 +665,8 @@ public Builder clearLatLng() { return this; } /** + * + * *
      * The waypoint's geographic coordinates.
      * 
@@ -631,6 +679,8 @@ public com.google.type.LatLng.Builder getLatLngBuilder() { return getLatLngFieldBuilder().getBuilder(); } /** + * + * *
      * The waypoint's geographic coordinates.
      * 
@@ -641,11 +691,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.
      * 
@@ -653,14 +704,14 @@ 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_; @@ -668,8 +719,13 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() { private com.google.protobuf.Int32Value heading_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> headingBuilder_; + com.google.protobuf.Int32Value, + com.google.protobuf.Int32Value.Builder, + com.google.protobuf.Int32ValueOrBuilder> + headingBuilder_; /** + * + * *
      * The compass heading associated with the direction of the flow of traffic.
      * This value specifies the side of the road for pickup and drop-off. Heading
@@ -680,12 +736,15 @@ public com.google.type.LatLngOrBuilder getLatLngOrBuilder() {
      * 
* * .google.protobuf.Int32Value heading = 2; + * * @return Whether the heading field is set. */ public boolean hasHeading() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The compass heading associated with the direction of the flow of traffic.
      * This value specifies the side of the road for pickup and drop-off. Heading
@@ -696,6 +755,7 @@ public boolean hasHeading() {
      * 
* * .google.protobuf.Int32Value heading = 2; + * * @return The heading. */ public com.google.protobuf.Int32Value getHeading() { @@ -706,6 +766,8 @@ public com.google.protobuf.Int32Value getHeading() { } } /** + * + * *
      * The compass heading associated with the direction of the flow of traffic.
      * This value specifies the side of the road for pickup and drop-off. Heading
@@ -731,6 +793,8 @@ public Builder setHeading(com.google.protobuf.Int32Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The compass heading associated with the direction of the flow of traffic.
      * This value specifies the side of the road for pickup and drop-off. Heading
@@ -742,8 +806,7 @@ public Builder setHeading(com.google.protobuf.Int32Value value) {
      *
      * .google.protobuf.Int32Value heading = 2;
      */
-    public Builder setHeading(
-        com.google.protobuf.Int32Value.Builder builderForValue) {
+    public Builder setHeading(com.google.protobuf.Int32Value.Builder builderForValue) {
       if (headingBuilder_ == null) {
         heading_ = builderForValue.build();
       } else {
@@ -754,6 +817,8 @@ public Builder setHeading(
       return this;
     }
     /**
+     *
+     *
      * 
      * The compass heading associated with the direction of the flow of traffic.
      * This value specifies the side of the road for pickup and drop-off. Heading
@@ -767,9 +832,9 @@ public Builder setHeading(
      */
     public Builder mergeHeading(com.google.protobuf.Int32Value value) {
       if (headingBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          heading_ != null &&
-          heading_ != com.google.protobuf.Int32Value.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && heading_ != null
+            && heading_ != com.google.protobuf.Int32Value.getDefaultInstance()) {
           getHeadingBuilder().mergeFrom(value);
         } else {
           heading_ = value;
@@ -782,6 +847,8 @@ public Builder mergeHeading(com.google.protobuf.Int32Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The compass heading associated with the direction of the flow of traffic.
      * This value specifies the side of the road for pickup and drop-off. Heading
@@ -804,6 +871,8 @@ public Builder clearHeading() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The compass heading associated with the direction of the flow of traffic.
      * This value specifies the side of the road for pickup and drop-off. Heading
@@ -821,6 +890,8 @@ public com.google.protobuf.Int32Value.Builder getHeadingBuilder() {
       return getHeadingFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The compass heading associated with the direction of the flow of traffic.
      * This value specifies the side of the road for pickup and drop-off. Heading
@@ -836,11 +907,12 @@ public com.google.protobuf.Int32ValueOrBuilder getHeadingOrBuilder() {
       if (headingBuilder_ != null) {
         return headingBuilder_.getMessageOrBuilder();
       } else {
-        return heading_ == null ?
-            com.google.protobuf.Int32Value.getDefaultInstance() : heading_;
+        return heading_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : heading_;
       }
     }
     /**
+     *
+     *
      * 
      * The compass heading associated with the direction of the flow of traffic.
      * This value specifies the side of the road for pickup and drop-off. Heading
@@ -853,21 +925,24 @@ public com.google.protobuf.Int32ValueOrBuilder getHeadingOrBuilder() {
      * .google.protobuf.Int32Value heading = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> 
+            com.google.protobuf.Int32Value,
+            com.google.protobuf.Int32Value.Builder,
+            com.google.protobuf.Int32ValueOrBuilder>
         getHeadingFieldBuilder() {
       if (headingBuilder_ == null) {
-        headingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>(
-                getHeading(),
-                getParentForChildren(),
-                isClean());
+        headingBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Int32Value,
+                com.google.protobuf.Int32Value.Builder,
+                com.google.protobuf.Int32ValueOrBuilder>(
+                getHeading(), getParentForChildren(), isClean());
         heading_ = null;
       }
       return headingBuilder_;
     }
+
     @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);
     }
 
@@ -877,12 +952,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.Location)
   }
 
   // @@protoc_insertion_point(class_scope:google.maps.routing.v2.Location)
   private static final com.google.maps.routing.v2.Location DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.maps.routing.v2.Location();
   }
@@ -891,27 +966,27 @@ public static com.google.maps.routing.v2.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;
@@ -926,6 +1001,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.maps.routing.v2.Location getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationOrBuilder.java
similarity index 78%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationOrBuilder.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationOrBuilder.java
index 7c51eab0c750..55d6441586b4 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationOrBuilder.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/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/maps/routing/v2/location.proto
 
 package com.google.maps.routing.v2;
 
-public interface LocationOrBuilder extends
+public interface LocationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.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 specifies the side of the road for pickup and drop-off. Heading
@@ -45,10 +71,13 @@ public interface LocationOrBuilder extends
    * 
* * .google.protobuf.Int32Value 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 specifies the side of the road for pickup and drop-off. Heading
@@ -59,10 +88,13 @@ public interface LocationOrBuilder extends
    * 
* * .google.protobuf.Int32Value heading = 2; + * * @return The heading. */ com.google.protobuf.Int32Value getHeading(); /** + * + * *
    * The compass heading associated with the direction of the flow of traffic.
    * This value specifies the side of the road for pickup and drop-off. Heading
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java
new file mode 100644
index 000000000000..2152d9a5329e
--- /dev/null
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java
@@ -0,0 +1,75 @@
+/*
+ * 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/maps/routing/v2/location.proto
+
+package com.google.maps.routing.v2;
+
+public final class LocationProto {
+  private LocationProto() {}
+
+  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_maps_routing_v2_Location_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_maps_routing_v2_Location_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/maps/routing/v2/location.proto\022"
+          + "\026google.maps.routing.v2\032\036google/protobuf"
+          + "/wrappers.proto\032\030google/type/latlng.prot"
+          + "o\"^\n\010Location\022$\n\007lat_lng\030\001 \001(\0132\023.google."
+          + "type.LatLng\022,\n\007heading\030\002 \001(\0132\033.google.pr"
+          + "otobuf.Int32ValueB\302\001\n\032com.google.maps.ro"
+          + "uting.v2B\rLocationProtoP\001Z:cloud.google."
+          + "com/go/maps/routing/apiv2/routingpb;rout"
+          + "ingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Routing.V"
+          + "2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Google::Map"
+          + "s::Routing::V2b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.protobuf.WrappersProto.getDescriptor(),
+              com.google.type.LatLngProto.getDescriptor(),
+            });
+    internal_static_google_maps_routing_v2_Location_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_maps_routing_v2_Location_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_maps_routing_v2_Location_descriptor,
+            new java.lang.String[] {
+              "LatLng", "Heading",
+            });
+    com.google.protobuf.WrappersProto.getDescriptor();
+    com.google.type.LatLngProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Maneuver.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Maneuver.java
similarity index 75%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Maneuver.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Maneuver.java
index f577277c1dec..0b6b09061e5f 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Maneuver.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Maneuver.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/maps/routing/v2/maneuver.proto
 
 package com.google.maps.routing.v2;
 
 /**
+ *
+ *
  * 
  * A set of values that specify the navigation action to take for the current
  * step (e.g., turn left, merge, straight, etc.).
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.maps.routing.v2.Maneuver}
  */
-public enum Maneuver
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum Maneuver implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Not used.
    * 
@@ -22,6 +40,8 @@ public enum Maneuver */ MANEUVER_UNSPECIFIED(0), /** + * + * *
    * Turn slightly to the left.
    * 
@@ -30,6 +50,8 @@ public enum Maneuver */ TURN_SLIGHT_LEFT(1), /** + * + * *
    * Turn sharply to the left.
    * 
@@ -38,6 +60,8 @@ public enum Maneuver */ TURN_SHARP_LEFT(2), /** + * + * *
    * Make a left u-turn.
    * 
@@ -46,6 +70,8 @@ public enum Maneuver */ UTURN_LEFT(3), /** + * + * *
    * Turn left.
    * 
@@ -54,6 +80,8 @@ public enum Maneuver */ TURN_LEFT(4), /** + * + * *
    * Turn slightly to the right.
    * 
@@ -62,6 +90,8 @@ public enum Maneuver */ TURN_SLIGHT_RIGHT(5), /** + * + * *
    * Turn sharply to the right.
    * 
@@ -70,6 +100,8 @@ public enum Maneuver */ TURN_SHARP_RIGHT(6), /** + * + * *
    * Make a right u-turn.
    * 
@@ -78,6 +110,8 @@ public enum Maneuver */ UTURN_RIGHT(7), /** + * + * *
    * Turn right.
    * 
@@ -86,6 +120,8 @@ public enum Maneuver */ TURN_RIGHT(8), /** + * + * *
    * Go straight.
    * 
@@ -94,6 +130,8 @@ public enum Maneuver */ STRAIGHT(9), /** + * + * *
    * Take the left ramp.
    * 
@@ -102,6 +140,8 @@ public enum Maneuver */ RAMP_LEFT(10), /** + * + * *
    * Take the right ramp.
    * 
@@ -110,6 +150,8 @@ public enum Maneuver */ RAMP_RIGHT(11), /** + * + * *
    * Merge into traffic.
    * 
@@ -118,6 +160,8 @@ public enum Maneuver */ MERGE(12), /** + * + * *
    * Take the left fork.
    * 
@@ -126,6 +170,8 @@ public enum Maneuver */ FORK_LEFT(13), /** + * + * *
    * Take the right fork.
    * 
@@ -134,6 +180,8 @@ public enum Maneuver */ FORK_RIGHT(14), /** + * + * *
    * Take the ferry.
    * 
@@ -142,6 +190,8 @@ public enum Maneuver */ FERRY(15), /** + * + * *
    * Take the train leading onto the ferry.
    * 
@@ -150,6 +200,8 @@ public enum Maneuver */ FERRY_TRAIN(16), /** + * + * *
    * Turn left at the roundabout.
    * 
@@ -158,6 +210,8 @@ public enum Maneuver */ ROUNDABOUT_LEFT(17), /** + * + * *
    * Turn right at the roundabout.
    * 
@@ -166,6 +220,8 @@ public enum Maneuver */ ROUNDABOUT_RIGHT(18), /** + * + * *
    * Initial maneuver.
    * 
@@ -174,6 +230,8 @@ public enum Maneuver */ DEPART(19), /** + * + * *
    * Used to indicate a street name change.
    * 
@@ -185,6 +243,8 @@ public enum Maneuver ; /** + * + * *
    * Not used.
    * 
@@ -193,6 +253,8 @@ public enum Maneuver */ public static final int MANEUVER_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Turn slightly to the left.
    * 
@@ -201,6 +263,8 @@ public enum Maneuver */ public static final int TURN_SLIGHT_LEFT_VALUE = 1; /** + * + * *
    * Turn sharply to the left.
    * 
@@ -209,6 +273,8 @@ public enum Maneuver */ public static final int TURN_SHARP_LEFT_VALUE = 2; /** + * + * *
    * Make a left u-turn.
    * 
@@ -217,6 +283,8 @@ public enum Maneuver */ public static final int UTURN_LEFT_VALUE = 3; /** + * + * *
    * Turn left.
    * 
@@ -225,6 +293,8 @@ public enum Maneuver */ public static final int TURN_LEFT_VALUE = 4; /** + * + * *
    * Turn slightly to the right.
    * 
@@ -233,6 +303,8 @@ public enum Maneuver */ public static final int TURN_SLIGHT_RIGHT_VALUE = 5; /** + * + * *
    * Turn sharply to the right.
    * 
@@ -241,6 +313,8 @@ public enum Maneuver */ public static final int TURN_SHARP_RIGHT_VALUE = 6; /** + * + * *
    * Make a right u-turn.
    * 
@@ -249,6 +323,8 @@ public enum Maneuver */ public static final int UTURN_RIGHT_VALUE = 7; /** + * + * *
    * Turn right.
    * 
@@ -257,6 +333,8 @@ public enum Maneuver */ public static final int TURN_RIGHT_VALUE = 8; /** + * + * *
    * Go straight.
    * 
@@ -265,6 +343,8 @@ public enum Maneuver */ public static final int STRAIGHT_VALUE = 9; /** + * + * *
    * Take the left ramp.
    * 
@@ -273,6 +353,8 @@ public enum Maneuver */ public static final int RAMP_LEFT_VALUE = 10; /** + * + * *
    * Take the right ramp.
    * 
@@ -281,6 +363,8 @@ public enum Maneuver */ public static final int RAMP_RIGHT_VALUE = 11; /** + * + * *
    * Merge into traffic.
    * 
@@ -289,6 +373,8 @@ public enum Maneuver */ public static final int MERGE_VALUE = 12; /** + * + * *
    * Take the left fork.
    * 
@@ -297,6 +383,8 @@ public enum Maneuver */ public static final int FORK_LEFT_VALUE = 13; /** + * + * *
    * Take the right fork.
    * 
@@ -305,6 +393,8 @@ public enum Maneuver */ public static final int FORK_RIGHT_VALUE = 14; /** + * + * *
    * Take the ferry.
    * 
@@ -313,6 +403,8 @@ public enum Maneuver */ public static final int FERRY_VALUE = 15; /** + * + * *
    * Take the train leading onto the ferry.
    * 
@@ -321,6 +413,8 @@ public enum Maneuver */ public static final int FERRY_TRAIN_VALUE = 16; /** + * + * *
    * Turn left at the roundabout.
    * 
@@ -329,6 +423,8 @@ public enum Maneuver */ public static final int ROUNDABOUT_LEFT_VALUE = 17; /** + * + * *
    * Turn right at the roundabout.
    * 
@@ -337,6 +433,8 @@ public enum Maneuver */ public static final int ROUNDABOUT_RIGHT_VALUE = 18; /** + * + * *
    * Initial maneuver.
    * 
@@ -345,6 +443,8 @@ public enum Maneuver */ public static final int DEPART_VALUE = 19; /** + * + * *
    * Used to indicate a street name change.
    * 
@@ -353,7 +453,6 @@ public enum Maneuver */ public static final int NAME_CHANGE_VALUE = 20; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -378,67 +477,85 @@ public static Maneuver valueOf(int value) { */ public static Maneuver forNumber(int value) { switch (value) { - case 0: return MANEUVER_UNSPECIFIED; - case 1: return TURN_SLIGHT_LEFT; - case 2: return TURN_SHARP_LEFT; - case 3: return UTURN_LEFT; - case 4: return TURN_LEFT; - case 5: return TURN_SLIGHT_RIGHT; - case 6: return TURN_SHARP_RIGHT; - case 7: return UTURN_RIGHT; - case 8: return TURN_RIGHT; - case 9: return STRAIGHT; - case 10: return RAMP_LEFT; - case 11: return RAMP_RIGHT; - case 12: return MERGE; - case 13: return FORK_LEFT; - case 14: return FORK_RIGHT; - case 15: return FERRY; - case 16: return FERRY_TRAIN; - case 17: return ROUNDABOUT_LEFT; - case 18: return ROUNDABOUT_RIGHT; - case 19: return DEPART; - case 20: return NAME_CHANGE; - default: return null; + case 0: + return MANEUVER_UNSPECIFIED; + case 1: + return TURN_SLIGHT_LEFT; + case 2: + return TURN_SHARP_LEFT; + case 3: + return UTURN_LEFT; + case 4: + return TURN_LEFT; + case 5: + return TURN_SLIGHT_RIGHT; + case 6: + return TURN_SHARP_RIGHT; + case 7: + return UTURN_RIGHT; + case 8: + return TURN_RIGHT; + case 9: + return STRAIGHT; + case 10: + return RAMP_LEFT; + case 11: + return RAMP_RIGHT; + case 12: + return MERGE; + case 13: + return FORK_LEFT; + case 14: + return FORK_RIGHT; + case 15: + return FERRY; + case 16: + return FERRY_TRAIN; + case 17: + return ROUNDABOUT_LEFT; + case 18: + return ROUNDABOUT_RIGHT; + case 19: + return DEPART; + case 20: + return NAME_CHANGE; + 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< - Maneuver> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Maneuver findValueByNumber(int number) { - return Maneuver.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 Maneuver findValueByNumber(int number) { + return Maneuver.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.maps.routing.v2.ManeuverProto.getDescriptor().getEnumTypes().get(0); } private static final Maneuver[] VALUES = values(); - public static Maneuver valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Maneuver 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; @@ -454,4 +571,3 @@ private Maneuver(int value) { // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.Maneuver) } - diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java new file mode 100644 index 000000000000..cff4b44a6ff3 --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java @@ -0,0 +1,62 @@ +/* + * 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/maps/routing/v2/maneuver.proto + +package com.google.maps.routing.v2; + +public final class ManeuverProto { + private ManeuverProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + 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/maps/routing/v2/maneuver.proto\022" + + "\026google.maps.routing.v2*\367\002\n\010Maneuver\022\030\n\024" + + "MANEUVER_UNSPECIFIED\020\000\022\024\n\020TURN_SLIGHT_LE" + + "FT\020\001\022\023\n\017TURN_SHARP_LEFT\020\002\022\016\n\nUTURN_LEFT\020" + + "\003\022\r\n\tTURN_LEFT\020\004\022\025\n\021TURN_SLIGHT_RIGHT\020\005\022" + + "\024\n\020TURN_SHARP_RIGHT\020\006\022\017\n\013UTURN_RIGHT\020\007\022\016" + + "\n\nTURN_RIGHT\020\010\022\014\n\010STRAIGHT\020\t\022\r\n\tRAMP_LEF" + + "T\020\n\022\016\n\nRAMP_RIGHT\020\013\022\t\n\005MERGE\020\014\022\r\n\tFORK_L" + + "EFT\020\r\022\016\n\nFORK_RIGHT\020\016\022\t\n\005FERRY\020\017\022\017\n\013FERR" + + "Y_TRAIN\020\020\022\023\n\017ROUNDABOUT_LEFT\020\021\022\024\n\020ROUNDA" + + "BOUT_RIGHT\020\022\022\n\n\006DEPART\020\023\022\017\n\013NAME_CHANGE\020" + + "\024B\302\001\n\032com.google.maps.routing.v2B\rManeuv" + + "erProtoP\001Z:cloud.google.com/go/maps/rout" + + "ing/apiv2/routingpb;routingpb\370\001\001\242\002\005GMRV2" + + "\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Maps\\" + + "Routing\\V2\352\002\031Google::Maps::Routing::V2b\006" + + "proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstruction.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstruction.java similarity index 70% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstruction.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstruction.java index 21cea899a524..fbfa973cdb2f 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstruction.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstruction.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/maps/routing/v2/navigation_instruction.proto package com.google.maps.routing.v2; /** + * + * *
  * Encapsulates navigation instructions for a
  * [RouteLegStep][google.maps.routing.v2.RouteLegStep]
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.maps.routing.v2.NavigationInstruction}
  */
-public final class NavigationInstruction extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class NavigationInstruction extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.NavigationInstruction)
     NavigationInstructionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use NavigationInstruction.newBuilder() to construct.
   private NavigationInstruction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private NavigationInstruction() {
     maneuver_ = 0;
     instructions_ = "";
@@ -27,61 +45,75 @@ private NavigationInstruction() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new NavigationInstruction();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.maps.routing.v2.NavigationInstructionProto.internal_static_google_maps_routing_v2_NavigationInstruction_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.maps.routing.v2.NavigationInstructionProto
+        .internal_static_google_maps_routing_v2_NavigationInstruction_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.NavigationInstructionProto.internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable
+    return com.google.maps.routing.v2.NavigationInstructionProto
+        .internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.NavigationInstruction.class, com.google.maps.routing.v2.NavigationInstruction.Builder.class);
+            com.google.maps.routing.v2.NavigationInstruction.class,
+            com.google.maps.routing.v2.NavigationInstruction.Builder.class);
   }
 
   public static final int MANEUVER_FIELD_NUMBER = 1;
   private int maneuver_ = 0;
   /**
+   *
+   *
    * 
    * Encapsulates the navigation instructions for the current step (e.g., turn
    * left, merge, straight, etc.). This field determines which icon to display.
    * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; + * * @return The enum numeric value on the wire for maneuver. */ - @java.lang.Override public int getManeuverValue() { + @java.lang.Override + public int getManeuverValue() { return maneuver_; } /** + * + * *
    * Encapsulates the navigation instructions for the current step (e.g., turn
    * left, merge, straight, etc.). This field determines which icon to display.
    * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; + * * @return The maneuver. */ - @java.lang.Override public com.google.maps.routing.v2.Maneuver getManeuver() { - com.google.maps.routing.v2.Maneuver result = com.google.maps.routing.v2.Maneuver.forNumber(maneuver_); + @java.lang.Override + public com.google.maps.routing.v2.Maneuver getManeuver() { + com.google.maps.routing.v2.Maneuver result = + com.google.maps.routing.v2.Maneuver.forNumber(maneuver_); return result == null ? com.google.maps.routing.v2.Maneuver.UNRECOGNIZED : result; } public static final int INSTRUCTIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object instructions_ = ""; /** + * + * *
    * Instructions for navigating this step.
    * 
* * string instructions = 2; + * * @return The instructions. */ @java.lang.Override @@ -90,29 +122,29 @@ public java.lang.String getInstructions() { 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(); instructions_ = s; return s; } } /** + * + * *
    * Instructions for navigating this step.
    * 
* * string instructions = 2; + * * @return The bytes for instructions. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstructionsBytes() { + public com.google.protobuf.ByteString getInstructionsBytes() { java.lang.Object ref = instructions_; 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); instructions_ = b; return b; } else { @@ -121,6 +153,7 @@ public java.lang.String getInstructions() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,8 +165,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 (maneuver_ != com.google.maps.routing.v2.Maneuver.MANEUVER_UNSPECIFIED.getNumber()) { output.writeEnum(1, maneuver_); } @@ -150,8 +182,7 @@ public int getSerializedSize() { size = 0; if (maneuver_ != com.google.maps.routing.v2.Maneuver.MANEUVER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, maneuver_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, maneuver_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instructions_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instructions_); @@ -164,16 +195,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.maps.routing.v2.NavigationInstruction)) { return super.equals(obj); } - com.google.maps.routing.v2.NavigationInstruction other = (com.google.maps.routing.v2.NavigationInstruction) obj; + com.google.maps.routing.v2.NavigationInstruction other = + (com.google.maps.routing.v2.NavigationInstruction) obj; if (maneuver_ != other.maneuver_) return false; - if (!getInstructions() - .equals(other.getInstructions())) return false; + if (!getInstructions().equals(other.getInstructions())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -194,99 +225,104 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.NavigationInstruction parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.NavigationInstruction parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.maps.routing.v2.NavigationInstruction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.NavigationInstruction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction 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 navigation instructions for a
    * [RouteLegStep][google.maps.routing.v2.RouteLegStep]
@@ -294,33 +330,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.maps.routing.v2.NavigationInstruction}
    */
-  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.maps.routing.v2.NavigationInstruction)
       com.google.maps.routing.v2.NavigationInstructionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.maps.routing.v2.NavigationInstructionProto.internal_static_google_maps_routing_v2_NavigationInstruction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.maps.routing.v2.NavigationInstructionProto
+          .internal_static_google_maps_routing_v2_NavigationInstruction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.NavigationInstructionProto.internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable
+      return com.google.maps.routing.v2.NavigationInstructionProto
+          .internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.NavigationInstruction.class, com.google.maps.routing.v2.NavigationInstruction.Builder.class);
+              com.google.maps.routing.v2.NavigationInstruction.class,
+              com.google.maps.routing.v2.NavigationInstruction.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.NavigationInstruction.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();
@@ -331,9 +366,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.maps.routing.v2.NavigationInstructionProto.internal_static_google_maps_routing_v2_NavigationInstruction_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.maps.routing.v2.NavigationInstructionProto
+          .internal_static_google_maps_routing_v2_NavigationInstruction_descriptor;
     }
 
     @java.lang.Override
@@ -352,8 +387,11 @@ public com.google.maps.routing.v2.NavigationInstruction build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.NavigationInstruction buildPartial() {
-      com.google.maps.routing.v2.NavigationInstruction result = new com.google.maps.routing.v2.NavigationInstruction(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.maps.routing.v2.NavigationInstruction result =
+          new com.google.maps.routing.v2.NavigationInstruction(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -372,38 +410,39 @@ private void buildPartial0(com.google.maps.routing.v2.NavigationInstruction 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.maps.routing.v2.NavigationInstruction) {
-        return mergeFrom((com.google.maps.routing.v2.NavigationInstruction)other);
+        return mergeFrom((com.google.maps.routing.v2.NavigationInstruction) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -411,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.maps.routing.v2.NavigationInstruction other) {
-      if (other == com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance()) return this;
+      if (other == com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance())
+        return this;
       if (other.maneuver_ != 0) {
         setManeuverValue(other.getManeuverValue());
       }
@@ -446,22 +486,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              maneuver_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              instructions_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                maneuver_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                instructions_ = 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) {
@@ -471,28 +514,36 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private int maneuver_ = 0;
     /**
+     *
+     *
      * 
      * Encapsulates the navigation instructions for the current step (e.g., turn
      * left, merge, straight, etc.). This field determines which icon to display.
      * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; + * * @return The enum numeric value on the wire for maneuver. */ - @java.lang.Override public int getManeuverValue() { + @java.lang.Override + public int getManeuverValue() { return maneuver_; } /** + * + * *
      * Encapsulates the navigation instructions for the current step (e.g., turn
      * left, merge, straight, etc.). This field determines which icon to display.
      * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; + * * @param value The enum numeric value on the wire for maneuver to set. * @return This builder for chaining. */ @@ -503,26 +554,33 @@ public Builder setManeuverValue(int value) { return this; } /** + * + * *
      * Encapsulates the navigation instructions for the current step (e.g., turn
      * left, merge, straight, etc.). This field determines which icon to display.
      * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; + * * @return The maneuver. */ @java.lang.Override public com.google.maps.routing.v2.Maneuver getManeuver() { - com.google.maps.routing.v2.Maneuver result = com.google.maps.routing.v2.Maneuver.forNumber(maneuver_); + com.google.maps.routing.v2.Maneuver result = + com.google.maps.routing.v2.Maneuver.forNumber(maneuver_); return result == null ? com.google.maps.routing.v2.Maneuver.UNRECOGNIZED : result; } /** + * + * *
      * Encapsulates the navigation instructions for the current step (e.g., turn
      * left, merge, straight, etc.). This field determines which icon to display.
      * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; + * * @param value The maneuver to set. * @return This builder for chaining. */ @@ -536,12 +594,15 @@ public Builder setManeuver(com.google.maps.routing.v2.Maneuver value) { return this; } /** + * + * *
      * Encapsulates the navigation instructions for the current step (e.g., turn
      * left, merge, straight, etc.). This field determines which icon to display.
      * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; + * * @return This builder for chaining. */ public Builder clearManeuver() { @@ -553,18 +614,20 @@ public Builder clearManeuver() { private java.lang.Object instructions_ = ""; /** + * + * *
      * Instructions for navigating this step.
      * 
* * string instructions = 2; + * * @return The instructions. */ public java.lang.String getInstructions() { java.lang.Object ref = instructions_; 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(); instructions_ = s; return s; @@ -573,20 +636,21 @@ public java.lang.String getInstructions() { } } /** + * + * *
      * Instructions for navigating this step.
      * 
* * string instructions = 2; + * * @return The bytes for instructions. */ - public com.google.protobuf.ByteString - getInstructionsBytes() { + public com.google.protobuf.ByteString getInstructionsBytes() { java.lang.Object ref = instructions_; 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); instructions_ = b; return b; } else { @@ -594,28 +658,35 @@ public java.lang.String getInstructions() { } } /** + * + * *
      * Instructions for navigating this step.
      * 
* * string instructions = 2; + * * @param value The instructions to set. * @return This builder for chaining. */ - public Builder setInstructions( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInstructions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } instructions_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Instructions for navigating this step.
      * 
* * string instructions = 2; + * * @return This builder for chaining. */ public Builder clearInstructions() { @@ -625,26 +696,30 @@ public Builder clearInstructions() { return this; } /** + * + * *
      * Instructions for navigating this step.
      * 
* * string instructions = 2; + * * @param value The bytes for instructions to set. * @return This builder for chaining. */ - public Builder setInstructionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInstructionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); instructions_ = value; bitField0_ |= 0x00000002; 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); } @@ -654,12 +729,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.NavigationInstruction) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.NavigationInstruction) private static final com.google.maps.routing.v2.NavigationInstruction DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.NavigationInstruction(); } @@ -668,27 +743,27 @@ public static com.google.maps.routing.v2.NavigationInstruction getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NavigationInstruction 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 NavigationInstruction 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; @@ -703,6 +778,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.NavigationInstruction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionOrBuilder.java similarity index 63% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionOrBuilder.java index 5cf285ee2a4a..43c40989d910 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionOrBuilder.java @@ -1,50 +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/maps/routing/v2/navigation_instruction.proto package com.google.maps.routing.v2; -public interface NavigationInstructionOrBuilder extends +public interface NavigationInstructionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.NavigationInstruction) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Encapsulates the navigation instructions for the current step (e.g., turn
    * left, merge, straight, etc.). This field determines which icon to display.
    * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; + * * @return The enum numeric value on the wire for maneuver. */ int getManeuverValue(); /** + * + * *
    * Encapsulates the navigation instructions for the current step (e.g., turn
    * left, merge, straight, etc.). This field determines which icon to display.
    * 
* * .google.maps.routing.v2.Maneuver maneuver = 1; + * * @return The maneuver. */ com.google.maps.routing.v2.Maneuver getManeuver(); /** + * + * *
    * Instructions for navigating this step.
    * 
* * string instructions = 2; + * * @return The instructions. */ java.lang.String getInstructions(); /** + * + * *
    * Instructions for navigating this step.
    * 
* * string instructions = 2; + * * @return The bytes for instructions. */ - com.google.protobuf.ByteString - getInstructionsBytes(); + com.google.protobuf.ByteString getInstructionsBytes(); } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java new file mode 100644 index 000000000000..f4ad1cc0155f --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java @@ -0,0 +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/maps/routing/v2/navigation_instruction.proto + +package com.google.maps.routing.v2; + +public final class NavigationInstructionProto { + private NavigationInstructionProto() {} + + 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_maps_routing_v2_NavigationInstruction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/maps/routing/v2/navigation_inst" + + "ruction.proto\022\026google.maps.routing.v2\032%g" + + "oogle/maps/routing/v2/maneuver.proto\"a\n\025" + + "NavigationInstruction\0222\n\010maneuver\030\001 \001(\0162" + + " .google.maps.routing.v2.Maneuver\022\024\n\014ins" + + "tructions\030\002 \001(\tB\317\001\n\032com.google.maps.rout" + + "ing.v2B\032NavigationInstructionProtoP\001Z:cl" + + "oud.google.com/go/maps/routing/apiv2/rou" + + "tingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Map" + + "s.Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031" + + "Google::Maps::Routing::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.maps.routing.v2.ManeuverProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_NavigationInstruction_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_NavigationInstruction_descriptor, + new java.lang.String[] { + "Maneuver", "Instructions", + }); + com.google.maps.routing.v2.ManeuverProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Polyline.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Polyline.java similarity index 70% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Polyline.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Polyline.java index f491fcbc9149..88f0f6c19c8e 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Polyline.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Polyline.java @@ -1,57 +1,79 @@ +/* + * 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/maps/routing/v2/polyline.proto package com.google.maps.routing.v2; /** + * + * *
  * Encapsulates an encoded polyline.
  * 
* * Protobuf type {@code google.maps.routing.v2.Polyline} */ -public final class Polyline extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Polyline extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.Polyline) PolylineOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Polyline.newBuilder() to construct. private Polyline(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Polyline() { - } + + private Polyline() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Polyline(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.PolylineProto.internal_static_google_maps_routing_v2_Polyline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.PolylineProto + .internal_static_google_maps_routing_v2_Polyline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.PolylineProto.internal_static_google_maps_routing_v2_Polyline_fieldAccessorTable + return com.google.maps.routing.v2.PolylineProto + .internal_static_google_maps_routing_v2_Polyline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.Polyline.class, com.google.maps.routing.v2.Polyline.Builder.class); + com.google.maps.routing.v2.Polyline.class, + com.google.maps.routing.v2.Polyline.Builder.class); } private int polylineTypeCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object polylineType_; + public enum PolylineTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ENCODED_POLYLINE(1), GEO_JSON_LINESTRING(2), POLYLINETYPE_NOT_SET(0); private final int value; + private PolylineTypeCase(int value) { this.value = value; } @@ -67,43 +89,52 @@ public static PolylineTypeCase valueOf(int value) { public static PolylineTypeCase forNumber(int value) { switch (value) { - case 1: return ENCODED_POLYLINE; - case 2: return GEO_JSON_LINESTRING; - case 0: return POLYLINETYPE_NOT_SET; - default: return null; + case 1: + return ENCODED_POLYLINE; + case 2: + return GEO_JSON_LINESTRING; + case 0: + return POLYLINETYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public PolylineTypeCase - getPolylineTypeCase() { - return PolylineTypeCase.forNumber( - polylineTypeCase_); + public PolylineTypeCase getPolylineTypeCase() { + return PolylineTypeCase.forNumber(polylineTypeCase_); } public static final int ENCODED_POLYLINE_FIELD_NUMBER = 1; /** + * + * *
    * The string encoding of the polyline using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    * 
* * string encoded_polyline = 1; + * * @return Whether the encodedPolyline field is set. */ public boolean hasEncodedPolyline() { return polylineTypeCase_ == 1; } /** + * + * *
    * The string encoding of the polyline using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    * 
* * string encoded_polyline = 1; + * * @return The encodedPolyline. */ public java.lang.String getEncodedPolyline() { @@ -114,8 +145,7 @@ public java.lang.String getEncodedPolyline() { 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 (polylineTypeCase_ == 1) { polylineType_ = s; @@ -124,24 +154,25 @@ public java.lang.String getEncodedPolyline() { } } /** + * + * *
    * The string encoding of the polyline using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    * 
* * string encoded_polyline = 1; + * * @return The bytes for encodedPolyline. */ - public com.google.protobuf.ByteString - getEncodedPolylineBytes() { + public com.google.protobuf.ByteString getEncodedPolylineBytes() { java.lang.Object ref = ""; if (polylineTypeCase_ == 1) { ref = polylineType_; } 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 (polylineTypeCase_ == 1) { polylineType_ = b; } @@ -153,12 +184,15 @@ public java.lang.String getEncodedPolyline() { public static final int GEO_JSON_LINESTRING_FIELD_NUMBER = 2; /** + * + * *
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
    * 
* * .google.protobuf.Struct geo_json_linestring = 2; + * * @return Whether the geoJsonLinestring field is set. */ @java.lang.Override @@ -166,22 +200,27 @@ public boolean hasGeoJsonLinestring() { return polylineTypeCase_ == 2; } /** + * + * *
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
    * 
* * .google.protobuf.Struct geo_json_linestring = 2; + * * @return The geoJsonLinestring. */ @java.lang.Override public com.google.protobuf.Struct getGeoJsonLinestring() { if (polylineTypeCase_ == 2) { - return (com.google.protobuf.Struct) polylineType_; + return (com.google.protobuf.Struct) polylineType_; } return com.google.protobuf.Struct.getDefaultInstance(); } /** + * + * *
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -192,12 +231,13 @@ public com.google.protobuf.Struct getGeoJsonLinestring() {
   @java.lang.Override
   public com.google.protobuf.StructOrBuilder getGeoJsonLinestringOrBuilder() {
     if (polylineTypeCase_ == 2) {
-       return (com.google.protobuf.Struct) polylineType_;
+      return (com.google.protobuf.Struct) polylineType_;
     }
     return com.google.protobuf.Struct.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -209,8 +249,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 (polylineTypeCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, polylineType_);
     }
@@ -230,8 +269,9 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, polylineType_);
     }
     if (polylineTypeCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.protobuf.Struct) polylineType_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.protobuf.Struct) polylineType_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -241,7 +281,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.maps.routing.v2.Polyline)) {
       return super.equals(obj);
@@ -251,12 +291,10 @@ public boolean equals(final java.lang.Object obj) {
     if (!getPolylineTypeCase().equals(other.getPolylineTypeCase())) return false;
     switch (polylineTypeCase_) {
       case 1:
-        if (!getEncodedPolyline()
-            .equals(other.getEncodedPolyline())) return false;
+        if (!getEncodedPolyline().equals(other.getEncodedPolyline())) return false;
         break;
       case 2:
-        if (!getGeoJsonLinestring()
-            .equals(other.getGeoJsonLinestring())) return false;
+        if (!getGeoJsonLinestring().equals(other.getGeoJsonLinestring())) return false;
         break;
       case 0:
       default:
@@ -289,132 +327,135 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.maps.routing.v2.Polyline parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.maps.routing.v2.Polyline parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.maps.routing.v2.Polyline parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline 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 an encoded polyline.
    * 
* * Protobuf type {@code google.maps.routing.v2.Polyline} */ - 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.maps.routing.v2.Polyline) com.google.maps.routing.v2.PolylineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.PolylineProto.internal_static_google_maps_routing_v2_Polyline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.PolylineProto + .internal_static_google_maps_routing_v2_Polyline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.PolylineProto.internal_static_google_maps_routing_v2_Polyline_fieldAccessorTable + return com.google.maps.routing.v2.PolylineProto + .internal_static_google_maps_routing_v2_Polyline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.Polyline.class, com.google.maps.routing.v2.Polyline.Builder.class); + com.google.maps.routing.v2.Polyline.class, + com.google.maps.routing.v2.Polyline.Builder.class); } // Construct using com.google.maps.routing.v2.Polyline.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(); @@ -428,9 +469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.PolylineProto.internal_static_google_maps_routing_v2_Polyline_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.PolylineProto + .internal_static_google_maps_routing_v2_Polyline_descriptor; } @java.lang.Override @@ -450,7 +491,9 @@ public com.google.maps.routing.v2.Polyline build() { @java.lang.Override public com.google.maps.routing.v2.Polyline buildPartial() { com.google.maps.routing.v2.Polyline result = new com.google.maps.routing.v2.Polyline(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -463,8 +506,7 @@ private void buildPartial0(com.google.maps.routing.v2.Polyline result) { private void buildPartialOneofs(com.google.maps.routing.v2.Polyline result) { result.polylineTypeCase_ = polylineTypeCase_; result.polylineType_ = this.polylineType_; - if (polylineTypeCase_ == 2 && - geoJsonLinestringBuilder_ != null) { + if (polylineTypeCase_ == 2 && geoJsonLinestringBuilder_ != null) { result.polylineType_ = geoJsonLinestringBuilder_.build(); } } @@ -473,38 +515,39 @@ private void buildPartialOneofs(com.google.maps.routing.v2.Polyline 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.maps.routing.v2.Polyline) { - return mergeFrom((com.google.maps.routing.v2.Polyline)other); + return mergeFrom((com.google.maps.routing.v2.Polyline) other); } else { super.mergeFrom(other); return this; @@ -514,19 +557,22 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.maps.routing.v2.Polyline other) { if (other == com.google.maps.routing.v2.Polyline.getDefaultInstance()) return this; switch (other.getPolylineTypeCase()) { - case ENCODED_POLYLINE: { - polylineTypeCase_ = 1; - polylineType_ = other.polylineType_; - onChanged(); - break; - } - case GEO_JSON_LINESTRING: { - mergeGeoJsonLinestring(other.getGeoJsonLinestring()); - break; - } - case POLYLINETYPE_NOT_SET: { - break; - } + case ENCODED_POLYLINE: + { + polylineTypeCase_ = 1; + polylineType_ = other.polylineType_; + onChanged(); + break; + } + case GEO_JSON_LINESTRING: + { + mergeGeoJsonLinestring(other.getGeoJsonLinestring()); + break; + } + case POLYLINETYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -554,25 +600,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - polylineTypeCase_ = 1; - polylineType_ = s; - break; - } // case 10 - case 18: { - input.readMessage( - getGeoJsonLinestringFieldBuilder().getBuilder(), - extensionRegistry); - polylineTypeCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + polylineTypeCase_ = 1; + polylineType_ = s; + break; + } // case 10 + case 18: + { + input.readMessage( + getGeoJsonLinestringFieldBuilder().getBuilder(), extensionRegistry); + polylineTypeCase_ = 2; + 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) { @@ -582,12 +630,12 @@ public Builder mergeFrom( } // finally return this; } + private int polylineTypeCase_ = 0; private java.lang.Object polylineType_; - public PolylineTypeCase - getPolylineTypeCase() { - return PolylineTypeCase.forNumber( - polylineTypeCase_); + + public PolylineTypeCase getPolylineTypeCase() { + return PolylineTypeCase.forNumber(polylineTypeCase_); } public Builder clearPolylineType() { @@ -600,12 +648,15 @@ public Builder clearPolylineType() { private int bitField0_; /** + * + * *
      * The string encoding of the polyline using the [polyline encoding
      * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
      * 
* * string encoded_polyline = 1; + * * @return Whether the encodedPolyline field is set. */ @java.lang.Override @@ -613,12 +664,15 @@ public boolean hasEncodedPolyline() { return polylineTypeCase_ == 1; } /** + * + * *
      * The string encoding of the polyline using the [polyline encoding
      * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
      * 
* * string encoded_polyline = 1; + * * @return The encodedPolyline. */ @java.lang.Override @@ -628,8 +682,7 @@ public java.lang.String getEncodedPolyline() { ref = polylineType_; } 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 (polylineTypeCase_ == 1) { polylineType_ = s; @@ -640,25 +693,26 @@ public java.lang.String getEncodedPolyline() { } } /** + * + * *
      * The string encoding of the polyline using the [polyline encoding
      * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
      * 
* * string encoded_polyline = 1; + * * @return The bytes for encodedPolyline. */ @java.lang.Override - public com.google.protobuf.ByteString - getEncodedPolylineBytes() { + public com.google.protobuf.ByteString getEncodedPolylineBytes() { java.lang.Object ref = ""; if (polylineTypeCase_ == 1) { ref = polylineType_; } 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 (polylineTypeCase_ == 1) { polylineType_ = b; } @@ -668,30 +722,37 @@ public java.lang.String getEncodedPolyline() { } } /** + * + * *
      * The string encoding of the polyline using the [polyline encoding
      * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
      * 
* * string encoded_polyline = 1; + * * @param value The encodedPolyline to set. * @return This builder for chaining. */ - public Builder setEncodedPolyline( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEncodedPolyline(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } polylineTypeCase_ = 1; polylineType_ = value; onChanged(); return this; } /** + * + * *
      * The string encoding of the polyline using the [polyline encoding
      * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
      * 
* * string encoded_polyline = 1; + * * @return This builder for chaining. */ public Builder clearEncodedPolyline() { @@ -703,18 +764,22 @@ public Builder clearEncodedPolyline() { return this; } /** + * + * *
      * The string encoding of the polyline using the [polyline encoding
      * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
      * 
* * string encoded_polyline = 1; + * * @param value The bytes for encodedPolyline to set. * @return This builder for chaining. */ - public Builder setEncodedPolylineBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEncodedPolylineBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); polylineTypeCase_ = 1; polylineType_ = value; @@ -723,14 +788,20 @@ public Builder setEncodedPolylineBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> geoJsonLinestringBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + geoJsonLinestringBuilder_; /** + * + * *
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
      * 
* * .google.protobuf.Struct geo_json_linestring = 2; + * * @return Whether the geoJsonLinestring field is set. */ @java.lang.Override @@ -738,12 +809,15 @@ public boolean hasGeoJsonLinestring() { return polylineTypeCase_ == 2; } /** + * + * *
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
      * 
* * .google.protobuf.Struct geo_json_linestring = 2; + * * @return The geoJsonLinestring. */ @java.lang.Override @@ -761,6 +835,8 @@ public com.google.protobuf.Struct getGeoJsonLinestring() { } } /** + * + * *
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -782,6 +858,8 @@ public Builder setGeoJsonLinestring(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -789,8 +867,7 @@ public Builder setGeoJsonLinestring(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct geo_json_linestring = 2;
      */
-    public Builder setGeoJsonLinestring(
-        com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setGeoJsonLinestring(com.google.protobuf.Struct.Builder builderForValue) {
       if (geoJsonLinestringBuilder_ == null) {
         polylineType_ = builderForValue.build();
         onChanged();
@@ -801,6 +878,8 @@ public Builder setGeoJsonLinestring(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -810,10 +889,12 @@ public Builder setGeoJsonLinestring(
      */
     public Builder mergeGeoJsonLinestring(com.google.protobuf.Struct value) {
       if (geoJsonLinestringBuilder_ == null) {
-        if (polylineTypeCase_ == 2 &&
-            polylineType_ != com.google.protobuf.Struct.getDefaultInstance()) {
-          polylineType_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) polylineType_)
-              .mergeFrom(value).buildPartial();
+        if (polylineTypeCase_ == 2
+            && polylineType_ != com.google.protobuf.Struct.getDefaultInstance()) {
+          polylineType_ =
+              com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) polylineType_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           polylineType_ = value;
         }
@@ -829,6 +910,8 @@ public Builder mergeGeoJsonLinestring(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -853,6 +936,8 @@ public Builder clearGeoJsonLinestring() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -864,6 +949,8 @@ public com.google.protobuf.Struct.Builder getGeoJsonLinestringBuilder() {
       return getGeoJsonLinestringFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -883,6 +970,8 @@ public com.google.protobuf.StructOrBuilder getGeoJsonLinestringOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Specifies a polyline using the [GeoJSON LineString
      * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -891,26 +980,29 @@ public com.google.protobuf.StructOrBuilder getGeoJsonLinestringOrBuilder() {
      * .google.protobuf.Struct geo_json_linestring = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
+            com.google.protobuf.Struct,
+            com.google.protobuf.Struct.Builder,
+            com.google.protobuf.StructOrBuilder>
         getGeoJsonLinestringFieldBuilder() {
       if (geoJsonLinestringBuilder_ == null) {
         if (!(polylineTypeCase_ == 2)) {
           polylineType_ = com.google.protobuf.Struct.getDefaultInstance();
         }
-        geoJsonLinestringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
-                (com.google.protobuf.Struct) polylineType_,
-                getParentForChildren(),
-                isClean());
+        geoJsonLinestringBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Struct,
+                com.google.protobuf.Struct.Builder,
+                com.google.protobuf.StructOrBuilder>(
+                (com.google.protobuf.Struct) polylineType_, getParentForChildren(), isClean());
         polylineType_ = null;
       }
       polylineTypeCase_ = 2;
       onChanged();
       return geoJsonLinestringBuilder_;
     }
+
     @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);
     }
 
@@ -920,12 +1012,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.Polyline)
   }
 
   // @@protoc_insertion_point(class_scope:google.maps.routing.v2.Polyline)
   private static final com.google.maps.routing.v2.Polyline DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.maps.routing.v2.Polyline();
   }
@@ -934,27 +1026,27 @@ public static com.google.maps.routing.v2.Polyline getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Polyline 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 Polyline 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;
@@ -969,6 +1061,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.maps.routing.v2.Polyline getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineEncoding.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineEncoding.java
similarity index 69%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineEncoding.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineEncoding.java
index e6b196b85fa9..77ff311eb86d 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineEncoding.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineEncoding.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/maps/routing/v2/polyline.proto
 
 package com.google.maps.routing.v2;
 
 /**
+ *
+ *
  * 
  * Specifies the preferred type of polyline to be returned.
  * 
* * Protobuf enum {@code google.maps.routing.v2.PolylineEncoding} */ -public enum PolylineEncoding - implements com.google.protobuf.ProtocolMessageEnum { +public enum PolylineEncoding implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * No polyline type preference specified. Defaults to `ENCODED_POLYLINE`.
    * 
@@ -21,6 +39,8 @@ public enum PolylineEncoding */ POLYLINE_ENCODING_UNSPECIFIED(0), /** + * + * *
    * Specifies a polyline encoded using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm).
@@ -30,6 +50,8 @@ public enum PolylineEncoding
    */
   ENCODED_POLYLINE(1),
   /**
+   *
+   *
    * 
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -42,6 +64,8 @@ public enum PolylineEncoding
   ;
 
   /**
+   *
+   *
    * 
    * No polyline type preference specified. Defaults to `ENCODED_POLYLINE`.
    * 
@@ -50,6 +74,8 @@ public enum PolylineEncoding */ public static final int POLYLINE_ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Specifies a polyline encoded using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm).
@@ -59,6 +85,8 @@ public enum PolylineEncoding
    */
   public static final int ENCODED_POLYLINE_VALUE = 1;
   /**
+   *
+   *
    * 
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
@@ -68,7 +96,6 @@ public enum PolylineEncoding
    */
   public static final int GEO_JSON_LINESTRING_VALUE = 2;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -93,49 +120,49 @@ public static PolylineEncoding valueOf(int value) {
    */
   public static PolylineEncoding forNumber(int value) {
     switch (value) {
-      case 0: return POLYLINE_ENCODING_UNSPECIFIED;
-      case 1: return ENCODED_POLYLINE;
-      case 2: return GEO_JSON_LINESTRING;
-      default: return null;
+      case 0:
+        return POLYLINE_ENCODING_UNSPECIFIED;
+      case 1:
+        return ENCODED_POLYLINE;
+      case 2:
+        return GEO_JSON_LINESTRING;
+      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<
-      PolylineEncoding> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public PolylineEncoding findValueByNumber(int number) {
-            return PolylineEncoding.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 PolylineEncoding findValueByNumber(int number) {
+          return PolylineEncoding.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.maps.routing.v2.PolylineProto.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final PolylineEncoding[] VALUES = values();
 
-  public static PolylineEncoding valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static PolylineEncoding 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;
@@ -151,4 +178,3 @@ private PolylineEncoding(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.PolylineEncoding)
 }
-
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineOrBuilder.java
similarity index 74%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineOrBuilder.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineOrBuilder.java
index 6e943f540ea3..ac9f2d8ec15b 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineOrBuilder.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineOrBuilder.java
@@ -1,65 +1,97 @@
+/*
+ * 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/maps/routing/v2/polyline.proto
 
 package com.google.maps.routing.v2;
 
-public interface PolylineOrBuilder extends
+public interface PolylineOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.Polyline)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The string encoding of the polyline using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    * 
* * string encoded_polyline = 1; + * * @return Whether the encodedPolyline field is set. */ boolean hasEncodedPolyline(); /** + * + * *
    * The string encoding of the polyline using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    * 
* * string encoded_polyline = 1; + * * @return The encodedPolyline. */ java.lang.String getEncodedPolyline(); /** + * + * *
    * The string encoding of the polyline using the [polyline encoding
    * algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
    * 
* * string encoded_polyline = 1; + * * @return The bytes for encodedPolyline. */ - com.google.protobuf.ByteString - getEncodedPolylineBytes(); + com.google.protobuf.ByteString getEncodedPolylineBytes(); /** + * + * *
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
    * 
* * .google.protobuf.Struct geo_json_linestring = 2; + * * @return Whether the geoJsonLinestring field is set. */ boolean hasGeoJsonLinestring(); /** + * + * *
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
    * 
* * .google.protobuf.Struct geo_json_linestring = 2; + * * @return The geoJsonLinestring. */ com.google.protobuf.Struct getGeoJsonLinestring(); /** + * + * *
    * Specifies a polyline using the [GeoJSON LineString
    * format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java
new file mode 100644
index 000000000000..adeaa9dc4f5f
--- /dev/null
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java
@@ -0,0 +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/maps/routing/v2/polyline.proto
+
+package com.google.maps.routing.v2;
+
+public final class PolylineProto {
+  private PolylineProto() {}
+
+  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_maps_routing_v2_Polyline_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_maps_routing_v2_Polyline_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/maps/routing/v2/polyline.proto\022"
+          + "\026google.maps.routing.v2\032\034google/protobuf"
+          + "/struct.proto\"o\n\010Polyline\022\032\n\020encoded_pol"
+          + "yline\030\001 \001(\tH\000\0226\n\023geo_json_linestring\030\002 \001"
+          + "(\0132\027.google.protobuf.StructH\000B\017\n\rpolylin"
+          + "e_type*S\n\017PolylineQuality\022 \n\034POLYLINE_QU"
+          + "ALITY_UNSPECIFIED\020\000\022\020\n\014HIGH_QUALITY\020\001\022\014\n"
+          + "\010OVERVIEW\020\002*d\n\020PolylineEncoding\022!\n\035POLYL"
+          + "INE_ENCODING_UNSPECIFIED\020\000\022\024\n\020ENCODED_PO"
+          + "LYLINE\020\001\022\027\n\023GEO_JSON_LINESTRING\020\002B\302\001\n\032co"
+          + "m.google.maps.routing.v2B\rPolylineProtoP"
+          + "\001Z:cloud.google.com/go/maps/routing/apiv"
+          + "2/routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Googl"
+          + "e.Maps.Routing.V2\312\002\026Google\\Maps\\Routing\\"
+          + "V2\352\002\031Google::Maps::Routing::V2b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.protobuf.StructProto.getDescriptor(),
+            });
+    internal_static_google_maps_routing_v2_Polyline_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_maps_routing_v2_Polyline_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_maps_routing_v2_Polyline_descriptor,
+            new java.lang.String[] {
+              "EncodedPolyline", "GeoJsonLinestring", "PolylineType",
+            });
+    com.google.protobuf.StructProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineQuality.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineQuality.java
similarity index 71%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineQuality.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineQuality.java
index ab8ebe80a4f4..b5b2db578865 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineQuality.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineQuality.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/maps/routing/v2/polyline.proto
 
 package com.google.maps.routing.v2;
 
 /**
+ *
+ *
  * 
  * A set of values that specify the quality of the polyline.
  * 
* * Protobuf enum {@code google.maps.routing.v2.PolylineQuality} */ -public enum PolylineQuality - implements com.google.protobuf.ProtocolMessageEnum { +public enum PolylineQuality implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * No polyline quality preference specified. Defaults to `OVERVIEW`.
    * 
@@ -21,6 +39,8 @@ public enum PolylineQuality */ POLYLINE_QUALITY_UNSPECIFIED(0), /** + * + * *
    * Specifies a high-quality polyline - which is composed using more points
    * than `OVERVIEW`, at the cost of increased response size. Use this value
@@ -31,6 +51,8 @@ public enum PolylineQuality
    */
   HIGH_QUALITY(1),
   /**
+   *
+   *
    * 
    * Specifies an overview polyline - which is composed using a small number of
    * points. Use this value when displaying an overview of the route. Using this
@@ -45,6 +67,8 @@ public enum PolylineQuality
   ;
 
   /**
+   *
+   *
    * 
    * No polyline quality preference specified. Defaults to `OVERVIEW`.
    * 
@@ -53,6 +77,8 @@ public enum PolylineQuality */ public static final int POLYLINE_QUALITY_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Specifies a high-quality polyline - which is composed using more points
    * than `OVERVIEW`, at the cost of increased response size. Use this value
@@ -63,6 +89,8 @@ public enum PolylineQuality
    */
   public static final int HIGH_QUALITY_VALUE = 1;
   /**
+   *
+   *
    * 
    * Specifies an overview polyline - which is composed using a small number of
    * points. Use this value when displaying an overview of the route. Using this
@@ -74,7 +102,6 @@ public enum PolylineQuality
    */
   public static final int OVERVIEW_VALUE = 2;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -99,49 +126,49 @@ public static PolylineQuality valueOf(int value) {
    */
   public static PolylineQuality forNumber(int value) {
     switch (value) {
-      case 0: return POLYLINE_QUALITY_UNSPECIFIED;
-      case 1: return HIGH_QUALITY;
-      case 2: return OVERVIEW;
-      default: return null;
+      case 0:
+        return POLYLINE_QUALITY_UNSPECIFIED;
+      case 1:
+        return HIGH_QUALITY;
+      case 2:
+        return OVERVIEW;
+      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<
-      PolylineQuality> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public PolylineQuality findValueByNumber(int number) {
-            return PolylineQuality.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 PolylineQuality findValueByNumber(int number) {
+          return PolylineQuality.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.maps.routing.v2.PolylineProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final PolylineQuality[] VALUES = values();
 
-  public static PolylineQuality valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static PolylineQuality 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;
@@ -157,4 +184,3 @@ private PolylineQuality(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.PolylineQuality)
 }
-
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java
similarity index 78%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java
index a1c53eae0e4e..d4318cb7f228 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Route.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/maps/routing/v2/route.proto
 
 package com.google.maps.routing.v2;
 
 /**
+ *
+ *
  * 
  * Contains a route, which consists of a series of connected road segments
  * that join beginning, ending, and intermediate waypoints.
@@ -11,68 +28,77 @@
  *
  * Protobuf type {@code google.maps.routing.v2.Route}
  */
-public final class Route extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Route extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.Route)
     RouteOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Route.newBuilder() to construct.
   private Route(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Route() {
     routeLabels_ = java.util.Collections.emptyList();
     legs_ = java.util.Collections.emptyList();
     description_ = "";
-    warnings_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    warnings_ = com.google.protobuf.LazyStringArrayList.emptyList();
     optimizedIntermediateWaypointIndex_ = emptyIntList();
     routeToken_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Route();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.maps.routing.v2.RouteProto
+        .internal_static_google_maps_routing_v2_Route_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_fieldAccessorTable
+    return com.google.maps.routing.v2.RouteProto
+        .internal_static_google_maps_routing_v2_Route_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.maps.routing.v2.Route.class, com.google.maps.routing.v2.Route.Builder.class);
   }
 
-  public interface RouteLocalizedValuesOrBuilder extends
+  public interface RouteLocalizedValuesOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.Route.RouteLocalizedValues)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return Whether the distance field is set. */ boolean hasDistance(); /** + * + * *
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return The distance. */ com.google.type.LocalizedText getDistance(); /** + * + * *
      * Travel distance represented in text form.
      * 
@@ -82,6 +108,8 @@ public interface RouteLocalizedValuesOrBuilder extends com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder(); /** + * + * *
      * Duration taking traffic conditions into consideration, represented in
      * text form. Note: If you did not request traffic information, this value
@@ -89,10 +117,13 @@ public interface RouteLocalizedValuesOrBuilder extends
      * 
* * .google.type.LocalizedText duration = 2; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
      * Duration taking traffic conditions into consideration, represented in
      * text form. Note: If you did not request traffic information, this value
@@ -100,10 +131,13 @@ public interface RouteLocalizedValuesOrBuilder extends
      * 
* * .google.type.LocalizedText duration = 2; + * * @return The duration. */ com.google.type.LocalizedText getDuration(); /** + * + * *
      * Duration taking traffic conditions into consideration, represented in
      * text form. Note: If you did not request traffic information, this value
@@ -115,26 +149,34 @@ public interface RouteLocalizedValuesOrBuilder extends
     com.google.type.LocalizedTextOrBuilder getDurationOrBuilder();
 
     /**
+     *
+     *
      * 
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return Whether the staticDuration field is set. */ boolean hasStaticDuration(); /** + * + * *
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return The staticDuration. */ com.google.type.LocalizedText getStaticDuration(); /** + * + * *
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
@@ -145,24 +187,32 @@ public interface RouteLocalizedValuesOrBuilder extends
     com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder();
 
     /**
+     *
+     *
      * 
      * Transit fare represented in text form.
      * 
* * .google.type.LocalizedText transit_fare = 4; + * * @return Whether the transitFare field is set. */ boolean hasTransitFare(); /** + * + * *
      * Transit fare represented in text form.
      * 
* * .google.type.LocalizedText transit_fare = 4; + * * @return The transitFare. */ com.google.type.LocalizedText getTransitFare(); /** + * + * *
      * Transit fare represented in text form.
      * 
@@ -172,52 +222,58 @@ public interface RouteLocalizedValuesOrBuilder extends com.google.type.LocalizedTextOrBuilder getTransitFareOrBuilder(); } /** + * + * *
    * Text representations of certain properties.
    * 
* * Protobuf type {@code google.maps.routing.v2.Route.RouteLocalizedValues} */ - public static final class RouteLocalizedValues extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class RouteLocalizedValues extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.Route.RouteLocalizedValues) RouteLocalizedValuesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RouteLocalizedValues.newBuilder() to construct. private RouteLocalizedValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RouteLocalizedValues() { - } + + private RouteLocalizedValues() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RouteLocalizedValues(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.Route.RouteLocalizedValues.class, com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder.class); + com.google.maps.routing.v2.Route.RouteLocalizedValues.class, + com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder.class); } public static final int DISTANCE_FIELD_NUMBER = 1; private com.google.type.LocalizedText distance_; /** + * + * *
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return Whether the distance field is set. */ @java.lang.Override @@ -225,11 +281,14 @@ public boolean hasDistance() { return distance_ != null; } /** + * + * *
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return The distance. */ @java.lang.Override @@ -237,6 +296,8 @@ public com.google.type.LocalizedText getDistance() { return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; } /** + * + * *
      * Travel distance represented in text form.
      * 
@@ -251,6 +312,8 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { public static final int DURATION_FIELD_NUMBER = 2; private com.google.type.LocalizedText duration_; /** + * + * *
      * Duration taking traffic conditions into consideration, represented in
      * text form. Note: If you did not request traffic information, this value
@@ -258,6 +321,7 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() {
      * 
* * .google.type.LocalizedText duration = 2; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -265,6 +329,8 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
      * Duration taking traffic conditions into consideration, represented in
      * text form. Note: If you did not request traffic information, this value
@@ -272,6 +338,7 @@ public boolean hasDuration() {
      * 
* * .google.type.LocalizedText duration = 2; + * * @return The duration. */ @java.lang.Override @@ -279,6 +346,8 @@ public com.google.type.LocalizedText getDuration() { return duration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : duration_; } /** + * + * *
      * Duration taking traffic conditions into consideration, represented in
      * text form. Note: If you did not request traffic information, this value
@@ -295,12 +364,15 @@ public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() {
     public static final int STATIC_DURATION_FIELD_NUMBER = 3;
     private com.google.type.LocalizedText staticDuration_;
     /**
+     *
+     *
      * 
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return Whether the staticDuration field is set. */ @java.lang.Override @@ -308,19 +380,26 @@ public boolean hasStaticDuration() { return staticDuration_ != null; } /** + * + * *
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return The staticDuration. */ @java.lang.Override public com.google.type.LocalizedText getStaticDuration() { - return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : staticDuration_; } /** + * + * *
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
@@ -330,17 +409,22 @@ public com.google.type.LocalizedText getStaticDuration() {
      */
     @java.lang.Override
     public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() {
-      return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_;
+      return staticDuration_ == null
+          ? com.google.type.LocalizedText.getDefaultInstance()
+          : staticDuration_;
     }
 
     public static final int TRANSIT_FARE_FIELD_NUMBER = 4;
     private com.google.type.LocalizedText transitFare_;
     /**
+     *
+     *
      * 
      * Transit fare represented in text form.
      * 
* * .google.type.LocalizedText transit_fare = 4; + * * @return Whether the transitFare field is set. */ @java.lang.Override @@ -348,18 +432,25 @@ public boolean hasTransitFare() { return transitFare_ != null; } /** + * + * *
      * Transit fare represented in text form.
      * 
* * .google.type.LocalizedText transit_fare = 4; + * * @return The transitFare. */ @java.lang.Override public com.google.type.LocalizedText getTransitFare() { - return transitFare_ == null ? com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + return transitFare_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : transitFare_; } /** + * + * *
      * Transit fare represented in text form.
      * 
@@ -368,10 +459,13 @@ public com.google.type.LocalizedText getTransitFare() { */ @java.lang.Override public com.google.type.LocalizedTextOrBuilder getTransitFareOrBuilder() { - return transitFare_ == null ? com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + return transitFare_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : transitFare_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -383,8 +477,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 (distance_ != null) { output.writeMessage(1, getDistance()); } @@ -407,20 +500,16 @@ public int getSerializedSize() { size = 0; if (distance_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDistance()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDistance()); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); } if (staticDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStaticDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStaticDuration()); } if (transitFare_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTransitFare()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTransitFare()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -430,32 +519,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.maps.routing.v2.Route.RouteLocalizedValues)) { return super.equals(obj); } - com.google.maps.routing.v2.Route.RouteLocalizedValues other = (com.google.maps.routing.v2.Route.RouteLocalizedValues) obj; + com.google.maps.routing.v2.Route.RouteLocalizedValues other = + (com.google.maps.routing.v2.Route.RouteLocalizedValues) obj; if (hasDistance() != other.hasDistance()) return false; if (hasDistance()) { - if (!getDistance() - .equals(other.getDistance())) return false; + if (!getDistance().equals(other.getDistance())) 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 (hasStaticDuration() != other.hasStaticDuration()) return false; if (hasStaticDuration()) { - if (!getStaticDuration() - .equals(other.getStaticDuration())) return false; + if (!getStaticDuration().equals(other.getStaticDuration())) return false; } if (hasTransitFare() != other.hasTransitFare()) return false; if (hasTransitFare()) { - if (!getTransitFare() - .equals(other.getTransitFare())) return false; + if (!getTransitFare().equals(other.getTransitFare())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -490,89 +576,94 @@ public int hashCode() { } public static com.google.maps.routing.v2.Route.RouteLocalizedValues 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.maps.routing.v2.Route.RouteLocalizedValues 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.maps.routing.v2.Route.RouteLocalizedValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.Route.RouteLocalizedValues 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.maps.routing.v2.Route.RouteLocalizedValues parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.Route.RouteLocalizedValues 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.maps.routing.v2.Route.RouteLocalizedValues parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.maps.routing.v2.Route.RouteLocalizedValues parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.maps.routing.v2.Route.RouteLocalizedValues 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.maps.routing.v2.Route.RouteLocalizedValues parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.Route.RouteLocalizedValues parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.Route.RouteLocalizedValues 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.maps.routing.v2.Route.RouteLocalizedValues 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.maps.routing.v2.Route.RouteLocalizedValues 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.maps.routing.v2.Route.RouteLocalizedValues prototype) { + + public static Builder newBuilder( + com.google.maps.routing.v2.Route.RouteLocalizedValues 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 @@ -582,39 +673,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Text representations of certain properties.
      * 
* * Protobuf type {@code google.maps.routing.v2.Route.RouteLocalizedValues} */ - 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.maps.routing.v2.Route.RouteLocalizedValues) com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.Route.RouteLocalizedValues.class, com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder.class); + com.google.maps.routing.v2.Route.RouteLocalizedValues.class, + com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder.class); } // Construct using com.google.maps.routing.v2.Route.RouteLocalizedValues.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(); @@ -643,9 +736,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor; } @java.lang.Override @@ -664,8 +757,11 @@ public com.google.maps.routing.v2.Route.RouteLocalizedValues build() { @java.lang.Override public com.google.maps.routing.v2.Route.RouteLocalizedValues buildPartial() { - com.google.maps.routing.v2.Route.RouteLocalizedValues result = new com.google.maps.routing.v2.Route.RouteLocalizedValues(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.maps.routing.v2.Route.RouteLocalizedValues result = + new com.google.maps.routing.v2.Route.RouteLocalizedValues(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -673,24 +769,18 @@ public com.google.maps.routing.v2.Route.RouteLocalizedValues buildPartial() { private void buildPartial0(com.google.maps.routing.v2.Route.RouteLocalizedValues result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.distance_ = distanceBuilder_ == null - ? distance_ - : distanceBuilder_.build(); + result.distance_ = distanceBuilder_ == null ? distance_ : distanceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.duration_ = durationBuilder_ == null - ? duration_ - : durationBuilder_.build(); + result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.staticDuration_ = staticDurationBuilder_ == null - ? staticDuration_ - : staticDurationBuilder_.build(); + result.staticDuration_ = + staticDurationBuilder_ == null ? staticDuration_ : staticDurationBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.transitFare_ = transitFareBuilder_ == null - ? transitFare_ - : transitFareBuilder_.build(); + result.transitFare_ = + transitFareBuilder_ == null ? transitFare_ : transitFareBuilder_.build(); } } @@ -698,38 +788,41 @@ private void buildPartial0(com.google.maps.routing.v2.Route.RouteLocalizedValues 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.maps.routing.v2.Route.RouteLocalizedValues) { - return mergeFrom((com.google.maps.routing.v2.Route.RouteLocalizedValues)other); + return mergeFrom((com.google.maps.routing.v2.Route.RouteLocalizedValues) other); } else { super.mergeFrom(other); return this; @@ -737,7 +830,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.maps.routing.v2.Route.RouteLocalizedValues other) { - if (other == com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance()) return this; + if (other == com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance()) + return this; if (other.hasDistance()) { mergeDistance(other.getDistance()); } @@ -776,40 +870,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDistanceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getStaticDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getTransitFareFieldBuilder().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(getDistanceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getStaticDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getTransitFareFieldBuilder().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) { @@ -819,28 +911,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.type.LocalizedText distance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> distanceBuilder_; + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + distanceBuilder_; /** + * + * *
        * Travel distance represented in text form.
        * 
* * .google.type.LocalizedText distance = 1; + * * @return Whether the distance field is set. */ public boolean hasDistance() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Travel distance represented in text form.
        * 
* * .google.type.LocalizedText distance = 1; + * * @return The distance. */ public com.google.type.LocalizedText getDistance() { @@ -851,6 +953,8 @@ public com.google.type.LocalizedText getDistance() { } } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -871,14 +975,15 @@ public Builder setDistance(com.google.type.LocalizedText value) { return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
* * .google.type.LocalizedText distance = 1; */ - public Builder setDistance( - com.google.type.LocalizedText.Builder builderForValue) { + public Builder setDistance(com.google.type.LocalizedText.Builder builderForValue) { if (distanceBuilder_ == null) { distance_ = builderForValue.build(); } else { @@ -889,6 +994,8 @@ public Builder setDistance( return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -897,9 +1004,9 @@ public Builder setDistance( */ public Builder mergeDistance(com.google.type.LocalizedText value) { if (distanceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - distance_ != null && - distance_ != com.google.type.LocalizedText.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && distance_ != null + && distance_ != com.google.type.LocalizedText.getDefaultInstance()) { getDistanceBuilder().mergeFrom(value); } else { distance_ = value; @@ -912,6 +1019,8 @@ public Builder mergeDistance(com.google.type.LocalizedText value) { return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -929,6 +1038,8 @@ public Builder clearDistance() { return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -941,6 +1052,8 @@ public com.google.type.LocalizedText.Builder getDistanceBuilder() { return getDistanceFieldBuilder().getBuilder(); } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -951,11 +1064,12 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { if (distanceBuilder_ != null) { return distanceBuilder_.getMessageOrBuilder(); } else { - return distance_ == null ? - com.google.type.LocalizedText.getDefaultInstance() : distance_; + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; } } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -963,14 +1077,17 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { * .google.type.LocalizedText distance = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> getDistanceFieldBuilder() { if (distanceBuilder_ == null) { - distanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( - getDistance(), - getParentForChildren(), - isClean()); + distanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getDistance(), getParentForChildren(), isClean()); distance_ = null; } return distanceBuilder_; @@ -978,8 +1095,13 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { private com.google.type.LocalizedText duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> durationBuilder_; + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + durationBuilder_; /** + * + * *
        * Duration taking traffic conditions into consideration, represented in
        * text form. Note: If you did not request traffic information, this value
@@ -987,12 +1109,15 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() {
        * 
* * .google.type.LocalizedText duration = 2; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Duration taking traffic conditions into consideration, represented in
        * text form. Note: If you did not request traffic information, this value
@@ -1000,6 +1125,7 @@ public boolean hasDuration() {
        * 
* * .google.type.LocalizedText duration = 2; + * * @return The duration. */ public com.google.type.LocalizedText getDuration() { @@ -1010,6 +1136,8 @@ public com.google.type.LocalizedText getDuration() { } } /** + * + * *
        * Duration taking traffic conditions into consideration, represented in
        * text form. Note: If you did not request traffic information, this value
@@ -1032,6 +1160,8 @@ public Builder setDuration(com.google.type.LocalizedText value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration taking traffic conditions into consideration, represented in
        * text form. Note: If you did not request traffic information, this value
@@ -1040,8 +1170,7 @@ public Builder setDuration(com.google.type.LocalizedText value) {
        *
        * .google.type.LocalizedText duration = 2;
        */
-      public Builder setDuration(
-          com.google.type.LocalizedText.Builder builderForValue) {
+      public Builder setDuration(com.google.type.LocalizedText.Builder builderForValue) {
         if (durationBuilder_ == null) {
           duration_ = builderForValue.build();
         } else {
@@ -1052,6 +1181,8 @@ public Builder setDuration(
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration taking traffic conditions into consideration, represented in
        * text form. Note: If you did not request traffic information, this value
@@ -1062,9 +1193,9 @@ public Builder setDuration(
        */
       public Builder mergeDuration(com.google.type.LocalizedText value) {
         if (durationBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0) &&
-            duration_ != null &&
-            duration_ != com.google.type.LocalizedText.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0)
+              && duration_ != null
+              && duration_ != com.google.type.LocalizedText.getDefaultInstance()) {
             getDurationBuilder().mergeFrom(value);
           } else {
             duration_ = value;
@@ -1077,6 +1208,8 @@ public Builder mergeDuration(com.google.type.LocalizedText value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration taking traffic conditions into consideration, represented in
        * text form. Note: If you did not request traffic information, this value
@@ -1096,6 +1229,8 @@ public Builder clearDuration() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration taking traffic conditions into consideration, represented in
        * text form. Note: If you did not request traffic information, this value
@@ -1110,6 +1245,8 @@ public com.google.type.LocalizedText.Builder getDurationBuilder() {
         return getDurationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Duration taking traffic conditions into consideration, represented in
        * text form. Note: If you did not request traffic information, this value
@@ -1122,11 +1259,12 @@ public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() {
         if (durationBuilder_ != null) {
           return durationBuilder_.getMessageOrBuilder();
         } else {
-          return duration_ == null ?
-              com.google.type.LocalizedText.getDefaultInstance() : duration_;
+          return duration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : duration_;
         }
       }
       /**
+       *
+       *
        * 
        * Duration taking traffic conditions into consideration, represented in
        * text form. Note: If you did not request traffic information, this value
@@ -1136,14 +1274,17 @@ public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() {
        * .google.type.LocalizedText duration = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> 
+              com.google.type.LocalizedText,
+              com.google.type.LocalizedText.Builder,
+              com.google.type.LocalizedTextOrBuilder>
           getDurationFieldBuilder() {
         if (durationBuilder_ == null) {
-          durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>(
-                  getDuration(),
-                  getParentForChildren(),
-                  isClean());
+          durationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.type.LocalizedText,
+                  com.google.type.LocalizedText.Builder,
+                  com.google.type.LocalizedTextOrBuilder>(
+                  getDuration(), getParentForChildren(), isClean());
           duration_ = null;
         }
         return durationBuilder_;
@@ -1151,36 +1292,49 @@ public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() {
 
       private com.google.type.LocalizedText staticDuration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> staticDurationBuilder_;
+              com.google.type.LocalizedText,
+              com.google.type.LocalizedText.Builder,
+              com.google.type.LocalizedTextOrBuilder>
+          staticDurationBuilder_;
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
        * 
* * .google.type.LocalizedText static_duration = 3; + * * @return Whether the staticDuration field is set. */ public boolean hasStaticDuration() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
        * 
* * .google.type.LocalizedText static_duration = 3; + * * @return The staticDuration. */ public com.google.type.LocalizedText getStaticDuration() { if (staticDurationBuilder_ == null) { - return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : staticDuration_; } else { return staticDurationBuilder_.getMessage(); } } /** + * + * *
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -1202,6 +1356,8 @@ public Builder setStaticDuration(com.google.type.LocalizedText value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -1209,8 +1365,7 @@ public Builder setStaticDuration(com.google.type.LocalizedText value) {
        *
        * .google.type.LocalizedText static_duration = 3;
        */
-      public Builder setStaticDuration(
-          com.google.type.LocalizedText.Builder builderForValue) {
+      public Builder setStaticDuration(com.google.type.LocalizedText.Builder builderForValue) {
         if (staticDurationBuilder_ == null) {
           staticDuration_ = builderForValue.build();
         } else {
@@ -1221,6 +1376,8 @@ public Builder setStaticDuration(
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -1230,9 +1387,9 @@ public Builder setStaticDuration(
        */
       public Builder mergeStaticDuration(com.google.type.LocalizedText value) {
         if (staticDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000004) != 0) &&
-            staticDuration_ != null &&
-            staticDuration_ != com.google.type.LocalizedText.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000004) != 0)
+              && staticDuration_ != null
+              && staticDuration_ != com.google.type.LocalizedText.getDefaultInstance()) {
             getStaticDurationBuilder().mergeFrom(value);
           } else {
             staticDuration_ = value;
@@ -1245,6 +1402,8 @@ public Builder mergeStaticDuration(com.google.type.LocalizedText value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -1263,6 +1422,8 @@ public Builder clearStaticDuration() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -1276,6 +1437,8 @@ public com.google.type.LocalizedText.Builder getStaticDurationBuilder() {
         return getStaticDurationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -1287,11 +1450,14 @@ public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() {
         if (staticDurationBuilder_ != null) {
           return staticDurationBuilder_.getMessageOrBuilder();
         } else {
-          return staticDuration_ == null ?
-              com.google.type.LocalizedText.getDefaultInstance() : staticDuration_;
+          return staticDuration_ == null
+              ? com.google.type.LocalizedText.getDefaultInstance()
+              : staticDuration_;
         }
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -1300,14 +1466,17 @@ public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() {
        * .google.type.LocalizedText static_duration = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> 
+              com.google.type.LocalizedText,
+              com.google.type.LocalizedText.Builder,
+              com.google.type.LocalizedTextOrBuilder>
           getStaticDurationFieldBuilder() {
         if (staticDurationBuilder_ == null) {
-          staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>(
-                  getStaticDuration(),
-                  getParentForChildren(),
-                  isClean());
+          staticDurationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.type.LocalizedText,
+                  com.google.type.LocalizedText.Builder,
+                  com.google.type.LocalizedTextOrBuilder>(
+                  getStaticDuration(), getParentForChildren(), isClean());
           staticDuration_ = null;
         }
         return staticDurationBuilder_;
@@ -1315,34 +1484,47 @@ public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() {
 
       private com.google.type.LocalizedText transitFare_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> transitFareBuilder_;
+              com.google.type.LocalizedText,
+              com.google.type.LocalizedText.Builder,
+              com.google.type.LocalizedTextOrBuilder>
+          transitFareBuilder_;
       /**
+       *
+       *
        * 
        * Transit fare represented in text form.
        * 
* * .google.type.LocalizedText transit_fare = 4; + * * @return Whether the transitFare field is set. */ public boolean hasTransitFare() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
        * Transit fare represented in text form.
        * 
* * .google.type.LocalizedText transit_fare = 4; + * * @return The transitFare. */ public com.google.type.LocalizedText getTransitFare() { if (transitFareBuilder_ == null) { - return transitFare_ == null ? com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + return transitFare_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : transitFare_; } else { return transitFareBuilder_.getMessage(); } } /** + * + * *
        * Transit fare represented in text form.
        * 
@@ -1363,14 +1545,15 @@ public Builder setTransitFare(com.google.type.LocalizedText value) { return this; } /** + * + * *
        * Transit fare represented in text form.
        * 
* * .google.type.LocalizedText transit_fare = 4; */ - public Builder setTransitFare( - com.google.type.LocalizedText.Builder builderForValue) { + public Builder setTransitFare(com.google.type.LocalizedText.Builder builderForValue) { if (transitFareBuilder_ == null) { transitFare_ = builderForValue.build(); } else { @@ -1381,6 +1564,8 @@ public Builder setTransitFare( return this; } /** + * + * *
        * Transit fare represented in text form.
        * 
@@ -1389,9 +1574,9 @@ public Builder setTransitFare( */ public Builder mergeTransitFare(com.google.type.LocalizedText value) { if (transitFareBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - transitFare_ != null && - transitFare_ != com.google.type.LocalizedText.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && transitFare_ != null + && transitFare_ != com.google.type.LocalizedText.getDefaultInstance()) { getTransitFareBuilder().mergeFrom(value); } else { transitFare_ = value; @@ -1404,6 +1589,8 @@ public Builder mergeTransitFare(com.google.type.LocalizedText value) { return this; } /** + * + * *
        * Transit fare represented in text form.
        * 
@@ -1421,6 +1608,8 @@ public Builder clearTransitFare() { return this; } /** + * + * *
        * Transit fare represented in text form.
        * 
@@ -1433,6 +1622,8 @@ public com.google.type.LocalizedText.Builder getTransitFareBuilder() { return getTransitFareFieldBuilder().getBuilder(); } /** + * + * *
        * Transit fare represented in text form.
        * 
@@ -1443,11 +1634,14 @@ public com.google.type.LocalizedTextOrBuilder getTransitFareOrBuilder() { if (transitFareBuilder_ != null) { return transitFareBuilder_.getMessageOrBuilder(); } else { - return transitFare_ == null ? - com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + return transitFare_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : transitFare_; } } /** + * + * *
        * Transit fare represented in text form.
        * 
@@ -1455,18 +1649,22 @@ public com.google.type.LocalizedTextOrBuilder getTransitFareOrBuilder() { * .google.type.LocalizedText transit_fare = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> getTransitFareFieldBuilder() { if (transitFareBuilder_ == null) { - transitFareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( - getTransitFare(), - getParentForChildren(), - isClean()); + transitFareBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getTransitFare(), getParentForChildren(), isClean()); transitFare_ = null; } return transitFareBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1479,12 +1677,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.Route.RouteLocalizedValues) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.Route.RouteLocalizedValues) private static final com.google.maps.routing.v2.Route.RouteLocalizedValues DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.Route.RouteLocalizedValues(); } @@ -1493,27 +1691,28 @@ public static com.google.maps.routing.v2.Route.RouteLocalizedValues getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteLocalizedValues 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 RouteLocalizedValues 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; @@ -1528,42 +1727,52 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.Route.RouteLocalizedValues getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ROUTE_LABELS_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private java.util.List routeLabels_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.maps.routing.v2.RouteLabel> routeLabels_converter_ = + java.lang.Integer, com.google.maps.routing.v2.RouteLabel> + routeLabels_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.maps.routing.v2.RouteLabel>() { public com.google.maps.routing.v2.RouteLabel convert(java.lang.Integer from) { - com.google.maps.routing.v2.RouteLabel result = com.google.maps.routing.v2.RouteLabel.forNumber(from); + com.google.maps.routing.v2.RouteLabel result = + com.google.maps.routing.v2.RouteLabel.forNumber(from); return result == null ? com.google.maps.routing.v2.RouteLabel.UNRECOGNIZED : result; } }; /** + * + * *
    * Labels for the `Route` that are useful to identify specific properties
    * of the route to compare against others.
    * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @return A list containing the routeLabels. */ @java.lang.Override public java.util.List getRouteLabelsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.RouteLabel>(routeLabels_, routeLabels_converter_); + java.lang.Integer, com.google.maps.routing.v2.RouteLabel>( + routeLabels_, routeLabels_converter_); } /** + * + * *
    * Labels for the `Route` that are useful to identify specific properties
    * of the route to compare against others.
    * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @return The count of routeLabels. */ @java.lang.Override @@ -1571,12 +1780,15 @@ public int getRouteLabelsCount() { return routeLabels_.size(); } /** + * + * *
    * Labels for the `Route` that are useful to identify specific properties
    * of the route to compare against others.
    * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @param index The index of the element to return. * @return The routeLabels at the given index. */ @@ -1585,26 +1797,31 @@ public com.google.maps.routing.v2.RouteLabel getRouteLabels(int index) { return routeLabels_converter_.convert(routeLabels_.get(index)); } /** + * + * *
    * Labels for the `Route` that are useful to identify specific properties
    * of the route to compare against others.
    * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @return A list containing the enum numeric values on the wire for routeLabels. */ @java.lang.Override - public java.util.List - getRouteLabelsValueList() { + public java.util.List getRouteLabelsValueList() { return routeLabels_; } /** + * + * *
    * Labels for the `Route` that are useful to identify specific properties
    * of the route to compare against others.
    * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of routeLabels at the given index. */ @@ -1612,12 +1829,16 @@ public com.google.maps.routing.v2.RouteLabel getRouteLabels(int index) { public int getRouteLabelsValue(int index) { return routeLabels_.get(index); } + private int routeLabelsMemoizedSerializedSize; public static final int LEGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List legs_; /** + * + * *
    * A collection of legs (path segments between waypoints) that make up the
    * route. Each leg corresponds to the trip between two non-`via`
@@ -1635,6 +1856,8 @@ public java.util.List getLegsList() {
     return legs_;
   }
   /**
+   *
+   *
    * 
    * A collection of legs (path segments between waypoints) that make up the
    * route. Each leg corresponds to the trip between two non-`via`
@@ -1648,11 +1871,13 @@ public java.util.List getLegsList() {
    * repeated .google.maps.routing.v2.RouteLeg legs = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getLegsOrBuilderList() {
     return legs_;
   }
   /**
+   *
+   *
    * 
    * A collection of legs (path segments between waypoints) that make up the
    * route. Each leg corresponds to the trip between two non-`via`
@@ -1670,6 +1895,8 @@ public int getLegsCount() {
     return legs_.size();
   }
   /**
+   *
+   *
    * 
    * A collection of legs (path segments between waypoints) that make up the
    * route. Each leg corresponds to the trip between two non-`via`
@@ -1687,6 +1914,8 @@ public com.google.maps.routing.v2.RouteLeg getLegs(int index) {
     return legs_.get(index);
   }
   /**
+   *
+   *
    * 
    * A collection of legs (path segments between waypoints) that make up the
    * route. Each leg corresponds to the trip between two non-`via`
@@ -1700,19 +1929,21 @@ public com.google.maps.routing.v2.RouteLeg getLegs(int index) {
    * repeated .google.maps.routing.v2.RouteLeg legs = 1;
    */
   @java.lang.Override
-  public com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
-      int index) {
+  public com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(int index) {
     return legs_.get(index);
   }
 
   public static final int DISTANCE_METERS_FIELD_NUMBER = 2;
   private int distanceMeters_ = 0;
   /**
+   *
+   *
    * 
    * The travel distance of the route, in meters.
    * 
* * int32 distance_meters = 2; + * * @return The distanceMeters. */ @java.lang.Override @@ -1723,6 +1954,8 @@ public int getDistanceMeters() { public static final int DURATION_FIELD_NUMBER = 3; private com.google.protobuf.Duration duration_; /** + * + * *
    * The length of time needed to navigate the route. If you set the
    * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -1732,6 +1965,7 @@ public int getDistanceMeters() {
    * 
* * .google.protobuf.Duration duration = 3; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -1739,6 +1973,8 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
    * The length of time needed to navigate the route. If you set the
    * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -1748,6 +1984,7 @@ public boolean hasDuration() {
    * 
* * .google.protobuf.Duration duration = 3; + * * @return The duration. */ @java.lang.Override @@ -1755,6 +1992,8 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
    * The length of time needed to navigate the route. If you set the
    * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -1773,12 +2012,15 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
   public static final int STATIC_DURATION_FIELD_NUMBER = 4;
   private com.google.protobuf.Duration staticDuration_;
   /**
+   *
+   *
    * 
    * The duration of travel through the route without taking traffic
    * conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 4; + * * @return Whether the staticDuration field is set. */ @java.lang.Override @@ -1786,19 +2028,26 @@ public boolean hasStaticDuration() { return staticDuration_ != null; } /** + * + * *
    * The duration of travel through the route without taking traffic
    * conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 4; + * * @return The staticDuration. */ @java.lang.Override public com.google.protobuf.Duration getStaticDuration() { - return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : staticDuration_; } /** + * + * *
    * The duration of travel through the route without taking traffic
    * conditions into consideration.
@@ -1808,18 +2057,23 @@ public com.google.protobuf.Duration getStaticDuration() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
-    return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_;
+    return staticDuration_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : staticDuration_;
   }
 
   public static final int POLYLINE_FIELD_NUMBER = 5;
   private com.google.maps.routing.v2.Polyline polyline_;
   /**
+   *
+   *
    * 
    * The overall route polyline. This polyline is the combined polyline of
    * all `legs`.
    * 
* * .google.maps.routing.v2.Polyline polyline = 5; + * * @return Whether the polyline field is set. */ @java.lang.Override @@ -1827,12 +2081,15 @@ public boolean hasPolyline() { return polyline_ != null; } /** + * + * *
    * The overall route polyline. This polyline is the combined polyline of
    * all `legs`.
    * 
* * .google.maps.routing.v2.Polyline polyline = 5; + * * @return The polyline. */ @java.lang.Override @@ -1840,6 +2097,8 @@ public com.google.maps.routing.v2.Polyline getPolyline() { return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; } /** + * + * *
    * The overall route polyline. This polyline is the combined polyline of
    * all `legs`.
@@ -1853,14 +2112,18 @@ public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() {
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 6;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object description_ = "";
   /**
+   *
+   *
    * 
    * A description of the route.
    * 
* * string description = 6; + * * @return The description. */ @java.lang.Override @@ -1869,29 +2132,29 @@ public java.lang.String getDescription() { 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(); description_ = s; return s; } } /** + * + * *
    * A description of the route.
    * 
* * string description = 6; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -1900,38 +2163,47 @@ public java.lang.String getDescription() { } public static final int WARNINGS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * An array of warnings to show when displaying the route.
    * 
* * repeated string warnings = 7; + * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList - getWarningsList() { + public com.google.protobuf.ProtocolStringList getWarningsList() { return warnings_; } /** + * + * *
    * An array of warnings to show when displaying the route.
    * 
* * repeated string warnings = 7; + * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** + * + * *
    * An array of warnings to show when displaying the route.
    * 
* * repeated string warnings = 7; + * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -1939,27 +2211,32 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** + * + * *
    * An array of warnings to show when displaying the route.
    * 
* * repeated string warnings = 7; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString - getWarningsBytes(int index) { + public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } public static final int VIEWPORT_FIELD_NUMBER = 8; private com.google.geo.type.Viewport viewport_; /** + * + * *
    * The viewport bounding box of the polyline.
    * 
* * .google.geo.type.Viewport viewport = 8; + * * @return Whether the viewport field is set. */ @java.lang.Override @@ -1967,11 +2244,14 @@ public boolean hasViewport() { return viewport_ != null; } /** + * + * *
    * The viewport bounding box of the polyline.
    * 
* * .google.geo.type.Viewport viewport = 8; + * * @return The viewport. */ @java.lang.Override @@ -1979,6 +2259,8 @@ public com.google.geo.type.Viewport getViewport() { return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; } /** + * + * *
    * The viewport bounding box of the polyline.
    * 
@@ -1993,11 +2275,14 @@ public com.google.geo.type.ViewportOrBuilder getViewportOrBuilder() { public static final int TRAVEL_ADVISORY_FIELD_NUMBER = 9; private com.google.maps.routing.v2.RouteTravelAdvisory travelAdvisory_; /** + * + * *
    * Additional information about the route.
    * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + * * @return Whether the travelAdvisory field is set. */ @java.lang.Override @@ -2005,18 +2290,25 @@ public boolean hasTravelAdvisory() { return travelAdvisory_ != null; } /** + * + * *
    * Additional information about the route.
    * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + * * @return The travelAdvisory. */ @java.lang.Override public com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory() { - return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_; + return travelAdvisory_ == null + ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() + : travelAdvisory_; } /** + * + * *
    * Additional information about the route.
    * 
@@ -2025,13 +2317,18 @@ public com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory() { */ @java.lang.Override public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() { - return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_; + return travelAdvisory_ == null + ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() + : travelAdvisory_; } public static final int OPTIMIZED_INTERMEDIATE_WAYPOINT_INDEX_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList optimizedIntermediateWaypointIndex_; /** + * + * *
    * If you set
    * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
@@ -2045,14 +2342,16 @@ public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisory
    * 
* * repeated int32 optimized_intermediate_waypoint_index = 10; + * * @return A list containing the optimizedIntermediateWaypointIndex. */ @java.lang.Override - public java.util.List - getOptimizedIntermediateWaypointIndexList() { + public java.util.List getOptimizedIntermediateWaypointIndexList() { return optimizedIntermediateWaypointIndex_; } /** + * + * *
    * If you set
    * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
@@ -2066,12 +2365,15 @@ public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisory
    * 
* * repeated int32 optimized_intermediate_waypoint_index = 10; + * * @return The count of optimizedIntermediateWaypointIndex. */ public int getOptimizedIntermediateWaypointIndexCount() { return optimizedIntermediateWaypointIndex_.size(); } /** + * + * *
    * If you set
    * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
@@ -2085,22 +2387,27 @@ public int getOptimizedIntermediateWaypointIndexCount() {
    * 
* * repeated int32 optimized_intermediate_waypoint_index = 10; + * * @param index The index of the element to return. * @return The optimizedIntermediateWaypointIndex at the given index. */ public int getOptimizedIntermediateWaypointIndex(int index) { return optimizedIntermediateWaypointIndex_.getInt(index); } + private int optimizedIntermediateWaypointIndexMemoizedSerializedSize = -1; public static final int LOCALIZED_VALUES_FIELD_NUMBER = 11; private com.google.maps.routing.v2.Route.RouteLocalizedValues localizedValues_; /** + * + * *
    * Text representations of properties of the `Route`.
    * 
* * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + * * @return Whether the localizedValues field is set. */ @java.lang.Override @@ -2108,18 +2415,25 @@ public boolean hasLocalizedValues() { return localizedValues_ != null; } /** + * + * *
    * Text representations of properties of the `Route`.
    * 
* * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + * * @return The localizedValues. */ @java.lang.Override public com.google.maps.routing.v2.Route.RouteLocalizedValues getLocalizedValues() { - return localizedValues_ == null ? com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance() : localizedValues_; + return localizedValues_ == null + ? com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance() + : localizedValues_; } /** + * + * *
    * Text representations of properties of the `Route`.
    * 
@@ -2127,14 +2441,20 @@ public com.google.maps.routing.v2.Route.RouteLocalizedValues getLocalizedValues( * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; */ @java.lang.Override - public com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { - return localizedValues_ == null ? com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance() : localizedValues_; + public com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder + getLocalizedValuesOrBuilder() { + return localizedValues_ == null + ? com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance() + : localizedValues_; } public static final int ROUTE_TOKEN_FIELD_NUMBER = 12; + @SuppressWarnings("serial") private volatile java.lang.Object routeToken_ = ""; /** + * + * *
    * A web-safe, base64-encoded route token that can be passed to the Navigation
    * SDK, that allows the Navigation SDK to reconstruct the route during
@@ -2148,6 +2468,7 @@ public com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder getLocaliz
    * 
* * string route_token = 12; + * * @return The routeToken. */ @java.lang.Override @@ -2156,14 +2477,15 @@ public java.lang.String getRouteToken() { 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(); routeToken_ = s; return s; } } /** + * + * *
    * A web-safe, base64-encoded route token that can be passed to the Navigation
    * SDK, that allows the Navigation SDK to reconstruct the route during
@@ -2177,16 +2499,15 @@ public java.lang.String getRouteToken() {
    * 
* * string route_token = 12; + * * @return The bytes for routeToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getRouteTokenBytes() { + public com.google.protobuf.ByteString getRouteTokenBytes() { java.lang.Object ref = routeToken_; 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); routeToken_ = b; return b; } else { @@ -2195,6 +2516,7 @@ public java.lang.String getRouteToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2206,8 +2528,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 < legs_.size(); i++) { output.writeMessage(1, legs_.get(i)); @@ -2266,24 +2587,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < legs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, legs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, legs_.get(i)); } if (distanceMeters_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, distanceMeters_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, distanceMeters_); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDuration()); } if (staticDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStaticDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStaticDuration()); } if (polyline_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getPolyline()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPolyline()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); @@ -2297,30 +2613,27 @@ public int getSerializedSize() { size += 1 * getWarningsList().size(); } if (viewport_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getViewport()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getViewport()); } if (travelAdvisory_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getTravelAdvisory()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getTravelAdvisory()); } { int dataSize = 0; for (int i = 0; i < optimizedIntermediateWaypointIndex_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(optimizedIntermediateWaypointIndex_.getInt(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + optimizedIntermediateWaypointIndex_.getInt(i)); } size += dataSize; if (!getOptimizedIntermediateWaypointIndexList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } optimizedIntermediateWaypointIndexMemoizedSerializedSize = dataSize; } if (localizedValues_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getLocalizedValues()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLocalizedValues()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, routeToken_); @@ -2328,14 +2641,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < routeLabels_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(routeLabels_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(routeLabels_.get(i)); } size += dataSize; - if (!getRouteLabelsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }routeLabelsMemoizedSerializedSize = dataSize; + if (!getRouteLabelsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + routeLabelsMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2345,7 +2658,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.maps.routing.v2.Route)) { return super.equals(obj); @@ -2353,48 +2666,37 @@ public boolean equals(final java.lang.Object obj) { com.google.maps.routing.v2.Route other = (com.google.maps.routing.v2.Route) obj; if (!routeLabels_.equals(other.routeLabels_)) return false; - if (!getLegsList() - .equals(other.getLegsList())) return false; - if (getDistanceMeters() - != other.getDistanceMeters()) return false; + if (!getLegsList().equals(other.getLegsList())) return false; + if (getDistanceMeters() != other.getDistanceMeters()) 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 (hasStaticDuration() != other.hasStaticDuration()) return false; if (hasStaticDuration()) { - if (!getStaticDuration() - .equals(other.getStaticDuration())) return false; + if (!getStaticDuration().equals(other.getStaticDuration())) return false; } if (hasPolyline() != other.hasPolyline()) return false; if (hasPolyline()) { - if (!getPolyline() - .equals(other.getPolyline())) return false; + if (!getPolyline().equals(other.getPolyline())) return false; } - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getWarningsList() - .equals(other.getWarningsList())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getWarningsList().equals(other.getWarningsList())) return false; if (hasViewport() != other.hasViewport()) return false; if (hasViewport()) { - if (!getViewport() - .equals(other.getViewport())) return false; + if (!getViewport().equals(other.getViewport())) return false; } if (hasTravelAdvisory() != other.hasTravelAdvisory()) return false; if (hasTravelAdvisory()) { - if (!getTravelAdvisory() - .equals(other.getTravelAdvisory())) return false; + if (!getTravelAdvisory().equals(other.getTravelAdvisory())) return false; } if (!getOptimizedIntermediateWaypointIndexList() .equals(other.getOptimizedIntermediateWaypointIndexList())) return false; if (hasLocalizedValues() != other.hasLocalizedValues()) return false; if (hasLocalizedValues()) { - if (!getLocalizedValues() - .equals(other.getLocalizedValues())) return false; + if (!getLocalizedValues().equals(other.getLocalizedValues())) return false; } - if (!getRouteToken() - .equals(other.getRouteToken())) return false; + if (!getRouteToken().equals(other.getRouteToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2457,99 +2759,103 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.Route parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.Route parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.Route 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.maps.routing.v2.Route parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.maps.routing.v2.Route parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.Route 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.maps.routing.v2.Route parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.Route 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.maps.routing.v2.Route 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.maps.routing.v2.Route 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.maps.routing.v2.Route parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.Route 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.maps.routing.v2.Route 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.maps.routing.v2.Route 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.maps.routing.v2.Route 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; } /** + * + * *
    * Contains a route, which consists of a series of connected road segments
    * that join beginning, ending, and intermediate waypoints.
@@ -2557,33 +2863,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.maps.routing.v2.Route}
    */
-  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.maps.routing.v2.Route)
       com.google.maps.routing.v2.RouteOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.maps.routing.v2.RouteProto
+          .internal_static_google_maps_routing_v2_Route_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_fieldAccessorTable
+      return com.google.maps.routing.v2.RouteProto
+          .internal_static_google_maps_routing_v2_Route_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.Route.class, com.google.maps.routing.v2.Route.Builder.class);
+              com.google.maps.routing.v2.Route.class,
+              com.google.maps.routing.v2.Route.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.Route.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();
@@ -2614,8 +2919,7 @@ public Builder clear() {
         polylineBuilder_ = null;
       }
       description_ = "";
-      warnings_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      warnings_ = com.google.protobuf.LazyStringArrayList.emptyList();
       viewport_ = null;
       if (viewportBuilder_ != null) {
         viewportBuilder_.dispose();
@@ -2637,9 +2941,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_Route_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.maps.routing.v2.RouteProto
+          .internal_static_google_maps_routing_v2_Route_descriptor;
     }
 
     @java.lang.Override
@@ -2660,7 +2964,9 @@ public com.google.maps.routing.v2.Route build() {
     public com.google.maps.routing.v2.Route buildPartial() {
       com.google.maps.routing.v2.Route result = new com.google.maps.routing.v2.Route(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -2693,19 +2999,14 @@ private void buildPartial0(com.google.maps.routing.v2.Route result) {
         result.distanceMeters_ = distanceMeters_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.duration_ = durationBuilder_ == null
-            ? duration_
-            : durationBuilder_.build();
+        result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.staticDuration_ = staticDurationBuilder_ == null
-            ? staticDuration_
-            : staticDurationBuilder_.build();
+        result.staticDuration_ =
+            staticDurationBuilder_ == null ? staticDuration_ : staticDurationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.polyline_ = polylineBuilder_ == null
-            ? polyline_
-            : polylineBuilder_.build();
+        result.polyline_ = polylineBuilder_ == null ? polyline_ : polylineBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.description_ = description_;
@@ -2715,19 +3016,15 @@ private void buildPartial0(com.google.maps.routing.v2.Route result) {
         result.warnings_ = warnings_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.viewport_ = viewportBuilder_ == null
-            ? viewport_
-            : viewportBuilder_.build();
+        result.viewport_ = viewportBuilder_ == null ? viewport_ : viewportBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.travelAdvisory_ = travelAdvisoryBuilder_ == null
-            ? travelAdvisory_
-            : travelAdvisoryBuilder_.build();
+        result.travelAdvisory_ =
+            travelAdvisoryBuilder_ == null ? travelAdvisory_ : travelAdvisoryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.localizedValues_ = localizedValuesBuilder_ == null
-            ? localizedValues_
-            : localizedValuesBuilder_.build();
+        result.localizedValues_ =
+            localizedValuesBuilder_ == null ? localizedValues_ : localizedValuesBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
         result.routeToken_ = routeToken_;
@@ -2738,38 +3035,39 @@ private void buildPartial0(com.google.maps.routing.v2.Route 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.maps.routing.v2.Route) {
-        return mergeFrom((com.google.maps.routing.v2.Route)other);
+        return mergeFrom((com.google.maps.routing.v2.Route) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2806,9 +3104,10 @@ public Builder mergeFrom(com.google.maps.routing.v2.Route other) {
             legsBuilder_ = null;
             legs_ = other.legs_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            legsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getLegsFieldBuilder() : null;
+            legsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getLegsFieldBuilder()
+                    : null;
           } else {
             legsBuilder_.addAllMessages(other.legs_);
           }
@@ -2891,121 +3190,124 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.maps.routing.v2.RouteLeg m =
-                  input.readMessage(
-                      com.google.maps.routing.v2.RouteLeg.parser(),
-                      extensionRegistry);
-              if (legsBuilder_ == null) {
-                ensureLegsIsMutable();
-                legs_.add(m);
-              } else {
-                legsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 16: {
-              distanceMeters_ = input.readInt32();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 16
-            case 26: {
-              input.readMessage(
-                  getDurationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getStaticDurationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getPolylineFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 42
-            case 50: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 58: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureWarningsIsMutable();
-              warnings_.add(s);
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getViewportFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getTravelAdvisoryFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 74
-            case 80: {
-              int v = input.readInt32();
-              ensureOptimizedIntermediateWaypointIndexIsMutable();
-              optimizedIntermediateWaypointIndex_.addInt(v);
-              break;
-            } // case 80
-            case 82: {
-              int length = input.readRawVarint32();
-              int limit = input.pushLimit(length);
-              ensureOptimizedIntermediateWaypointIndexIsMutable();
-              while (input.getBytesUntilLimit() > 0) {
-                optimizedIntermediateWaypointIndex_.addInt(input.readInt32());
-              }
-              input.popLimit(limit);
-              break;
-            } // case 82
-            case 90: {
-              input.readMessage(
-                  getLocalizedValuesFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 90
-            case 98: {
-              routeToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 98
-            case 104: {
-              int tmpRaw = input.readEnum();
-              ensureRouteLabelsIsMutable();
-              routeLabels_.add(tmpRaw);
-              break;
-            } // case 104
-            case 106: {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while(input.getBytesUntilLimit() > 0) {
+            case 10:
+              {
+                com.google.maps.routing.v2.RouteLeg m =
+                    input.readMessage(
+                        com.google.maps.routing.v2.RouteLeg.parser(), extensionRegistry);
+                if (legsBuilder_ == null) {
+                  ensureLegsIsMutable();
+                  legs_.add(m);
+                } else {
+                  legsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 16:
+              {
+                distanceMeters_ = input.readInt32();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 16
+            case 26:
+              {
+                input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getStaticDurationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getPolylineFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 42
+            case 50:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 58:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureWarningsIsMutable();
+                warnings_.add(s);
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getViewportFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getTravelAdvisoryFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 74
+            case 80:
+              {
+                int v = input.readInt32();
+                ensureOptimizedIntermediateWaypointIndexIsMutable();
+                optimizedIntermediateWaypointIndex_.addInt(v);
+                break;
+              } // case 80
+            case 82:
+              {
+                int length = input.readRawVarint32();
+                int limit = input.pushLimit(length);
+                ensureOptimizedIntermediateWaypointIndexIsMutable();
+                while (input.getBytesUntilLimit() > 0) {
+                  optimizedIntermediateWaypointIndex_.addInt(input.readInt32());
+                }
+                input.popLimit(limit);
+                break;
+              } // case 82
+            case 90:
+              {
+                input.readMessage(getLocalizedValuesFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 90
+            case 98:
+              {
+                routeToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 98
+            case 104:
+              {
                 int tmpRaw = input.readEnum();
                 ensureRouteLabelsIsMutable();
                 routeLabels_.add(tmpRaw);
-              }
-              input.popLimit(oldLimit);
-              break;
-            } // case 106
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 104
+            case 106:
+              {
+                int length = input.readRawVarint32();
+                int oldLimit = input.pushLimit(length);
+                while (input.getBytesUntilLimit() > 0) {
+                  int tmpRaw = input.readEnum();
+                  ensureRouteLabelsIsMutable();
+                  routeLabels_.add(tmpRaw);
+                }
+                input.popLimit(oldLimit);
+                break;
+              } // case 106
+            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) {
@@ -3015,10 +3317,11 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List routeLabels_ =
-      java.util.Collections.emptyList();
+    private java.util.List routeLabels_ = java.util.Collections.emptyList();
+
     private void ensureRouteLabelsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         routeLabels_ = new java.util.ArrayList(routeLabels_);
@@ -3026,37 +3329,47 @@ private void ensureRouteLabelsIsMutable() {
       }
     }
     /**
+     *
+     *
      * 
      * Labels for the `Route` that are useful to identify specific properties
      * of the route to compare against others.
      * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @return A list containing the routeLabels. */ public java.util.List getRouteLabelsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.RouteLabel>(routeLabels_, routeLabels_converter_); + java.lang.Integer, com.google.maps.routing.v2.RouteLabel>( + routeLabels_, routeLabels_converter_); } /** + * + * *
      * Labels for the `Route` that are useful to identify specific properties
      * of the route to compare against others.
      * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @return The count of routeLabels. */ public int getRouteLabelsCount() { return routeLabels_.size(); } /** + * + * *
      * Labels for the `Route` that are useful to identify specific properties
      * of the route to compare against others.
      * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @param index The index of the element to return. * @return The routeLabels at the given index. */ @@ -3064,18 +3377,20 @@ public com.google.maps.routing.v2.RouteLabel getRouteLabels(int index) { return routeLabels_converter_.convert(routeLabels_.get(index)); } /** + * + * *
      * Labels for the `Route` that are useful to identify specific properties
      * of the route to compare against others.
      * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @param index The index to set the value at. * @param value The routeLabels to set. * @return This builder for chaining. */ - public Builder setRouteLabels( - int index, com.google.maps.routing.v2.RouteLabel value) { + public Builder setRouteLabels(int index, com.google.maps.routing.v2.RouteLabel value) { if (value == null) { throw new NullPointerException(); } @@ -3085,12 +3400,15 @@ public Builder setRouteLabels( return this; } /** + * + * *
      * Labels for the `Route` that are useful to identify specific properties
      * of the route to compare against others.
      * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @param value The routeLabels to add. * @return This builder for chaining. */ @@ -3104,12 +3422,15 @@ public Builder addRouteLabels(com.google.maps.routing.v2.RouteLabel value) { return this; } /** + * + * *
      * Labels for the `Route` that are useful to identify specific properties
      * of the route to compare against others.
      * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @param values The routeLabels to add. * @return This builder for chaining. */ @@ -3123,12 +3444,15 @@ public Builder addAllRouteLabels( return this; } /** + * + * *
      * Labels for the `Route` that are useful to identify specific properties
      * of the route to compare against others.
      * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @return This builder for chaining. */ public Builder clearRouteLabels() { @@ -3138,25 +3462,30 @@ public Builder clearRouteLabels() { return this; } /** + * + * *
      * Labels for the `Route` that are useful to identify specific properties
      * of the route to compare against others.
      * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @return A list containing the enum numeric values on the wire for routeLabels. */ - public java.util.List - getRouteLabelsValueList() { + public java.util.List getRouteLabelsValueList() { return java.util.Collections.unmodifiableList(routeLabels_); } /** + * + * *
      * Labels for the `Route` that are useful to identify specific properties
      * of the route to compare against others.
      * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of routeLabels at the given index. */ @@ -3164,30 +3493,35 @@ public int getRouteLabelsValue(int index) { return routeLabels_.get(index); } /** + * + * *
      * Labels for the `Route` that are useful to identify specific properties
      * of the route to compare against others.
      * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for routeLabels to set. * @return This builder for chaining. */ - public Builder setRouteLabelsValue( - int index, int value) { + public Builder setRouteLabelsValue(int index, int value) { ensureRouteLabelsIsMutable(); routeLabels_.set(index, value); onChanged(); return this; } /** + * + * *
      * Labels for the `Route` that are useful to identify specific properties
      * of the route to compare against others.
      * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @param value The enum numeric value on the wire for routeLabels to add. * @return This builder for chaining. */ @@ -3198,17 +3532,19 @@ public Builder addRouteLabelsValue(int value) { return this; } /** + * + * *
      * Labels for the `Route` that are useful to identify specific properties
      * of the route to compare against others.
      * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @param values The enum numeric values on the wire for routeLabels to add. * @return This builder for chaining. */ - public Builder addAllRouteLabelsValue( - java.lang.Iterable values) { + public Builder addAllRouteLabelsValue(java.lang.Iterable values) { ensureRouteLabelsIsMutable(); for (int value : values) { routeLabels_.add(value); @@ -3218,18 +3554,24 @@ public Builder addAllRouteLabelsValue( } private java.util.List legs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureLegsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { legs_ = new java.util.ArrayList(legs_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteLeg, com.google.maps.routing.v2.RouteLeg.Builder, com.google.maps.routing.v2.RouteLegOrBuilder> legsBuilder_; + com.google.maps.routing.v2.RouteLeg, + com.google.maps.routing.v2.RouteLeg.Builder, + com.google.maps.routing.v2.RouteLegOrBuilder> + legsBuilder_; /** + * + * *
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3250,6 +3592,8 @@ public java.util.List getLegsList() {
       }
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3270,6 +3614,8 @@ public int getLegsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3290,6 +3636,8 @@ public com.google.maps.routing.v2.RouteLeg getLegs(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3302,8 +3650,7 @@ public com.google.maps.routing.v2.RouteLeg getLegs(int index) {
      *
      * repeated .google.maps.routing.v2.RouteLeg legs = 1;
      */
-    public Builder setLegs(
-        int index, com.google.maps.routing.v2.RouteLeg value) {
+    public Builder setLegs(int index, com.google.maps.routing.v2.RouteLeg value) {
       if (legsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3317,6 +3664,8 @@ public Builder setLegs(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3329,8 +3678,7 @@ public Builder setLegs(
      *
      * repeated .google.maps.routing.v2.RouteLeg legs = 1;
      */
-    public Builder setLegs(
-        int index, com.google.maps.routing.v2.RouteLeg.Builder builderForValue) {
+    public Builder setLegs(int index, com.google.maps.routing.v2.RouteLeg.Builder builderForValue) {
       if (legsBuilder_ == null) {
         ensureLegsIsMutable();
         legs_.set(index, builderForValue.build());
@@ -3341,6 +3689,8 @@ public Builder setLegs(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3367,6 +3717,8 @@ public Builder addLegs(com.google.maps.routing.v2.RouteLeg value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3379,8 +3731,7 @@ public Builder addLegs(com.google.maps.routing.v2.RouteLeg value) {
      *
      * repeated .google.maps.routing.v2.RouteLeg legs = 1;
      */
-    public Builder addLegs(
-        int index, com.google.maps.routing.v2.RouteLeg value) {
+    public Builder addLegs(int index, com.google.maps.routing.v2.RouteLeg value) {
       if (legsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3394,6 +3745,8 @@ public Builder addLegs(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3406,8 +3759,7 @@ public Builder addLegs(
      *
      * repeated .google.maps.routing.v2.RouteLeg legs = 1;
      */
-    public Builder addLegs(
-        com.google.maps.routing.v2.RouteLeg.Builder builderForValue) {
+    public Builder addLegs(com.google.maps.routing.v2.RouteLeg.Builder builderForValue) {
       if (legsBuilder_ == null) {
         ensureLegsIsMutable();
         legs_.add(builderForValue.build());
@@ -3418,6 +3770,8 @@ public Builder addLegs(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3430,8 +3784,7 @@ public Builder addLegs(
      *
      * repeated .google.maps.routing.v2.RouteLeg legs = 1;
      */
-    public Builder addLegs(
-        int index, com.google.maps.routing.v2.RouteLeg.Builder builderForValue) {
+    public Builder addLegs(int index, com.google.maps.routing.v2.RouteLeg.Builder builderForValue) {
       if (legsBuilder_ == null) {
         ensureLegsIsMutable();
         legs_.add(index, builderForValue.build());
@@ -3442,6 +3795,8 @@ public Builder addLegs(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3458,8 +3813,7 @@ public Builder addAllLegs(
         java.lang.Iterable values) {
       if (legsBuilder_ == null) {
         ensureLegsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, legs_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, legs_);
         onChanged();
       } else {
         legsBuilder_.addAllMessages(values);
@@ -3467,6 +3821,8 @@ public Builder addAllLegs(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3490,6 +3846,8 @@ public Builder clearLegs() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3513,6 +3871,8 @@ public Builder removeLegs(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3525,11 +3885,12 @@ public Builder removeLegs(int index) {
      *
      * repeated .google.maps.routing.v2.RouteLeg legs = 1;
      */
-    public com.google.maps.routing.v2.RouteLeg.Builder getLegsBuilder(
-        int index) {
+    public com.google.maps.routing.v2.RouteLeg.Builder getLegsBuilder(int index) {
       return getLegsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3542,14 +3903,16 @@ public com.google.maps.routing.v2.RouteLeg.Builder getLegsBuilder(
      *
      * repeated .google.maps.routing.v2.RouteLeg legs = 1;
      */
-    public com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
-        int index) {
+    public com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(int index) {
       if (legsBuilder_ == null) {
-        return legs_.get(index);  } else {
+        return legs_.get(index);
+      } else {
         return legsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3562,8 +3925,8 @@ public com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
      *
      * repeated .google.maps.routing.v2.RouteLeg legs = 1;
      */
-    public java.util.List 
-         getLegsOrBuilderList() {
+    public java.util.List
+        getLegsOrBuilderList() {
       if (legsBuilder_ != null) {
         return legsBuilder_.getMessageOrBuilderList();
       } else {
@@ -3571,6 +3934,8 @@ public com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3584,10 +3949,12 @@ public com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
      * repeated .google.maps.routing.v2.RouteLeg legs = 1;
      */
     public com.google.maps.routing.v2.RouteLeg.Builder addLegsBuilder() {
-      return getLegsFieldBuilder().addBuilder(
-          com.google.maps.routing.v2.RouteLeg.getDefaultInstance());
+      return getLegsFieldBuilder()
+          .addBuilder(com.google.maps.routing.v2.RouteLeg.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3600,12 +3967,13 @@ public com.google.maps.routing.v2.RouteLeg.Builder addLegsBuilder() {
      *
      * repeated .google.maps.routing.v2.RouteLeg legs = 1;
      */
-    public com.google.maps.routing.v2.RouteLeg.Builder addLegsBuilder(
-        int index) {
-      return getLegsFieldBuilder().addBuilder(
-          index, com.google.maps.routing.v2.RouteLeg.getDefaultInstance());
+    public com.google.maps.routing.v2.RouteLeg.Builder addLegsBuilder(int index) {
+      return getLegsFieldBuilder()
+          .addBuilder(index, com.google.maps.routing.v2.RouteLeg.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A collection of legs (path segments between waypoints) that make up the
      * route. Each leg corresponds to the trip between two non-`via`
@@ -3618,32 +3986,37 @@ public com.google.maps.routing.v2.RouteLeg.Builder addLegsBuilder(
      *
      * repeated .google.maps.routing.v2.RouteLeg legs = 1;
      */
-    public java.util.List 
-         getLegsBuilderList() {
+    public java.util.List getLegsBuilderList() {
       return getLegsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.maps.routing.v2.RouteLeg, com.google.maps.routing.v2.RouteLeg.Builder, com.google.maps.routing.v2.RouteLegOrBuilder> 
+            com.google.maps.routing.v2.RouteLeg,
+            com.google.maps.routing.v2.RouteLeg.Builder,
+            com.google.maps.routing.v2.RouteLegOrBuilder>
         getLegsFieldBuilder() {
       if (legsBuilder_ == null) {
-        legsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.maps.routing.v2.RouteLeg, com.google.maps.routing.v2.RouteLeg.Builder, com.google.maps.routing.v2.RouteLegOrBuilder>(
-                legs_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        legsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.maps.routing.v2.RouteLeg,
+                com.google.maps.routing.v2.RouteLeg.Builder,
+                com.google.maps.routing.v2.RouteLegOrBuilder>(
+                legs_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         legs_ = null;
       }
       return legsBuilder_;
     }
 
-    private int distanceMeters_ ;
+    private int distanceMeters_;
     /**
+     *
+     *
      * 
      * The travel distance of the route, in meters.
      * 
* * int32 distance_meters = 2; + * * @return The distanceMeters. */ @java.lang.Override @@ -3651,11 +4024,14 @@ public int getDistanceMeters() { return distanceMeters_; } /** + * + * *
      * The travel distance of the route, in meters.
      * 
* * int32 distance_meters = 2; + * * @param value The distanceMeters to set. * @return This builder for chaining. */ @@ -3667,11 +4043,14 @@ public Builder setDistanceMeters(int value) { return this; } /** + * + * *
      * The travel distance of the route, in meters.
      * 
* * int32 distance_meters = 2; + * * @return This builder for chaining. */ public Builder clearDistanceMeters() { @@ -3683,8 +4062,13 @@ public Builder clearDistanceMeters() { 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_; /** + * + * *
      * The length of time needed to navigate the route. If you set the
      * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -3694,12 +4078,15 @@ public Builder clearDistanceMeters() {
      * 
* * .google.protobuf.Duration duration = 3; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The length of time needed to navigate the route. If you set the
      * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -3709,6 +4096,7 @@ public boolean hasDuration() {
      * 
* * .google.protobuf.Duration duration = 3; + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -3719,6 +4107,8 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * *
      * The length of time needed to navigate the route. If you set the
      * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -3743,6 +4133,8 @@ public Builder setDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the route. If you set the
      * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -3753,8 +4145,7 @@ public Builder setDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration duration = 3;
      */
-    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 {
@@ -3765,6 +4156,8 @@ public Builder setDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the route. If you set the
      * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -3777,9 +4170,9 @@ public Builder setDuration(
      */
     public Builder mergeDuration(com.google.protobuf.Duration value) {
       if (durationBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          duration_ != null &&
-          duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && duration_ != null
+            && duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getDurationBuilder().mergeFrom(value);
         } else {
           duration_ = value;
@@ -3792,6 +4185,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the route. If you set the
      * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -3813,6 +4208,8 @@ public Builder clearDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the route. If you set the
      * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -3829,6 +4226,8 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() {
       return getDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the route. If you set the
      * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -3843,11 +4242,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_;
       }
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the route. If you set the
      * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -3859,14 +4259,17 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
      * .google.protobuf.Duration 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>
         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_;
@@ -3874,36 +4277,49 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
 
     private com.google.protobuf.Duration staticDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> staticDurationBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        staticDurationBuilder_;
     /**
+     *
+     *
      * 
      * The duration of travel through the route without taking traffic
      * conditions into consideration.
      * 
* * .google.protobuf.Duration static_duration = 4; + * * @return Whether the staticDuration field is set. */ public boolean hasStaticDuration() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * The duration of travel through the route without taking traffic
      * conditions into consideration.
      * 
* * .google.protobuf.Duration static_duration = 4; + * * @return The staticDuration. */ public com.google.protobuf.Duration getStaticDuration() { if (staticDurationBuilder_ == null) { - return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : staticDuration_; } else { return staticDurationBuilder_.getMessage(); } } /** + * + * *
      * The duration of travel through the route without taking traffic
      * conditions into consideration.
@@ -3925,6 +4341,8 @@ public Builder setStaticDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of travel through the route without taking traffic
      * conditions into consideration.
@@ -3932,8 +4350,7 @@ public Builder setStaticDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration static_duration = 4;
      */
-    public Builder setStaticDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStaticDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (staticDurationBuilder_ == null) {
         staticDuration_ = builderForValue.build();
       } else {
@@ -3944,6 +4361,8 @@ public Builder setStaticDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of travel through the route without taking traffic
      * conditions into consideration.
@@ -3953,9 +4372,9 @@ public Builder setStaticDuration(
      */
     public Builder mergeStaticDuration(com.google.protobuf.Duration value) {
       if (staticDurationBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          staticDuration_ != null &&
-          staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && staticDuration_ != null
+            && staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStaticDurationBuilder().mergeFrom(value);
         } else {
           staticDuration_ = value;
@@ -3968,6 +4387,8 @@ public Builder mergeStaticDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of travel through the route without taking traffic
      * conditions into consideration.
@@ -3986,6 +4407,8 @@ public Builder clearStaticDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of travel through the route without taking traffic
      * conditions into consideration.
@@ -3999,6 +4422,8 @@ public com.google.protobuf.Duration.Builder getStaticDurationBuilder() {
       return getStaticDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The duration of travel through the route without taking traffic
      * conditions into consideration.
@@ -4010,11 +4435,14 @@ public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
       if (staticDurationBuilder_ != null) {
         return staticDurationBuilder_.getMessageOrBuilder();
       } else {
-        return staticDuration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : staticDuration_;
+        return staticDuration_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : staticDuration_;
       }
     }
     /**
+     *
+     *
      * 
      * The duration of travel through the route without taking traffic
      * conditions into consideration.
@@ -4023,14 +4451,17 @@ public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
      * .google.protobuf.Duration static_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>
         getStaticDurationFieldBuilder() {
       if (staticDurationBuilder_ == null) {
-        staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getStaticDuration(),
-                getParentForChildren(),
-                isClean());
+        staticDurationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getStaticDuration(), getParentForChildren(), isClean());
         staticDuration_ = null;
       }
       return staticDurationBuilder_;
@@ -4038,36 +4469,49 @@ public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
 
     private com.google.maps.routing.v2.Polyline polyline_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder> polylineBuilder_;
+            com.google.maps.routing.v2.Polyline,
+            com.google.maps.routing.v2.Polyline.Builder,
+            com.google.maps.routing.v2.PolylineOrBuilder>
+        polylineBuilder_;
     /**
+     *
+     *
      * 
      * The overall route polyline. This polyline is the combined polyline of
      * all `legs`.
      * 
* * .google.maps.routing.v2.Polyline polyline = 5; + * * @return Whether the polyline field is set. */ public boolean hasPolyline() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * The overall route polyline. This polyline is the combined polyline of
      * all `legs`.
      * 
* * .google.maps.routing.v2.Polyline polyline = 5; + * * @return The polyline. */ public com.google.maps.routing.v2.Polyline getPolyline() { if (polylineBuilder_ == null) { - return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + return polyline_ == null + ? com.google.maps.routing.v2.Polyline.getDefaultInstance() + : polyline_; } else { return polylineBuilder_.getMessage(); } } /** + * + * *
      * The overall route polyline. This polyline is the combined polyline of
      * all `legs`.
@@ -4089,6 +4533,8 @@ public Builder setPolyline(com.google.maps.routing.v2.Polyline value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The overall route polyline. This polyline is the combined polyline of
      * all `legs`.
@@ -4096,8 +4542,7 @@ public Builder setPolyline(com.google.maps.routing.v2.Polyline value) {
      *
      * .google.maps.routing.v2.Polyline polyline = 5;
      */
-    public Builder setPolyline(
-        com.google.maps.routing.v2.Polyline.Builder builderForValue) {
+    public Builder setPolyline(com.google.maps.routing.v2.Polyline.Builder builderForValue) {
       if (polylineBuilder_ == null) {
         polyline_ = builderForValue.build();
       } else {
@@ -4108,6 +4553,8 @@ public Builder setPolyline(
       return this;
     }
     /**
+     *
+     *
      * 
      * The overall route polyline. This polyline is the combined polyline of
      * all `legs`.
@@ -4117,9 +4564,9 @@ public Builder setPolyline(
      */
     public Builder mergePolyline(com.google.maps.routing.v2.Polyline value) {
       if (polylineBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0) &&
-          polyline_ != null &&
-          polyline_ != com.google.maps.routing.v2.Polyline.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0)
+            && polyline_ != null
+            && polyline_ != com.google.maps.routing.v2.Polyline.getDefaultInstance()) {
           getPolylineBuilder().mergeFrom(value);
         } else {
           polyline_ = value;
@@ -4132,6 +4579,8 @@ public Builder mergePolyline(com.google.maps.routing.v2.Polyline value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The overall route polyline. This polyline is the combined polyline of
      * all `legs`.
@@ -4150,6 +4599,8 @@ public Builder clearPolyline() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The overall route polyline. This polyline is the combined polyline of
      * all `legs`.
@@ -4163,6 +4614,8 @@ public com.google.maps.routing.v2.Polyline.Builder getPolylineBuilder() {
       return getPolylineFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The overall route polyline. This polyline is the combined polyline of
      * all `legs`.
@@ -4174,11 +4627,14 @@ public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() {
       if (polylineBuilder_ != null) {
         return polylineBuilder_.getMessageOrBuilder();
       } else {
-        return polyline_ == null ?
-            com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_;
+        return polyline_ == null
+            ? com.google.maps.routing.v2.Polyline.getDefaultInstance()
+            : polyline_;
       }
     }
     /**
+     *
+     *
      * 
      * The overall route polyline. This polyline is the combined polyline of
      * all `legs`.
@@ -4187,14 +4643,17 @@ public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() {
      * .google.maps.routing.v2.Polyline polyline = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder> 
+            com.google.maps.routing.v2.Polyline,
+            com.google.maps.routing.v2.Polyline.Builder,
+            com.google.maps.routing.v2.PolylineOrBuilder>
         getPolylineFieldBuilder() {
       if (polylineBuilder_ == null) {
-        polylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder>(
-                getPolyline(),
-                getParentForChildren(),
-                isClean());
+        polylineBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.maps.routing.v2.Polyline,
+                com.google.maps.routing.v2.Polyline.Builder,
+                com.google.maps.routing.v2.PolylineOrBuilder>(
+                getPolyline(), getParentForChildren(), isClean());
         polyline_ = null;
       }
       return polylineBuilder_;
@@ -4202,18 +4661,20 @@ public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() {
 
     private java.lang.Object description_ = "";
     /**
+     *
+     *
      * 
      * A description of the route.
      * 
* * string description = 6; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; @@ -4222,20 +4683,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the route.
      * 
* * string description = 6; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -4243,28 +4705,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A description of the route.
      * 
* * string description = 6; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * A description of the route.
      * 
* * string description = 6; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -4274,17 +4743,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * A description of the route.
      * 
* * string description = 6; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000040; @@ -4294,6 +4767,7 @@ public Builder setDescriptionBytes( private com.google.protobuf.LazyStringArrayList warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureWarningsIsMutable() { if (!warnings_.isModifiable()) { warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); @@ -4301,35 +4775,43 @@ private void ensureWarningsIsMutable() { bitField0_ |= 0x00000080; } /** + * + * *
      * An array of warnings to show when displaying the route.
      * 
* * repeated string warnings = 7; + * * @return A list containing the warnings. */ - public com.google.protobuf.ProtocolStringList - getWarningsList() { + public com.google.protobuf.ProtocolStringList getWarningsList() { warnings_.makeImmutable(); return warnings_; } /** + * + * *
      * An array of warnings to show when displaying the route.
      * 
* * repeated string warnings = 7; + * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** + * + * *
      * An array of warnings to show when displaying the route.
      * 
* * repeated string warnings = 7; + * * @param index The index of the element to return. * @return The warnings at the given index. */ @@ -4337,31 +4819,37 @@ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** + * + * *
      * An array of warnings to show when displaying the route.
      * 
* * repeated string warnings = 7; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - public com.google.protobuf.ByteString - getWarningsBytes(int index) { + public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } /** + * + * *
      * An array of warnings to show when displaying the route.
      * 
* * repeated string warnings = 7; + * * @param index The index to set the value at. * @param value The warnings to set. * @return This builder for chaining. */ - public Builder setWarnings( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWarnings(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureWarningsIsMutable(); warnings_.set(index, value); bitField0_ |= 0x00000080; @@ -4369,17 +4857,21 @@ public Builder setWarnings( return this; } /** + * + * *
      * An array of warnings to show when displaying the route.
      * 
* * repeated string warnings = 7; + * * @param value The warnings to add. * @return This builder for chaining. */ - public Builder addWarnings( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addWarnings(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureWarningsIsMutable(); warnings_.add(value); bitField0_ |= 0x00000080; @@ -4387,50 +4879,58 @@ public Builder addWarnings( return this; } /** + * + * *
      * An array of warnings to show when displaying the route.
      * 
* * repeated string warnings = 7; + * * @param values The warnings to add. * @return This builder for chaining. */ - public Builder addAllWarnings( - java.lang.Iterable values) { + public Builder addAllWarnings(java.lang.Iterable values) { ensureWarningsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, warnings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
      * An array of warnings to show when displaying the route.
      * 
* * repeated string warnings = 7; + * * @return This builder for chaining. */ public Builder clearWarnings() { - warnings_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080);; + warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; onChanged(); return this; } /** + * + * *
      * An array of warnings to show when displaying the route.
      * 
* * repeated string warnings = 7; + * * @param value The bytes of the warnings to add. * @return This builder for chaining. */ - public Builder addWarningsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addWarningsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureWarningsIsMutable(); warnings_.add(value); @@ -4441,24 +4941,33 @@ public Builder addWarningsBytes( private com.google.geo.type.Viewport viewport_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.geo.type.Viewport, com.google.geo.type.Viewport.Builder, com.google.geo.type.ViewportOrBuilder> viewportBuilder_; + com.google.geo.type.Viewport, + com.google.geo.type.Viewport.Builder, + com.google.geo.type.ViewportOrBuilder> + viewportBuilder_; /** + * + * *
      * The viewport bounding box of the polyline.
      * 
* * .google.geo.type.Viewport viewport = 8; + * * @return Whether the viewport field is set. */ public boolean hasViewport() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * The viewport bounding box of the polyline.
      * 
* * .google.geo.type.Viewport viewport = 8; + * * @return The viewport. */ public com.google.geo.type.Viewport getViewport() { @@ -4469,6 +4978,8 @@ public com.google.geo.type.Viewport getViewport() { } } /** + * + * *
      * The viewport bounding box of the polyline.
      * 
@@ -4489,14 +5000,15 @@ public Builder setViewport(com.google.geo.type.Viewport value) { return this; } /** + * + * *
      * The viewport bounding box of the polyline.
      * 
* * .google.geo.type.Viewport viewport = 8; */ - public Builder setViewport( - com.google.geo.type.Viewport.Builder builderForValue) { + public Builder setViewport(com.google.geo.type.Viewport.Builder builderForValue) { if (viewportBuilder_ == null) { viewport_ = builderForValue.build(); } else { @@ -4507,6 +5019,8 @@ public Builder setViewport( return this; } /** + * + * *
      * The viewport bounding box of the polyline.
      * 
@@ -4515,9 +5029,9 @@ public Builder setViewport( */ public Builder mergeViewport(com.google.geo.type.Viewport value) { if (viewportBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - viewport_ != null && - viewport_ != com.google.geo.type.Viewport.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && viewport_ != null + && viewport_ != com.google.geo.type.Viewport.getDefaultInstance()) { getViewportBuilder().mergeFrom(value); } else { viewport_ = value; @@ -4530,6 +5044,8 @@ public Builder mergeViewport(com.google.geo.type.Viewport value) { return this; } /** + * + * *
      * The viewport bounding box of the polyline.
      * 
@@ -4547,6 +5063,8 @@ public Builder clearViewport() { return this; } /** + * + * *
      * The viewport bounding box of the polyline.
      * 
@@ -4559,6 +5077,8 @@ public com.google.geo.type.Viewport.Builder getViewportBuilder() { return getViewportFieldBuilder().getBuilder(); } /** + * + * *
      * The viewport bounding box of the polyline.
      * 
@@ -4569,11 +5089,12 @@ public com.google.geo.type.ViewportOrBuilder getViewportOrBuilder() { if (viewportBuilder_ != null) { return viewportBuilder_.getMessageOrBuilder(); } else { - return viewport_ == null ? - com.google.geo.type.Viewport.getDefaultInstance() : viewport_; + return viewport_ == null ? com.google.geo.type.Viewport.getDefaultInstance() : viewport_; } } /** + * + * *
      * The viewport bounding box of the polyline.
      * 
@@ -4581,14 +5102,17 @@ public com.google.geo.type.ViewportOrBuilder getViewportOrBuilder() { * .google.geo.type.Viewport viewport = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.geo.type.Viewport, com.google.geo.type.Viewport.Builder, com.google.geo.type.ViewportOrBuilder> + com.google.geo.type.Viewport, + com.google.geo.type.Viewport.Builder, + com.google.geo.type.ViewportOrBuilder> getViewportFieldBuilder() { if (viewportBuilder_ == null) { - viewportBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.geo.type.Viewport, com.google.geo.type.Viewport.Builder, com.google.geo.type.ViewportOrBuilder>( - getViewport(), - getParentForChildren(), - isClean()); + viewportBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.geo.type.Viewport, + com.google.geo.type.Viewport.Builder, + com.google.geo.type.ViewportOrBuilder>( + getViewport(), getParentForChildren(), isClean()); viewport_ = null; } return viewportBuilder_; @@ -4596,34 +5120,47 @@ public com.google.geo.type.ViewportOrBuilder getViewportOrBuilder() { private com.google.maps.routing.v2.RouteTravelAdvisory travelAdvisory_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteTravelAdvisory, com.google.maps.routing.v2.RouteTravelAdvisory.Builder, com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder> travelAdvisoryBuilder_; + com.google.maps.routing.v2.RouteTravelAdvisory, + com.google.maps.routing.v2.RouteTravelAdvisory.Builder, + com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder> + travelAdvisoryBuilder_; /** + * + * *
      * Additional information about the route.
      * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + * * @return Whether the travelAdvisory field is set. */ public boolean hasTravelAdvisory() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Additional information about the route.
      * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + * * @return The travelAdvisory. */ public com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory() { if (travelAdvisoryBuilder_ == null) { - return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_; + return travelAdvisory_ == null + ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() + : travelAdvisory_; } else { return travelAdvisoryBuilder_.getMessage(); } } /** + * + * *
      * Additional information about the route.
      * 
@@ -4644,6 +5181,8 @@ public Builder setTravelAdvisory(com.google.maps.routing.v2.RouteTravelAdvisory return this; } /** + * + * *
      * Additional information about the route.
      * 
@@ -4662,6 +5201,8 @@ public Builder setTravelAdvisory( return this; } /** + * + * *
      * Additional information about the route.
      * 
@@ -4670,9 +5211,10 @@ public Builder setTravelAdvisory( */ public Builder mergeTravelAdvisory(com.google.maps.routing.v2.RouteTravelAdvisory value) { if (travelAdvisoryBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - travelAdvisory_ != null && - travelAdvisory_ != com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && travelAdvisory_ != null + && travelAdvisory_ + != com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance()) { getTravelAdvisoryBuilder().mergeFrom(value); } else { travelAdvisory_ = value; @@ -4685,6 +5227,8 @@ public Builder mergeTravelAdvisory(com.google.maps.routing.v2.RouteTravelAdvisor return this; } /** + * + * *
      * Additional information about the route.
      * 
@@ -4702,6 +5246,8 @@ public Builder clearTravelAdvisory() { return this; } /** + * + * *
      * Additional information about the route.
      * 
@@ -4714,6 +5260,8 @@ public com.google.maps.routing.v2.RouteTravelAdvisory.Builder getTravelAdvisoryB return getTravelAdvisoryFieldBuilder().getBuilder(); } /** + * + * *
      * Additional information about the route.
      * 
@@ -4724,11 +5272,14 @@ public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisory if (travelAdvisoryBuilder_ != null) { return travelAdvisoryBuilder_.getMessageOrBuilder(); } else { - return travelAdvisory_ == null ? - com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_; + return travelAdvisory_ == null + ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() + : travelAdvisory_; } } /** + * + * *
      * Additional information about the route.
      * 
@@ -4736,20 +5287,25 @@ public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisory * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteTravelAdvisory, com.google.maps.routing.v2.RouteTravelAdvisory.Builder, com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder> + com.google.maps.routing.v2.RouteTravelAdvisory, + com.google.maps.routing.v2.RouteTravelAdvisory.Builder, + com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder> getTravelAdvisoryFieldBuilder() { if (travelAdvisoryBuilder_ == null) { - travelAdvisoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteTravelAdvisory, com.google.maps.routing.v2.RouteTravelAdvisory.Builder, com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder>( - getTravelAdvisory(), - getParentForChildren(), - isClean()); + travelAdvisoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteTravelAdvisory, + com.google.maps.routing.v2.RouteTravelAdvisory.Builder, + com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder>( + getTravelAdvisory(), getParentForChildren(), isClean()); travelAdvisory_ = null; } return travelAdvisoryBuilder_; } - private com.google.protobuf.Internal.IntList optimizedIntermediateWaypointIndex_ = emptyIntList(); + private com.google.protobuf.Internal.IntList optimizedIntermediateWaypointIndex_ = + emptyIntList(); + private void ensureOptimizedIntermediateWaypointIndexIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { optimizedIntermediateWaypointIndex_ = mutableCopy(optimizedIntermediateWaypointIndex_); @@ -4757,6 +5313,8 @@ private void ensureOptimizedIntermediateWaypointIndexIsMutable() { } } /** + * + * *
      * If you set
      * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
@@ -4770,14 +5328,17 @@ private void ensureOptimizedIntermediateWaypointIndexIsMutable() {
      * 
* * repeated int32 optimized_intermediate_waypoint_index = 10; + * * @return A list containing the optimizedIntermediateWaypointIndex. */ - public java.util.List - getOptimizedIntermediateWaypointIndexList() { - return ((bitField0_ & 0x00000400) != 0) ? - java.util.Collections.unmodifiableList(optimizedIntermediateWaypointIndex_) : optimizedIntermediateWaypointIndex_; + public java.util.List getOptimizedIntermediateWaypointIndexList() { + return ((bitField0_ & 0x00000400) != 0) + ? java.util.Collections.unmodifiableList(optimizedIntermediateWaypointIndex_) + : optimizedIntermediateWaypointIndex_; } /** + * + * *
      * If you set
      * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
@@ -4791,12 +5352,15 @@ private void ensureOptimizedIntermediateWaypointIndexIsMutable() {
      * 
* * repeated int32 optimized_intermediate_waypoint_index = 10; + * * @return The count of optimizedIntermediateWaypointIndex. */ public int getOptimizedIntermediateWaypointIndexCount() { return optimizedIntermediateWaypointIndex_.size(); } /** + * + * *
      * If you set
      * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
@@ -4810,6 +5374,7 @@ public int getOptimizedIntermediateWaypointIndexCount() {
      * 
* * repeated int32 optimized_intermediate_waypoint_index = 10; + * * @param index The index of the element to return. * @return The optimizedIntermediateWaypointIndex at the given index. */ @@ -4817,6 +5382,8 @@ public int getOptimizedIntermediateWaypointIndex(int index) { return optimizedIntermediateWaypointIndex_.getInt(index); } /** + * + * *
      * If you set
      * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
@@ -4830,12 +5397,12 @@ public int getOptimizedIntermediateWaypointIndex(int index) {
      * 
* * repeated int32 optimized_intermediate_waypoint_index = 10; + * * @param index The index to set the value at. * @param value The optimizedIntermediateWaypointIndex to set. * @return This builder for chaining. */ - public Builder setOptimizedIntermediateWaypointIndex( - int index, int value) { + public Builder setOptimizedIntermediateWaypointIndex(int index, int value) { ensureOptimizedIntermediateWaypointIndexIsMutable(); optimizedIntermediateWaypointIndex_.setInt(index, value); @@ -4843,6 +5410,8 @@ public Builder setOptimizedIntermediateWaypointIndex( return this; } /** + * + * *
      * If you set
      * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
@@ -4856,6 +5425,7 @@ public Builder setOptimizedIntermediateWaypointIndex(
      * 
* * repeated int32 optimized_intermediate_waypoint_index = 10; + * * @param value The optimizedIntermediateWaypointIndex to add. * @return This builder for chaining. */ @@ -4867,6 +5437,8 @@ public Builder addOptimizedIntermediateWaypointIndex(int value) { return this; } /** + * + * *
      * If you set
      * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
@@ -4880,6 +5452,7 @@ public Builder addOptimizedIntermediateWaypointIndex(int value) {
      * 
* * repeated int32 optimized_intermediate_waypoint_index = 10; + * * @param values The optimizedIntermediateWaypointIndex to add. * @return This builder for chaining. */ @@ -4892,6 +5465,8 @@ public Builder addAllOptimizedIntermediateWaypointIndex( return this; } /** + * + * *
      * If you set
      * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
@@ -4905,6 +5480,7 @@ public Builder addAllOptimizedIntermediateWaypointIndex(
      * 
* * repeated int32 optimized_intermediate_waypoint_index = 10; + * * @return This builder for chaining. */ public Builder clearOptimizedIntermediateWaypointIndex() { @@ -4916,34 +5492,47 @@ public Builder clearOptimizedIntermediateWaypointIndex() { private com.google.maps.routing.v2.Route.RouteLocalizedValues localizedValues_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Route.RouteLocalizedValues, com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder, com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder> localizedValuesBuilder_; + com.google.maps.routing.v2.Route.RouteLocalizedValues, + com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder, + com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder> + localizedValuesBuilder_; /** + * + * *
      * Text representations of properties of the `Route`.
      * 
* * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + * * @return Whether the localizedValues field is set. */ public boolean hasLocalizedValues() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * Text representations of properties of the `Route`.
      * 
* * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + * * @return The localizedValues. */ public com.google.maps.routing.v2.Route.RouteLocalizedValues getLocalizedValues() { if (localizedValuesBuilder_ == null) { - return localizedValues_ == null ? com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance() : localizedValues_; + return localizedValues_ == null + ? com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance() + : localizedValues_; } else { return localizedValuesBuilder_.getMessage(); } } /** + * + * *
      * Text representations of properties of the `Route`.
      * 
@@ -4964,6 +5553,8 @@ public Builder setLocalizedValues(com.google.maps.routing.v2.Route.RouteLocalize return this; } /** + * + * *
      * Text representations of properties of the `Route`.
      * 
@@ -4982,17 +5573,21 @@ public Builder setLocalizedValues( return this; } /** + * + * *
      * Text representations of properties of the `Route`.
      * 
* * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; */ - public Builder mergeLocalizedValues(com.google.maps.routing.v2.Route.RouteLocalizedValues value) { + public Builder mergeLocalizedValues( + com.google.maps.routing.v2.Route.RouteLocalizedValues value) { if (localizedValuesBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) && - localizedValues_ != null && - localizedValues_ != com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) + && localizedValues_ != null + && localizedValues_ + != com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance()) { getLocalizedValuesBuilder().mergeFrom(value); } else { localizedValues_ = value; @@ -5005,6 +5600,8 @@ public Builder mergeLocalizedValues(com.google.maps.routing.v2.Route.RouteLocali return this; } /** + * + * *
      * Text representations of properties of the `Route`.
      * 
@@ -5022,33 +5619,42 @@ public Builder clearLocalizedValues() { return this; } /** + * + * *
      * Text representations of properties of the `Route`.
      * 
* * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; */ - public com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder getLocalizedValuesBuilder() { + public com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder + getLocalizedValuesBuilder() { bitField0_ |= 0x00000800; onChanged(); return getLocalizedValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Text representations of properties of the `Route`.
      * 
* * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; */ - public com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { + public com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder + getLocalizedValuesOrBuilder() { if (localizedValuesBuilder_ != null) { return localizedValuesBuilder_.getMessageOrBuilder(); } else { - return localizedValues_ == null ? - com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance() : localizedValues_; + return localizedValues_ == null + ? com.google.maps.routing.v2.Route.RouteLocalizedValues.getDefaultInstance() + : localizedValues_; } } /** + * + * *
      * Text representations of properties of the `Route`.
      * 
@@ -5056,14 +5662,17 @@ public com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder getLocaliz * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Route.RouteLocalizedValues, com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder, com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder> + com.google.maps.routing.v2.Route.RouteLocalizedValues, + com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder, + com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder> getLocalizedValuesFieldBuilder() { if (localizedValuesBuilder_ == null) { - localizedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Route.RouteLocalizedValues, com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder, com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder>( - getLocalizedValues(), - getParentForChildren(), - isClean()); + localizedValuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Route.RouteLocalizedValues, + com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder, + com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder>( + getLocalizedValues(), getParentForChildren(), isClean()); localizedValues_ = null; } return localizedValuesBuilder_; @@ -5071,6 +5680,8 @@ public com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder getLocaliz private java.lang.Object routeToken_ = ""; /** + * + * *
      * A web-safe, base64-encoded route token that can be passed to the Navigation
      * SDK, that allows the Navigation SDK to reconstruct the route during
@@ -5084,13 +5695,13 @@ public com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder getLocaliz
      * 
* * string route_token = 12; + * * @return The routeToken. */ public java.lang.String getRouteToken() { java.lang.Object ref = routeToken_; 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(); routeToken_ = s; return s; @@ -5099,6 +5710,8 @@ public java.lang.String getRouteToken() { } } /** + * + * *
      * A web-safe, base64-encoded route token that can be passed to the Navigation
      * SDK, that allows the Navigation SDK to reconstruct the route during
@@ -5112,15 +5725,14 @@ public java.lang.String getRouteToken() {
      * 
* * string route_token = 12; + * * @return The bytes for routeToken. */ - public com.google.protobuf.ByteString - getRouteTokenBytes() { + public com.google.protobuf.ByteString getRouteTokenBytes() { java.lang.Object ref = routeToken_; 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); routeToken_ = b; return b; } else { @@ -5128,6 +5740,8 @@ public java.lang.String getRouteToken() { } } /** + * + * *
      * A web-safe, base64-encoded route token that can be passed to the Navigation
      * SDK, that allows the Navigation SDK to reconstruct the route during
@@ -5141,18 +5755,22 @@ public java.lang.String getRouteToken() {
      * 
* * string route_token = 12; + * * @param value The routeToken to set. * @return This builder for chaining. */ - public Builder setRouteToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRouteToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } routeToken_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * A web-safe, base64-encoded route token that can be passed to the Navigation
      * SDK, that allows the Navigation SDK to reconstruct the route during
@@ -5166,6 +5784,7 @@ public Builder setRouteToken(
      * 
* * string route_token = 12; + * * @return This builder for chaining. */ public Builder clearRouteToken() { @@ -5175,6 +5794,8 @@ public Builder clearRouteToken() { return this; } /** + * + * *
      * A web-safe, base64-encoded route token that can be passed to the Navigation
      * SDK, that allows the Navigation SDK to reconstruct the route during
@@ -5188,21 +5809,23 @@ public Builder clearRouteToken() {
      * 
* * string route_token = 12; + * * @param value The bytes for routeToken to set. * @return This builder for chaining. */ - public Builder setRouteTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRouteTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); routeToken_ = value; bitField0_ |= 0x00001000; 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); } @@ -5212,12 +5835,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.Route) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.Route) private static final com.google.maps.routing.v2.Route DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.Route(); } @@ -5226,27 +5849,27 @@ public static com.google.maps.routing.v2.Route getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Route 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 Route 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; @@ -5261,6 +5884,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.Route getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java similarity index 72% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java index 40e3f9dde37a..a1723376878e 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabel.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/maps/routing/v2/route_label.proto package com.google.maps.routing.v2; /** + * + * *
  * Labels for the [Route][google.maps.routing.v2.Route] that are useful to
  * identify specific properties of the route to compare against others.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.maps.routing.v2.RouteLabel}
  */
-public enum RouteLabel
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum RouteLabel implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Default - not used.
    * 
@@ -22,6 +40,8 @@ public enum RouteLabel */ ROUTE_LABEL_UNSPECIFIED(0), /** + * + * *
    * The default "best" route returned for the route computation.
    * 
@@ -30,6 +50,8 @@ public enum RouteLabel */ DEFAULT_ROUTE(1), /** + * + * *
    * An alternative to the default "best" route. Routes like this will be
    * returned when
@@ -41,6 +63,8 @@ public enum RouteLabel
    */
   DEFAULT_ROUTE_ALTERNATE(2),
   /**
+   *
+   *
    * 
    * Fuel efficient route. Routes labeled with this value are determined to be
    * optimized for Eco parameters such as fuel consumption.
@@ -53,6 +77,8 @@ public enum RouteLabel
   ;
 
   /**
+   *
+   *
    * 
    * Default - not used.
    * 
@@ -61,6 +87,8 @@ public enum RouteLabel */ public static final int ROUTE_LABEL_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The default "best" route returned for the route computation.
    * 
@@ -69,6 +97,8 @@ public enum RouteLabel */ public static final int DEFAULT_ROUTE_VALUE = 1; /** + * + * *
    * An alternative to the default "best" route. Routes like this will be
    * returned when
@@ -80,6 +110,8 @@ public enum RouteLabel
    */
   public static final int DEFAULT_ROUTE_ALTERNATE_VALUE = 2;
   /**
+   *
+   *
    * 
    * Fuel efficient route. Routes labeled with this value are determined to be
    * optimized for Eco parameters such as fuel consumption.
@@ -89,7 +121,6 @@ public enum RouteLabel
    */
   public static final int FUEL_EFFICIENT_VALUE = 3;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -114,50 +145,51 @@ public static RouteLabel valueOf(int value) {
    */
   public static RouteLabel forNumber(int value) {
     switch (value) {
-      case 0: return ROUTE_LABEL_UNSPECIFIED;
-      case 1: return DEFAULT_ROUTE;
-      case 2: return DEFAULT_ROUTE_ALTERNATE;
-      case 3: return FUEL_EFFICIENT;
-      default: return null;
+      case 0:
+        return ROUTE_LABEL_UNSPECIFIED;
+      case 1:
+        return DEFAULT_ROUTE;
+      case 2:
+        return DEFAULT_ROUTE_ALTERNATE;
+      case 3:
+        return FUEL_EFFICIENT;
+      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<
-      RouteLabel> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public RouteLabel findValueByNumber(int number) {
-            return RouteLabel.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 RouteLabel findValueByNumber(int number) {
+          return RouteLabel.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.maps.routing.v2.RouteLabelProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final RouteLabel[] VALUES = values();
 
-  public static RouteLabel valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static RouteLabel 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;
@@ -173,4 +205,3 @@ private RouteLabel(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.RouteLabel)
 }
-
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java
new file mode 100644
index 000000000000..45fdb9617f17
--- /dev/null
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java
@@ -0,0 +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/maps/routing/v2/route_label.proto
+
+package com.google.maps.routing.v2;
+
+public final class RouteLabelProto {
+  private RouteLabelProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  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/maps/routing/v2/route_label.pro"
+          + "to\022\026google.maps.routing.v2*m\n\nRouteLabel"
+          + "\022\033\n\027ROUTE_LABEL_UNSPECIFIED\020\000\022\021\n\rDEFAULT"
+          + "_ROUTE\020\001\022\033\n\027DEFAULT_ROUTE_ALTERNATE\020\002\022\022\n"
+          + "\016FUEL_EFFICIENT\020\003B\304\001\n\032com.google.maps.ro"
+          + "uting.v2B\017RouteLabelProtoP\001Z:cloud.googl"
+          + "e.com/go/maps/routing/apiv2/routingpb;ro"
+          + "utingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Routing"
+          + ".V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Google::M"
+          + "aps::Routing::V2b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java
similarity index 73%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java
index 14669a09fecf..f0b932342ff9 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLeg.java
@@ -1,71 +1,99 @@
+/*
+ * 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/maps/routing/v2/route.proto
 
 package com.google.maps.routing.v2;
 
 /**
+ *
+ *
  * 
  * Contains a segment between non-`via` waypoints.
  * 
* * Protobuf type {@code google.maps.routing.v2.RouteLeg} */ -public final class RouteLeg extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RouteLeg extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLeg) RouteLegOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RouteLeg.newBuilder() to construct. private RouteLeg(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RouteLeg() { steps_ = 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 RouteLeg(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLeg_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLeg.class, com.google.maps.routing.v2.RouteLeg.Builder.class); + com.google.maps.routing.v2.RouteLeg.class, + com.google.maps.routing.v2.RouteLeg.Builder.class); } - public interface RouteLegLocalizedValuesOrBuilder extends + public interface RouteLegLocalizedValuesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return Whether the distance field is set. */ boolean hasDistance(); /** + * + * *
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return The distance. */ com.google.type.LocalizedText getDistance(); /** + * + * *
      * Travel distance represented in text form.
      * 
@@ -75,6 +103,8 @@ public interface RouteLegLocalizedValuesOrBuilder extends com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder(); /** + * + * *
      * Duration taking traffic conditions into consideration represented in text
      * form. Note: If you did not request traffic information, this value will
@@ -82,10 +112,13 @@ public interface RouteLegLocalizedValuesOrBuilder extends
      * 
* * .google.type.LocalizedText duration = 2; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
      * Duration taking traffic conditions into consideration represented in text
      * form. Note: If you did not request traffic information, this value will
@@ -93,10 +126,13 @@ public interface RouteLegLocalizedValuesOrBuilder extends
      * 
* * .google.type.LocalizedText duration = 2; + * * @return The duration. */ com.google.type.LocalizedText getDuration(); /** + * + * *
      * Duration taking traffic conditions into consideration represented in text
      * form. Note: If you did not request traffic information, this value will
@@ -108,26 +144,34 @@ public interface RouteLegLocalizedValuesOrBuilder extends
     com.google.type.LocalizedTextOrBuilder getDurationOrBuilder();
 
     /**
+     *
+     *
      * 
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return Whether the staticDuration field is set. */ boolean hasStaticDuration(); /** + * + * *
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return The staticDuration. */ com.google.type.LocalizedText getStaticDuration(); /** + * + * *
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
@@ -138,52 +182,58 @@ public interface RouteLegLocalizedValuesOrBuilder extends
     com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder();
   }
   /**
+   *
+   *
    * 
    * Text representations of certain properties.
    * 
* * Protobuf type {@code google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues} */ - public static final class RouteLegLocalizedValues extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class RouteLegLocalizedValues extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues) RouteLegLocalizedValuesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RouteLegLocalizedValues.newBuilder() to construct. private RouteLegLocalizedValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RouteLegLocalizedValues() { - } + + private RouteLegLocalizedValues() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RouteLegLocalizedValues(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.class, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder.class); + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.class, + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder.class); } public static final int DISTANCE_FIELD_NUMBER = 1; private com.google.type.LocalizedText distance_; /** + * + * *
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return Whether the distance field is set. */ @java.lang.Override @@ -191,11 +241,14 @@ public boolean hasDistance() { return distance_ != null; } /** + * + * *
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return The distance. */ @java.lang.Override @@ -203,6 +256,8 @@ public com.google.type.LocalizedText getDistance() { return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; } /** + * + * *
      * Travel distance represented in text form.
      * 
@@ -217,6 +272,8 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { public static final int DURATION_FIELD_NUMBER = 2; private com.google.type.LocalizedText duration_; /** + * + * *
      * Duration taking traffic conditions into consideration represented in text
      * form. Note: If you did not request traffic information, this value will
@@ -224,6 +281,7 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() {
      * 
* * .google.type.LocalizedText duration = 2; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -231,6 +289,8 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
      * Duration taking traffic conditions into consideration represented in text
      * form. Note: If you did not request traffic information, this value will
@@ -238,6 +298,7 @@ public boolean hasDuration() {
      * 
* * .google.type.LocalizedText duration = 2; + * * @return The duration. */ @java.lang.Override @@ -245,6 +306,8 @@ public com.google.type.LocalizedText getDuration() { return duration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : duration_; } /** + * + * *
      * Duration taking traffic conditions into consideration represented in text
      * form. Note: If you did not request traffic information, this value will
@@ -261,12 +324,15 @@ public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() {
     public static final int STATIC_DURATION_FIELD_NUMBER = 3;
     private com.google.type.LocalizedText staticDuration_;
     /**
+     *
+     *
      * 
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return Whether the staticDuration field is set. */ @java.lang.Override @@ -274,19 +340,26 @@ public boolean hasStaticDuration() { return staticDuration_ != null; } /** + * + * *
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return The staticDuration. */ @java.lang.Override public com.google.type.LocalizedText getStaticDuration() { - return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : staticDuration_; } /** + * + * *
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
@@ -296,10 +369,13 @@ public com.google.type.LocalizedText getStaticDuration() {
      */
     @java.lang.Override
     public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() {
-      return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_;
+      return staticDuration_ == null
+          ? com.google.type.LocalizedText.getDefaultInstance()
+          : staticDuration_;
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -311,8 +387,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 (distance_ != null) {
         output.writeMessage(1, getDistance());
       }
@@ -332,16 +407,13 @@ public int getSerializedSize() {
 
       size = 0;
       if (distance_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, getDistance());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDistance());
       }
       if (duration_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getDuration());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration());
       }
       if (staticDuration_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, getStaticDuration());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStaticDuration());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -351,27 +423,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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues)) {
         return super.equals(obj);
       }
-      com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues other = (com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues) obj;
+      com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues other =
+          (com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues) obj;
 
       if (hasDistance() != other.hasDistance()) return false;
       if (hasDistance()) {
-        if (!getDistance()
-            .equals(other.getDistance())) return false;
+        if (!getDistance().equals(other.getDistance())) 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 (hasStaticDuration() != other.hasStaticDuration()) return false;
       if (hasStaticDuration()) {
-        if (!getStaticDuration()
-            .equals(other.getStaticDuration())) return false;
+        if (!getStaticDuration().equals(other.getStaticDuration())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -402,89 +472,94 @@ public int hashCode() {
     }
 
     public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues parseFrom(byte[] data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+    public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues parseDelimitedFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
 
     public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues prototype) {
+
+    public static Builder newBuilder(
+        com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues 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
@@ -494,39 +569,41 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Text representations of certain properties.
      * 
* * Protobuf type {@code google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues} */ - 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues) com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.class, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder.class); + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.class, + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder.class); } // Construct using com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.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,13 +627,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor; } @java.lang.Override - public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues getDefaultInstanceForType() { + public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues + getDefaultInstanceForType() { return com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance(); } @@ -571,28 +649,27 @@ public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues build() { @java.lang.Override public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues buildPartial() { - com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues result = new com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues result = + new com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues result) { + private void buildPartial0( + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.distance_ = distanceBuilder_ == null - ? distance_ - : distanceBuilder_.build(); + result.distance_ = distanceBuilder_ == null ? distance_ : distanceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.duration_ = durationBuilder_ == null - ? duration_ - : durationBuilder_.build(); + result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.staticDuration_ = staticDurationBuilder_ == null - ? staticDuration_ - : staticDurationBuilder_.build(); + result.staticDuration_ = + staticDurationBuilder_ == null ? staticDuration_ : staticDurationBuilder_.build(); } } @@ -600,38 +677,41 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLeg.RouteLegLocalized 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.maps.routing.v2.RouteLeg.RouteLegLocalizedValues) { - return mergeFrom((com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues)other); + return mergeFrom((com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues) other); } else { super.mergeFrom(other); return this; @@ -639,7 +719,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues other) { - if (other == com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance()) return this; + if (other + == com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance()) + return this; if (other.hasDistance()) { mergeDistance(other.getDistance()); } @@ -675,33 +757,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDistanceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getStaticDurationFieldBuilder().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(getDistanceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getStaticDurationFieldBuilder().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,28 +792,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.type.LocalizedText distance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> distanceBuilder_; + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + distanceBuilder_; /** + * + * *
        * Travel distance represented in text form.
        * 
* * .google.type.LocalizedText distance = 1; + * * @return Whether the distance field is set. */ public boolean hasDistance() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Travel distance represented in text form.
        * 
* * .google.type.LocalizedText distance = 1; + * * @return The distance. */ public com.google.type.LocalizedText getDistance() { @@ -743,6 +834,8 @@ public com.google.type.LocalizedText getDistance() { } } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -763,14 +856,15 @@ public Builder setDistance(com.google.type.LocalizedText value) { return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
* * .google.type.LocalizedText distance = 1; */ - public Builder setDistance( - com.google.type.LocalizedText.Builder builderForValue) { + public Builder setDistance(com.google.type.LocalizedText.Builder builderForValue) { if (distanceBuilder_ == null) { distance_ = builderForValue.build(); } else { @@ -781,6 +875,8 @@ public Builder setDistance( return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -789,9 +885,9 @@ public Builder setDistance( */ public Builder mergeDistance(com.google.type.LocalizedText value) { if (distanceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - distance_ != null && - distance_ != com.google.type.LocalizedText.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && distance_ != null + && distance_ != com.google.type.LocalizedText.getDefaultInstance()) { getDistanceBuilder().mergeFrom(value); } else { distance_ = value; @@ -804,6 +900,8 @@ public Builder mergeDistance(com.google.type.LocalizedText value) { return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -821,6 +919,8 @@ public Builder clearDistance() { return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -833,6 +933,8 @@ public com.google.type.LocalizedText.Builder getDistanceBuilder() { return getDistanceFieldBuilder().getBuilder(); } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -843,11 +945,12 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { if (distanceBuilder_ != null) { return distanceBuilder_.getMessageOrBuilder(); } else { - return distance_ == null ? - com.google.type.LocalizedText.getDefaultInstance() : distance_; + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; } } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -855,14 +958,17 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { * .google.type.LocalizedText distance = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> getDistanceFieldBuilder() { if (distanceBuilder_ == null) { - distanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( - getDistance(), - getParentForChildren(), - isClean()); + distanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getDistance(), getParentForChildren(), isClean()); distance_ = null; } return distanceBuilder_; @@ -870,8 +976,13 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { private com.google.type.LocalizedText duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> durationBuilder_; + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + durationBuilder_; /** + * + * *
        * Duration taking traffic conditions into consideration represented in text
        * form. Note: If you did not request traffic information, this value will
@@ -879,12 +990,15 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() {
        * 
* * .google.type.LocalizedText duration = 2; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Duration taking traffic conditions into consideration represented in text
        * form. Note: If you did not request traffic information, this value will
@@ -892,6 +1006,7 @@ public boolean hasDuration() {
        * 
* * .google.type.LocalizedText duration = 2; + * * @return The duration. */ public com.google.type.LocalizedText getDuration() { @@ -902,6 +1017,8 @@ public com.google.type.LocalizedText getDuration() { } } /** + * + * *
        * Duration taking traffic conditions into consideration represented in text
        * form. Note: If you did not request traffic information, this value will
@@ -924,6 +1041,8 @@ public Builder setDuration(com.google.type.LocalizedText value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration taking traffic conditions into consideration represented in text
        * form. Note: If you did not request traffic information, this value will
@@ -932,8 +1051,7 @@ public Builder setDuration(com.google.type.LocalizedText value) {
        *
        * .google.type.LocalizedText duration = 2;
        */
-      public Builder setDuration(
-          com.google.type.LocalizedText.Builder builderForValue) {
+      public Builder setDuration(com.google.type.LocalizedText.Builder builderForValue) {
         if (durationBuilder_ == null) {
           duration_ = builderForValue.build();
         } else {
@@ -944,6 +1062,8 @@ public Builder setDuration(
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration taking traffic conditions into consideration represented in text
        * form. Note: If you did not request traffic information, this value will
@@ -954,9 +1074,9 @@ public Builder setDuration(
        */
       public Builder mergeDuration(com.google.type.LocalizedText value) {
         if (durationBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0) &&
-            duration_ != null &&
-            duration_ != com.google.type.LocalizedText.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0)
+              && duration_ != null
+              && duration_ != com.google.type.LocalizedText.getDefaultInstance()) {
             getDurationBuilder().mergeFrom(value);
           } else {
             duration_ = value;
@@ -969,6 +1089,8 @@ public Builder mergeDuration(com.google.type.LocalizedText value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration taking traffic conditions into consideration represented in text
        * form. Note: If you did not request traffic information, this value will
@@ -988,6 +1110,8 @@ public Builder clearDuration() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration taking traffic conditions into consideration represented in text
        * form. Note: If you did not request traffic information, this value will
@@ -1002,6 +1126,8 @@ public com.google.type.LocalizedText.Builder getDurationBuilder() {
         return getDurationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Duration taking traffic conditions into consideration represented in text
        * form. Note: If you did not request traffic information, this value will
@@ -1014,11 +1140,12 @@ public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() {
         if (durationBuilder_ != null) {
           return durationBuilder_.getMessageOrBuilder();
         } else {
-          return duration_ == null ?
-              com.google.type.LocalizedText.getDefaultInstance() : duration_;
+          return duration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : duration_;
         }
       }
       /**
+       *
+       *
        * 
        * Duration taking traffic conditions into consideration represented in text
        * form. Note: If you did not request traffic information, this value will
@@ -1028,14 +1155,17 @@ public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() {
        * .google.type.LocalizedText duration = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> 
+              com.google.type.LocalizedText,
+              com.google.type.LocalizedText.Builder,
+              com.google.type.LocalizedTextOrBuilder>
           getDurationFieldBuilder() {
         if (durationBuilder_ == null) {
-          durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>(
-                  getDuration(),
-                  getParentForChildren(),
-                  isClean());
+          durationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.type.LocalizedText,
+                  com.google.type.LocalizedText.Builder,
+                  com.google.type.LocalizedTextOrBuilder>(
+                  getDuration(), getParentForChildren(), isClean());
           duration_ = null;
         }
         return durationBuilder_;
@@ -1043,36 +1173,49 @@ public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() {
 
       private com.google.type.LocalizedText staticDuration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> staticDurationBuilder_;
+              com.google.type.LocalizedText,
+              com.google.type.LocalizedText.Builder,
+              com.google.type.LocalizedTextOrBuilder>
+          staticDurationBuilder_;
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
        * 
* * .google.type.LocalizedText static_duration = 3; + * * @return Whether the staticDuration field is set. */ public boolean hasStaticDuration() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
        * 
* * .google.type.LocalizedText static_duration = 3; + * * @return The staticDuration. */ public com.google.type.LocalizedText getStaticDuration() { if (staticDurationBuilder_ == null) { - return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : staticDuration_; } else { return staticDurationBuilder_.getMessage(); } } /** + * + * *
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -1094,6 +1237,8 @@ public Builder setStaticDuration(com.google.type.LocalizedText value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -1101,8 +1246,7 @@ public Builder setStaticDuration(com.google.type.LocalizedText value) {
        *
        * .google.type.LocalizedText static_duration = 3;
        */
-      public Builder setStaticDuration(
-          com.google.type.LocalizedText.Builder builderForValue) {
+      public Builder setStaticDuration(com.google.type.LocalizedText.Builder builderForValue) {
         if (staticDurationBuilder_ == null) {
           staticDuration_ = builderForValue.build();
         } else {
@@ -1113,6 +1257,8 @@ public Builder setStaticDuration(
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -1122,9 +1268,9 @@ public Builder setStaticDuration(
        */
       public Builder mergeStaticDuration(com.google.type.LocalizedText value) {
         if (staticDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000004) != 0) &&
-            staticDuration_ != null &&
-            staticDuration_ != com.google.type.LocalizedText.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000004) != 0)
+              && staticDuration_ != null
+              && staticDuration_ != com.google.type.LocalizedText.getDefaultInstance()) {
             getStaticDurationBuilder().mergeFrom(value);
           } else {
             staticDuration_ = value;
@@ -1137,6 +1283,8 @@ public Builder mergeStaticDuration(com.google.type.LocalizedText value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -1155,6 +1303,8 @@ public Builder clearStaticDuration() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -1168,6 +1318,8 @@ public com.google.type.LocalizedText.Builder getStaticDurationBuilder() {
         return getStaticDurationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -1179,11 +1331,14 @@ public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() {
         if (staticDurationBuilder_ != null) {
           return staticDurationBuilder_.getMessageOrBuilder();
         } else {
-          return staticDuration_ == null ?
-              com.google.type.LocalizedText.getDefaultInstance() : staticDuration_;
+          return staticDuration_ == null
+              ? com.google.type.LocalizedText.getDefaultInstance()
+              : staticDuration_;
         }
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -1192,18 +1347,22 @@ public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() {
        * .google.type.LocalizedText static_duration = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> 
+              com.google.type.LocalizedText,
+              com.google.type.LocalizedText.Builder,
+              com.google.type.LocalizedTextOrBuilder>
           getStaticDurationFieldBuilder() {
         if (staticDurationBuilder_ == null) {
-          staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>(
-                  getStaticDuration(),
-                  getParentForChildren(),
-                  isClean());
+          staticDurationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.type.LocalizedText,
+                  com.google.type.LocalizedText.Builder,
+                  com.google.type.LocalizedTextOrBuilder>(
+                  getStaticDuration(), getParentForChildren(), isClean());
           staticDuration_ = null;
         }
         return staticDurationBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1216,12 +1375,13 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues)
     }
 
     // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues)
-    private static final com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues DEFAULT_INSTANCE;
+    private static final com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues
+        DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues();
     }
@@ -1230,27 +1390,28 @@ public static com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues getDef
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public RouteLegLocalizedValues 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 RouteLegLocalizedValues 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;
@@ -1265,172 +1426,219 @@ public com.google.protobuf.Parser getParserForType() {
     public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
-  public interface StepsOverviewOrBuilder extends
+  public interface StepsOverviewOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLeg.StepsOverview)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Summarized information about different multi-modal segments of
      * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
      * not contain any multi-modal segments in the steps.
      * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ - java.util.List + java.util.List getMultiModalSegmentsList(); /** + * + * *
      * Summarized information about different multi-modal segments of
      * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
      * not contain any multi-modal segments in the steps.
      * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ - com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment getMultiModalSegments(int index); + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment getMultiModalSegments( + int index); /** + * + * *
      * Summarized information about different multi-modal segments of
      * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
      * not contain any multi-modal segments in the steps.
      * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ int getMultiModalSegmentsCount(); /** + * + * *
      * Summarized information about different multi-modal segments of
      * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
      * not contain any multi-modal segments in the steps.
      * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder> getMultiModalSegmentsOrBuilderList(); /** + * + * *
      * Summarized information about different multi-modal segments of
      * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
      * not contain any multi-modal segments in the steps.
      * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ - com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder getMultiModalSegmentsOrBuilder( - int index); + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder + getMultiModalSegmentsOrBuilder(int index); } /** + * + * *
    * Provides overview information about a list of `RouteLegStep`s.
    * 
* * Protobuf type {@code google.maps.routing.v2.RouteLeg.StepsOverview} */ - public static final class StepsOverview extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class StepsOverview extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLeg.StepsOverview) StepsOverviewOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StepsOverview.newBuilder() to construct. private StepsOverview(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StepsOverview() { multiModalSegments_ = 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 StepsOverview(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLeg.StepsOverview.class, com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder.class); + com.google.maps.routing.v2.RouteLeg.StepsOverview.class, + com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder.class); } - public interface MultiModalSegmentOrBuilder extends + public interface MultiModalSegmentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The corresponding `RouteLegStep` index that is the start of a
        * multi-modal segment.
        * 
* * optional int32 step_start_index = 1; + * * @return Whether the stepStartIndex field is set. */ boolean hasStepStartIndex(); /** + * + * *
        * The corresponding `RouteLegStep` index that is the start of a
        * multi-modal segment.
        * 
* * optional int32 step_start_index = 1; + * * @return The stepStartIndex. */ int getStepStartIndex(); /** + * + * *
        * The corresponding `RouteLegStep` index that is the end of a
        * multi-modal segment.
        * 
* * optional int32 step_end_index = 2; + * * @return Whether the stepEndIndex field is set. */ boolean hasStepEndIndex(); /** + * + * *
        * The corresponding `RouteLegStep` index that is the end of a
        * multi-modal segment.
        * 
* * optional int32 step_end_index = 2; + * * @return The stepEndIndex. */ int getStepEndIndex(); /** + * + * *
        * NavigationInstruction for the multi-modal segment.
        * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + * * @return Whether the navigationInstruction field is set. */ boolean hasNavigationInstruction(); /** + * + * *
        * NavigationInstruction for the multi-modal segment.
        * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + * * @return The navigationInstruction. */ com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction(); /** + * + * *
        * NavigationInstruction for the multi-modal segment.
        * 
@@ -1440,25 +1648,33 @@ public interface MultiModalSegmentOrBuilder extends com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationInstructionOrBuilder(); /** + * + * *
        * The travel mode of the multi-modal segment.
        * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * * @return The enum numeric value on the wire for travelMode. */ int getTravelModeValue(); /** + * + * *
        * The travel mode of the multi-modal segment.
        * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * * @return The travelMode. */ com.google.maps.routing.v2.RouteTravelMode getTravelMode(); } /** + * + * *
      * Provides summarized information about different multi-modal segments of
      * the `RouteLeg.steps`. A multi-modal segment is defined as one or more
@@ -1469,49 +1685,54 @@ public interface MultiModalSegmentOrBuilder extends
      *
      * Protobuf type {@code google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment}
      */
-    public static final class MultiModalSegment extends
-        com.google.protobuf.GeneratedMessageV3 implements
+    public static final class MultiModalSegment extends com.google.protobuf.GeneratedMessageV3
+        implements
         // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment)
         MultiModalSegmentOrBuilder {
-    private static final long serialVersionUID = 0L;
+      private static final long serialVersionUID = 0L;
       // Use MultiModalSegment.newBuilder() to construct.
       private MultiModalSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
+
       private MultiModalSegment() {
         travelMode_ = 0;
       }
 
       @java.lang.Override
       @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(
-          UnusedPrivateParameter unused) {
+      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new MultiModalSegment();
       }
 
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.maps.routing.v2.RouteProto
+            .internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_fieldAccessorTable
+        return com.google.maps.routing.v2.RouteProto
+            .internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.class, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder.class);
+                com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.class,
+                com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder.class);
       }
 
       private int bitField0_;
       public static final int STEP_START_INDEX_FIELD_NUMBER = 1;
       private int stepStartIndex_ = 0;
       /**
+       *
+       *
        * 
        * The corresponding `RouteLegStep` index that is the start of a
        * multi-modal segment.
        * 
* * optional int32 step_start_index = 1; + * * @return Whether the stepStartIndex field is set. */ @java.lang.Override @@ -1519,12 +1740,15 @@ public boolean hasStepStartIndex() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * The corresponding `RouteLegStep` index that is the start of a
        * multi-modal segment.
        * 
* * optional int32 step_start_index = 1; + * * @return The stepStartIndex. */ @java.lang.Override @@ -1535,12 +1759,15 @@ public int getStepStartIndex() { public static final int STEP_END_INDEX_FIELD_NUMBER = 2; private int stepEndIndex_ = 0; /** + * + * *
        * The corresponding `RouteLegStep` index that is the end of a
        * multi-modal segment.
        * 
* * optional int32 step_end_index = 2; + * * @return Whether the stepEndIndex field is set. */ @java.lang.Override @@ -1548,12 +1775,15 @@ public boolean hasStepEndIndex() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * The corresponding `RouteLegStep` index that is the end of a
        * multi-modal segment.
        * 
* * optional int32 step_end_index = 2; + * * @return The stepEndIndex. */ @java.lang.Override @@ -1564,11 +1794,14 @@ public int getStepEndIndex() { public static final int NAVIGATION_INSTRUCTION_FIELD_NUMBER = 3; private com.google.maps.routing.v2.NavigationInstruction navigationInstruction_; /** + * + * *
        * NavigationInstruction for the multi-modal segment.
        * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + * * @return Whether the navigationInstruction field is set. */ @java.lang.Override @@ -1576,18 +1809,25 @@ public boolean hasNavigationInstruction() { return navigationInstruction_ != null; } /** + * + * *
        * NavigationInstruction for the multi-modal segment.
        * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + * * @return The navigationInstruction. */ @java.lang.Override public com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction() { - return navigationInstruction_ == null ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + return navigationInstruction_ == null + ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() + : navigationInstruction_; } /** + * + * *
        * NavigationInstruction for the multi-modal segment.
        * 
@@ -1595,37 +1835,50 @@ public com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; */ @java.lang.Override - public com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationInstructionOrBuilder() { - return navigationInstruction_ == null ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + public com.google.maps.routing.v2.NavigationInstructionOrBuilder + getNavigationInstructionOrBuilder() { + return navigationInstruction_ == null + ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() + : navigationInstruction_; } public static final int TRAVEL_MODE_FIELD_NUMBER = 4; private int travelMode_ = 0; /** + * + * *
        * The travel mode of the multi-modal segment.
        * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * * @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 of the multi-modal segment.
        * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * * @return The travelMode. */ - @java.lang.Override public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { - com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + @java.lang.Override + public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { + com.google.maps.routing.v2.RouteTravelMode result = + com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1637,8 +1890,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, stepStartIndex_); } @@ -1648,7 +1900,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (navigationInstruction_ != null) { output.writeMessage(3, getNavigationInstruction()); } - if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + if (travelMode_ + != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(4, travelMode_); } getUnknownFields().writeTo(output); @@ -1661,20 +1914,19 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, stepStartIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, stepStartIndex_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, stepEndIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, stepEndIndex_); } if (navigationInstruction_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getNavigationInstruction()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getNavigationInstruction()); } - if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, travelMode_); + if (travelMode_ + != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, travelMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1684,27 +1936,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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment other = (com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment) obj; + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment other = + (com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment) obj; if (hasStepStartIndex() != other.hasStepStartIndex()) return false; if (hasStepStartIndex()) { - if (getStepStartIndex() - != other.getStepStartIndex()) return false; + if (getStepStartIndex() != other.getStepStartIndex()) return false; } if (hasStepEndIndex() != other.hasStepEndIndex()) return false; if (hasStepEndIndex()) { - if (getStepEndIndex() - != other.getStepEndIndex()) return false; + if (getStepEndIndex() != other.getStepEndIndex()) return false; } if (hasNavigationInstruction() != other.hasNavigationInstruction()) return false; if (hasNavigationInstruction()) { - if (!getNavigationInstruction() - .equals(other.getNavigationInstruction())) return false; + if (!getNavigationInstruction().equals(other.getNavigationInstruction())) return false; } if (travelMode_ != other.travelMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1738,89 +1988,96 @@ public int hashCode() { } public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment + 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment 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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment prototype) { + + public static Builder newBuilder( + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment 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 @@ -1830,6 +2087,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Provides summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. A multi-modal segment is defined as one or more
@@ -1840,33 +2099,35 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment}
        */
-      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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment)
           com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor;
+        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+          return com.google.maps.routing.v2.RouteProto
+              .internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor;
         }
 
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
-          return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_fieldAccessorTable
+          return com.google.maps.routing.v2.RouteProto
+              .internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
-                  com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.class, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder.class);
+                  com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.class,
+                  com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder
+                      .class);
         }
 
-        // Construct using com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.newBuilder()
-        private Builder() {
-
-        }
+        // Construct using
+        // com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.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();
@@ -1883,19 +2144,22 @@ public Builder clear() {
         }
 
         @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor;
+        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+          return com.google.maps.routing.v2.RouteProto
+              .internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor;
         }
 
         @java.lang.Override
-        public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment getDefaultInstanceForType() {
-          return com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.getDefaultInstance();
+        public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment
+            getDefaultInstanceForType() {
+          return com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment
+              .getDefaultInstance();
         }
 
         @java.lang.Override
         public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment build() {
-          com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment result = buildPartial();
+          com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment result =
+              buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(result);
           }
@@ -1904,13 +2168,17 @@ public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment build
 
         @java.lang.Override
         public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment buildPartial() {
-          com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment result = new com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment(this);
-          if (bitField0_ != 0) { buildPartial0(result); }
+          com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment result =
+              new com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment(this);
+          if (bitField0_ != 0) {
+            buildPartial0(result);
+          }
           onBuilt();
           return result;
         }
 
-        private void buildPartial0(com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment result) {
+        private void buildPartial0(
+            com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment result) {
           int from_bitField0_ = bitField0_;
           int to_bitField0_ = 0;
           if (((from_bitField0_ & 0x00000001) != 0)) {
@@ -1922,9 +2190,10 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLeg.StepsOverview.Mul
             to_bitField0_ |= 0x00000002;
           }
           if (((from_bitField0_ & 0x00000004) != 0)) {
-            result.navigationInstruction_ = navigationInstructionBuilder_ == null
-                ? navigationInstruction_
-                : navigationInstructionBuilder_.build();
+            result.navigationInstruction_ =
+                navigationInstructionBuilder_ == null
+                    ? navigationInstruction_
+                    : navigationInstructionBuilder_.build();
           }
           if (((from_bitField0_ & 0x00000008) != 0)) {
             result.travelMode_ = travelMode_;
@@ -1936,46 +2205,54 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLeg.StepsOverview.Mul
         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.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment) {
-            return mergeFrom((com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment)other);
+          if (other
+              instanceof com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment) {
+            return mergeFrom(
+                (com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment) other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
 
-        public Builder mergeFrom(com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment other) {
-          if (other == com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.getDefaultInstance()) return this;
+        public Builder mergeFrom(
+            com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment other) {
+          if (other
+              == com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment
+                  .getDefaultInstance()) return this;
           if (other.hasStepStartIndex()) {
             setStepStartIndex(other.getStepStartIndex());
           }
@@ -2014,34 +2291,38 @@ public Builder mergeFrom(
                 case 0:
                   done = true;
                   break;
-                case 8: {
-                  stepStartIndex_ = input.readInt32();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 8
-                case 16: {
-                  stepEndIndex_ = input.readInt32();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 16
-                case 26: {
-                  input.readMessage(
-                      getNavigationInstructionFieldBuilder().getBuilder(),
-                      extensionRegistry);
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 26
-                case 32: {
-                  travelMode_ = input.readEnum();
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 32
-                default: {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+                case 8:
+                  {
+                    stepStartIndex_ = input.readInt32();
+                    bitField0_ |= 0x00000001;
+                    break;
+                  } // case 8
+                case 16:
+                  {
+                    stepEndIndex_ = input.readInt32();
+                    bitField0_ |= 0x00000002;
+                    break;
+                  } // case 16
+                case 26:
+                  {
+                    input.readMessage(
+                        getNavigationInstructionFieldBuilder().getBuilder(), extensionRegistry);
+                    bitField0_ |= 0x00000004;
+                    break;
+                  } // case 26
+                case 32:
+                  {
+                    travelMode_ = input.readEnum();
+                    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) {
@@ -2051,16 +2332,20 @@ public Builder mergeFrom(
           } // finally
           return this;
         }
+
         private int bitField0_;
 
-        private int stepStartIndex_ ;
+        private int stepStartIndex_;
         /**
+         *
+         *
          * 
          * The corresponding `RouteLegStep` index that is the start of a
          * multi-modal segment.
          * 
* * optional int32 step_start_index = 1; + * * @return Whether the stepStartIndex field is set. */ @java.lang.Override @@ -2068,12 +2353,15 @@ public boolean hasStepStartIndex() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
          * The corresponding `RouteLegStep` index that is the start of a
          * multi-modal segment.
          * 
* * optional int32 step_start_index = 1; + * * @return The stepStartIndex. */ @java.lang.Override @@ -2081,12 +2369,15 @@ public int getStepStartIndex() { return stepStartIndex_; } /** + * + * *
          * The corresponding `RouteLegStep` index that is the start of a
          * multi-modal segment.
          * 
* * optional int32 step_start_index = 1; + * * @param value The stepStartIndex to set. * @return This builder for chaining. */ @@ -2098,12 +2389,15 @@ public Builder setStepStartIndex(int value) { return this; } /** + * + * *
          * The corresponding `RouteLegStep` index that is the start of a
          * multi-modal segment.
          * 
* * optional int32 step_start_index = 1; + * * @return This builder for chaining. */ public Builder clearStepStartIndex() { @@ -2113,14 +2407,17 @@ public Builder clearStepStartIndex() { return this; } - private int stepEndIndex_ ; + private int stepEndIndex_; /** + * + * *
          * The corresponding `RouteLegStep` index that is the end of a
          * multi-modal segment.
          * 
* * optional int32 step_end_index = 2; + * * @return Whether the stepEndIndex field is set. */ @java.lang.Override @@ -2128,12 +2425,15 @@ public boolean hasStepEndIndex() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
          * The corresponding `RouteLegStep` index that is the end of a
          * multi-modal segment.
          * 
* * optional int32 step_end_index = 2; + * * @return The stepEndIndex. */ @java.lang.Override @@ -2141,12 +2441,15 @@ public int getStepEndIndex() { return stepEndIndex_; } /** + * + * *
          * The corresponding `RouteLegStep` index that is the end of a
          * multi-modal segment.
          * 
* * optional int32 step_end_index = 2; + * * @param value The stepEndIndex to set. * @return This builder for chaining. */ @@ -2158,12 +2461,15 @@ public Builder setStepEndIndex(int value) { return this; } /** + * + * *
          * The corresponding `RouteLegStep` index that is the end of a
          * multi-modal segment.
          * 
* * optional int32 step_end_index = 2; + * * @return This builder for chaining. */ public Builder clearStepEndIndex() { @@ -2175,41 +2481,55 @@ public Builder clearStepEndIndex() { private com.google.maps.routing.v2.NavigationInstruction navigationInstruction_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.NavigationInstruction, com.google.maps.routing.v2.NavigationInstruction.Builder, com.google.maps.routing.v2.NavigationInstructionOrBuilder> navigationInstructionBuilder_; + com.google.maps.routing.v2.NavigationInstruction, + com.google.maps.routing.v2.NavigationInstruction.Builder, + com.google.maps.routing.v2.NavigationInstructionOrBuilder> + navigationInstructionBuilder_; /** + * + * *
          * NavigationInstruction for the multi-modal segment.
          * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + * * @return Whether the navigationInstruction field is set. */ public boolean hasNavigationInstruction() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
          * NavigationInstruction for the multi-modal segment.
          * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; + * * @return The navigationInstruction. */ public com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction() { if (navigationInstructionBuilder_ == null) { - return navigationInstruction_ == null ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + return navigationInstruction_ == null + ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() + : navigationInstruction_; } else { return navigationInstructionBuilder_.getMessage(); } } /** + * + * *
          * NavigationInstruction for the multi-modal segment.
          * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; */ - public Builder setNavigationInstruction(com.google.maps.routing.v2.NavigationInstruction value) { + public Builder setNavigationInstruction( + com.google.maps.routing.v2.NavigationInstruction value) { if (navigationInstructionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2223,6 +2543,8 @@ public Builder setNavigationInstruction(com.google.maps.routing.v2.NavigationIns return this; } /** + * + * *
          * NavigationInstruction for the multi-modal segment.
          * 
@@ -2241,17 +2563,21 @@ public Builder setNavigationInstruction( return this; } /** + * + * *
          * NavigationInstruction for the multi-modal segment.
          * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; */ - public Builder mergeNavigationInstruction(com.google.maps.routing.v2.NavigationInstruction value) { + public Builder mergeNavigationInstruction( + com.google.maps.routing.v2.NavigationInstruction value) { if (navigationInstructionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - navigationInstruction_ != null && - navigationInstruction_ != com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && navigationInstruction_ != null + && navigationInstruction_ + != com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance()) { getNavigationInstructionBuilder().mergeFrom(value); } else { navigationInstruction_ = value; @@ -2264,6 +2590,8 @@ public Builder mergeNavigationInstruction(com.google.maps.routing.v2.NavigationI return this; } /** + * + * *
          * NavigationInstruction for the multi-modal segment.
          * 
@@ -2281,33 +2609,42 @@ public Builder clearNavigationInstruction() { return this; } /** + * + * *
          * NavigationInstruction for the multi-modal segment.
          * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; */ - public com.google.maps.routing.v2.NavigationInstruction.Builder getNavigationInstructionBuilder() { + public com.google.maps.routing.v2.NavigationInstruction.Builder + getNavigationInstructionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getNavigationInstructionFieldBuilder().getBuilder(); } /** + * + * *
          * NavigationInstruction for the multi-modal segment.
          * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; */ - public com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationInstructionOrBuilder() { + public com.google.maps.routing.v2.NavigationInstructionOrBuilder + getNavigationInstructionOrBuilder() { if (navigationInstructionBuilder_ != null) { return navigationInstructionBuilder_.getMessageOrBuilder(); } else { - return navigationInstruction_ == null ? - com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + return navigationInstruction_ == null + ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() + : navigationInstruction_; } } /** + * + * *
          * NavigationInstruction for the multi-modal segment.
          * 
@@ -2315,14 +2652,17 @@ public com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationIn * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.NavigationInstruction, com.google.maps.routing.v2.NavigationInstruction.Builder, com.google.maps.routing.v2.NavigationInstructionOrBuilder> + com.google.maps.routing.v2.NavigationInstruction, + com.google.maps.routing.v2.NavigationInstruction.Builder, + com.google.maps.routing.v2.NavigationInstructionOrBuilder> getNavigationInstructionFieldBuilder() { if (navigationInstructionBuilder_ == null) { - navigationInstructionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.NavigationInstruction, com.google.maps.routing.v2.NavigationInstruction.Builder, com.google.maps.routing.v2.NavigationInstructionOrBuilder>( - getNavigationInstruction(), - getParentForChildren(), - isClean()); + navigationInstructionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.NavigationInstruction, + com.google.maps.routing.v2.NavigationInstruction.Builder, + com.google.maps.routing.v2.NavigationInstructionOrBuilder>( + getNavigationInstruction(), getParentForChildren(), isClean()); navigationInstruction_ = null; } return navigationInstructionBuilder_; @@ -2330,22 +2670,29 @@ public com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationIn private int travelMode_ = 0; /** + * + * *
          * The travel mode of the multi-modal segment.
          * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * * @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 of the multi-modal segment.
          * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * * @param value The enum numeric value on the wire for travelMode to set. * @return This builder for chaining. */ @@ -2356,24 +2703,31 @@ public Builder setTravelModeValue(int value) { return this; } /** + * + * *
          * The travel mode of the multi-modal segment.
          * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * * @return The travelMode. */ @java.lang.Override public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { - com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + com.google.maps.routing.v2.RouteTravelMode result = + com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; } /** + * + * *
          * The travel mode of the multi-modal segment.
          * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * * @param value The travelMode to set. * @return This builder for chaining. */ @@ -2387,11 +2741,14 @@ public Builder setTravelMode(com.google.maps.routing.v2.RouteTravelMode value) { return this; } /** + * + * *
          * The travel mode of the multi-modal segment.
          * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 4; + * * @return This builder for chaining. */ public Builder clearTravelMode() { @@ -2400,6 +2757,7 @@ public Builder clearTravelMode() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2412,41 +2770,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment) - private static final com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment DEFAULT_INSTANCE; + private static final com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment(); + DEFAULT_INSTANCE = + new com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment(); } - public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment getDefaultInstance() { + public static com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiModalSegment 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 MultiModalSegment 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; @@ -2458,84 +2820,110 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment getDefaultInstanceForType() { + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int MULTI_MODAL_SEGMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List multiModalSegments_; + private java.util.List + multiModalSegments_; /** + * + * *
      * Summarized information about different multi-modal segments of
      * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
      * not contain any multi-modal segments in the steps.
      * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ @java.lang.Override - public java.util.List getMultiModalSegmentsList() { + public java.util.List + getMultiModalSegmentsList() { return multiModalSegments_; } /** + * + * *
      * Summarized information about different multi-modal segments of
      * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
      * not contain any multi-modal segments in the steps.
      * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder> getMultiModalSegmentsOrBuilderList() { return multiModalSegments_; } /** + * + * *
      * Summarized information about different multi-modal segments of
      * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
      * not contain any multi-modal segments in the steps.
      * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ @java.lang.Override public int getMultiModalSegmentsCount() { return multiModalSegments_.size(); } /** + * + * *
      * Summarized information about different multi-modal segments of
      * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
      * not contain any multi-modal segments in the steps.
      * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ @java.lang.Override - public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment getMultiModalSegments(int index) { + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment + getMultiModalSegments(int index) { return multiModalSegments_.get(index); } /** + * + * *
      * Summarized information about different multi-modal segments of
      * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
      * not contain any multi-modal segments in the steps.
      * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ @java.lang.Override - public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder getMultiModalSegmentsOrBuilder( - int index) { + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder + getMultiModalSegmentsOrBuilder(int index) { return multiModalSegments_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2547,8 +2935,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 < multiModalSegments_.size(); i++) { output.writeMessage(1, multiModalSegments_.get(i)); } @@ -2562,8 +2949,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < multiModalSegments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, multiModalSegments_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, multiModalSegments_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2573,15 +2960,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.maps.routing.v2.RouteLeg.StepsOverview)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteLeg.StepsOverview other = (com.google.maps.routing.v2.RouteLeg.StepsOverview) obj; + com.google.maps.routing.v2.RouteLeg.StepsOverview other = + (com.google.maps.routing.v2.RouteLeg.StepsOverview) obj; - if (!getMultiModalSegmentsList() - .equals(other.getMultiModalSegmentsList())) return false; + if (!getMultiModalSegmentsList().equals(other.getMultiModalSegmentsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2603,89 +2990,93 @@ public int hashCode() { } public static com.google.maps.routing.v2.RouteLeg.StepsOverview 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.maps.routing.v2.RouteLeg.StepsOverview 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.maps.routing.v2.RouteLeg.StepsOverview parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview 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.maps.routing.v2.RouteLeg.StepsOverview parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview 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.maps.routing.v2.RouteLeg.StepsOverview parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.maps.routing.v2.RouteLeg.StepsOverview parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.maps.routing.v2.RouteLeg.StepsOverview 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.maps.routing.v2.RouteLeg.StepsOverview parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteLeg.StepsOverview parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.RouteLeg.StepsOverview 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.maps.routing.v2.RouteLeg.StepsOverview 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.maps.routing.v2.RouteLeg.StepsOverview 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.maps.routing.v2.RouteLeg.StepsOverview 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 @@ -2695,39 +3086,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Provides overview information about a list of `RouteLegStep`s.
      * 
* * Protobuf type {@code google.maps.routing.v2.RouteLeg.StepsOverview} */ - 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.maps.routing.v2.RouteLeg.StepsOverview) com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLeg.StepsOverview.class, com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder.class); + com.google.maps.routing.v2.RouteLeg.StepsOverview.class, + com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder.class); } // Construct using com.google.maps.routing.v2.RouteLeg.StepsOverview.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(); @@ -2743,9 +3136,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor; } @java.lang.Override @@ -2764,14 +3157,18 @@ public com.google.maps.routing.v2.RouteLeg.StepsOverview build() { @java.lang.Override public com.google.maps.routing.v2.RouteLeg.StepsOverview buildPartial() { - com.google.maps.routing.v2.RouteLeg.StepsOverview result = new com.google.maps.routing.v2.RouteLeg.StepsOverview(this); + com.google.maps.routing.v2.RouteLeg.StepsOverview result = + new com.google.maps.routing.v2.RouteLeg.StepsOverview(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.maps.routing.v2.RouteLeg.StepsOverview result) { + private void buildPartialRepeatedFields( + com.google.maps.routing.v2.RouteLeg.StepsOverview result) { if (multiModalSegmentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { multiModalSegments_ = java.util.Collections.unmodifiableList(multiModalSegments_); @@ -2791,38 +3188,41 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLeg.StepsOverview 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) { + 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.maps.routing.v2.RouteLeg.StepsOverview) { - return mergeFrom((com.google.maps.routing.v2.RouteLeg.StepsOverview)other); + return mergeFrom((com.google.maps.routing.v2.RouteLeg.StepsOverview) other); } else { super.mergeFrom(other); return this; @@ -2830,7 +3230,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.maps.routing.v2.RouteLeg.StepsOverview other) { - if (other == com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance()) return this; + if (other == com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance()) + return this; if (multiModalSegmentsBuilder_ == null) { if (!other.multiModalSegments_.isEmpty()) { if (multiModalSegments_.isEmpty()) { @@ -2849,9 +3250,10 @@ public Builder mergeFrom(com.google.maps.routing.v2.RouteLeg.StepsOverview other multiModalSegmentsBuilder_ = null; multiModalSegments_ = other.multiModalSegments_; bitField0_ = (bitField0_ & ~0x00000001); - multiModalSegmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMultiModalSegmentsFieldBuilder() : null; + multiModalSegmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMultiModalSegmentsFieldBuilder() + : null; } else { multiModalSegmentsBuilder_.addAllMessages(other.multiModalSegments_); } @@ -2883,25 +3285,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment m = - input.readMessage( - com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.parser(), - extensionRegistry); - if (multiModalSegmentsBuilder_ == null) { - ensureMultiModalSegmentsIsMutable(); - multiModalSegments_.add(m); - } else { - multiModalSegmentsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment m = + input.readMessage( + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment + .parser(), + extensionRegistry); + if (multiModalSegmentsBuilder_ == null) { + ensureMultiModalSegmentsIsMutable(); + multiModalSegments_.add(m); + } else { + multiModalSegmentsBuilder_.addMessage(m); + } + 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) { @@ -2911,30 +3316,43 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List multiModalSegments_ = - java.util.Collections.emptyList(); + private java.util.List + multiModalSegments_ = java.util.Collections.emptyList(); + private void ensureMultiModalSegmentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - multiModalSegments_ = new java.util.ArrayList(multiModalSegments_); + multiModalSegments_ = + new java.util.ArrayList< + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment>( + multiModalSegments_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder> multiModalSegmentsBuilder_; + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment, + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder, + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder> + multiModalSegmentsBuilder_; /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ - public java.util.List getMultiModalSegmentsList() { + public java.util.List + getMultiModalSegmentsList() { if (multiModalSegmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(multiModalSegments_); } else { @@ -2942,13 +3360,17 @@ public java.util.List * Summarized information about different multi-modal segments of * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does * not contain any multi-modal segments in the steps. *
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ public int getMultiModalSegmentsCount() { if (multiModalSegmentsBuilder_ == null) { @@ -2958,15 +3380,20 @@ public int getMultiModalSegmentsCount() { } } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ - public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment getMultiModalSegments(int index) { + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment + getMultiModalSegments(int index) { if (multiModalSegmentsBuilder_ == null) { return multiModalSegments_.get(index); } else { @@ -2974,13 +3401,17 @@ public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment getMu } } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ public Builder setMultiModalSegments( int index, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment value) { @@ -2997,16 +3428,22 @@ public Builder setMultiModalSegments( return this; } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ public Builder setMultiModalSegments( - int index, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder builderForValue) { + int index, + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder + builderForValue) { if (multiModalSegmentsBuilder_ == null) { ensureMultiModalSegmentsIsMutable(); multiModalSegments_.set(index, builderForValue.build()); @@ -3017,15 +3454,20 @@ public Builder setMultiModalSegments( return this; } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ - public Builder addMultiModalSegments(com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment value) { + public Builder addMultiModalSegments( + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment value) { if (multiModalSegmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3039,13 +3481,17 @@ public Builder addMultiModalSegments(com.google.maps.routing.v2.RouteLeg.StepsOv return this; } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ public Builder addMultiModalSegments( int index, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment value) { @@ -3062,16 +3508,21 @@ public Builder addMultiModalSegments( return this; } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ public Builder addMultiModalSegments( - com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder builderForValue) { + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder + builderForValue) { if (multiModalSegmentsBuilder_ == null) { ensureMultiModalSegmentsIsMutable(); multiModalSegments_.add(builderForValue.build()); @@ -3082,16 +3533,22 @@ public Builder addMultiModalSegments( return this; } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ public Builder addMultiModalSegments( - int index, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder builderForValue) { + int index, + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder + builderForValue) { if (multiModalSegmentsBuilder_ == null) { ensureMultiModalSegmentsIsMutable(); multiModalSegments_.add(index, builderForValue.build()); @@ -3102,20 +3559,25 @@ public Builder addMultiModalSegments( return this; } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ public Builder addAllMultiModalSegments( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment> + values) { if (multiModalSegmentsBuilder_ == null) { ensureMultiModalSegmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, multiModalSegments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, multiModalSegments_); onChanged(); } else { multiModalSegmentsBuilder_.addAllMessages(values); @@ -3123,13 +3585,17 @@ public Builder addAllMultiModalSegments( return this; } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ public Builder clearMultiModalSegments() { if (multiModalSegmentsBuilder_ == null) { @@ -3142,13 +3608,17 @@ public Builder clearMultiModalSegments() { return this; } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ public Builder removeMultiModalSegments(int index) { if (multiModalSegmentsBuilder_ == null) { @@ -3161,45 +3631,60 @@ public Builder removeMultiModalSegments(int index) { return this; } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ - public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder getMultiModalSegmentsBuilder( - int index) { + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder + getMultiModalSegmentsBuilder(int index) { return getMultiModalSegmentsFieldBuilder().getBuilder(index); } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ - public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder getMultiModalSegmentsOrBuilder( - int index) { + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder + getMultiModalSegmentsOrBuilder(int index) { if (multiModalSegmentsBuilder_ == null) { - return multiModalSegments_.get(index); } else { + return multiModalSegments_.get(index); + } else { return multiModalSegmentsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ - public java.util.List - getMultiModalSegmentsOrBuilderList() { + public java.util.List< + ? extends + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder> + getMultiModalSegmentsOrBuilderList() { if (multiModalSegmentsBuilder_ != null) { return multiModalSegmentsBuilder_.getMessageOrBuilderList(); } else { @@ -3207,51 +3692,76 @@ public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuil } } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ - public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder addMultiModalSegmentsBuilder() { - return getMultiModalSegmentsFieldBuilder().addBuilder( - com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.getDefaultInstance()); + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder + addMultiModalSegmentsBuilder() { + return getMultiModalSegmentsFieldBuilder() + .addBuilder( + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment + .getDefaultInstance()); } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ - public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder addMultiModalSegmentsBuilder( - int index) { - return getMultiModalSegmentsFieldBuilder().addBuilder( - index, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.getDefaultInstance()); + public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder + addMultiModalSegmentsBuilder(int index) { + return getMultiModalSegmentsFieldBuilder() + .addBuilder( + index, + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment + .getDefaultInstance()); } /** + * + * *
        * Summarized information about different multi-modal segments of
        * the `RouteLeg.steps`. This field is not populated if the `RouteLeg` does
        * not contain any multi-modal segments in the steps.
        * 
* - * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * + * repeated .google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment multi_modal_segments = 1; + * */ - public java.util.List - getMultiModalSegmentsBuilderList() { + public java.util.List< + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder> + getMultiModalSegmentsBuilderList() { return getMultiModalSegmentsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder> + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment, + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder, + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder> getMultiModalSegmentsFieldBuilder() { if (multiModalSegmentsBuilder_ == null) { - multiModalSegmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder, com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder>( + multiModalSegmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment, + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Builder, + com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegmentOrBuilder>( multiModalSegments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3260,6 +3770,7 @@ public com.google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.Build } return multiModalSegmentsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3272,12 +3783,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteLeg.StepsOverview) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLeg.StepsOverview) private static final com.google.maps.routing.v2.RouteLeg.StepsOverview DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLeg.StepsOverview(); } @@ -3286,27 +3797,28 @@ public static com.google.maps.routing.v2.RouteLeg.StepsOverview getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StepsOverview 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 StepsOverview 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; @@ -3321,17 +3833,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.RouteLeg.StepsOverview getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int DISTANCE_METERS_FIELD_NUMBER = 1; private int distanceMeters_ = 0; /** + * + * *
    * The travel distance of the route leg, in meters.
    * 
* * int32 distance_meters = 1; + * * @return The distanceMeters. */ @java.lang.Override @@ -3342,6 +3856,8 @@ public int getDistanceMeters() { public static final int DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration duration_; /** + * + * *
    * The length of time needed to navigate the leg. If the `route_preference`
    * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -3351,6 +3867,7 @@ public int getDistanceMeters() {
    * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -3358,6 +3875,8 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
    * The length of time needed to navigate the leg. If the `route_preference`
    * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -3367,6 +3886,7 @@ public boolean hasDuration() {
    * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ @java.lang.Override @@ -3374,6 +3894,8 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
    * The length of time needed to navigate the leg. If the `route_preference`
    * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -3392,12 +3914,15 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
   public static final int STATIC_DURATION_FIELD_NUMBER = 3;
   private com.google.protobuf.Duration staticDuration_;
   /**
+   *
+   *
    * 
    * The duration of travel through the leg, calculated without taking
    * traffic conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 3; + * * @return Whether the staticDuration field is set. */ @java.lang.Override @@ -3405,19 +3930,26 @@ public boolean hasStaticDuration() { return staticDuration_ != null; } /** + * + * *
    * The duration of travel through the leg, calculated without taking
    * traffic conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 3; + * * @return The staticDuration. */ @java.lang.Override public com.google.protobuf.Duration getStaticDuration() { - return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : staticDuration_; } /** + * + * *
    * The duration of travel through the leg, calculated without taking
    * traffic conditions into consideration.
@@ -3427,18 +3959,23 @@ public com.google.protobuf.Duration getStaticDuration() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
-    return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_;
+    return staticDuration_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : staticDuration_;
   }
 
   public static final int POLYLINE_FIELD_NUMBER = 4;
   private com.google.maps.routing.v2.Polyline polyline_;
   /**
+   *
+   *
    * 
    * The overall polyline for this leg that includes each `step`'s
    * polyline.
    * 
* * .google.maps.routing.v2.Polyline polyline = 4; + * * @return Whether the polyline field is set. */ @java.lang.Override @@ -3446,12 +3983,15 @@ public boolean hasPolyline() { return polyline_ != null; } /** + * + * *
    * The overall polyline for this leg that includes each `step`'s
    * polyline.
    * 
* * .google.maps.routing.v2.Polyline polyline = 4; + * * @return The polyline. */ @java.lang.Override @@ -3459,6 +3999,8 @@ public com.google.maps.routing.v2.Polyline getPolyline() { return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; } /** + * + * *
    * The overall polyline for this leg that includes each `step`'s
    * polyline.
@@ -3474,6 +4016,8 @@ public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() {
   public static final int START_LOCATION_FIELD_NUMBER = 5;
   private com.google.maps.routing.v2.Location startLocation_;
   /**
+   *
+   *
    * 
    * The start location of this leg. This location might be different from the
    * provided `origin`. For example, when the provided `origin` is not near a
@@ -3481,6 +4025,7 @@ public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() {
    * 
* * .google.maps.routing.v2.Location start_location = 5; + * * @return Whether the startLocation field is set. */ @java.lang.Override @@ -3488,6 +4033,8 @@ public boolean hasStartLocation() { return startLocation_ != null; } /** + * + * *
    * The start location of this leg. This location might be different from the
    * provided `origin`. For example, when the provided `origin` is not near a
@@ -3495,13 +4042,18 @@ public boolean hasStartLocation() {
    * 
* * .google.maps.routing.v2.Location start_location = 5; + * * @return The startLocation. */ @java.lang.Override public com.google.maps.routing.v2.Location getStartLocation() { - return startLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_; + return startLocation_ == null + ? com.google.maps.routing.v2.Location.getDefaultInstance() + : startLocation_; } /** + * + * *
    * The start location of this leg. This location might be different from the
    * provided `origin`. For example, when the provided `origin` is not near a
@@ -3512,12 +4064,16 @@ public com.google.maps.routing.v2.Location getStartLocation() {
    */
   @java.lang.Override
   public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder() {
-    return startLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_;
+    return startLocation_ == null
+        ? com.google.maps.routing.v2.Location.getDefaultInstance()
+        : startLocation_;
   }
 
   public static final int END_LOCATION_FIELD_NUMBER = 6;
   private com.google.maps.routing.v2.Location endLocation_;
   /**
+   *
+   *
    * 
    * The end location of this leg. This location might be different from the
    * provided `destination`. For example, when the provided `destination` is not
@@ -3525,6 +4081,7 @@ public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder()
    * 
* * .google.maps.routing.v2.Location end_location = 6; + * * @return Whether the endLocation field is set. */ @java.lang.Override @@ -3532,6 +4089,8 @@ public boolean hasEndLocation() { return endLocation_ != null; } /** + * + * *
    * The end location of this leg. This location might be different from the
    * provided `destination`. For example, when the provided `destination` is not
@@ -3539,13 +4098,18 @@ public boolean hasEndLocation() {
    * 
* * .google.maps.routing.v2.Location end_location = 6; + * * @return The endLocation. */ @java.lang.Override public com.google.maps.routing.v2.Location getEndLocation() { - return endLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_; + return endLocation_ == null + ? com.google.maps.routing.v2.Location.getDefaultInstance() + : endLocation_; } /** + * + * *
    * The end location of this leg. This location might be different from the
    * provided `destination`. For example, when the provided `destination` is not
@@ -3556,13 +4120,18 @@ public com.google.maps.routing.v2.Location getEndLocation() {
    */
   @java.lang.Override
   public com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder() {
-    return endLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_;
+    return endLocation_ == null
+        ? com.google.maps.routing.v2.Location.getDefaultInstance()
+        : endLocation_;
   }
 
   public static final int STEPS_FIELD_NUMBER = 7;
+
   @SuppressWarnings("serial")
   private java.util.List steps_;
   /**
+   *
+   *
    * 
    * An array of steps denoting segments within this leg. Each step represents
    * one navigation instruction.
@@ -3575,6 +4144,8 @@ public java.util.List getStepsList() {
     return steps_;
   }
   /**
+   *
+   *
    * 
    * An array of steps denoting segments within this leg. Each step represents
    * one navigation instruction.
@@ -3583,11 +4154,13 @@ public java.util.List getStepsList() {
    * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getStepsOrBuilderList() {
     return steps_;
   }
   /**
+   *
+   *
    * 
    * An array of steps denoting segments within this leg. Each step represents
    * one navigation instruction.
@@ -3600,6 +4173,8 @@ public int getStepsCount() {
     return steps_.size();
   }
   /**
+   *
+   *
    * 
    * An array of steps denoting segments within this leg. Each step represents
    * one navigation instruction.
@@ -3612,6 +4187,8 @@ public com.google.maps.routing.v2.RouteLegStep getSteps(int index) {
     return steps_.get(index);
   }
   /**
+   *
+   *
    * 
    * An array of steps denoting segments within this leg. Each step represents
    * one navigation instruction.
@@ -3620,20 +4197,22 @@ public com.google.maps.routing.v2.RouteLegStep getSteps(int index) {
    * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
    */
   @java.lang.Override
-  public com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder(
-      int index) {
+  public com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder(int index) {
     return steps_.get(index);
   }
 
   public static final int TRAVEL_ADVISORY_FIELD_NUMBER = 8;
   private com.google.maps.routing.v2.RouteLegTravelAdvisory travelAdvisory_;
   /**
+   *
+   *
    * 
    * Contains the additional information that the user should be informed
    * about, such as possible traffic zone restrictions, on a route leg.
    * 
* * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + * * @return Whether the travelAdvisory field is set. */ @java.lang.Override @@ -3641,19 +4220,26 @@ public boolean hasTravelAdvisory() { return travelAdvisory_ != null; } /** + * + * *
    * Contains the additional information that the user should be informed
    * about, such as possible traffic zone restrictions, on a route leg.
    * 
* * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + * * @return The travelAdvisory. */ @java.lang.Override public com.google.maps.routing.v2.RouteLegTravelAdvisory getTravelAdvisory() { - return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance() : travelAdvisory_; + return travelAdvisory_ == null + ? com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance() + : travelAdvisory_; } /** + * + * *
    * Contains the additional information that the user should be informed
    * about, such as possible traffic zone restrictions, on a route leg.
@@ -3663,17 +4249,22 @@ public com.google.maps.routing.v2.RouteLegTravelAdvisory getTravelAdvisory() {
    */
   @java.lang.Override
   public com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() {
-    return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance() : travelAdvisory_;
+    return travelAdvisory_ == null
+        ? com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance()
+        : travelAdvisory_;
   }
 
   public static final int LOCALIZED_VALUES_FIELD_NUMBER = 9;
   private com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localizedValues_;
   /**
+   *
+   *
    * 
    * Text representations of properties of the `RouteLeg`.
    * 
* * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + * * @return Whether the localizedValues field is set. */ @java.lang.Override @@ -3681,18 +4272,25 @@ public boolean hasLocalizedValues() { return localizedValues_ != null; } /** + * + * *
    * Text representations of properties of the `RouteLeg`.
    * 
* * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + * * @return The localizedValues. */ @java.lang.Override public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues getLocalizedValues() { - return localizedValues_ == null ? com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance() : localizedValues_; + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance() + : localizedValues_; } /** + * + * *
    * Text representations of properties of the `RouteLeg`.
    * 
@@ -3700,19 +4298,25 @@ public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues getLocalizedV * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; */ @java.lang.Override - public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { - return localizedValues_ == null ? com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance() : localizedValues_; + public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder + getLocalizedValuesOrBuilder() { + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance() + : localizedValues_; } public static final int STEPS_OVERVIEW_FIELD_NUMBER = 10; private com.google.maps.routing.v2.RouteLeg.StepsOverview stepsOverview_; /** + * + * *
    * Overview information about the steps in this `RouteLeg`. This field is only
    * populated for TRANSIT routes.
    * 
* * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + * * @return Whether the stepsOverview field is set. */ @java.lang.Override @@ -3720,19 +4324,26 @@ public boolean hasStepsOverview() { return stepsOverview_ != null; } /** + * + * *
    * Overview information about the steps in this `RouteLeg`. This field is only
    * populated for TRANSIT routes.
    * 
* * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + * * @return The stepsOverview. */ @java.lang.Override public com.google.maps.routing.v2.RouteLeg.StepsOverview getStepsOverview() { - return stepsOverview_ == null ? com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance() : stepsOverview_; + return stepsOverview_ == null + ? com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance() + : stepsOverview_; } /** + * + * *
    * Overview information about the steps in this `RouteLeg`. This field is only
    * populated for TRANSIT routes.
@@ -3742,10 +4353,13 @@ public com.google.maps.routing.v2.RouteLeg.StepsOverview getStepsOverview() {
    */
   @java.lang.Override
   public com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder getStepsOverviewOrBuilder() {
-    return stepsOverview_ == null ? com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance() : stepsOverview_;
+    return stepsOverview_ == null
+        ? com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance()
+        : stepsOverview_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -3757,8 +4371,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 (distanceMeters_ != 0) {
       output.writeInt32(1, distanceMeters_);
     }
@@ -3799,44 +4412,34 @@ public int getSerializedSize() {
 
     size = 0;
     if (distanceMeters_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(1, distanceMeters_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, distanceMeters_);
     }
     if (duration_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getDuration());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration());
     }
     if (staticDuration_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getStaticDuration());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStaticDuration());
     }
     if (polyline_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getPolyline());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPolyline());
     }
     if (startLocation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getStartLocation());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStartLocation());
     }
     if (endLocation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getEndLocation());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEndLocation());
     }
     for (int i = 0; i < steps_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, steps_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, steps_.get(i));
     }
     if (travelAdvisory_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getTravelAdvisory());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTravelAdvisory());
     }
     if (localizedValues_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, getLocalizedValues());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getLocalizedValues());
     }
     if (stepsOverview_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(10, getStepsOverview());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getStepsOverview());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -3846,56 +4449,46 @@ 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.maps.routing.v2.RouteLeg)) {
       return super.equals(obj);
     }
     com.google.maps.routing.v2.RouteLeg other = (com.google.maps.routing.v2.RouteLeg) obj;
 
-    if (getDistanceMeters()
-        != other.getDistanceMeters()) return false;
+    if (getDistanceMeters() != other.getDistanceMeters()) 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 (hasStaticDuration() != other.hasStaticDuration()) return false;
     if (hasStaticDuration()) {
-      if (!getStaticDuration()
-          .equals(other.getStaticDuration())) return false;
+      if (!getStaticDuration().equals(other.getStaticDuration())) return false;
     }
     if (hasPolyline() != other.hasPolyline()) return false;
     if (hasPolyline()) {
-      if (!getPolyline()
-          .equals(other.getPolyline())) return false;
+      if (!getPolyline().equals(other.getPolyline())) 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 (hasEndLocation() != other.hasEndLocation()) return false;
     if (hasEndLocation()) {
-      if (!getEndLocation()
-          .equals(other.getEndLocation())) return false;
+      if (!getEndLocation().equals(other.getEndLocation())) return false;
     }
-    if (!getStepsList()
-        .equals(other.getStepsList())) return false;
+    if (!getStepsList().equals(other.getStepsList())) return false;
     if (hasTravelAdvisory() != other.hasTravelAdvisory()) return false;
     if (hasTravelAdvisory()) {
-      if (!getTravelAdvisory()
-          .equals(other.getTravelAdvisory())) return false;
+      if (!getTravelAdvisory().equals(other.getTravelAdvisory())) return false;
     }
     if (hasLocalizedValues() != other.hasLocalizedValues()) return false;
     if (hasLocalizedValues()) {
-      if (!getLocalizedValues()
-          .equals(other.getLocalizedValues())) return false;
+      if (!getLocalizedValues().equals(other.getLocalizedValues())) return false;
     }
     if (hasStepsOverview() != other.hasStepsOverview()) return false;
     if (hasStepsOverview()) {
-      if (!getStepsOverview()
-          .equals(other.getStepsOverview())) return false;
+      if (!getStepsOverview().equals(other.getStepsOverview())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -3951,132 +4544,135 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.maps.routing.v2.RouteLeg parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.maps.routing.v2.RouteLeg parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.maps.routing.v2.RouteLeg parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg 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;
   }
   /**
+   *
+   *
    * 
    * Contains a segment between non-`via` waypoints.
    * 
* * Protobuf type {@code google.maps.routing.v2.RouteLeg} */ - 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.maps.routing.v2.RouteLeg) com.google.maps.routing.v2.RouteLegOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLeg_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLeg.class, com.google.maps.routing.v2.RouteLeg.Builder.class); + com.google.maps.routing.v2.RouteLeg.class, + com.google.maps.routing.v2.RouteLeg.Builder.class); } // Construct using com.google.maps.routing.v2.RouteLeg.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(); @@ -4133,9 +4729,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLeg_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLeg_descriptor; } @java.lang.Override @@ -4156,7 +4752,9 @@ public com.google.maps.routing.v2.RouteLeg build() { public com.google.maps.routing.v2.RouteLeg buildPartial() { com.google.maps.routing.v2.RouteLeg result = new com.google.maps.routing.v2.RouteLeg(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -4179,44 +4777,34 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLeg result) { result.distanceMeters_ = distanceMeters_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.duration_ = durationBuilder_ == null - ? duration_ - : durationBuilder_.build(); + result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.staticDuration_ = staticDurationBuilder_ == null - ? staticDuration_ - : staticDurationBuilder_.build(); + result.staticDuration_ = + staticDurationBuilder_ == null ? staticDuration_ : staticDurationBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.polyline_ = polylineBuilder_ == null - ? polyline_ - : polylineBuilder_.build(); + result.polyline_ = polylineBuilder_ == null ? polyline_ : polylineBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.startLocation_ = startLocationBuilder_ == null - ? startLocation_ - : startLocationBuilder_.build(); + result.startLocation_ = + startLocationBuilder_ == null ? startLocation_ : startLocationBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.endLocation_ = endLocationBuilder_ == null - ? endLocation_ - : endLocationBuilder_.build(); + result.endLocation_ = + endLocationBuilder_ == null ? endLocation_ : endLocationBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.travelAdvisory_ = travelAdvisoryBuilder_ == null - ? travelAdvisory_ - : travelAdvisoryBuilder_.build(); + result.travelAdvisory_ = + travelAdvisoryBuilder_ == null ? travelAdvisory_ : travelAdvisoryBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.localizedValues_ = localizedValuesBuilder_ == null - ? localizedValues_ - : localizedValuesBuilder_.build(); + result.localizedValues_ = + localizedValuesBuilder_ == null ? localizedValues_ : localizedValuesBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.stepsOverview_ = stepsOverviewBuilder_ == null - ? stepsOverview_ - : stepsOverviewBuilder_.build(); + result.stepsOverview_ = + stepsOverviewBuilder_ == null ? stepsOverview_ : stepsOverviewBuilder_.build(); } } @@ -4224,38 +4812,39 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLeg 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.maps.routing.v2.RouteLeg) { - return mergeFrom((com.google.maps.routing.v2.RouteLeg)other); + return mergeFrom((com.google.maps.routing.v2.RouteLeg) other); } else { super.mergeFrom(other); return this; @@ -4300,9 +4889,10 @@ public Builder mergeFrom(com.google.maps.routing.v2.RouteLeg other) { stepsBuilder_ = null; steps_ = other.steps_; bitField0_ = (bitField0_ & ~0x00000040); - stepsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStepsFieldBuilder() : null; + stepsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStepsFieldBuilder() + : null; } else { stepsBuilder_.addAllMessages(other.steps_); } @@ -4343,86 +4933,80 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - distanceMeters_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getStaticDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getPolylineFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getStartLocationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getEndLocationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - com.google.maps.routing.v2.RouteLegStep m = - input.readMessage( - com.google.maps.routing.v2.RouteLegStep.parser(), - extensionRegistry); - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.add(m); - } else { - stepsBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: { - input.readMessage( - getTravelAdvisoryFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: { - input.readMessage( - getLocalizedValuesFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: { - input.readMessage( - getStepsOverviewFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + distanceMeters_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getStaticDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getPolylineFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getStartLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getEndLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.maps.routing.v2.RouteLegStep m = + input.readMessage( + com.google.maps.routing.v2.RouteLegStep.parser(), extensionRegistry); + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(m); + } else { + stepsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + input.readMessage(getTravelAdvisoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + input.readMessage(getLocalizedValuesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage(getStepsOverviewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + 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) { @@ -4432,15 +5016,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int distanceMeters_ ; + private int distanceMeters_; /** + * + * *
      * The travel distance of the route leg, in meters.
      * 
* * int32 distance_meters = 1; + * * @return The distanceMeters. */ @java.lang.Override @@ -4448,11 +5036,14 @@ public int getDistanceMeters() { return distanceMeters_; } /** + * + * *
      * The travel distance of the route leg, in meters.
      * 
* * int32 distance_meters = 1; + * * @param value The distanceMeters to set. * @return This builder for chaining. */ @@ -4464,11 +5055,14 @@ public Builder setDistanceMeters(int value) { return this; } /** + * + * *
      * The travel distance of the route leg, in meters.
      * 
* * int32 distance_meters = 1; + * * @return This builder for chaining. */ public Builder clearDistanceMeters() { @@ -4480,8 +5074,13 @@ public Builder clearDistanceMeters() { 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_; /** + * + * *
      * The length of time needed to navigate the leg. If the `route_preference`
      * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -4491,12 +5090,15 @@ public Builder clearDistanceMeters() {
      * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The length of time needed to navigate the leg. If the `route_preference`
      * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -4506,6 +5108,7 @@ public boolean hasDuration() {
      * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -4516,6 +5119,8 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * *
      * The length of time needed to navigate the leg. If the `route_preference`
      * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -4540,6 +5145,8 @@ public Builder setDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the leg. If the `route_preference`
      * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -4550,8 +5157,7 @@ public Builder setDuration(com.google.protobuf.Duration value) {
      *
      * .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 {
@@ -4562,6 +5168,8 @@ public Builder setDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the leg. If the `route_preference`
      * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -4574,9 +5182,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;
@@ -4589,6 +5197,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the leg. If the `route_preference`
      * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -4610,6 +5220,8 @@ public Builder clearDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the leg. If the `route_preference`
      * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -4626,6 +5238,8 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() {
       return getDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the leg. If the `route_preference`
      * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -4640,11 +5254,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_;
       }
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the leg. If the `route_preference`
      * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -4656,14 +5271,17 @@ 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_;
@@ -4671,36 +5289,49 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
 
     private com.google.protobuf.Duration staticDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> staticDurationBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        staticDurationBuilder_;
     /**
+     *
+     *
      * 
      * The duration of travel through the leg, calculated without taking
      * traffic conditions into consideration.
      * 
* * .google.protobuf.Duration static_duration = 3; + * * @return Whether the staticDuration field is set. */ public boolean hasStaticDuration() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The duration of travel through the leg, calculated without taking
      * traffic conditions into consideration.
      * 
* * .google.protobuf.Duration static_duration = 3; + * * @return The staticDuration. */ public com.google.protobuf.Duration getStaticDuration() { if (staticDurationBuilder_ == null) { - return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : staticDuration_; } else { return staticDurationBuilder_.getMessage(); } } /** + * + * *
      * The duration of travel through the leg, calculated without taking
      * traffic conditions into consideration.
@@ -4722,6 +5353,8 @@ public Builder setStaticDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of travel through the leg, calculated without taking
      * traffic conditions into consideration.
@@ -4729,8 +5362,7 @@ public Builder setStaticDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration static_duration = 3;
      */
-    public Builder setStaticDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStaticDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (staticDurationBuilder_ == null) {
         staticDuration_ = builderForValue.build();
       } else {
@@ -4741,6 +5373,8 @@ public Builder setStaticDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of travel through the leg, calculated without taking
      * traffic conditions into consideration.
@@ -4750,9 +5384,9 @@ public Builder setStaticDuration(
      */
     public Builder mergeStaticDuration(com.google.protobuf.Duration value) {
       if (staticDurationBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          staticDuration_ != null &&
-          staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && staticDuration_ != null
+            && staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStaticDurationBuilder().mergeFrom(value);
         } else {
           staticDuration_ = value;
@@ -4765,6 +5399,8 @@ public Builder mergeStaticDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of travel through the leg, calculated without taking
      * traffic conditions into consideration.
@@ -4783,6 +5419,8 @@ public Builder clearStaticDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of travel through the leg, calculated without taking
      * traffic conditions into consideration.
@@ -4796,6 +5434,8 @@ public com.google.protobuf.Duration.Builder getStaticDurationBuilder() {
       return getStaticDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The duration of travel through the leg, calculated without taking
      * traffic conditions into consideration.
@@ -4807,11 +5447,14 @@ public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
       if (staticDurationBuilder_ != null) {
         return staticDurationBuilder_.getMessageOrBuilder();
       } else {
-        return staticDuration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : staticDuration_;
+        return staticDuration_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : staticDuration_;
       }
     }
     /**
+     *
+     *
      * 
      * The duration of travel through the leg, calculated without taking
      * traffic conditions into consideration.
@@ -4820,14 +5463,17 @@ public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
      * .google.protobuf.Duration static_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>
         getStaticDurationFieldBuilder() {
       if (staticDurationBuilder_ == null) {
-        staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getStaticDuration(),
-                getParentForChildren(),
-                isClean());
+        staticDurationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getStaticDuration(), getParentForChildren(), isClean());
         staticDuration_ = null;
       }
       return staticDurationBuilder_;
@@ -4835,36 +5481,49 @@ public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
 
     private com.google.maps.routing.v2.Polyline polyline_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder> polylineBuilder_;
+            com.google.maps.routing.v2.Polyline,
+            com.google.maps.routing.v2.Polyline.Builder,
+            com.google.maps.routing.v2.PolylineOrBuilder>
+        polylineBuilder_;
     /**
+     *
+     *
      * 
      * The overall polyline for this leg that includes each `step`'s
      * polyline.
      * 
* * .google.maps.routing.v2.Polyline polyline = 4; + * * @return Whether the polyline field is set. */ public boolean hasPolyline() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The overall polyline for this leg that includes each `step`'s
      * polyline.
      * 
* * .google.maps.routing.v2.Polyline polyline = 4; + * * @return The polyline. */ public com.google.maps.routing.v2.Polyline getPolyline() { if (polylineBuilder_ == null) { - return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + return polyline_ == null + ? com.google.maps.routing.v2.Polyline.getDefaultInstance() + : polyline_; } else { return polylineBuilder_.getMessage(); } } /** + * + * *
      * The overall polyline for this leg that includes each `step`'s
      * polyline.
@@ -4886,6 +5545,8 @@ public Builder setPolyline(com.google.maps.routing.v2.Polyline value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The overall polyline for this leg that includes each `step`'s
      * polyline.
@@ -4893,8 +5554,7 @@ public Builder setPolyline(com.google.maps.routing.v2.Polyline value) {
      *
      * .google.maps.routing.v2.Polyline polyline = 4;
      */
-    public Builder setPolyline(
-        com.google.maps.routing.v2.Polyline.Builder builderForValue) {
+    public Builder setPolyline(com.google.maps.routing.v2.Polyline.Builder builderForValue) {
       if (polylineBuilder_ == null) {
         polyline_ = builderForValue.build();
       } else {
@@ -4905,6 +5565,8 @@ public Builder setPolyline(
       return this;
     }
     /**
+     *
+     *
      * 
      * The overall polyline for this leg that includes each `step`'s
      * polyline.
@@ -4914,9 +5576,9 @@ public Builder setPolyline(
      */
     public Builder mergePolyline(com.google.maps.routing.v2.Polyline value) {
       if (polylineBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          polyline_ != null &&
-          polyline_ != com.google.maps.routing.v2.Polyline.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && polyline_ != null
+            && polyline_ != com.google.maps.routing.v2.Polyline.getDefaultInstance()) {
           getPolylineBuilder().mergeFrom(value);
         } else {
           polyline_ = value;
@@ -4929,6 +5591,8 @@ public Builder mergePolyline(com.google.maps.routing.v2.Polyline value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The overall polyline for this leg that includes each `step`'s
      * polyline.
@@ -4947,6 +5611,8 @@ public Builder clearPolyline() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The overall polyline for this leg that includes each `step`'s
      * polyline.
@@ -4960,6 +5626,8 @@ public com.google.maps.routing.v2.Polyline.Builder getPolylineBuilder() {
       return getPolylineFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The overall polyline for this leg that includes each `step`'s
      * polyline.
@@ -4971,11 +5639,14 @@ public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() {
       if (polylineBuilder_ != null) {
         return polylineBuilder_.getMessageOrBuilder();
       } else {
-        return polyline_ == null ?
-            com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_;
+        return polyline_ == null
+            ? com.google.maps.routing.v2.Polyline.getDefaultInstance()
+            : polyline_;
       }
     }
     /**
+     *
+     *
      * 
      * The overall polyline for this leg that includes each `step`'s
      * polyline.
@@ -4984,14 +5655,17 @@ public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() {
      * .google.maps.routing.v2.Polyline polyline = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder> 
+            com.google.maps.routing.v2.Polyline,
+            com.google.maps.routing.v2.Polyline.Builder,
+            com.google.maps.routing.v2.PolylineOrBuilder>
         getPolylineFieldBuilder() {
       if (polylineBuilder_ == null) {
-        polylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder>(
-                getPolyline(),
-                getParentForChildren(),
-                isClean());
+        polylineBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.maps.routing.v2.Polyline,
+                com.google.maps.routing.v2.Polyline.Builder,
+                com.google.maps.routing.v2.PolylineOrBuilder>(
+                getPolyline(), getParentForChildren(), isClean());
         polyline_ = null;
       }
       return polylineBuilder_;
@@ -4999,8 +5673,13 @@ public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() {
 
     private com.google.maps.routing.v2.Location startLocation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> startLocationBuilder_;
+            com.google.maps.routing.v2.Location,
+            com.google.maps.routing.v2.Location.Builder,
+            com.google.maps.routing.v2.LocationOrBuilder>
+        startLocationBuilder_;
     /**
+     *
+     *
      * 
      * The start location of this leg. This location might be different from the
      * provided `origin`. For example, when the provided `origin` is not near a
@@ -5008,12 +5687,15 @@ public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() {
      * 
* * .google.maps.routing.v2.Location start_location = 5; + * * @return Whether the startLocation field is set. */ public boolean hasStartLocation() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * The start location of this leg. This location might be different from the
      * provided `origin`. For example, when the provided `origin` is not near a
@@ -5021,16 +5703,21 @@ public boolean hasStartLocation() {
      * 
* * .google.maps.routing.v2.Location start_location = 5; + * * @return The startLocation. */ public com.google.maps.routing.v2.Location getStartLocation() { if (startLocationBuilder_ == null) { - return startLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_; + return startLocation_ == null + ? com.google.maps.routing.v2.Location.getDefaultInstance() + : startLocation_; } else { return startLocationBuilder_.getMessage(); } } /** + * + * *
      * The start location of this leg. This location might be different from the
      * provided `origin`. For example, when the provided `origin` is not near a
@@ -5053,6 +5740,8 @@ public Builder setStartLocation(com.google.maps.routing.v2.Location value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The start location of this leg. This location might be different from the
      * provided `origin`. For example, when the provided `origin` is not near a
@@ -5061,8 +5750,7 @@ public Builder setStartLocation(com.google.maps.routing.v2.Location value) {
      *
      * .google.maps.routing.v2.Location start_location = 5;
      */
-    public Builder setStartLocation(
-        com.google.maps.routing.v2.Location.Builder builderForValue) {
+    public Builder setStartLocation(com.google.maps.routing.v2.Location.Builder builderForValue) {
       if (startLocationBuilder_ == null) {
         startLocation_ = builderForValue.build();
       } else {
@@ -5073,6 +5761,8 @@ public Builder setStartLocation(
       return this;
     }
     /**
+     *
+     *
      * 
      * The start location of this leg. This location might be different from the
      * provided `origin`. For example, when the provided `origin` is not near a
@@ -5083,9 +5773,9 @@ public Builder setStartLocation(
      */
     public Builder mergeStartLocation(com.google.maps.routing.v2.Location value) {
       if (startLocationBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          startLocation_ != null &&
-          startLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && startLocation_ != null
+            && startLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) {
           getStartLocationBuilder().mergeFrom(value);
         } else {
           startLocation_ = value;
@@ -5098,6 +5788,8 @@ public Builder mergeStartLocation(com.google.maps.routing.v2.Location value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The start location of this leg. This location might be different from the
      * provided `origin`. For example, when the provided `origin` is not near a
@@ -5117,6 +5809,8 @@ public Builder clearStartLocation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The start location of this leg. This location might be different from the
      * provided `origin`. For example, when the provided `origin` is not near a
@@ -5131,6 +5825,8 @@ public com.google.maps.routing.v2.Location.Builder getStartLocationBuilder() {
       return getStartLocationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The start location of this leg. This location might be different from the
      * provided `origin`. For example, when the provided `origin` is not near a
@@ -5143,11 +5839,14 @@ public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder()
       if (startLocationBuilder_ != null) {
         return startLocationBuilder_.getMessageOrBuilder();
       } else {
-        return startLocation_ == null ?
-            com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_;
+        return startLocation_ == null
+            ? com.google.maps.routing.v2.Location.getDefaultInstance()
+            : startLocation_;
       }
     }
     /**
+     *
+     *
      * 
      * The start location of this leg. This location might be different from the
      * provided `origin`. For example, when the provided `origin` is not near a
@@ -5157,14 +5856,17 @@ public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder()
      * .google.maps.routing.v2.Location start_location = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> 
+            com.google.maps.routing.v2.Location,
+            com.google.maps.routing.v2.Location.Builder,
+            com.google.maps.routing.v2.LocationOrBuilder>
         getStartLocationFieldBuilder() {
       if (startLocationBuilder_ == null) {
-        startLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder>(
-                getStartLocation(),
-                getParentForChildren(),
-                isClean());
+        startLocationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.maps.routing.v2.Location,
+                com.google.maps.routing.v2.Location.Builder,
+                com.google.maps.routing.v2.LocationOrBuilder>(
+                getStartLocation(), getParentForChildren(), isClean());
         startLocation_ = null;
       }
       return startLocationBuilder_;
@@ -5172,8 +5874,13 @@ public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder()
 
     private com.google.maps.routing.v2.Location endLocation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> endLocationBuilder_;
+            com.google.maps.routing.v2.Location,
+            com.google.maps.routing.v2.Location.Builder,
+            com.google.maps.routing.v2.LocationOrBuilder>
+        endLocationBuilder_;
     /**
+     *
+     *
      * 
      * The end location of this leg. This location might be different from the
      * provided `destination`. For example, when the provided `destination` is not
@@ -5181,12 +5888,15 @@ public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder()
      * 
* * .google.maps.routing.v2.Location end_location = 6; + * * @return Whether the endLocation field is set. */ public boolean hasEndLocation() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * The end location of this leg. This location might be different from the
      * provided `destination`. For example, when the provided `destination` is not
@@ -5194,16 +5904,21 @@ public boolean hasEndLocation() {
      * 
* * .google.maps.routing.v2.Location end_location = 6; + * * @return The endLocation. */ public com.google.maps.routing.v2.Location getEndLocation() { if (endLocationBuilder_ == null) { - return endLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_; + return endLocation_ == null + ? com.google.maps.routing.v2.Location.getDefaultInstance() + : endLocation_; } else { return endLocationBuilder_.getMessage(); } } /** + * + * *
      * The end location of this leg. This location might be different from the
      * provided `destination`. For example, when the provided `destination` is not
@@ -5226,6 +5941,8 @@ public Builder setEndLocation(com.google.maps.routing.v2.Location value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The end location of this leg. This location might be different from the
      * provided `destination`. For example, when the provided `destination` is not
@@ -5234,8 +5951,7 @@ public Builder setEndLocation(com.google.maps.routing.v2.Location value) {
      *
      * .google.maps.routing.v2.Location end_location = 6;
      */
-    public Builder setEndLocation(
-        com.google.maps.routing.v2.Location.Builder builderForValue) {
+    public Builder setEndLocation(com.google.maps.routing.v2.Location.Builder builderForValue) {
       if (endLocationBuilder_ == null) {
         endLocation_ = builderForValue.build();
       } else {
@@ -5246,6 +5962,8 @@ public Builder setEndLocation(
       return this;
     }
     /**
+     *
+     *
      * 
      * The end location of this leg. This location might be different from the
      * provided `destination`. For example, when the provided `destination` is not
@@ -5256,9 +5974,9 @@ public Builder setEndLocation(
      */
     public Builder mergeEndLocation(com.google.maps.routing.v2.Location value) {
       if (endLocationBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0) &&
-          endLocation_ != null &&
-          endLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0)
+            && endLocation_ != null
+            && endLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) {
           getEndLocationBuilder().mergeFrom(value);
         } else {
           endLocation_ = value;
@@ -5271,6 +5989,8 @@ public Builder mergeEndLocation(com.google.maps.routing.v2.Location value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The end location of this leg. This location might be different from the
      * provided `destination`. For example, when the provided `destination` is not
@@ -5290,6 +6010,8 @@ public Builder clearEndLocation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The end location of this leg. This location might be different from the
      * provided `destination`. For example, when the provided `destination` is not
@@ -5304,6 +6026,8 @@ public com.google.maps.routing.v2.Location.Builder getEndLocationBuilder() {
       return getEndLocationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The end location of this leg. This location might be different from the
      * provided `destination`. For example, when the provided `destination` is not
@@ -5316,11 +6040,14 @@ public com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder() {
       if (endLocationBuilder_ != null) {
         return endLocationBuilder_.getMessageOrBuilder();
       } else {
-        return endLocation_ == null ?
-            com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_;
+        return endLocation_ == null
+            ? com.google.maps.routing.v2.Location.getDefaultInstance()
+            : endLocation_;
       }
     }
     /**
+     *
+     *
      * 
      * The end location of this leg. This location might be different from the
      * provided `destination`. For example, when the provided `destination` is not
@@ -5330,32 +6057,41 @@ public com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder() {
      * .google.maps.routing.v2.Location end_location = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> 
+            com.google.maps.routing.v2.Location,
+            com.google.maps.routing.v2.Location.Builder,
+            com.google.maps.routing.v2.LocationOrBuilder>
         getEndLocationFieldBuilder() {
       if (endLocationBuilder_ == null) {
-        endLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder>(
-                getEndLocation(),
-                getParentForChildren(),
-                isClean());
+        endLocationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.maps.routing.v2.Location,
+                com.google.maps.routing.v2.Location.Builder,
+                com.google.maps.routing.v2.LocationOrBuilder>(
+                getEndLocation(), getParentForChildren(), isClean());
         endLocation_ = null;
       }
       return endLocationBuilder_;
     }
 
     private java.util.List steps_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureStepsIsMutable() {
       if (!((bitField0_ & 0x00000040) != 0)) {
         steps_ = new java.util.ArrayList(steps_);
         bitField0_ |= 0x00000040;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.maps.routing.v2.RouteLegStep, com.google.maps.routing.v2.RouteLegStep.Builder, com.google.maps.routing.v2.RouteLegStepOrBuilder> stepsBuilder_;
+            com.google.maps.routing.v2.RouteLegStep,
+            com.google.maps.routing.v2.RouteLegStep.Builder,
+            com.google.maps.routing.v2.RouteLegStepOrBuilder>
+        stepsBuilder_;
 
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5371,6 +6107,8 @@ public java.util.List getStepsList() {
       }
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5386,6 +6124,8 @@ public int getStepsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5401,6 +6141,8 @@ public com.google.maps.routing.v2.RouteLegStep getSteps(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5408,8 +6150,7 @@ public com.google.maps.routing.v2.RouteLegStep getSteps(int index) {
      *
      * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
      */
-    public Builder setSteps(
-        int index, com.google.maps.routing.v2.RouteLegStep value) {
+    public Builder setSteps(int index, com.google.maps.routing.v2.RouteLegStep value) {
       if (stepsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -5423,6 +6164,8 @@ public Builder setSteps(
       return this;
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5442,6 +6185,8 @@ public Builder setSteps(
       return this;
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5463,6 +6208,8 @@ public Builder addSteps(com.google.maps.routing.v2.RouteLegStep value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5470,8 +6217,7 @@ public Builder addSteps(com.google.maps.routing.v2.RouteLegStep value) {
      *
      * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
      */
-    public Builder addSteps(
-        int index, com.google.maps.routing.v2.RouteLegStep value) {
+    public Builder addSteps(int index, com.google.maps.routing.v2.RouteLegStep value) {
       if (stepsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -5485,6 +6231,8 @@ public Builder addSteps(
       return this;
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5492,8 +6240,7 @@ public Builder addSteps(
      *
      * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
      */
-    public Builder addSteps(
-        com.google.maps.routing.v2.RouteLegStep.Builder builderForValue) {
+    public Builder addSteps(com.google.maps.routing.v2.RouteLegStep.Builder builderForValue) {
       if (stepsBuilder_ == null) {
         ensureStepsIsMutable();
         steps_.add(builderForValue.build());
@@ -5504,6 +6251,8 @@ public Builder addSteps(
       return this;
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5523,6 +6272,8 @@ public Builder addSteps(
       return this;
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5534,8 +6285,7 @@ public Builder addAllSteps(
         java.lang.Iterable values) {
       if (stepsBuilder_ == null) {
         ensureStepsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, steps_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, steps_);
         onChanged();
       } else {
         stepsBuilder_.addAllMessages(values);
@@ -5543,6 +6293,8 @@ public Builder addAllSteps(
       return this;
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5561,6 +6313,8 @@ public Builder clearSteps() {
       return this;
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5579,6 +6333,8 @@ public Builder removeSteps(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5586,11 +6342,12 @@ public Builder removeSteps(int index) {
      *
      * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
      */
-    public com.google.maps.routing.v2.RouteLegStep.Builder getStepsBuilder(
-        int index) {
+    public com.google.maps.routing.v2.RouteLegStep.Builder getStepsBuilder(int index) {
       return getStepsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5598,14 +6355,16 @@ public com.google.maps.routing.v2.RouteLegStep.Builder getStepsBuilder(
      *
      * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
      */
-    public com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder(
-        int index) {
+    public com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder(int index) {
       if (stepsBuilder_ == null) {
-        return steps_.get(index);  } else {
+        return steps_.get(index);
+      } else {
         return stepsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5613,8 +6372,8 @@ public com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder(
      *
      * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
      */
-    public java.util.List 
-         getStepsOrBuilderList() {
+    public java.util.List
+        getStepsOrBuilderList() {
       if (stepsBuilder_ != null) {
         return stepsBuilder_.getMessageOrBuilderList();
       } else {
@@ -5622,6 +6381,8 @@ public com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5630,10 +6391,12 @@ public com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder(
      * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
      */
     public com.google.maps.routing.v2.RouteLegStep.Builder addStepsBuilder() {
-      return getStepsFieldBuilder().addBuilder(
-          com.google.maps.routing.v2.RouteLegStep.getDefaultInstance());
+      return getStepsFieldBuilder()
+          .addBuilder(com.google.maps.routing.v2.RouteLegStep.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5641,12 +6404,13 @@ public com.google.maps.routing.v2.RouteLegStep.Builder addStepsBuilder() {
      *
      * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
      */
-    public com.google.maps.routing.v2.RouteLegStep.Builder addStepsBuilder(
-        int index) {
-      return getStepsFieldBuilder().addBuilder(
-          index, com.google.maps.routing.v2.RouteLegStep.getDefaultInstance());
+    public com.google.maps.routing.v2.RouteLegStep.Builder addStepsBuilder(int index) {
+      return getStepsFieldBuilder()
+          .addBuilder(index, com.google.maps.routing.v2.RouteLegStep.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * An array of steps denoting segments within this leg. Each step represents
      * one navigation instruction.
@@ -5654,20 +6418,22 @@ public com.google.maps.routing.v2.RouteLegStep.Builder addStepsBuilder(
      *
      * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
      */
-    public java.util.List 
-         getStepsBuilderList() {
+    public java.util.List getStepsBuilderList() {
       return getStepsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.maps.routing.v2.RouteLegStep, com.google.maps.routing.v2.RouteLegStep.Builder, com.google.maps.routing.v2.RouteLegStepOrBuilder> 
+            com.google.maps.routing.v2.RouteLegStep,
+            com.google.maps.routing.v2.RouteLegStep.Builder,
+            com.google.maps.routing.v2.RouteLegStepOrBuilder>
         getStepsFieldBuilder() {
       if (stepsBuilder_ == null) {
-        stepsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.maps.routing.v2.RouteLegStep, com.google.maps.routing.v2.RouteLegStep.Builder, com.google.maps.routing.v2.RouteLegStepOrBuilder>(
-                steps_,
-                ((bitField0_ & 0x00000040) != 0),
-                getParentForChildren(),
-                isClean());
+        stepsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.maps.routing.v2.RouteLegStep,
+                com.google.maps.routing.v2.RouteLegStep.Builder,
+                com.google.maps.routing.v2.RouteLegStepOrBuilder>(
+                steps_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean());
         steps_ = null;
       }
       return stepsBuilder_;
@@ -5675,36 +6441,49 @@ public com.google.maps.routing.v2.RouteLegStep.Builder addStepsBuilder(
 
     private com.google.maps.routing.v2.RouteLegTravelAdvisory travelAdvisory_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.RouteLegTravelAdvisory, com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder, com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder> travelAdvisoryBuilder_;
+            com.google.maps.routing.v2.RouteLegTravelAdvisory,
+            com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder,
+            com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder>
+        travelAdvisoryBuilder_;
     /**
+     *
+     *
      * 
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a route leg.
      * 
* * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + * * @return Whether the travelAdvisory field is set. */ public boolean hasTravelAdvisory() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a route leg.
      * 
* * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + * * @return The travelAdvisory. */ public com.google.maps.routing.v2.RouteLegTravelAdvisory getTravelAdvisory() { if (travelAdvisoryBuilder_ == null) { - return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance() : travelAdvisory_; + return travelAdvisory_ == null + ? com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance() + : travelAdvisory_; } else { return travelAdvisoryBuilder_.getMessage(); } } /** + * + * *
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a route leg.
@@ -5726,6 +6505,8 @@ public Builder setTravelAdvisory(com.google.maps.routing.v2.RouteLegTravelAdviso
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a route leg.
@@ -5745,6 +6526,8 @@ public Builder setTravelAdvisory(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a route leg.
@@ -5754,9 +6537,10 @@ public Builder setTravelAdvisory(
      */
     public Builder mergeTravelAdvisory(com.google.maps.routing.v2.RouteLegTravelAdvisory value) {
       if (travelAdvisoryBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0) &&
-          travelAdvisory_ != null &&
-          travelAdvisory_ != com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0)
+            && travelAdvisory_ != null
+            && travelAdvisory_
+                != com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance()) {
           getTravelAdvisoryBuilder().mergeFrom(value);
         } else {
           travelAdvisory_ = value;
@@ -5769,6 +6553,8 @@ public Builder mergeTravelAdvisory(com.google.maps.routing.v2.RouteLegTravelAdvi
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a route leg.
@@ -5787,6 +6573,8 @@ public Builder clearTravelAdvisory() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a route leg.
@@ -5800,6 +6588,8 @@ public com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder getTravelAdviso
       return getTravelAdvisoryFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a route leg.
@@ -5811,11 +6601,14 @@ public com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder getTravelAdvis
       if (travelAdvisoryBuilder_ != null) {
         return travelAdvisoryBuilder_.getMessageOrBuilder();
       } else {
-        return travelAdvisory_ == null ?
-            com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance() : travelAdvisory_;
+        return travelAdvisory_ == null
+            ? com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance()
+            : travelAdvisory_;
       }
     }
     /**
+     *
+     *
      * 
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a route leg.
@@ -5824,14 +6617,17 @@ public com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder getTravelAdvis
      * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.RouteLegTravelAdvisory, com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder, com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder> 
+            com.google.maps.routing.v2.RouteLegTravelAdvisory,
+            com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder,
+            com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder>
         getTravelAdvisoryFieldBuilder() {
       if (travelAdvisoryBuilder_ == null) {
-        travelAdvisoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.RouteLegTravelAdvisory, com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder, com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder>(
-                getTravelAdvisory(),
-                getParentForChildren(),
-                isClean());
+        travelAdvisoryBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.maps.routing.v2.RouteLegTravelAdvisory,
+                com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder,
+                com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder>(
+                getTravelAdvisory(), getParentForChildren(), isClean());
         travelAdvisory_ = null;
       }
       return travelAdvisoryBuilder_;
@@ -5839,41 +6635,55 @@ public com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder getTravelAdvis
 
     private com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localizedValues_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder> localizedValuesBuilder_;
+            com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues,
+            com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder,
+            com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder>
+        localizedValuesBuilder_;
     /**
+     *
+     *
      * 
      * Text representations of properties of the `RouteLeg`.
      * 
* * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + * * @return Whether the localizedValues field is set. */ public boolean hasLocalizedValues() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Text representations of properties of the `RouteLeg`.
      * 
* * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + * * @return The localizedValues. */ public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues getLocalizedValues() { if (localizedValuesBuilder_ == null) { - return localizedValues_ == null ? com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance() : localizedValues_; + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance() + : localizedValues_; } else { return localizedValuesBuilder_.getMessage(); } } /** + * + * *
      * Text representations of properties of the `RouteLeg`.
      * 
* * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; */ - public Builder setLocalizedValues(com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues value) { + public Builder setLocalizedValues( + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues value) { if (localizedValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5887,6 +6697,8 @@ public Builder setLocalizedValues(com.google.maps.routing.v2.RouteLeg.RouteLegLo return this; } /** + * + * *
      * Text representations of properties of the `RouteLeg`.
      * 
@@ -5905,17 +6717,22 @@ public Builder setLocalizedValues( return this; } /** + * + * *
      * Text representations of properties of the `RouteLeg`.
      * 
* * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; */ - public Builder mergeLocalizedValues(com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues value) { + public Builder mergeLocalizedValues( + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues value) { if (localizedValuesBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - localizedValues_ != null && - localizedValues_ != com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && localizedValues_ != null + && localizedValues_ + != com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues + .getDefaultInstance()) { getLocalizedValuesBuilder().mergeFrom(value); } else { localizedValues_ = value; @@ -5928,6 +6745,8 @@ public Builder mergeLocalizedValues(com.google.maps.routing.v2.RouteLeg.RouteLeg return this; } /** + * + * *
      * Text representations of properties of the `RouteLeg`.
      * 
@@ -5945,33 +6764,42 @@ public Builder clearLocalizedValues() { return this; } /** + * + * *
      * Text representations of properties of the `RouteLeg`.
      * 
* * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; */ - public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder getLocalizedValuesBuilder() { + public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder + getLocalizedValuesBuilder() { bitField0_ |= 0x00000100; onChanged(); return getLocalizedValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Text representations of properties of the `RouteLeg`.
      * 
* * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; */ - public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { + public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder + getLocalizedValuesOrBuilder() { if (localizedValuesBuilder_ != null) { return localizedValuesBuilder_.getMessageOrBuilder(); } else { - return localizedValues_ == null ? - com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance() : localizedValues_; + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.getDefaultInstance() + : localizedValues_; } } /** + * + * *
      * Text representations of properties of the `RouteLeg`.
      * 
@@ -5979,14 +6807,17 @@ public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder getL * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder> + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues, + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder, + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder> getLocalizedValuesFieldBuilder() { if (localizedValuesBuilder_ == null) { - localizedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder, com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder>( - getLocalizedValues(), - getParentForChildren(), - isClean()); + localizedValuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues, + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder, + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder>( + getLocalizedValues(), getParentForChildren(), isClean()); localizedValues_ = null; } return localizedValuesBuilder_; @@ -5994,36 +6825,49 @@ public com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder getL private com.google.maps.routing.v2.RouteLeg.StepsOverview stepsOverview_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLeg.StepsOverview, com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder, com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder> stepsOverviewBuilder_; + com.google.maps.routing.v2.RouteLeg.StepsOverview, + com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder, + com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder> + stepsOverviewBuilder_; /** + * + * *
      * Overview information about the steps in this `RouteLeg`. This field is only
      * populated for TRANSIT routes.
      * 
* * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + * * @return Whether the stepsOverview field is set. */ public boolean hasStepsOverview() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Overview information about the steps in this `RouteLeg`. This field is only
      * populated for TRANSIT routes.
      * 
* * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + * * @return The stepsOverview. */ public com.google.maps.routing.v2.RouteLeg.StepsOverview getStepsOverview() { if (stepsOverviewBuilder_ == null) { - return stepsOverview_ == null ? com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance() : stepsOverview_; + return stepsOverview_ == null + ? com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance() + : stepsOverview_; } else { return stepsOverviewBuilder_.getMessage(); } } /** + * + * *
      * Overview information about the steps in this `RouteLeg`. This field is only
      * populated for TRANSIT routes.
@@ -6045,6 +6889,8 @@ public Builder setStepsOverview(com.google.maps.routing.v2.RouteLeg.StepsOvervie
       return this;
     }
     /**
+     *
+     *
      * 
      * Overview information about the steps in this `RouteLeg`. This field is only
      * populated for TRANSIT routes.
@@ -6064,6 +6910,8 @@ public Builder setStepsOverview(
       return this;
     }
     /**
+     *
+     *
      * 
      * Overview information about the steps in this `RouteLeg`. This field is only
      * populated for TRANSIT routes.
@@ -6073,9 +6921,10 @@ public Builder setStepsOverview(
      */
     public Builder mergeStepsOverview(com.google.maps.routing.v2.RouteLeg.StepsOverview value) {
       if (stepsOverviewBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0) &&
-          stepsOverview_ != null &&
-          stepsOverview_ != com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0)
+            && stepsOverview_ != null
+            && stepsOverview_
+                != com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance()) {
           getStepsOverviewBuilder().mergeFrom(value);
         } else {
           stepsOverview_ = value;
@@ -6088,6 +6937,8 @@ public Builder mergeStepsOverview(com.google.maps.routing.v2.RouteLeg.StepsOverv
       return this;
     }
     /**
+     *
+     *
      * 
      * Overview information about the steps in this `RouteLeg`. This field is only
      * populated for TRANSIT routes.
@@ -6106,6 +6957,8 @@ public Builder clearStepsOverview() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Overview information about the steps in this `RouteLeg`. This field is only
      * populated for TRANSIT routes.
@@ -6119,6 +6972,8 @@ public com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder getStepsOvervie
       return getStepsOverviewFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Overview information about the steps in this `RouteLeg`. This field is only
      * populated for TRANSIT routes.
@@ -6130,11 +6985,14 @@ public com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder getStepsOvervi
       if (stepsOverviewBuilder_ != null) {
         return stepsOverviewBuilder_.getMessageOrBuilder();
       } else {
-        return stepsOverview_ == null ?
-            com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance() : stepsOverview_;
+        return stepsOverview_ == null
+            ? com.google.maps.routing.v2.RouteLeg.StepsOverview.getDefaultInstance()
+            : stepsOverview_;
       }
     }
     /**
+     *
+     *
      * 
      * Overview information about the steps in this `RouteLeg`. This field is only
      * populated for TRANSIT routes.
@@ -6143,21 +7001,24 @@ public com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder getStepsOvervi
      * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.RouteLeg.StepsOverview, com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder, com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder> 
+            com.google.maps.routing.v2.RouteLeg.StepsOverview,
+            com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder,
+            com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder>
         getStepsOverviewFieldBuilder() {
       if (stepsOverviewBuilder_ == null) {
-        stepsOverviewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.RouteLeg.StepsOverview, com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder, com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder>(
-                getStepsOverview(),
-                getParentForChildren(),
-                isClean());
+        stepsOverviewBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.maps.routing.v2.RouteLeg.StepsOverview,
+                com.google.maps.routing.v2.RouteLeg.StepsOverview.Builder,
+                com.google.maps.routing.v2.RouteLeg.StepsOverviewOrBuilder>(
+                getStepsOverview(), getParentForChildren(), isClean());
         stepsOverview_ = null;
       }
       return stepsOverviewBuilder_;
     }
+
     @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);
     }
 
@@ -6167,12 +7028,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteLeg)
   }
 
   // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLeg)
   private static final com.google.maps.routing.v2.RouteLeg DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLeg();
   }
@@ -6181,27 +7042,27 @@ public static com.google.maps.routing.v2.RouteLeg getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public RouteLeg 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 RouteLeg 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;
@@ -6216,6 +7077,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.maps.routing.v2.RouteLeg getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegOrBuilder.java
similarity index 89%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegOrBuilder.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegOrBuilder.java
index fe8ae85002f7..406bd5ede229 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegOrBuilder.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegOrBuilder.java
@@ -1,23 +1,44 @@
+/*
+ * 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/maps/routing/v2/route.proto
 
 package com.google.maps.routing.v2;
 
-public interface RouteLegOrBuilder extends
+public interface RouteLegOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLeg)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The travel distance of the route leg, in meters.
    * 
* * int32 distance_meters = 1; + * * @return The distanceMeters. */ int getDistanceMeters(); /** + * + * *
    * The length of time needed to navigate the leg. If the `route_preference`
    * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -27,10 +48,13 @@ public interface RouteLegOrBuilder extends
    * 
* * .google.protobuf.Duration duration = 2; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
    * The length of time needed to navigate the leg. If the `route_preference`
    * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -40,10 +64,13 @@ public interface RouteLegOrBuilder extends
    * 
* * .google.protobuf.Duration duration = 2; + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
    * The length of time needed to navigate the leg. If the `route_preference`
    * is set to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -57,26 +84,34 @@ public interface RouteLegOrBuilder extends
   com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The duration of travel through the leg, calculated without taking
    * traffic conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 3; + * * @return Whether the staticDuration field is set. */ boolean hasStaticDuration(); /** + * + * *
    * The duration of travel through the leg, calculated without taking
    * traffic conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 3; + * * @return The staticDuration. */ com.google.protobuf.Duration getStaticDuration(); /** + * + * *
    * The duration of travel through the leg, calculated without taking
    * traffic conditions into consideration.
@@ -87,26 +122,34 @@ public interface RouteLegOrBuilder extends
   com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The overall polyline for this leg that includes each `step`'s
    * polyline.
    * 
* * .google.maps.routing.v2.Polyline polyline = 4; + * * @return Whether the polyline field is set. */ boolean hasPolyline(); /** + * + * *
    * The overall polyline for this leg that includes each `step`'s
    * polyline.
    * 
* * .google.maps.routing.v2.Polyline polyline = 4; + * * @return The polyline. */ com.google.maps.routing.v2.Polyline getPolyline(); /** + * + * *
    * The overall polyline for this leg that includes each `step`'s
    * polyline.
@@ -117,6 +160,8 @@ public interface RouteLegOrBuilder extends
   com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder();
 
   /**
+   *
+   *
    * 
    * The start location of this leg. This location might be different from the
    * provided `origin`. For example, when the provided `origin` is not near a
@@ -124,10 +169,13 @@ public interface RouteLegOrBuilder extends
    * 
* * .google.maps.routing.v2.Location start_location = 5; + * * @return Whether the startLocation field is set. */ boolean hasStartLocation(); /** + * + * *
    * The start location of this leg. This location might be different from the
    * provided `origin`. For example, when the provided `origin` is not near a
@@ -135,10 +183,13 @@ public interface RouteLegOrBuilder extends
    * 
* * .google.maps.routing.v2.Location start_location = 5; + * * @return The startLocation. */ com.google.maps.routing.v2.Location getStartLocation(); /** + * + * *
    * The start location of this leg. This location might be different from the
    * provided `origin`. For example, when the provided `origin` is not near a
@@ -150,6 +201,8 @@ public interface RouteLegOrBuilder extends
   com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The end location of this leg. This location might be different from the
    * provided `destination`. For example, when the provided `destination` is not
@@ -157,10 +210,13 @@ public interface RouteLegOrBuilder extends
    * 
* * .google.maps.routing.v2.Location end_location = 6; + * * @return Whether the endLocation field is set. */ boolean hasEndLocation(); /** + * + * *
    * The end location of this leg. This location might be different from the
    * provided `destination`. For example, when the provided `destination` is not
@@ -168,10 +224,13 @@ public interface RouteLegOrBuilder extends
    * 
* * .google.maps.routing.v2.Location end_location = 6; + * * @return The endLocation. */ com.google.maps.routing.v2.Location getEndLocation(); /** + * + * *
    * The end location of this leg. This location might be different from the
    * provided `destination`. For example, when the provided `destination` is not
@@ -183,6 +242,8 @@ public interface RouteLegOrBuilder extends
   com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder();
 
   /**
+   *
+   *
    * 
    * An array of steps denoting segments within this leg. Each step represents
    * one navigation instruction.
@@ -190,9 +251,10 @@ public interface RouteLegOrBuilder extends
    *
    * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
    */
-  java.util.List 
-      getStepsList();
+  java.util.List getStepsList();
   /**
+   *
+   *
    * 
    * An array of steps denoting segments within this leg. Each step represents
    * one navigation instruction.
@@ -202,6 +264,8 @@ public interface RouteLegOrBuilder extends
    */
   com.google.maps.routing.v2.RouteLegStep getSteps(int index);
   /**
+   *
+   *
    * 
    * An array of steps denoting segments within this leg. Each step represents
    * one navigation instruction.
@@ -211,6 +275,8 @@ public interface RouteLegOrBuilder extends
    */
   int getStepsCount();
   /**
+   *
+   *
    * 
    * An array of steps denoting segments within this leg. Each step represents
    * one navigation instruction.
@@ -218,9 +284,11 @@ public interface RouteLegOrBuilder extends
    *
    * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
    */
-  java.util.List 
+  java.util.List
       getStepsOrBuilderList();
   /**
+   *
+   *
    * 
    * An array of steps denoting segments within this leg. Each step represents
    * one navigation instruction.
@@ -228,30 +296,37 @@ public interface RouteLegOrBuilder extends
    *
    * repeated .google.maps.routing.v2.RouteLegStep steps = 7;
    */
-  com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder(
-      int index);
+  com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Contains the additional information that the user should be informed
    * about, such as possible traffic zone restrictions, on a route leg.
    * 
* * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + * * @return Whether the travelAdvisory field is set. */ boolean hasTravelAdvisory(); /** + * + * *
    * Contains the additional information that the user should be informed
    * about, such as possible traffic zone restrictions, on a route leg.
    * 
* * .google.maps.routing.v2.RouteLegTravelAdvisory travel_advisory = 8; + * * @return The travelAdvisory. */ com.google.maps.routing.v2.RouteLegTravelAdvisory getTravelAdvisory(); /** + * + * *
    * Contains the additional information that the user should be informed
    * about, such as possible traffic zone restrictions, on a route leg.
@@ -262,53 +337,70 @@ com.google.maps.routing.v2.RouteLegStepOrBuilder getStepsOrBuilder(
   com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder();
 
   /**
+   *
+   *
    * 
    * Text representations of properties of the `RouteLeg`.
    * 
* * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + * * @return Whether the localizedValues field is set. */ boolean hasLocalizedValues(); /** + * + * *
    * Text representations of properties of the `RouteLeg`.
    * 
* * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; + * * @return The localizedValues. */ com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues getLocalizedValues(); /** + * + * *
    * Text representations of properties of the `RouteLeg`.
    * 
* * .google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues localized_values = 9; */ - com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder getLocalizedValuesOrBuilder(); + com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValuesOrBuilder + getLocalizedValuesOrBuilder(); /** + * + * *
    * Overview information about the steps in this `RouteLeg`. This field is only
    * populated for TRANSIT routes.
    * 
* * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + * * @return Whether the stepsOverview field is set. */ boolean hasStepsOverview(); /** + * + * *
    * Overview information about the steps in this `RouteLeg`. This field is only
    * populated for TRANSIT routes.
    * 
* * .google.maps.routing.v2.RouteLeg.StepsOverview steps_overview = 10; + * * @return The stepsOverview. */ com.google.maps.routing.v2.RouteLeg.StepsOverview getStepsOverview(); /** + * + * *
    * Overview information about the steps in this `RouteLeg`. This field is only
    * populated for TRANSIT routes.
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStep.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStep.java
similarity index 70%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStep.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStep.java
index 8bad92588ff4..4b1161742186 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStep.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStep.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/maps/routing/v2/route.proto
 
 package com.google.maps.routing.v2;
 
 /**
+ *
+ *
  * 
  * Contains a segment of a [RouteLeg][google.maps.routing.v2.RouteLeg]. A
  * step corresponds to a single navigation instruction. Route legs are made up
@@ -12,62 +29,73 @@
  *
  * Protobuf type {@code google.maps.routing.v2.RouteLegStep}
  */
-public final class RouteLegStep extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RouteLegStep extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLegStep)
     RouteLegStepOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RouteLegStep.newBuilder() to construct.
   private RouteLegStep(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RouteLegStep() {
     travelMode_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RouteLegStep();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.maps.routing.v2.RouteProto
+        .internal_static_google_maps_routing_v2_RouteLegStep_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_fieldAccessorTable
+    return com.google.maps.routing.v2.RouteProto
+        .internal_static_google_maps_routing_v2_RouteLegStep_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.RouteLegStep.class, com.google.maps.routing.v2.RouteLegStep.Builder.class);
+            com.google.maps.routing.v2.RouteLegStep.class,
+            com.google.maps.routing.v2.RouteLegStep.Builder.class);
   }
 
-  public interface RouteLegStepLocalizedValuesOrBuilder extends
+  public interface RouteLegStepLocalizedValuesOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return Whether the distance field is set. */ boolean hasDistance(); /** + * + * *
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return The distance. */ com.google.type.LocalizedText getDistance(); /** + * + * *
      * Travel distance represented in text form.
      * 
@@ -77,26 +105,34 @@ public interface RouteLegStepLocalizedValuesOrBuilder extends com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder(); /** + * + * *
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return Whether the staticDuration field is set. */ boolean hasStaticDuration(); /** + * + * *
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return The staticDuration. */ com.google.type.LocalizedText getStaticDuration(); /** + * + * *
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
@@ -107,52 +143,59 @@ public interface RouteLegStepLocalizedValuesOrBuilder extends
     com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder();
   }
   /**
+   *
+   *
    * 
    * Text representations of certain properties.
    * 
* * Protobuf type {@code google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues} */ - public static final class RouteLegStepLocalizedValues extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class RouteLegStepLocalizedValues + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues) RouteLegStepLocalizedValuesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RouteLegStepLocalizedValues.newBuilder() to construct. private RouteLegStepLocalizedValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RouteLegStepLocalizedValues() { - } + + private RouteLegStepLocalizedValues() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RouteLegStepLocalizedValues(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.class, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder.class); + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.class, + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder.class); } public static final int DISTANCE_FIELD_NUMBER = 1; private com.google.type.LocalizedText distance_; /** + * + * *
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return Whether the distance field is set. */ @java.lang.Override @@ -160,11 +203,14 @@ public boolean hasDistance() { return distance_ != null; } /** + * + * *
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return The distance. */ @java.lang.Override @@ -172,6 +218,8 @@ public com.google.type.LocalizedText getDistance() { return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; } /** + * + * *
      * Travel distance represented in text form.
      * 
@@ -186,12 +234,15 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { public static final int STATIC_DURATION_FIELD_NUMBER = 3; private com.google.type.LocalizedText staticDuration_; /** + * + * *
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return Whether the staticDuration field is set. */ @java.lang.Override @@ -199,19 +250,26 @@ public boolean hasStaticDuration() { return staticDuration_ != null; } /** + * + * *
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return The staticDuration. */ @java.lang.Override public com.google.type.LocalizedText getStaticDuration() { - return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : staticDuration_; } /** + * + * *
      * Duration without taking traffic conditions into
      * consideration, represented in text form.
@@ -221,10 +279,13 @@ public com.google.type.LocalizedText getStaticDuration() {
      */
     @java.lang.Override
     public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() {
-      return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_;
+      return staticDuration_ == null
+          ? com.google.type.LocalizedText.getDefaultInstance()
+          : staticDuration_;
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -236,8 +297,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 (distance_ != null) {
         output.writeMessage(1, getDistance());
       }
@@ -254,12 +314,10 @@ public int getSerializedSize() {
 
       size = 0;
       if (distance_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, getDistance());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDistance());
       }
       if (staticDuration_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, getStaticDuration());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStaticDuration());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -269,22 +327,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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues)) {
         return super.equals(obj);
       }
-      com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues other = (com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues) obj;
+      com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues other =
+          (com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues) obj;
 
       if (hasDistance() != other.hasDistance()) return false;
       if (hasDistance()) {
-        if (!getDistance()
-            .equals(other.getDistance())) return false;
+        if (!getDistance().equals(other.getDistance())) return false;
       }
       if (hasStaticDuration() != other.hasStaticDuration()) return false;
       if (hasStaticDuration()) {
-        if (!getStaticDuration()
-            .equals(other.getStaticDuration())) return false;
+        if (!getStaticDuration().equals(other.getStaticDuration())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -311,89 +368,95 @@ public int hashCode() {
     }
 
     public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues parseFrom(
+        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+    public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
 
-    public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues
+        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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues prototype) {
+
+    public static Builder newBuilder(
+        com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues 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
@@ -403,39 +466,42 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Text representations of certain properties.
      * 
* * Protobuf type {@code google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues} */ - 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues) com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.class, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder.class); + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.class, + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder.class); } - // Construct using com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.newBuilder() - private Builder() { - - } + // Construct using + // com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.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(); @@ -454,14 +520,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor; } @java.lang.Override - public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues getDefaultInstanceForType() { - return com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance(); + public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues + getDefaultInstanceForType() { + return com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues + .getDefaultInstance(); } @java.lang.Override @@ -475,23 +543,24 @@ public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues build @java.lang.Override public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues buildPartial() { - com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues result = new com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues result = + new com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues result) { + private void buildPartial0( + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.distance_ = distanceBuilder_ == null - ? distance_ - : distanceBuilder_.build(); + result.distance_ = distanceBuilder_ == null ? distance_ : distanceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.staticDuration_ = staticDurationBuilder_ == null - ? staticDuration_ - : staticDurationBuilder_.build(); + result.staticDuration_ = + staticDurationBuilder_ == null ? staticDuration_ : staticDurationBuilder_.build(); } } @@ -499,46 +568,53 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLegStep.RouteLegStepL 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.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues) { - return mergeFrom((com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues)other); + return mergeFrom( + (com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues other) { - if (other == com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues other) { + if (other + == com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues + .getDefaultInstance()) return this; if (other.hasDistance()) { mergeDistance(other.getDistance()); } @@ -571,26 +647,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDistanceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: { - input.readMessage( - getStaticDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getDistanceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage( + getStaticDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + 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) { @@ -600,28 +676,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.type.LocalizedText distance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> distanceBuilder_; + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + distanceBuilder_; /** + * + * *
        * Travel distance represented in text form.
        * 
* * .google.type.LocalizedText distance = 1; + * * @return Whether the distance field is set. */ public boolean hasDistance() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Travel distance represented in text form.
        * 
* * .google.type.LocalizedText distance = 1; + * * @return The distance. */ public com.google.type.LocalizedText getDistance() { @@ -632,6 +718,8 @@ public com.google.type.LocalizedText getDistance() { } } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -652,14 +740,15 @@ public Builder setDistance(com.google.type.LocalizedText value) { return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
* * .google.type.LocalizedText distance = 1; */ - public Builder setDistance( - com.google.type.LocalizedText.Builder builderForValue) { + public Builder setDistance(com.google.type.LocalizedText.Builder builderForValue) { if (distanceBuilder_ == null) { distance_ = builderForValue.build(); } else { @@ -670,6 +759,8 @@ public Builder setDistance( return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -678,9 +769,9 @@ public Builder setDistance( */ public Builder mergeDistance(com.google.type.LocalizedText value) { if (distanceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - distance_ != null && - distance_ != com.google.type.LocalizedText.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && distance_ != null + && distance_ != com.google.type.LocalizedText.getDefaultInstance()) { getDistanceBuilder().mergeFrom(value); } else { distance_ = value; @@ -693,6 +784,8 @@ public Builder mergeDistance(com.google.type.LocalizedText value) { return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -710,6 +803,8 @@ public Builder clearDistance() { return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -722,6 +817,8 @@ public com.google.type.LocalizedText.Builder getDistanceBuilder() { return getDistanceFieldBuilder().getBuilder(); } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -732,11 +829,12 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { if (distanceBuilder_ != null) { return distanceBuilder_.getMessageOrBuilder(); } else { - return distance_ == null ? - com.google.type.LocalizedText.getDefaultInstance() : distance_; + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; } } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -744,14 +842,17 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { * .google.type.LocalizedText distance = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> getDistanceFieldBuilder() { if (distanceBuilder_ == null) { - distanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( - getDistance(), - getParentForChildren(), - isClean()); + distanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getDistance(), getParentForChildren(), isClean()); distance_ = null; } return distanceBuilder_; @@ -759,36 +860,49 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { private com.google.type.LocalizedText staticDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> staticDurationBuilder_; + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + staticDurationBuilder_; /** + * + * *
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
        * 
* * .google.type.LocalizedText static_duration = 3; + * * @return Whether the staticDuration field is set. */ public boolean hasStaticDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
        * 
* * .google.type.LocalizedText static_duration = 3; + * * @return The staticDuration. */ public com.google.type.LocalizedText getStaticDuration() { if (staticDurationBuilder_ == null) { - return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : staticDuration_; } else { return staticDurationBuilder_.getMessage(); } } /** + * + * *
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -810,6 +924,8 @@ public Builder setStaticDuration(com.google.type.LocalizedText value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -817,8 +933,7 @@ public Builder setStaticDuration(com.google.type.LocalizedText value) {
        *
        * .google.type.LocalizedText static_duration = 3;
        */
-      public Builder setStaticDuration(
-          com.google.type.LocalizedText.Builder builderForValue) {
+      public Builder setStaticDuration(com.google.type.LocalizedText.Builder builderForValue) {
         if (staticDurationBuilder_ == null) {
           staticDuration_ = builderForValue.build();
         } else {
@@ -829,6 +944,8 @@ public Builder setStaticDuration(
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -838,9 +955,9 @@ public Builder setStaticDuration(
        */
       public Builder mergeStaticDuration(com.google.type.LocalizedText value) {
         if (staticDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0) &&
-            staticDuration_ != null &&
-            staticDuration_ != com.google.type.LocalizedText.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0)
+              && staticDuration_ != null
+              && staticDuration_ != com.google.type.LocalizedText.getDefaultInstance()) {
             getStaticDurationBuilder().mergeFrom(value);
           } else {
             staticDuration_ = value;
@@ -853,6 +970,8 @@ public Builder mergeStaticDuration(com.google.type.LocalizedText value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -871,6 +990,8 @@ public Builder clearStaticDuration() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -884,6 +1005,8 @@ public com.google.type.LocalizedText.Builder getStaticDurationBuilder() {
         return getStaticDurationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -895,11 +1018,14 @@ public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() {
         if (staticDurationBuilder_ != null) {
           return staticDurationBuilder_.getMessageOrBuilder();
         } else {
-          return staticDuration_ == null ?
-              com.google.type.LocalizedText.getDefaultInstance() : staticDuration_;
+          return staticDuration_ == null
+              ? com.google.type.LocalizedText.getDefaultInstance()
+              : staticDuration_;
         }
       }
       /**
+       *
+       *
        * 
        * Duration without taking traffic conditions into
        * consideration, represented in text form.
@@ -908,18 +1034,22 @@ public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() {
        * .google.type.LocalizedText static_duration = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> 
+              com.google.type.LocalizedText,
+              com.google.type.LocalizedText.Builder,
+              com.google.type.LocalizedTextOrBuilder>
           getStaticDurationFieldBuilder() {
         if (staticDurationBuilder_ == null) {
-          staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>(
-                  getStaticDuration(),
-                  getParentForChildren(),
-                  isClean());
+          staticDurationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.type.LocalizedText,
+                  com.google.type.LocalizedText.Builder,
+                  com.google.type.LocalizedTextOrBuilder>(
+                  getStaticDuration(), getParentForChildren(), isClean());
           staticDuration_ = null;
         }
         return staticDurationBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -932,41 +1062,44 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues)
     }
 
     // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues)
-    private static final com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues DEFAULT_INSTANCE;
+    private static final com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues
+        DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues();
     }
 
-    public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues getDefaultInstance() {
+    public static com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public RouteLegStepLocalizedValues 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 RouteLegStepLocalizedValues 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;
@@ -978,21 +1111,24 @@ public com.google.protobuf.Parser getParserForType(
     }
 
     @java.lang.Override
-    public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues getDefaultInstanceForType() {
+    public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   public static final int DISTANCE_METERS_FIELD_NUMBER = 1;
   private int distanceMeters_ = 0;
   /**
+   *
+   *
    * 
    * The travel distance of this step, in meters. In some circumstances, this
    * field might not have a value.
    * 
* * int32 distance_meters = 1; + * * @return The distanceMeters. */ @java.lang.Override @@ -1003,6 +1139,8 @@ public int getDistanceMeters() { public static final int STATIC_DURATION_FIELD_NUMBER = 2; private com.google.protobuf.Duration staticDuration_; /** + * + * *
    * The duration of travel through this step without taking traffic conditions
    * into consideration. In some circumstances, this field might not have a
@@ -1010,6 +1148,7 @@ public int getDistanceMeters() {
    * 
* * .google.protobuf.Duration static_duration = 2; + * * @return Whether the staticDuration field is set. */ @java.lang.Override @@ -1017,6 +1156,8 @@ public boolean hasStaticDuration() { return staticDuration_ != null; } /** + * + * *
    * The duration of travel through this step without taking traffic conditions
    * into consideration. In some circumstances, this field might not have a
@@ -1024,13 +1165,18 @@ public boolean hasStaticDuration() {
    * 
* * .google.protobuf.Duration static_duration = 2; + * * @return The staticDuration. */ @java.lang.Override public com.google.protobuf.Duration getStaticDuration() { - return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : staticDuration_; } /** + * + * *
    * The duration of travel through this step without taking traffic conditions
    * into consideration. In some circumstances, this field might not have a
@@ -1041,17 +1187,22 @@ public com.google.protobuf.Duration getStaticDuration() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
-    return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_;
+    return staticDuration_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : staticDuration_;
   }
 
   public static final int POLYLINE_FIELD_NUMBER = 3;
   private com.google.maps.routing.v2.Polyline polyline_;
   /**
+   *
+   *
    * 
    * The polyline associated with this step.
    * 
* * .google.maps.routing.v2.Polyline polyline = 3; + * * @return Whether the polyline field is set. */ @java.lang.Override @@ -1059,11 +1210,14 @@ public boolean hasPolyline() { return polyline_ != null; } /** + * + * *
    * The polyline associated with this step.
    * 
* * .google.maps.routing.v2.Polyline polyline = 3; + * * @return The polyline. */ @java.lang.Override @@ -1071,6 +1225,8 @@ public com.google.maps.routing.v2.Polyline getPolyline() { return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; } /** + * + * *
    * The polyline associated with this step.
    * 
@@ -1085,11 +1241,14 @@ public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { public static final int START_LOCATION_FIELD_NUMBER = 4; private com.google.maps.routing.v2.Location startLocation_; /** + * + * *
    * The start location of this step.
    * 
* * .google.maps.routing.v2.Location start_location = 4; + * * @return Whether the startLocation field is set. */ @java.lang.Override @@ -1097,18 +1256,25 @@ public boolean hasStartLocation() { return startLocation_ != null; } /** + * + * *
    * The start location of this step.
    * 
* * .google.maps.routing.v2.Location start_location = 4; + * * @return The startLocation. */ @java.lang.Override public com.google.maps.routing.v2.Location getStartLocation() { - return startLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_; + return startLocation_ == null + ? com.google.maps.routing.v2.Location.getDefaultInstance() + : startLocation_; } /** + * + * *
    * The start location of this step.
    * 
@@ -1117,17 +1283,22 @@ public com.google.maps.routing.v2.Location getStartLocation() { */ @java.lang.Override public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder() { - return startLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_; + return startLocation_ == null + ? com.google.maps.routing.v2.Location.getDefaultInstance() + : startLocation_; } public static final int END_LOCATION_FIELD_NUMBER = 5; private com.google.maps.routing.v2.Location endLocation_; /** + * + * *
    * The end location of this step.
    * 
* * .google.maps.routing.v2.Location end_location = 5; + * * @return Whether the endLocation field is set. */ @java.lang.Override @@ -1135,18 +1306,25 @@ public boolean hasEndLocation() { return endLocation_ != null; } /** + * + * *
    * The end location of this step.
    * 
* * .google.maps.routing.v2.Location end_location = 5; + * * @return The endLocation. */ @java.lang.Override public com.google.maps.routing.v2.Location getEndLocation() { - return endLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_; + return endLocation_ == null + ? com.google.maps.routing.v2.Location.getDefaultInstance() + : endLocation_; } /** + * + * *
    * The end location of this step.
    * 
@@ -1155,17 +1333,22 @@ public com.google.maps.routing.v2.Location getEndLocation() { */ @java.lang.Override public com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder() { - return endLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_; + return endLocation_ == null + ? com.google.maps.routing.v2.Location.getDefaultInstance() + : endLocation_; } public static final int NAVIGATION_INSTRUCTION_FIELD_NUMBER = 6; private com.google.maps.routing.v2.NavigationInstruction navigationInstruction_; /** + * + * *
    * Navigation instructions.
    * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + * * @return Whether the navigationInstruction field is set. */ @java.lang.Override @@ -1173,18 +1356,25 @@ public boolean hasNavigationInstruction() { return navigationInstruction_ != null; } /** + * + * *
    * Navigation instructions.
    * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + * * @return The navigationInstruction. */ @java.lang.Override public com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction() { - return navigationInstruction_ == null ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + return navigationInstruction_ == null + ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() + : navigationInstruction_; } /** + * + * *
    * Navigation instructions.
    * 
@@ -1192,19 +1382,25 @@ public com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; */ @java.lang.Override - public com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationInstructionOrBuilder() { - return navigationInstruction_ == null ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + public com.google.maps.routing.v2.NavigationInstructionOrBuilder + getNavigationInstructionOrBuilder() { + return navigationInstruction_ == null + ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() + : navigationInstruction_; } public static final int TRAVEL_ADVISORY_FIELD_NUMBER = 7; private com.google.maps.routing.v2.RouteLegStepTravelAdvisory travelAdvisory_; /** + * + * *
    * Contains the additional information that the user should be informed
    * about, such as possible traffic zone restrictions, on a leg step.
    * 
* * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + * * @return Whether the travelAdvisory field is set. */ @java.lang.Override @@ -1212,19 +1408,26 @@ public boolean hasTravelAdvisory() { return travelAdvisory_ != null; } /** + * + * *
    * Contains the additional information that the user should be informed
    * about, such as possible traffic zone restrictions, on a leg step.
    * 
* * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + * * @return The travelAdvisory. */ @java.lang.Override public com.google.maps.routing.v2.RouteLegStepTravelAdvisory getTravelAdvisory() { - return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance() : travelAdvisory_; + return travelAdvisory_ == null + ? com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance() + : travelAdvisory_; } /** + * + * *
    * Contains the additional information that the user should be informed
    * about, such as possible traffic zone restrictions, on a leg step.
@@ -1233,18 +1436,25 @@ public com.google.maps.routing.v2.RouteLegStepTravelAdvisory getTravelAdvisory()
    * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7;
    */
   @java.lang.Override
-  public com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() {
-    return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance() : travelAdvisory_;
+  public com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder
+      getTravelAdvisoryOrBuilder() {
+    return travelAdvisory_ == null
+        ? com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance()
+        : travelAdvisory_;
   }
 
   public static final int LOCALIZED_VALUES_FIELD_NUMBER = 8;
   private com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localizedValues_;
   /**
+   *
+   *
    * 
    * Text representations of properties of the `RouteLegStep`.
    * 
* - * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * + * * @return Whether the localizedValues field is set. */ @java.lang.Override @@ -1252,37 +1462,52 @@ public boolean hasLocalizedValues() { return localizedValues_ != null; } /** + * + * *
    * Text representations of properties of the `RouteLegStep`.
    * 
* - * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * + * * @return The localizedValues. */ @java.lang.Override public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues getLocalizedValues() { - return localizedValues_ == null ? com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance() : localizedValues_; + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance() + : localizedValues_; } /** + * + * *
    * Text representations of properties of the `RouteLegStep`.
    * 
* - * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * */ @java.lang.Override - public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { - return localizedValues_ == null ? com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance() : localizedValues_; + public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder + getLocalizedValuesOrBuilder() { + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance() + : localizedValues_; } public static final int TRANSIT_DETAILS_FIELD_NUMBER = 9; private com.google.maps.routing.v2.RouteLegStepTransitDetails transitDetails_; /** + * + * *
    * Details pertaining to this step if the travel mode is `TRANSIT`.
    * 
* * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + * * @return Whether the transitDetails field is set. */ @java.lang.Override @@ -1290,18 +1515,25 @@ public boolean hasTransitDetails() { return transitDetails_ != null; } /** + * + * *
    * Details pertaining to this step if the travel mode is `TRANSIT`.
    * 
* * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + * * @return The transitDetails. */ @java.lang.Override public com.google.maps.routing.v2.RouteLegStepTransitDetails getTransitDetails() { - return transitDetails_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance() : transitDetails_; + return transitDetails_ == null + ? com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance() + : transitDetails_; } /** + * + * *
    * Details pertaining to this step if the travel mode is `TRANSIT`.
    * 
@@ -1309,37 +1541,50 @@ public com.google.maps.routing.v2.RouteLegStepTransitDetails getTransitDetails() * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; */ @java.lang.Override - public com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder getTransitDetailsOrBuilder() { - return transitDetails_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance() : transitDetails_; + public com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder + getTransitDetailsOrBuilder() { + return transitDetails_ == null + ? com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance() + : transitDetails_; } public static final int TRAVEL_MODE_FIELD_NUMBER = 10; private int travelMode_ = 0; /** + * + * *
    * The travel mode used for this step.
    * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * * @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 used for this step.
    * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * * @return The travelMode. */ - @java.lang.Override public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { - com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + @java.lang.Override + public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { + com.google.maps.routing.v2.RouteTravelMode result = + com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1351,8 +1596,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 (distanceMeters_ != 0) { output.writeInt32(1, distanceMeters_); } @@ -1380,7 +1624,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (transitDetails_ != null) { output.writeMessage(9, getTransitDetails()); } - if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + if (travelMode_ + != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(10, travelMode_); } getUnknownFields().writeTo(output); @@ -1393,44 +1638,36 @@ public int getSerializedSize() { size = 0; if (distanceMeters_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, distanceMeters_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, distanceMeters_); } if (staticDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStaticDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStaticDuration()); } if (polyline_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPolyline()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPolyline()); } if (startLocation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStartLocation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartLocation()); } if (endLocation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getEndLocation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndLocation()); } if (navigationInstruction_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getNavigationInstruction()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getNavigationInstruction()); } if (travelAdvisory_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getTravelAdvisory()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTravelAdvisory()); } if (localizedValues_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getLocalizedValues()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLocalizedValues()); } if (transitDetails_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getTransitDetails()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getTransitDetails()); } - if (travelMode_ != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, travelMode_); + if (travelMode_ + != com.google.maps.routing.v2.RouteTravelMode.TRAVEL_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, travelMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1440,54 +1677,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.maps.routing.v2.RouteLegStep)) { return super.equals(obj); } com.google.maps.routing.v2.RouteLegStep other = (com.google.maps.routing.v2.RouteLegStep) obj; - if (getDistanceMeters() - != other.getDistanceMeters()) return false; + if (getDistanceMeters() != other.getDistanceMeters()) return false; if (hasStaticDuration() != other.hasStaticDuration()) return false; if (hasStaticDuration()) { - if (!getStaticDuration() - .equals(other.getStaticDuration())) return false; + if (!getStaticDuration().equals(other.getStaticDuration())) return false; } if (hasPolyline() != other.hasPolyline()) return false; if (hasPolyline()) { - if (!getPolyline() - .equals(other.getPolyline())) return false; + if (!getPolyline().equals(other.getPolyline())) 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 (hasEndLocation() != other.hasEndLocation()) return false; if (hasEndLocation()) { - if (!getEndLocation() - .equals(other.getEndLocation())) return false; + if (!getEndLocation().equals(other.getEndLocation())) return false; } if (hasNavigationInstruction() != other.hasNavigationInstruction()) return false; if (hasNavigationInstruction()) { - if (!getNavigationInstruction() - .equals(other.getNavigationInstruction())) return false; + if (!getNavigationInstruction().equals(other.getNavigationInstruction())) return false; } if (hasTravelAdvisory() != other.hasTravelAdvisory()) return false; if (hasTravelAdvisory()) { - if (!getTravelAdvisory() - .equals(other.getTravelAdvisory())) return false; + if (!getTravelAdvisory().equals(other.getTravelAdvisory())) return false; } if (hasLocalizedValues() != other.hasLocalizedValues()) return false; if (hasLocalizedValues()) { - if (!getLocalizedValues() - .equals(other.getLocalizedValues())) return false; + if (!getLocalizedValues().equals(other.getLocalizedValues())) return false; } if (hasTransitDetails() != other.hasTransitDetails()) return false; if (hasTransitDetails()) { - if (!getTransitDetails() - .equals(other.getTransitDetails())) return false; + if (!getTransitDetails().equals(other.getTransitDetails())) return false; } if (travelMode_ != other.travelMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1542,99 +1770,104 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.RouteLegStep parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.RouteLegStep parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteLegStep parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep 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; } /** + * + * *
    * Contains a segment of a [RouteLeg][google.maps.routing.v2.RouteLeg]. A
    * step corresponds to a single navigation instruction. Route legs are made up
@@ -1643,33 +1876,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.maps.routing.v2.RouteLegStep}
    */
-  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.maps.routing.v2.RouteLegStep)
       com.google.maps.routing.v2.RouteLegStepOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.maps.routing.v2.RouteProto
+          .internal_static_google_maps_routing_v2_RouteLegStep_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_fieldAccessorTable
+      return com.google.maps.routing.v2.RouteProto
+          .internal_static_google_maps_routing_v2_RouteLegStep_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.RouteLegStep.class, com.google.maps.routing.v2.RouteLegStep.Builder.class);
+              com.google.maps.routing.v2.RouteLegStep.class,
+              com.google.maps.routing.v2.RouteLegStep.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.RouteLegStep.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();
@@ -1720,9 +1952,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStep_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.maps.routing.v2.RouteProto
+          .internal_static_google_maps_routing_v2_RouteLegStep_descriptor;
     }
 
     @java.lang.Override
@@ -1741,8 +1973,11 @@ public com.google.maps.routing.v2.RouteLegStep build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.RouteLegStep buildPartial() {
-      com.google.maps.routing.v2.RouteLegStep result = new com.google.maps.routing.v2.RouteLegStep(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.maps.routing.v2.RouteLegStep result =
+          new com.google.maps.routing.v2.RouteLegStep(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1753,44 +1988,37 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLegStep result) {
         result.distanceMeters_ = distanceMeters_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.staticDuration_ = staticDurationBuilder_ == null
-            ? staticDuration_
-            : staticDurationBuilder_.build();
+        result.staticDuration_ =
+            staticDurationBuilder_ == null ? staticDuration_ : staticDurationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.polyline_ = polylineBuilder_ == null
-            ? polyline_
-            : polylineBuilder_.build();
+        result.polyline_ = polylineBuilder_ == null ? polyline_ : polylineBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.startLocation_ = startLocationBuilder_ == null
-            ? startLocation_
-            : startLocationBuilder_.build();
+        result.startLocation_ =
+            startLocationBuilder_ == null ? startLocation_ : startLocationBuilder_.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.navigationInstruction_ = navigationInstructionBuilder_ == null
-            ? navigationInstruction_
-            : navigationInstructionBuilder_.build();
+        result.navigationInstruction_ =
+            navigationInstructionBuilder_ == null
+                ? navigationInstruction_
+                : navigationInstructionBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.travelAdvisory_ = travelAdvisoryBuilder_ == null
-            ? travelAdvisory_
-            : travelAdvisoryBuilder_.build();
+        result.travelAdvisory_ =
+            travelAdvisoryBuilder_ == null ? travelAdvisory_ : travelAdvisoryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.localizedValues_ = localizedValuesBuilder_ == null
-            ? localizedValues_
-            : localizedValuesBuilder_.build();
+        result.localizedValues_ =
+            localizedValuesBuilder_ == null ? localizedValues_ : localizedValuesBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.transitDetails_ = transitDetailsBuilder_ == null
-            ? transitDetails_
-            : transitDetailsBuilder_.build();
+        result.transitDetails_ =
+            transitDetailsBuilder_ == null ? transitDetails_ : transitDetailsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.travelMode_ = travelMode_;
@@ -1801,38 +2029,39 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLegStep 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.maps.routing.v2.RouteLegStep) {
-        return mergeFrom((com.google.maps.routing.v2.RouteLegStep)other);
+        return mergeFrom((com.google.maps.routing.v2.RouteLegStep) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1897,78 +2126,74 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              distanceMeters_ = input.readInt32();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              input.readMessage(
-                  getStaticDurationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getPolylineFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getStartLocationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getEndLocationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getNavigationInstructionFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getTravelAdvisoryFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getLocalizedValuesFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getTransitDetailsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 74
-            case 80: {
-              travelMode_ = input.readEnum();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 80
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                distanceMeters_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                input.readMessage(getStaticDurationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getPolylineFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getStartLocationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getEndLocationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(
+                    getNavigationInstructionFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getTravelAdvisoryFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getLocalizedValuesFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getTransitDetailsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 74
+            case 80:
+              {
+                travelMode_ = input.readEnum();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 80
+            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) {
@@ -1978,16 +2203,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private int distanceMeters_ ;
+    private int distanceMeters_;
     /**
+     *
+     *
      * 
      * The travel distance of this step, in meters. In some circumstances, this
      * field might not have a value.
      * 
* * int32 distance_meters = 1; + * * @return The distanceMeters. */ @java.lang.Override @@ -1995,12 +2224,15 @@ public int getDistanceMeters() { return distanceMeters_; } /** + * + * *
      * The travel distance of this step, in meters. In some circumstances, this
      * field might not have a value.
      * 
* * int32 distance_meters = 1; + * * @param value The distanceMeters to set. * @return This builder for chaining. */ @@ -2012,12 +2244,15 @@ public Builder setDistanceMeters(int value) { return this; } /** + * + * *
      * The travel distance of this step, in meters. In some circumstances, this
      * field might not have a value.
      * 
* * int32 distance_meters = 1; + * * @return This builder for chaining. */ public Builder clearDistanceMeters() { @@ -2029,8 +2264,13 @@ public Builder clearDistanceMeters() { private com.google.protobuf.Duration staticDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> staticDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + staticDurationBuilder_; /** + * + * *
      * The duration of travel through this step without taking traffic conditions
      * into consideration. In some circumstances, this field might not have a
@@ -2038,12 +2278,15 @@ public Builder clearDistanceMeters() {
      * 
* * .google.protobuf.Duration static_duration = 2; + * * @return Whether the staticDuration field is set. */ public boolean hasStaticDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The duration of travel through this step without taking traffic conditions
      * into consideration. In some circumstances, this field might not have a
@@ -2051,16 +2294,21 @@ public boolean hasStaticDuration() {
      * 
* * .google.protobuf.Duration static_duration = 2; + * * @return The staticDuration. */ public com.google.protobuf.Duration getStaticDuration() { if (staticDurationBuilder_ == null) { - return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : staticDuration_; } else { return staticDurationBuilder_.getMessage(); } } /** + * + * *
      * The duration of travel through this step without taking traffic conditions
      * into consideration. In some circumstances, this field might not have a
@@ -2083,6 +2331,8 @@ public Builder setStaticDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of travel through this step without taking traffic conditions
      * into consideration. In some circumstances, this field might not have a
@@ -2091,8 +2341,7 @@ public Builder setStaticDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration static_duration = 2;
      */
-    public Builder setStaticDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStaticDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (staticDurationBuilder_ == null) {
         staticDuration_ = builderForValue.build();
       } else {
@@ -2103,6 +2352,8 @@ public Builder setStaticDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of travel through this step without taking traffic conditions
      * into consideration. In some circumstances, this field might not have a
@@ -2113,9 +2364,9 @@ public Builder setStaticDuration(
      */
     public Builder mergeStaticDuration(com.google.protobuf.Duration value) {
       if (staticDurationBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          staticDuration_ != null &&
-          staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && staticDuration_ != null
+            && staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStaticDurationBuilder().mergeFrom(value);
         } else {
           staticDuration_ = value;
@@ -2128,6 +2379,8 @@ public Builder mergeStaticDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of travel through this step without taking traffic conditions
      * into consideration. In some circumstances, this field might not have a
@@ -2147,6 +2400,8 @@ public Builder clearStaticDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of travel through this step without taking traffic conditions
      * into consideration. In some circumstances, this field might not have a
@@ -2161,6 +2416,8 @@ public com.google.protobuf.Duration.Builder getStaticDurationBuilder() {
       return getStaticDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The duration of travel through this step without taking traffic conditions
      * into consideration. In some circumstances, this field might not have a
@@ -2173,11 +2430,14 @@ public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
       if (staticDurationBuilder_ != null) {
         return staticDurationBuilder_.getMessageOrBuilder();
       } else {
-        return staticDuration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : staticDuration_;
+        return staticDuration_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : staticDuration_;
       }
     }
     /**
+     *
+     *
      * 
      * The duration of travel through this step without taking traffic conditions
      * into consideration. In some circumstances, this field might not have a
@@ -2187,14 +2447,17 @@ public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
      * .google.protobuf.Duration static_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>
         getStaticDurationFieldBuilder() {
       if (staticDurationBuilder_ == null) {
-        staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getStaticDuration(),
-                getParentForChildren(),
-                isClean());
+        staticDurationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getStaticDuration(), getParentForChildren(), isClean());
         staticDuration_ = null;
       }
       return staticDurationBuilder_;
@@ -2202,34 +2465,47 @@ public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
 
     private com.google.maps.routing.v2.Polyline polyline_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder> polylineBuilder_;
+            com.google.maps.routing.v2.Polyline,
+            com.google.maps.routing.v2.Polyline.Builder,
+            com.google.maps.routing.v2.PolylineOrBuilder>
+        polylineBuilder_;
     /**
+     *
+     *
      * 
      * The polyline associated with this step.
      * 
* * .google.maps.routing.v2.Polyline polyline = 3; + * * @return Whether the polyline field is set. */ public boolean hasPolyline() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The polyline associated with this step.
      * 
* * .google.maps.routing.v2.Polyline polyline = 3; + * * @return The polyline. */ public com.google.maps.routing.v2.Polyline getPolyline() { if (polylineBuilder_ == null) { - return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + return polyline_ == null + ? com.google.maps.routing.v2.Polyline.getDefaultInstance() + : polyline_; } else { return polylineBuilder_.getMessage(); } } /** + * + * *
      * The polyline associated with this step.
      * 
@@ -2250,14 +2526,15 @@ public Builder setPolyline(com.google.maps.routing.v2.Polyline value) { return this; } /** + * + * *
      * The polyline associated with this step.
      * 
* * .google.maps.routing.v2.Polyline polyline = 3; */ - public Builder setPolyline( - com.google.maps.routing.v2.Polyline.Builder builderForValue) { + public Builder setPolyline(com.google.maps.routing.v2.Polyline.Builder builderForValue) { if (polylineBuilder_ == null) { polyline_ = builderForValue.build(); } else { @@ -2268,6 +2545,8 @@ public Builder setPolyline( return this; } /** + * + * *
      * The polyline associated with this step.
      * 
@@ -2276,9 +2555,9 @@ public Builder setPolyline( */ public Builder mergePolyline(com.google.maps.routing.v2.Polyline value) { if (polylineBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - polyline_ != null && - polyline_ != com.google.maps.routing.v2.Polyline.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && polyline_ != null + && polyline_ != com.google.maps.routing.v2.Polyline.getDefaultInstance()) { getPolylineBuilder().mergeFrom(value); } else { polyline_ = value; @@ -2291,6 +2570,8 @@ public Builder mergePolyline(com.google.maps.routing.v2.Polyline value) { return this; } /** + * + * *
      * The polyline associated with this step.
      * 
@@ -2308,6 +2589,8 @@ public Builder clearPolyline() { return this; } /** + * + * *
      * The polyline associated with this step.
      * 
@@ -2320,6 +2603,8 @@ public com.google.maps.routing.v2.Polyline.Builder getPolylineBuilder() { return getPolylineFieldBuilder().getBuilder(); } /** + * + * *
      * The polyline associated with this step.
      * 
@@ -2330,11 +2615,14 @@ public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { if (polylineBuilder_ != null) { return polylineBuilder_.getMessageOrBuilder(); } else { - return polyline_ == null ? - com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; + return polyline_ == null + ? com.google.maps.routing.v2.Polyline.getDefaultInstance() + : polyline_; } } /** + * + * *
      * The polyline associated with this step.
      * 
@@ -2342,14 +2630,17 @@ public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { * .google.maps.routing.v2.Polyline polyline = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder> + com.google.maps.routing.v2.Polyline, + com.google.maps.routing.v2.Polyline.Builder, + com.google.maps.routing.v2.PolylineOrBuilder> getPolylineFieldBuilder() { if (polylineBuilder_ == null) { - polylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Polyline, com.google.maps.routing.v2.Polyline.Builder, com.google.maps.routing.v2.PolylineOrBuilder>( - getPolyline(), - getParentForChildren(), - isClean()); + polylineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Polyline, + com.google.maps.routing.v2.Polyline.Builder, + com.google.maps.routing.v2.PolylineOrBuilder>( + getPolyline(), getParentForChildren(), isClean()); polyline_ = null; } return polylineBuilder_; @@ -2357,34 +2648,47 @@ public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { private com.google.maps.routing.v2.Location startLocation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> startLocationBuilder_; + com.google.maps.routing.v2.Location, + com.google.maps.routing.v2.Location.Builder, + com.google.maps.routing.v2.LocationOrBuilder> + startLocationBuilder_; /** + * + * *
      * The start location of this step.
      * 
* * .google.maps.routing.v2.Location start_location = 4; + * * @return Whether the startLocation field is set. */ public boolean hasStartLocation() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The start location of this step.
      * 
* * .google.maps.routing.v2.Location start_location = 4; + * * @return The startLocation. */ public com.google.maps.routing.v2.Location getStartLocation() { if (startLocationBuilder_ == null) { - return startLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_; + return startLocation_ == null + ? com.google.maps.routing.v2.Location.getDefaultInstance() + : startLocation_; } else { return startLocationBuilder_.getMessage(); } } /** + * + * *
      * The start location of this step.
      * 
@@ -2405,14 +2709,15 @@ public Builder setStartLocation(com.google.maps.routing.v2.Location value) { return this; } /** + * + * *
      * The start location of this step.
      * 
* * .google.maps.routing.v2.Location start_location = 4; */ - public Builder setStartLocation( - com.google.maps.routing.v2.Location.Builder builderForValue) { + public Builder setStartLocation(com.google.maps.routing.v2.Location.Builder builderForValue) { if (startLocationBuilder_ == null) { startLocation_ = builderForValue.build(); } else { @@ -2423,6 +2728,8 @@ public Builder setStartLocation( return this; } /** + * + * *
      * The start location of this step.
      * 
@@ -2431,9 +2738,9 @@ public Builder setStartLocation( */ public Builder mergeStartLocation(com.google.maps.routing.v2.Location value) { if (startLocationBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - startLocation_ != null && - startLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && startLocation_ != null + && startLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) { getStartLocationBuilder().mergeFrom(value); } else { startLocation_ = value; @@ -2446,6 +2753,8 @@ public Builder mergeStartLocation(com.google.maps.routing.v2.Location value) { return this; } /** + * + * *
      * The start location of this step.
      * 
@@ -2463,6 +2772,8 @@ public Builder clearStartLocation() { return this; } /** + * + * *
      * The start location of this step.
      * 
@@ -2475,6 +2786,8 @@ public com.google.maps.routing.v2.Location.Builder getStartLocationBuilder() { return getStartLocationFieldBuilder().getBuilder(); } /** + * + * *
      * The start location of this step.
      * 
@@ -2485,11 +2798,14 @@ public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder() if (startLocationBuilder_ != null) { return startLocationBuilder_.getMessageOrBuilder(); } else { - return startLocation_ == null ? - com.google.maps.routing.v2.Location.getDefaultInstance() : startLocation_; + return startLocation_ == null + ? com.google.maps.routing.v2.Location.getDefaultInstance() + : startLocation_; } } /** + * + * *
      * The start location of this step.
      * 
@@ -2497,14 +2813,17 @@ public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder() * .google.maps.routing.v2.Location start_location = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> + com.google.maps.routing.v2.Location, + com.google.maps.routing.v2.Location.Builder, + com.google.maps.routing.v2.LocationOrBuilder> getStartLocationFieldBuilder() { if (startLocationBuilder_ == null) { - startLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder>( - getStartLocation(), - getParentForChildren(), - isClean()); + startLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, + com.google.maps.routing.v2.Location.Builder, + com.google.maps.routing.v2.LocationOrBuilder>( + getStartLocation(), getParentForChildren(), isClean()); startLocation_ = null; } return startLocationBuilder_; @@ -2512,34 +2831,47 @@ public com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder() private com.google.maps.routing.v2.Location endLocation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> endLocationBuilder_; + com.google.maps.routing.v2.Location, + com.google.maps.routing.v2.Location.Builder, + com.google.maps.routing.v2.LocationOrBuilder> + endLocationBuilder_; /** + * + * *
      * The end location of this step.
      * 
* * .google.maps.routing.v2.Location end_location = 5; + * * @return Whether the endLocation field is set. */ public boolean hasEndLocation() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * The end location of this step.
      * 
* * .google.maps.routing.v2.Location end_location = 5; + * * @return The endLocation. */ public com.google.maps.routing.v2.Location getEndLocation() { if (endLocationBuilder_ == null) { - return endLocation_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_; + return endLocation_ == null + ? com.google.maps.routing.v2.Location.getDefaultInstance() + : endLocation_; } else { return endLocationBuilder_.getMessage(); } } /** + * + * *
      * The end location of this step.
      * 
@@ -2560,14 +2892,15 @@ public Builder setEndLocation(com.google.maps.routing.v2.Location value) { return this; } /** + * + * *
      * The end location of this step.
      * 
* * .google.maps.routing.v2.Location end_location = 5; */ - public Builder setEndLocation( - com.google.maps.routing.v2.Location.Builder builderForValue) { + public Builder setEndLocation(com.google.maps.routing.v2.Location.Builder builderForValue) { if (endLocationBuilder_ == null) { endLocation_ = builderForValue.build(); } else { @@ -2578,6 +2911,8 @@ public Builder setEndLocation( return this; } /** + * + * *
      * The end location of this step.
      * 
@@ -2586,9 +2921,9 @@ public Builder setEndLocation( */ public Builder mergeEndLocation(com.google.maps.routing.v2.Location value) { if (endLocationBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - endLocation_ != null && - endLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && endLocation_ != null + && endLocation_ != com.google.maps.routing.v2.Location.getDefaultInstance()) { getEndLocationBuilder().mergeFrom(value); } else { endLocation_ = value; @@ -2601,6 +2936,8 @@ public Builder mergeEndLocation(com.google.maps.routing.v2.Location value) { return this; } /** + * + * *
      * The end location of this step.
      * 
@@ -2618,6 +2955,8 @@ public Builder clearEndLocation() { return this; } /** + * + * *
      * The end location of this step.
      * 
@@ -2630,6 +2969,8 @@ public com.google.maps.routing.v2.Location.Builder getEndLocationBuilder() { return getEndLocationFieldBuilder().getBuilder(); } /** + * + * *
      * The end location of this step.
      * 
@@ -2640,11 +2981,14 @@ public com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder() { if (endLocationBuilder_ != null) { return endLocationBuilder_.getMessageOrBuilder(); } else { - return endLocation_ == null ? - com.google.maps.routing.v2.Location.getDefaultInstance() : endLocation_; + return endLocation_ == null + ? com.google.maps.routing.v2.Location.getDefaultInstance() + : endLocation_; } } /** + * + * *
      * The end location of this step.
      * 
@@ -2652,14 +2996,17 @@ public com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder() { * .google.maps.routing.v2.Location end_location = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> + com.google.maps.routing.v2.Location, + com.google.maps.routing.v2.Location.Builder, + com.google.maps.routing.v2.LocationOrBuilder> getEndLocationFieldBuilder() { if (endLocationBuilder_ == null) { - endLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder>( - getEndLocation(), - getParentForChildren(), - isClean()); + endLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, + com.google.maps.routing.v2.Location.Builder, + com.google.maps.routing.v2.LocationOrBuilder>( + getEndLocation(), getParentForChildren(), isClean()); endLocation_ = null; } return endLocationBuilder_; @@ -2667,41 +3014,55 @@ public com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder() { private com.google.maps.routing.v2.NavigationInstruction navigationInstruction_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.NavigationInstruction, com.google.maps.routing.v2.NavigationInstruction.Builder, com.google.maps.routing.v2.NavigationInstructionOrBuilder> navigationInstructionBuilder_; + com.google.maps.routing.v2.NavigationInstruction, + com.google.maps.routing.v2.NavigationInstruction.Builder, + com.google.maps.routing.v2.NavigationInstructionOrBuilder> + navigationInstructionBuilder_; /** + * + * *
      * Navigation instructions.
      * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + * * @return Whether the navigationInstruction field is set. */ public boolean hasNavigationInstruction() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Navigation instructions.
      * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + * * @return The navigationInstruction. */ public com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction() { if (navigationInstructionBuilder_ == null) { - return navigationInstruction_ == null ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + return navigationInstruction_ == null + ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() + : navigationInstruction_; } else { return navigationInstructionBuilder_.getMessage(); } } /** + * + * *
      * Navigation instructions.
      * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; */ - public Builder setNavigationInstruction(com.google.maps.routing.v2.NavigationInstruction value) { + public Builder setNavigationInstruction( + com.google.maps.routing.v2.NavigationInstruction value) { if (navigationInstructionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2715,6 +3076,8 @@ public Builder setNavigationInstruction(com.google.maps.routing.v2.NavigationIns return this; } /** + * + * *
      * Navigation instructions.
      * 
@@ -2733,17 +3096,21 @@ public Builder setNavigationInstruction( return this; } /** + * + * *
      * Navigation instructions.
      * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; */ - public Builder mergeNavigationInstruction(com.google.maps.routing.v2.NavigationInstruction value) { + public Builder mergeNavigationInstruction( + com.google.maps.routing.v2.NavigationInstruction value) { if (navigationInstructionBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - navigationInstruction_ != null && - navigationInstruction_ != com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && navigationInstruction_ != null + && navigationInstruction_ + != com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance()) { getNavigationInstructionBuilder().mergeFrom(value); } else { navigationInstruction_ = value; @@ -2756,6 +3123,8 @@ public Builder mergeNavigationInstruction(com.google.maps.routing.v2.NavigationI return this; } /** + * + * *
      * Navigation instructions.
      * 
@@ -2773,33 +3142,42 @@ public Builder clearNavigationInstruction() { return this; } /** + * + * *
      * Navigation instructions.
      * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; */ - public com.google.maps.routing.v2.NavigationInstruction.Builder getNavigationInstructionBuilder() { + public com.google.maps.routing.v2.NavigationInstruction.Builder + getNavigationInstructionBuilder() { bitField0_ |= 0x00000020; onChanged(); return getNavigationInstructionFieldBuilder().getBuilder(); } /** + * + * *
      * Navigation instructions.
      * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; */ - public com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationInstructionOrBuilder() { + public com.google.maps.routing.v2.NavigationInstructionOrBuilder + getNavigationInstructionOrBuilder() { if (navigationInstructionBuilder_ != null) { return navigationInstructionBuilder_.getMessageOrBuilder(); } else { - return navigationInstruction_ == null ? - com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() : navigationInstruction_; + return navigationInstruction_ == null + ? com.google.maps.routing.v2.NavigationInstruction.getDefaultInstance() + : navigationInstruction_; } } /** + * + * *
      * Navigation instructions.
      * 
@@ -2807,14 +3185,17 @@ public com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationIn * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.NavigationInstruction, com.google.maps.routing.v2.NavigationInstruction.Builder, com.google.maps.routing.v2.NavigationInstructionOrBuilder> + com.google.maps.routing.v2.NavigationInstruction, + com.google.maps.routing.v2.NavigationInstruction.Builder, + com.google.maps.routing.v2.NavigationInstructionOrBuilder> getNavigationInstructionFieldBuilder() { if (navigationInstructionBuilder_ == null) { - navigationInstructionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.NavigationInstruction, com.google.maps.routing.v2.NavigationInstruction.Builder, com.google.maps.routing.v2.NavigationInstructionOrBuilder>( - getNavigationInstruction(), - getParentForChildren(), - isClean()); + navigationInstructionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.NavigationInstruction, + com.google.maps.routing.v2.NavigationInstruction.Builder, + com.google.maps.routing.v2.NavigationInstructionOrBuilder>( + getNavigationInstruction(), getParentForChildren(), isClean()); navigationInstruction_ = null; } return navigationInstructionBuilder_; @@ -2822,36 +3203,49 @@ public com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationIn private com.google.maps.routing.v2.RouteLegStepTravelAdvisory travelAdvisory_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStepTravelAdvisory, com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder, com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder> travelAdvisoryBuilder_; + com.google.maps.routing.v2.RouteLegStepTravelAdvisory, + com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder, + com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder> + travelAdvisoryBuilder_; /** + * + * *
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a leg step.
      * 
* * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + * * @return Whether the travelAdvisory field is set. */ public boolean hasTravelAdvisory() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a leg step.
      * 
* * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + * * @return The travelAdvisory. */ public com.google.maps.routing.v2.RouteLegStepTravelAdvisory getTravelAdvisory() { if (travelAdvisoryBuilder_ == null) { - return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance() : travelAdvisory_; + return travelAdvisory_ == null + ? com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance() + : travelAdvisory_; } else { return travelAdvisoryBuilder_.getMessage(); } } /** + * + * *
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a leg step.
@@ -2873,6 +3267,8 @@ public Builder setTravelAdvisory(com.google.maps.routing.v2.RouteLegStepTravelAd
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a leg step.
@@ -2892,6 +3288,8 @@ public Builder setTravelAdvisory(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a leg step.
@@ -2899,11 +3297,13 @@ public Builder setTravelAdvisory(
      *
      * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7;
      */
-    public Builder mergeTravelAdvisory(com.google.maps.routing.v2.RouteLegStepTravelAdvisory value) {
+    public Builder mergeTravelAdvisory(
+        com.google.maps.routing.v2.RouteLegStepTravelAdvisory value) {
       if (travelAdvisoryBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0) &&
-          travelAdvisory_ != null &&
-          travelAdvisory_ != com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0)
+            && travelAdvisory_ != null
+            && travelAdvisory_
+                != com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance()) {
           getTravelAdvisoryBuilder().mergeFrom(value);
         } else {
           travelAdvisory_ = value;
@@ -2916,6 +3316,8 @@ public Builder mergeTravelAdvisory(com.google.maps.routing.v2.RouteLegStepTravel
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a leg step.
@@ -2934,6 +3336,8 @@ public Builder clearTravelAdvisory() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a leg step.
@@ -2941,12 +3345,15 @@ public Builder clearTravelAdvisory() {
      *
      * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7;
      */
-    public com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder getTravelAdvisoryBuilder() {
+    public com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder
+        getTravelAdvisoryBuilder() {
       bitField0_ |= 0x00000040;
       onChanged();
       return getTravelAdvisoryFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a leg step.
@@ -2954,15 +3361,19 @@ public com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder getTravelAd
      *
      * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7;
      */
-    public com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() {
+    public com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder
+        getTravelAdvisoryOrBuilder() {
       if (travelAdvisoryBuilder_ != null) {
         return travelAdvisoryBuilder_.getMessageOrBuilder();
       } else {
-        return travelAdvisory_ == null ?
-            com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance() : travelAdvisory_;
+        return travelAdvisory_ == null
+            ? com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance()
+            : travelAdvisory_;
       }
     }
     /**
+     *
+     *
      * 
      * Contains the additional information that the user should be informed
      * about, such as possible traffic zone restrictions, on a leg step.
@@ -2971,14 +3382,17 @@ public com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder getTravelA
      * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.RouteLegStepTravelAdvisory, com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder, com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder> 
+            com.google.maps.routing.v2.RouteLegStepTravelAdvisory,
+            com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder,
+            com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder>
         getTravelAdvisoryFieldBuilder() {
       if (travelAdvisoryBuilder_ == null) {
-        travelAdvisoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.RouteLegStepTravelAdvisory, com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder, com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder>(
-                getTravelAdvisory(),
-                getParentForChildren(),
-                isClean());
+        travelAdvisoryBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.maps.routing.v2.RouteLegStepTravelAdvisory,
+                com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder,
+                com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder>(
+                getTravelAdvisory(), getParentForChildren(), isClean());
         travelAdvisory_ = null;
       }
       return travelAdvisoryBuilder_;
@@ -2986,41 +3400,60 @@ public com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder getTravelA
 
     private com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localizedValues_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder> localizedValuesBuilder_;
+            com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues,
+            com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder,
+            com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder>
+        localizedValuesBuilder_;
     /**
+     *
+     *
      * 
      * Text representations of properties of the `RouteLegStep`.
      * 
* - * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * + * * @return Whether the localizedValues field is set. */ public boolean hasLocalizedValues() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Text representations of properties of the `RouteLegStep`.
      * 
* - * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * + * * @return The localizedValues. */ - public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues getLocalizedValues() { + public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues + getLocalizedValues() { if (localizedValuesBuilder_ == null) { - return localizedValues_ == null ? com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance() : localizedValues_; + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues + .getDefaultInstance() + : localizedValues_; } else { return localizedValuesBuilder_.getMessage(); } } /** + * + * *
      * Text representations of properties of the `RouteLegStep`.
      * 
* - * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * */ - public Builder setLocalizedValues(com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues value) { + public Builder setLocalizedValues( + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues value) { if (localizedValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3034,14 +3467,18 @@ public Builder setLocalizedValues(com.google.maps.routing.v2.RouteLegStep.RouteL return this; } /** + * + * *
      * Text representations of properties of the `RouteLegStep`.
      * 
* - * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * */ public Builder setLocalizedValues( - com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder builderForValue) { + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder + builderForValue) { if (localizedValuesBuilder_ == null) { localizedValues_ = builderForValue.build(); } else { @@ -3052,17 +3489,23 @@ public Builder setLocalizedValues( return this; } /** + * + * *
      * Text representations of properties of the `RouteLegStep`.
      * 
* - * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * */ - public Builder mergeLocalizedValues(com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues value) { + public Builder mergeLocalizedValues( + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues value) { if (localizedValuesBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - localizedValues_ != null && - localizedValues_ != com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && localizedValues_ != null + && localizedValues_ + != com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues + .getDefaultInstance()) { getLocalizedValuesBuilder().mergeFrom(value); } else { localizedValues_ = value; @@ -3075,11 +3518,14 @@ public Builder mergeLocalizedValues(com.google.maps.routing.v2.RouteLegStep.Rout return this; } /** + * + * *
      * Text representations of properties of the `RouteLegStep`.
      * 
* - * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * */ public Builder clearLocalizedValues() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3092,48 +3538,64 @@ public Builder clearLocalizedValues() { return this; } /** + * + * *
      * Text representations of properties of the `RouteLegStep`.
      * 
* - * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * */ - public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder getLocalizedValuesBuilder() { + public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder + getLocalizedValuesBuilder() { bitField0_ |= 0x00000080; onChanged(); return getLocalizedValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Text representations of properties of the `RouteLegStep`.
      * 
* - * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * */ - public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { + public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder + getLocalizedValuesOrBuilder() { if (localizedValuesBuilder_ != null) { return localizedValuesBuilder_.getMessageOrBuilder(); } else { - return localizedValues_ == null ? - com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.getDefaultInstance() : localizedValues_; + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues + .getDefaultInstance() + : localizedValues_; } } /** + * + * *
      * Text representations of properties of the `RouteLegStep`.
      * 
* - * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder> + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues, + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder, + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder> getLocalizedValuesFieldBuilder() { if (localizedValuesBuilder_ == null) { - localizedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder, com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder>( - getLocalizedValues(), - getParentForChildren(), - isClean()); + localizedValuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues, + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.Builder, + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder>( + getLocalizedValues(), getParentForChildren(), isClean()); localizedValues_ = null; } return localizedValuesBuilder_; @@ -3141,34 +3603,47 @@ public com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuil private com.google.maps.routing.v2.RouteLegStepTransitDetails transitDetails_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStepTransitDetails, com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder> transitDetailsBuilder_; + com.google.maps.routing.v2.RouteLegStepTransitDetails, + com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder, + com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder> + transitDetailsBuilder_; /** + * + * *
      * Details pertaining to this step if the travel mode is `TRANSIT`.
      * 
* * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + * * @return Whether the transitDetails field is set. */ public boolean hasTransitDetails() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Details pertaining to this step if the travel mode is `TRANSIT`.
      * 
* * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + * * @return The transitDetails. */ public com.google.maps.routing.v2.RouteLegStepTransitDetails getTransitDetails() { if (transitDetailsBuilder_ == null) { - return transitDetails_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance() : transitDetails_; + return transitDetails_ == null + ? com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance() + : transitDetails_; } else { return transitDetailsBuilder_.getMessage(); } } /** + * + * *
      * Details pertaining to this step if the travel mode is `TRANSIT`.
      * 
@@ -3189,6 +3664,8 @@ public Builder setTransitDetails(com.google.maps.routing.v2.RouteLegStepTransitD return this; } /** + * + * *
      * Details pertaining to this step if the travel mode is `TRANSIT`.
      * 
@@ -3207,17 +3684,21 @@ public Builder setTransitDetails( return this; } /** + * + * *
      * Details pertaining to this step if the travel mode is `TRANSIT`.
      * 
* * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; */ - public Builder mergeTransitDetails(com.google.maps.routing.v2.RouteLegStepTransitDetails value) { + public Builder mergeTransitDetails( + com.google.maps.routing.v2.RouteLegStepTransitDetails value) { if (transitDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - transitDetails_ != null && - transitDetails_ != com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && transitDetails_ != null + && transitDetails_ + != com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance()) { getTransitDetailsBuilder().mergeFrom(value); } else { transitDetails_ = value; @@ -3230,6 +3711,8 @@ public Builder mergeTransitDetails(com.google.maps.routing.v2.RouteLegStepTransi return this; } /** + * + * *
      * Details pertaining to this step if the travel mode is `TRANSIT`.
      * 
@@ -3247,33 +3730,42 @@ public Builder clearTransitDetails() { return this; } /** + * + * *
      * Details pertaining to this step if the travel mode is `TRANSIT`.
      * 
* * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; */ - public com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder getTransitDetailsBuilder() { + public com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder + getTransitDetailsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getTransitDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details pertaining to this step if the travel mode is `TRANSIT`.
      * 
* * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; */ - public com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder getTransitDetailsOrBuilder() { + public com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder + getTransitDetailsOrBuilder() { if (transitDetailsBuilder_ != null) { return transitDetailsBuilder_.getMessageOrBuilder(); } else { - return transitDetails_ == null ? - com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance() : transitDetails_; + return transitDetails_ == null + ? com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance() + : transitDetails_; } } /** + * + * *
      * Details pertaining to this step if the travel mode is `TRANSIT`.
      * 
@@ -3281,14 +3773,17 @@ public com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder getTransit * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStepTransitDetails, com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder> + com.google.maps.routing.v2.RouteLegStepTransitDetails, + com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder, + com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder> getTransitDetailsFieldBuilder() { if (transitDetailsBuilder_ == null) { - transitDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStepTransitDetails, com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder>( - getTransitDetails(), - getParentForChildren(), - isClean()); + transitDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStepTransitDetails, + com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder, + com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder>( + getTransitDetails(), getParentForChildren(), isClean()); transitDetails_ = null; } return transitDetailsBuilder_; @@ -3296,22 +3791,29 @@ public com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder getTransit private int travelMode_ = 0; /** + * + * *
      * The travel mode used for this step.
      * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * * @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 used for this step.
      * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * * @param value The enum numeric value on the wire for travelMode to set. * @return This builder for chaining. */ @@ -3322,24 +3824,31 @@ public Builder setTravelModeValue(int value) { return this; } /** + * + * *
      * The travel mode used for this step.
      * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * * @return The travelMode. */ @java.lang.Override public com.google.maps.routing.v2.RouteTravelMode getTravelMode() { - com.google.maps.routing.v2.RouteTravelMode result = com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); + com.google.maps.routing.v2.RouteTravelMode result = + com.google.maps.routing.v2.RouteTravelMode.forNumber(travelMode_); return result == null ? com.google.maps.routing.v2.RouteTravelMode.UNRECOGNIZED : result; } /** + * + * *
      * The travel mode used for this step.
      * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * * @param value The travelMode to set. * @return This builder for chaining. */ @@ -3353,11 +3862,14 @@ public Builder setTravelMode(com.google.maps.routing.v2.RouteTravelMode value) { return this; } /** + * + * *
      * The travel mode used for this step.
      * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * * @return This builder for chaining. */ public Builder clearTravelMode() { @@ -3366,9 +3878,9 @@ public Builder clearTravelMode() { 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); } @@ -3378,12 +3890,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteLegStep) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLegStep) private static final com.google.maps.routing.v2.RouteLegStep DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLegStep(); } @@ -3392,27 +3904,27 @@ public static com.google.maps.routing.v2.RouteLegStep getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteLegStep 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 RouteLegStep 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; @@ -3427,6 +3939,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.RouteLegStep getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepOrBuilder.java similarity index 86% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepOrBuilder.java index ef01b887415e..1929956ef3f2 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepOrBuilder.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/maps/routing/v2/route.proto package com.google.maps.routing.v2; -public interface RouteLegStepOrBuilder extends +public interface RouteLegStepOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLegStep) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The travel distance of this step, in meters. In some circumstances, this
    * field might not have a value.
    * 
* * int32 distance_meters = 1; + * * @return The distanceMeters. */ int getDistanceMeters(); /** + * + * *
    * The duration of travel through this step without taking traffic conditions
    * into consideration. In some circumstances, this field might not have a
@@ -26,10 +47,13 @@ public interface RouteLegStepOrBuilder extends
    * 
* * .google.protobuf.Duration static_duration = 2; + * * @return Whether the staticDuration field is set. */ boolean hasStaticDuration(); /** + * + * *
    * The duration of travel through this step without taking traffic conditions
    * into consideration. In some circumstances, this field might not have a
@@ -37,10 +61,13 @@ public interface RouteLegStepOrBuilder extends
    * 
* * .google.protobuf.Duration static_duration = 2; + * * @return The staticDuration. */ com.google.protobuf.Duration getStaticDuration(); /** + * + * *
    * The duration of travel through this step without taking traffic conditions
    * into consideration. In some circumstances, this field might not have a
@@ -52,24 +79,32 @@ public interface RouteLegStepOrBuilder extends
   com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The polyline associated with this step.
    * 
* * .google.maps.routing.v2.Polyline polyline = 3; + * * @return Whether the polyline field is set. */ boolean hasPolyline(); /** + * + * *
    * The polyline associated with this step.
    * 
* * .google.maps.routing.v2.Polyline polyline = 3; + * * @return The polyline. */ com.google.maps.routing.v2.Polyline getPolyline(); /** + * + * *
    * The polyline associated with this step.
    * 
@@ -79,24 +114,32 @@ public interface RouteLegStepOrBuilder extends com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder(); /** + * + * *
    * The start location of this step.
    * 
* * .google.maps.routing.v2.Location start_location = 4; + * * @return Whether the startLocation field is set. */ boolean hasStartLocation(); /** + * + * *
    * The start location of this step.
    * 
* * .google.maps.routing.v2.Location start_location = 4; + * * @return The startLocation. */ com.google.maps.routing.v2.Location getStartLocation(); /** + * + * *
    * The start location of this step.
    * 
@@ -106,24 +149,32 @@ public interface RouteLegStepOrBuilder extends com.google.maps.routing.v2.LocationOrBuilder getStartLocationOrBuilder(); /** + * + * *
    * The end location of this step.
    * 
* * .google.maps.routing.v2.Location end_location = 5; + * * @return Whether the endLocation field is set. */ boolean hasEndLocation(); /** + * + * *
    * The end location of this step.
    * 
* * .google.maps.routing.v2.Location end_location = 5; + * * @return The endLocation. */ com.google.maps.routing.v2.Location getEndLocation(); /** + * + * *
    * The end location of this step.
    * 
@@ -133,24 +184,32 @@ public interface RouteLegStepOrBuilder extends com.google.maps.routing.v2.LocationOrBuilder getEndLocationOrBuilder(); /** + * + * *
    * Navigation instructions.
    * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + * * @return Whether the navigationInstruction field is set. */ boolean hasNavigationInstruction(); /** + * + * *
    * Navigation instructions.
    * 
* * .google.maps.routing.v2.NavigationInstruction navigation_instruction = 6; + * * @return The navigationInstruction. */ com.google.maps.routing.v2.NavigationInstruction getNavigationInstruction(); /** + * + * *
    * Navigation instructions.
    * 
@@ -160,26 +219,34 @@ public interface RouteLegStepOrBuilder extends com.google.maps.routing.v2.NavigationInstructionOrBuilder getNavigationInstructionOrBuilder(); /** + * + * *
    * Contains the additional information that the user should be informed
    * about, such as possible traffic zone restrictions, on a leg step.
    * 
* * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + * * @return Whether the travelAdvisory field is set. */ boolean hasTravelAdvisory(); /** + * + * *
    * Contains the additional information that the user should be informed
    * about, such as possible traffic zone restrictions, on a leg step.
    * 
* * .google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7; + * * @return The travelAdvisory. */ com.google.maps.routing.v2.RouteLegStepTravelAdvisory getTravelAdvisory(); /** + * + * *
    * Contains the additional information that the user should be informed
    * about, such as possible traffic zone restrictions, on a leg step.
@@ -190,51 +257,71 @@ public interface RouteLegStepOrBuilder extends
   com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder();
 
   /**
+   *
+   *
    * 
    * Text representations of properties of the `RouteLegStep`.
    * 
* - * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * + * * @return Whether the localizedValues field is set. */ boolean hasLocalizedValues(); /** + * + * *
    * Text representations of properties of the `RouteLegStep`.
    * 
* - * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * + * * @return The localizedValues. */ com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues getLocalizedValues(); /** + * + * *
    * Text representations of properties of the `RouteLegStep`.
    * 
* - * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * .google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; + * */ - com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder getLocalizedValuesOrBuilder(); + com.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValuesOrBuilder + getLocalizedValuesOrBuilder(); /** + * + * *
    * Details pertaining to this step if the travel mode is `TRANSIT`.
    * 
* * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + * * @return Whether the transitDetails field is set. */ boolean hasTransitDetails(); /** + * + * *
    * Details pertaining to this step if the travel mode is `TRANSIT`.
    * 
* * .google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; + * * @return The transitDetails. */ com.google.maps.routing.v2.RouteLegStepTransitDetails getTransitDetails(); /** + * + * *
    * Details pertaining to this step if the travel mode is `TRANSIT`.
    * 
@@ -244,20 +331,26 @@ public interface RouteLegStepOrBuilder extends com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder getTransitDetailsOrBuilder(); /** + * + * *
    * The travel mode used for this step.
    * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * * @return The enum numeric value on the wire for travelMode. */ int getTravelModeValue(); /** + * + * *
    * The travel mode used for this step.
    * 
* * .google.maps.routing.v2.RouteTravelMode travel_mode = 10; + * * @return The travelMode. */ com.google.maps.routing.v2.RouteTravelMode getTravelMode(); diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetails.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetails.java similarity index 67% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetails.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetails.java index 3788c2ac32eb..3c1ae6eab100 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetails.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetails.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/maps/routing/v2/route.proto package com.google.maps.routing.v2; /** + * + * *
  * Additional information for the `RouteLegStep` related to `TRANSIT` routes.
  * 
* * Protobuf type {@code google.maps.routing.v2.RouteLegStepTransitDetails} */ -public final class RouteLegStepTransitDetails extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RouteLegStepTransitDetails extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLegStepTransitDetails) RouteLegStepTransitDetailsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RouteLegStepTransitDetails.newBuilder() to construct. private RouteLegStepTransitDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RouteLegStepTransitDetails() { headsign_ = ""; tripShortText_ = ""; @@ -26,47 +44,57 @@ private RouteLegStepTransitDetails() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RouteLegStepTransitDetails(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLegStepTransitDetails.class, com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder.class); + com.google.maps.routing.v2.RouteLegStepTransitDetails.class, + com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder.class); } - public interface TransitStopDetailsOrBuilder extends + public interface TransitStopDetailsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Information about the arrival stop for the step.
      * 
* * .google.maps.routing.v2.TransitStop arrival_stop = 1; + * * @return Whether the arrivalStop field is set. */ boolean hasArrivalStop(); /** + * + * *
      * Information about the arrival stop for the step.
      * 
* * .google.maps.routing.v2.TransitStop arrival_stop = 1; + * * @return The arrivalStop. */ com.google.maps.routing.v2.TransitStop getArrivalStop(); /** + * + * *
      * Information about the arrival stop for the step.
      * 
@@ -76,24 +104,32 @@ public interface TransitStopDetailsOrBuilder extends com.google.maps.routing.v2.TransitStopOrBuilder getArrivalStopOrBuilder(); /** + * + * *
      * The estimated time of arrival for the step.
      * 
* * .google.protobuf.Timestamp arrival_time = 2; + * * @return Whether the arrivalTime field is set. */ boolean hasArrivalTime(); /** + * + * *
      * The estimated time of arrival for the step.
      * 
* * .google.protobuf.Timestamp arrival_time = 2; + * * @return The arrivalTime. */ com.google.protobuf.Timestamp getArrivalTime(); /** + * + * *
      * The estimated time of arrival for the step.
      * 
@@ -103,24 +139,32 @@ public interface TransitStopDetailsOrBuilder extends com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder(); /** + * + * *
      * Information about the departure stop for the step.
      * 
* * .google.maps.routing.v2.TransitStop departure_stop = 3; + * * @return Whether the departureStop field is set. */ boolean hasDepartureStop(); /** + * + * *
      * Information about the departure stop for the step.
      * 
* * .google.maps.routing.v2.TransitStop departure_stop = 3; + * * @return The departureStop. */ com.google.maps.routing.v2.TransitStop getDepartureStop(); /** + * + * *
      * Information about the departure stop for the step.
      * 
@@ -130,24 +174,32 @@ public interface TransitStopDetailsOrBuilder extends com.google.maps.routing.v2.TransitStopOrBuilder getDepartureStopOrBuilder(); /** + * + * *
      * The estimated time of departure for the step.
      * 
* * .google.protobuf.Timestamp departure_time = 4; + * * @return Whether the departureTime field is set. */ boolean hasDepartureTime(); /** + * + * *
      * The estimated time of departure for the step.
      * 
* * .google.protobuf.Timestamp departure_time = 4; + * * @return The departureTime. */ com.google.protobuf.Timestamp getDepartureTime(); /** + * + * *
      * The estimated time of departure for the step.
      * 
@@ -157,52 +209,59 @@ public interface TransitStopDetailsOrBuilder extends com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder(); } /** + * + * *
    * Details about the transit stops for the `RouteLegStep`
    * 
* * Protobuf type {@code google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails} */ - public static final class TransitStopDetails extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TransitStopDetails extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) TransitStopDetailsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TransitStopDetails.newBuilder() to construct. private TransitStopDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TransitStopDetails() { - } + + private TransitStopDetails() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransitStopDetails(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.class, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder.class); + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.class, + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder + .class); } public static final int ARRIVAL_STOP_FIELD_NUMBER = 1; private com.google.maps.routing.v2.TransitStop arrivalStop_; /** + * + * *
      * Information about the arrival stop for the step.
      * 
* * .google.maps.routing.v2.TransitStop arrival_stop = 1; + * * @return Whether the arrivalStop field is set. */ @java.lang.Override @@ -210,18 +269,25 @@ public boolean hasArrivalStop() { return arrivalStop_ != null; } /** + * + * *
      * Information about the arrival stop for the step.
      * 
* * .google.maps.routing.v2.TransitStop arrival_stop = 1; + * * @return The arrivalStop. */ @java.lang.Override public com.google.maps.routing.v2.TransitStop getArrivalStop() { - return arrivalStop_ == null ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() : arrivalStop_; + return arrivalStop_ == null + ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() + : arrivalStop_; } /** + * + * *
      * Information about the arrival stop for the step.
      * 
@@ -230,17 +296,22 @@ public com.google.maps.routing.v2.TransitStop getArrivalStop() { */ @java.lang.Override public com.google.maps.routing.v2.TransitStopOrBuilder getArrivalStopOrBuilder() { - return arrivalStop_ == null ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() : arrivalStop_; + return arrivalStop_ == null + ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() + : arrivalStop_; } public static final int ARRIVAL_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp arrivalTime_; /** + * + * *
      * The estimated time of arrival for the step.
      * 
* * .google.protobuf.Timestamp arrival_time = 2; + * * @return Whether the arrivalTime field is set. */ @java.lang.Override @@ -248,18 +319,25 @@ public boolean hasArrivalTime() { return arrivalTime_ != null; } /** + * + * *
      * The estimated time of arrival for the step.
      * 
* * .google.protobuf.Timestamp arrival_time = 2; + * * @return The arrivalTime. */ @java.lang.Override public com.google.protobuf.Timestamp getArrivalTime() { - return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + return arrivalTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : arrivalTime_; } /** + * + * *
      * The estimated time of arrival for the step.
      * 
@@ -268,17 +346,22 @@ public com.google.protobuf.Timestamp getArrivalTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { - return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + return arrivalTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : arrivalTime_; } public static final int DEPARTURE_STOP_FIELD_NUMBER = 3; private com.google.maps.routing.v2.TransitStop departureStop_; /** + * + * *
      * Information about the departure stop for the step.
      * 
* * .google.maps.routing.v2.TransitStop departure_stop = 3; + * * @return Whether the departureStop field is set. */ @java.lang.Override @@ -286,18 +369,25 @@ public boolean hasDepartureStop() { return departureStop_ != null; } /** + * + * *
      * Information about the departure stop for the step.
      * 
* * .google.maps.routing.v2.TransitStop departure_stop = 3; + * * @return The departureStop. */ @java.lang.Override public com.google.maps.routing.v2.TransitStop getDepartureStop() { - return departureStop_ == null ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() : departureStop_; + return departureStop_ == null + ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() + : departureStop_; } /** + * + * *
      * Information about the departure stop for the step.
      * 
@@ -306,17 +396,22 @@ public com.google.maps.routing.v2.TransitStop getDepartureStop() { */ @java.lang.Override public com.google.maps.routing.v2.TransitStopOrBuilder getDepartureStopOrBuilder() { - return departureStop_ == null ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() : departureStop_; + return departureStop_ == null + ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() + : departureStop_; } public static final int DEPARTURE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp departureTime_; /** + * + * *
      * The estimated time of departure for the step.
      * 
* * .google.protobuf.Timestamp departure_time = 4; + * * @return Whether the departureTime field is set. */ @java.lang.Override @@ -324,18 +419,25 @@ public boolean hasDepartureTime() { return departureTime_ != null; } /** + * + * *
      * The estimated time of departure for the step.
      * 
* * .google.protobuf.Timestamp departure_time = 4; + * * @return The departureTime. */ @java.lang.Override public com.google.protobuf.Timestamp getDepartureTime() { - return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : departureTime_; } /** + * + * *
      * The estimated time of departure for the step.
      * 
@@ -344,10 +446,13 @@ public com.google.protobuf.Timestamp getDepartureTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { - return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : departureTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -359,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 (arrivalStop_ != null) { output.writeMessage(1, getArrivalStop()); } @@ -383,20 +487,16 @@ public int getSerializedSize() { size = 0; if (arrivalStop_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getArrivalStop()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getArrivalStop()); } if (arrivalTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getArrivalTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getArrivalTime()); } if (departureStop_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDepartureStop()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDepartureStop()); } if (departureTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDepartureTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDepartureTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -406,32 +506,30 @@ 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails)) { + if (!(obj + instanceof com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails other = (com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) obj; + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails other = + (com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) obj; if (hasArrivalStop() != other.hasArrivalStop()) return false; if (hasArrivalStop()) { - if (!getArrivalStop() - .equals(other.getArrivalStop())) return false; + if (!getArrivalStop().equals(other.getArrivalStop())) return false; } if (hasArrivalTime() != other.hasArrivalTime()) return false; if (hasArrivalTime()) { - if (!getArrivalTime() - .equals(other.getArrivalTime())) return false; + if (!getArrivalTime().equals(other.getArrivalTime())) return false; } if (hasDepartureStop() != other.hasDepartureStop()) return false; if (hasDepartureStop()) { - if (!getDepartureStop() - .equals(other.getDepartureStop())) return false; + if (!getDepartureStop().equals(other.getDepartureStop())) return false; } if (hasDepartureTime() != other.hasDepartureTime()) return false; if (hasDepartureTime()) { - if (!getDepartureTime() - .equals(other.getDepartureTime())) return false; + if (!getDepartureTime().equals(other.getDepartureTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -465,90 +563,101 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails prototype) { + + public static Builder newBuilder( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails 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 @@ -558,39 +667,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Details about the transit stops for the `RouteLegStep`
      * 
* * Protobuf type {@code google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails} */ - 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.class, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder.class); + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.class, + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder + .class); } - // Construct using com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.newBuilder() - private Builder() { + // Construct using + // com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.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(); @@ -619,19 +732,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor; } @java.lang.Override - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails getDefaultInstanceForType() { - return com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.getDefaultInstance(); + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + getDefaultInstanceForType() { + return com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + .getDefaultInstance(); } @java.lang.Override public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails build() { - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails result = buildPartial(); + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -639,34 +755,35 @@ public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails } @java.lang.Override - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails buildPartial() { - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails result = new com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + buildPartial() { + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails result = + new com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails result) { + private void buildPartial0( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.arrivalStop_ = arrivalStopBuilder_ == null - ? arrivalStop_ - : arrivalStopBuilder_.build(); + result.arrivalStop_ = + arrivalStopBuilder_ == null ? arrivalStop_ : arrivalStopBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.arrivalTime_ = arrivalTimeBuilder_ == null - ? arrivalTime_ - : arrivalTimeBuilder_.build(); + result.arrivalTime_ = + arrivalTimeBuilder_ == null ? arrivalTime_ : arrivalTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.departureStop_ = departureStopBuilder_ == null - ? departureStop_ - : departureStopBuilder_.build(); + result.departureStop_ = + departureStopBuilder_ == null ? departureStop_ : departureStopBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.departureTime_ = departureTimeBuilder_ == null - ? departureTime_ - : departureTimeBuilder_.build(); + result.departureTime_ = + departureTimeBuilder_ == null ? departureTime_ : departureTimeBuilder_.build(); } } @@ -674,46 +791,54 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) { - return mergeFrom((com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails)other); + if (other + instanceof com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) { + return mergeFrom( + (com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails other) { - if (other == com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails other) { + if (other + == com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + .getDefaultInstance()) return this; if (other.hasArrivalStop()) { mergeArrivalStop(other.getArrivalStop()); } @@ -752,40 +877,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getArrivalStopFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getArrivalTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getDepartureStopFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getDepartureTimeFieldBuilder().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(getArrivalStopFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getArrivalTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getDepartureStopFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getDepartureTimeFieldBuilder().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) { @@ -795,38 +917,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.maps.routing.v2.TransitStop arrivalStop_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitStop, com.google.maps.routing.v2.TransitStop.Builder, com.google.maps.routing.v2.TransitStopOrBuilder> arrivalStopBuilder_; + com.google.maps.routing.v2.TransitStop, + com.google.maps.routing.v2.TransitStop.Builder, + com.google.maps.routing.v2.TransitStopOrBuilder> + arrivalStopBuilder_; /** + * + * *
        * Information about the arrival stop for the step.
        * 
* * .google.maps.routing.v2.TransitStop arrival_stop = 1; + * * @return Whether the arrivalStop field is set. */ public boolean hasArrivalStop() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Information about the arrival stop for the step.
        * 
* * .google.maps.routing.v2.TransitStop arrival_stop = 1; + * * @return The arrivalStop. */ public com.google.maps.routing.v2.TransitStop getArrivalStop() { if (arrivalStopBuilder_ == null) { - return arrivalStop_ == null ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() : arrivalStop_; + return arrivalStop_ == null + ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() + : arrivalStop_; } else { return arrivalStopBuilder_.getMessage(); } } /** + * + * *
        * Information about the arrival stop for the step.
        * 
@@ -847,6 +983,8 @@ public Builder setArrivalStop(com.google.maps.routing.v2.TransitStop value) { return this; } /** + * + * *
        * Information about the arrival stop for the step.
        * 
@@ -865,6 +1003,8 @@ public Builder setArrivalStop( return this; } /** + * + * *
        * Information about the arrival stop for the step.
        * 
@@ -873,9 +1013,9 @@ public Builder setArrivalStop( */ public Builder mergeArrivalStop(com.google.maps.routing.v2.TransitStop value) { if (arrivalStopBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - arrivalStop_ != null && - arrivalStop_ != com.google.maps.routing.v2.TransitStop.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && arrivalStop_ != null + && arrivalStop_ != com.google.maps.routing.v2.TransitStop.getDefaultInstance()) { getArrivalStopBuilder().mergeFrom(value); } else { arrivalStop_ = value; @@ -888,6 +1028,8 @@ public Builder mergeArrivalStop(com.google.maps.routing.v2.TransitStop value) { return this; } /** + * + * *
        * Information about the arrival stop for the step.
        * 
@@ -905,6 +1047,8 @@ public Builder clearArrivalStop() { return this; } /** + * + * *
        * Information about the arrival stop for the step.
        * 
@@ -917,6 +1061,8 @@ public com.google.maps.routing.v2.TransitStop.Builder getArrivalStopBuilder() { return getArrivalStopFieldBuilder().getBuilder(); } /** + * + * *
        * Information about the arrival stop for the step.
        * 
@@ -927,11 +1073,14 @@ public com.google.maps.routing.v2.TransitStopOrBuilder getArrivalStopOrBuilder() if (arrivalStopBuilder_ != null) { return arrivalStopBuilder_.getMessageOrBuilder(); } else { - return arrivalStop_ == null ? - com.google.maps.routing.v2.TransitStop.getDefaultInstance() : arrivalStop_; + return arrivalStop_ == null + ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() + : arrivalStop_; } } /** + * + * *
        * Information about the arrival stop for the step.
        * 
@@ -939,14 +1088,17 @@ public com.google.maps.routing.v2.TransitStopOrBuilder getArrivalStopOrBuilder() * .google.maps.routing.v2.TransitStop arrival_stop = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitStop, com.google.maps.routing.v2.TransitStop.Builder, com.google.maps.routing.v2.TransitStopOrBuilder> + com.google.maps.routing.v2.TransitStop, + com.google.maps.routing.v2.TransitStop.Builder, + com.google.maps.routing.v2.TransitStopOrBuilder> getArrivalStopFieldBuilder() { if (arrivalStopBuilder_ == null) { - arrivalStopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitStop, com.google.maps.routing.v2.TransitStop.Builder, com.google.maps.routing.v2.TransitStopOrBuilder>( - getArrivalStop(), - getParentForChildren(), - isClean()); + arrivalStopBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitStop, + com.google.maps.routing.v2.TransitStop.Builder, + com.google.maps.routing.v2.TransitStopOrBuilder>( + getArrivalStop(), getParentForChildren(), isClean()); arrivalStop_ = null; } return arrivalStopBuilder_; @@ -954,34 +1106,47 @@ public com.google.maps.routing.v2.TransitStopOrBuilder getArrivalStopOrBuilder() private com.google.protobuf.Timestamp arrivalTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> arrivalTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + arrivalTimeBuilder_; /** + * + * *
        * The estimated time of arrival for the step.
        * 
* * .google.protobuf.Timestamp arrival_time = 2; + * * @return Whether the arrivalTime field is set. */ public boolean hasArrivalTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * The estimated time of arrival for the step.
        * 
* * .google.protobuf.Timestamp arrival_time = 2; + * * @return The arrivalTime. */ public com.google.protobuf.Timestamp getArrivalTime() { if (arrivalTimeBuilder_ == null) { - return arrivalTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + return arrivalTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : arrivalTime_; } else { return arrivalTimeBuilder_.getMessage(); } } /** + * + * *
        * The estimated time of arrival for the step.
        * 
@@ -1002,14 +1167,15 @@ public Builder setArrivalTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The estimated time of arrival for the step.
        * 
* * .google.protobuf.Timestamp arrival_time = 2; */ - public Builder setArrivalTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setArrivalTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (arrivalTimeBuilder_ == null) { arrivalTime_ = builderForValue.build(); } else { @@ -1020,6 +1186,8 @@ public Builder setArrivalTime( return this; } /** + * + * *
        * The estimated time of arrival for the step.
        * 
@@ -1028,9 +1196,9 @@ public Builder setArrivalTime( */ public Builder mergeArrivalTime(com.google.protobuf.Timestamp value) { if (arrivalTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - arrivalTime_ != null && - arrivalTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && arrivalTime_ != null + && arrivalTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getArrivalTimeBuilder().mergeFrom(value); } else { arrivalTime_ = value; @@ -1043,6 +1211,8 @@ public Builder mergeArrivalTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The estimated time of arrival for the step.
        * 
@@ -1060,6 +1230,8 @@ public Builder clearArrivalTime() { return this; } /** + * + * *
        * The estimated time of arrival for the step.
        * 
@@ -1072,6 +1244,8 @@ public com.google.protobuf.Timestamp.Builder getArrivalTimeBuilder() { return getArrivalTimeFieldBuilder().getBuilder(); } /** + * + * *
        * The estimated time of arrival for the step.
        * 
@@ -1082,11 +1256,14 @@ public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { if (arrivalTimeBuilder_ != null) { return arrivalTimeBuilder_.getMessageOrBuilder(); } else { - return arrivalTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : arrivalTime_; + return arrivalTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : arrivalTime_; } } /** + * + * *
        * The estimated time of arrival for the step.
        * 
@@ -1094,14 +1271,17 @@ public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { * .google.protobuf.Timestamp arrival_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> getArrivalTimeFieldBuilder() { if (arrivalTimeBuilder_ == null) { - arrivalTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getArrivalTime(), - getParentForChildren(), - isClean()); + arrivalTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getArrivalTime(), getParentForChildren(), isClean()); arrivalTime_ = null; } return arrivalTimeBuilder_; @@ -1109,34 +1289,47 @@ public com.google.protobuf.TimestampOrBuilder getArrivalTimeOrBuilder() { private com.google.maps.routing.v2.TransitStop departureStop_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitStop, com.google.maps.routing.v2.TransitStop.Builder, com.google.maps.routing.v2.TransitStopOrBuilder> departureStopBuilder_; + com.google.maps.routing.v2.TransitStop, + com.google.maps.routing.v2.TransitStop.Builder, + com.google.maps.routing.v2.TransitStopOrBuilder> + departureStopBuilder_; /** + * + * *
        * Information about the departure stop for the step.
        * 
* * .google.maps.routing.v2.TransitStop departure_stop = 3; + * * @return Whether the departureStop field is set. */ public boolean hasDepartureStop() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * Information about the departure stop for the step.
        * 
* * .google.maps.routing.v2.TransitStop departure_stop = 3; + * * @return The departureStop. */ public com.google.maps.routing.v2.TransitStop getDepartureStop() { if (departureStopBuilder_ == null) { - return departureStop_ == null ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() : departureStop_; + return departureStop_ == null + ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() + : departureStop_; } else { return departureStopBuilder_.getMessage(); } } /** + * + * *
        * Information about the departure stop for the step.
        * 
@@ -1157,6 +1350,8 @@ public Builder setDepartureStop(com.google.maps.routing.v2.TransitStop value) { return this; } /** + * + * *
        * Information about the departure stop for the step.
        * 
@@ -1175,6 +1370,8 @@ public Builder setDepartureStop( return this; } /** + * + * *
        * Information about the departure stop for the step.
        * 
@@ -1183,9 +1380,9 @@ public Builder setDepartureStop( */ public Builder mergeDepartureStop(com.google.maps.routing.v2.TransitStop value) { if (departureStopBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - departureStop_ != null && - departureStop_ != com.google.maps.routing.v2.TransitStop.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && departureStop_ != null + && departureStop_ != com.google.maps.routing.v2.TransitStop.getDefaultInstance()) { getDepartureStopBuilder().mergeFrom(value); } else { departureStop_ = value; @@ -1198,6 +1395,8 @@ public Builder mergeDepartureStop(com.google.maps.routing.v2.TransitStop value) return this; } /** + * + * *
        * Information about the departure stop for the step.
        * 
@@ -1215,6 +1414,8 @@ public Builder clearDepartureStop() { return this; } /** + * + * *
        * Information about the departure stop for the step.
        * 
@@ -1227,6 +1428,8 @@ public com.google.maps.routing.v2.TransitStop.Builder getDepartureStopBuilder() return getDepartureStopFieldBuilder().getBuilder(); } /** + * + * *
        * Information about the departure stop for the step.
        * 
@@ -1237,11 +1440,14 @@ public com.google.maps.routing.v2.TransitStopOrBuilder getDepartureStopOrBuilder if (departureStopBuilder_ != null) { return departureStopBuilder_.getMessageOrBuilder(); } else { - return departureStop_ == null ? - com.google.maps.routing.v2.TransitStop.getDefaultInstance() : departureStop_; + return departureStop_ == null + ? com.google.maps.routing.v2.TransitStop.getDefaultInstance() + : departureStop_; } } /** + * + * *
        * Information about the departure stop for the step.
        * 
@@ -1249,14 +1455,17 @@ public com.google.maps.routing.v2.TransitStopOrBuilder getDepartureStopOrBuilder * .google.maps.routing.v2.TransitStop departure_stop = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitStop, com.google.maps.routing.v2.TransitStop.Builder, com.google.maps.routing.v2.TransitStopOrBuilder> + com.google.maps.routing.v2.TransitStop, + com.google.maps.routing.v2.TransitStop.Builder, + com.google.maps.routing.v2.TransitStopOrBuilder> getDepartureStopFieldBuilder() { if (departureStopBuilder_ == null) { - departureStopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitStop, com.google.maps.routing.v2.TransitStop.Builder, com.google.maps.routing.v2.TransitStopOrBuilder>( - getDepartureStop(), - getParentForChildren(), - isClean()); + departureStopBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitStop, + com.google.maps.routing.v2.TransitStop.Builder, + com.google.maps.routing.v2.TransitStopOrBuilder>( + getDepartureStop(), getParentForChildren(), isClean()); departureStop_ = null; } return departureStopBuilder_; @@ -1264,34 +1473,47 @@ public com.google.maps.routing.v2.TransitStopOrBuilder getDepartureStopOrBuilder private com.google.protobuf.Timestamp departureTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> departureTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + departureTimeBuilder_; /** + * + * *
        * The estimated time of departure for the step.
        * 
* * .google.protobuf.Timestamp departure_time = 4; + * * @return Whether the departureTime field is set. */ public boolean hasDepartureTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
        * The estimated time of departure for the step.
        * 
* * .google.protobuf.Timestamp departure_time = 4; + * * @return The departureTime. */ public com.google.protobuf.Timestamp getDepartureTime() { if (departureTimeBuilder_ == null) { - return departureTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : departureTime_; } else { return departureTimeBuilder_.getMessage(); } } /** + * + * *
        * The estimated time of departure for the step.
        * 
@@ -1312,14 +1534,15 @@ public Builder setDepartureTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The estimated time of departure for the step.
        * 
* * .google.protobuf.Timestamp departure_time = 4; */ - public Builder setDepartureTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDepartureTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (departureTimeBuilder_ == null) { departureTime_ = builderForValue.build(); } else { @@ -1330,6 +1553,8 @@ public Builder setDepartureTime( return this; } /** + * + * *
        * The estimated time of departure for the step.
        * 
@@ -1338,9 +1563,9 @@ public Builder setDepartureTime( */ public Builder mergeDepartureTime(com.google.protobuf.Timestamp value) { if (departureTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - departureTime_ != null && - departureTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && departureTime_ != null + && departureTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDepartureTimeBuilder().mergeFrom(value); } else { departureTime_ = value; @@ -1353,6 +1578,8 @@ public Builder mergeDepartureTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The estimated time of departure for the step.
        * 
@@ -1370,6 +1597,8 @@ public Builder clearDepartureTime() { return this; } /** + * + * *
        * The estimated time of departure for the step.
        * 
@@ -1382,6 +1611,8 @@ public com.google.protobuf.Timestamp.Builder getDepartureTimeBuilder() { return getDepartureTimeFieldBuilder().getBuilder(); } /** + * + * *
        * The estimated time of departure for the step.
        * 
@@ -1392,11 +1623,14 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { if (departureTimeBuilder_ != null) { return departureTimeBuilder_.getMessageOrBuilder(); } else { - return departureTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : departureTime_; } } /** + * + * *
        * The estimated time of departure for the step.
        * 
@@ -1404,18 +1638,22 @@ public com.google.protobuf.TimestampOrBuilder getDepartureTimeOrBuilder() { * .google.protobuf.Timestamp departure_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> getDepartureTimeFieldBuilder() { if (departureTimeBuilder_ == null) { - departureTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDepartureTime(), - getParentForChildren(), - isClean()); + departureTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDepartureTime(), getParentForChildren(), isClean()); departureTime_ = null; } return departureTimeBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1428,41 +1666,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails) - private static final com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails DEFAULT_INSTANCE; + private static final com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails(); + DEFAULT_INSTANCE = + new com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails(); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails getDefaultInstance() { + public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransitStopDetails 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 TransitStopDetails 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; @@ -1474,35 +1716,44 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails getDefaultInstanceForType() { + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface TransitDetailsLocalizedValuesOrBuilder extends + public interface TransitDetailsLocalizedValuesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Time in its formatted text representation with a corresponding time zone.
      * 
* * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + * * @return Whether the arrivalTime field is set. */ boolean hasArrivalTime(); /** + * + * *
      * Time in its formatted text representation with a corresponding time zone.
      * 
* * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + * * @return The arrivalTime. */ com.google.maps.routing.v2.LocalizedTime getArrivalTime(); /** + * + * *
      * Time in its formatted text representation with a corresponding time zone.
      * 
@@ -1512,24 +1763,32 @@ public interface TransitDetailsLocalizedValuesOrBuilder extends com.google.maps.routing.v2.LocalizedTimeOrBuilder getArrivalTimeOrBuilder(); /** + * + * *
      * Time in its formatted text representation with a corresponding time zone.
      * 
* * .google.maps.routing.v2.LocalizedTime departure_time = 2; + * * @return Whether the departureTime field is set. */ boolean hasDepartureTime(); /** + * + * *
      * Time in its formatted text representation with a corresponding time zone.
      * 
* * .google.maps.routing.v2.LocalizedTime departure_time = 2; + * * @return The departureTime. */ com.google.maps.routing.v2.LocalizedTime getDepartureTime(); /** + * + * *
      * Time in its formatted text representation with a corresponding time zone.
      * 
@@ -1539,52 +1798,63 @@ public interface TransitDetailsLocalizedValuesOrBuilder extends com.google.maps.routing.v2.LocalizedTimeOrBuilder getDepartureTimeOrBuilder(); } /** + * + * *
    * Localized descriptions of values for RouteTransitDetails.
    * 
* - * Protobuf type {@code google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues} + * Protobuf type {@code + * google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues} */ - public static final class TransitDetailsLocalizedValues extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TransitDetailsLocalizedValues + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) TransitDetailsLocalizedValuesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TransitDetailsLocalizedValues.newBuilder() to construct. - private TransitDetailsLocalizedValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TransitDetailsLocalizedValues( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TransitDetailsLocalizedValues() { - } + + private TransitDetailsLocalizedValues() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransitDetailsLocalizedValues(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.class, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder.class); + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + .class, + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + .Builder.class); } public static final int ARRIVAL_TIME_FIELD_NUMBER = 1; private com.google.maps.routing.v2.LocalizedTime arrivalTime_; /** + * + * *
      * Time in its formatted text representation with a corresponding time zone.
      * 
* * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + * * @return Whether the arrivalTime field is set. */ @java.lang.Override @@ -1592,18 +1862,25 @@ public boolean hasArrivalTime() { return arrivalTime_ != null; } /** + * + * *
      * Time in its formatted text representation with a corresponding time zone.
      * 
* * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + * * @return The arrivalTime. */ @java.lang.Override public com.google.maps.routing.v2.LocalizedTime getArrivalTime() { - return arrivalTime_ == null ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : arrivalTime_; + return arrivalTime_ == null + ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() + : arrivalTime_; } /** + * + * *
      * Time in its formatted text representation with a corresponding time zone.
      * 
@@ -1612,17 +1889,22 @@ public com.google.maps.routing.v2.LocalizedTime getArrivalTime() { */ @java.lang.Override public com.google.maps.routing.v2.LocalizedTimeOrBuilder getArrivalTimeOrBuilder() { - return arrivalTime_ == null ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : arrivalTime_; + return arrivalTime_ == null + ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() + : arrivalTime_; } public static final int DEPARTURE_TIME_FIELD_NUMBER = 2; private com.google.maps.routing.v2.LocalizedTime departureTime_; /** + * + * *
      * Time in its formatted text representation with a corresponding time zone.
      * 
* * .google.maps.routing.v2.LocalizedTime departure_time = 2; + * * @return Whether the departureTime field is set. */ @java.lang.Override @@ -1630,18 +1912,25 @@ public boolean hasDepartureTime() { return departureTime_ != null; } /** + * + * *
      * Time in its formatted text representation with a corresponding time zone.
      * 
* * .google.maps.routing.v2.LocalizedTime departure_time = 2; + * * @return The departureTime. */ @java.lang.Override public com.google.maps.routing.v2.LocalizedTime getDepartureTime() { - return departureTime_ == null ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() + : departureTime_; } /** + * + * *
      * Time in its formatted text representation with a corresponding time zone.
      * 
@@ -1650,10 +1939,13 @@ public com.google.maps.routing.v2.LocalizedTime getDepartureTime() { */ @java.lang.Override public com.google.maps.routing.v2.LocalizedTimeOrBuilder getDepartureTimeOrBuilder() { - return departureTime_ == null ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() + : departureTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1665,8 +1957,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 (arrivalTime_ != null) { output.writeMessage(1, getArrivalTime()); } @@ -1683,12 +1974,10 @@ public int getSerializedSize() { size = 0; if (arrivalTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getArrivalTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getArrivalTime()); } if (departureTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDepartureTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDepartureTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1698,22 +1987,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.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues)) { + if (!(obj + instanceof + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues other = (com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) obj; + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues other = + (com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) obj; if (hasArrivalTime() != other.hasArrivalTime()) return false; if (hasArrivalTime()) { - if (!getArrivalTime() - .equals(other.getArrivalTime())) return false; + if (!getArrivalTime().equals(other.getArrivalTime())) return false; } if (hasDepartureTime() != other.hasDepartureTime()) return false; if (hasDepartureTime()) { - if (!getDepartureTime() - .equals(other.getDepartureTime())) return false; + if (!getDepartureTime().equals(other.getDepartureTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1739,90 +2029,114 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValues + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValues + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValues + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValues + 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.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValues + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValues + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValues + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues 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.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValues + 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.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValues + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues 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.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValues + 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.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValues + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues 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.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValues + 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.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues prototype) { + + public static Builder newBuilder( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + 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 @@ -1832,39 +2146,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Localized descriptions of values for RouteTransitDetails.
      * 
* - * Protobuf type {@code google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues} + * Protobuf type {@code + * google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues} */ - 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.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor; + com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValuesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.class, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder.class); + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + .class, + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + .Builder.class); } - // Construct using com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.newBuilder() - private Builder() { + // Construct using + // com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.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(); @@ -1883,19 +2204,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor; } @java.lang.Override - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues getDefaultInstanceForType() { - return com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.getDefaultInstance(); + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + getDefaultInstanceForType() { + return com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + .getDefaultInstance(); } @java.lang.Override - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues build() { - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues result = buildPartial(); + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + build() { + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1903,24 +2228,29 @@ public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocal } @java.lang.Override - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues buildPartial() { - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues result = new com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + buildPartial() { + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues result = + new com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues result) { + private void buildPartial0( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.arrivalTime_ = arrivalTimeBuilder_ == null - ? arrivalTime_ - : arrivalTimeBuilder_.build(); + result.arrivalTime_ = + arrivalTimeBuilder_ == null ? arrivalTime_ : arrivalTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.departureTime_ = departureTimeBuilder_ == null - ? departureTime_ - : departureTimeBuilder_.build(); + result.departureTime_ = + departureTimeBuilder_ == null ? departureTime_ : departureTimeBuilder_.build(); } } @@ -1928,46 +2258,57 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) { - return mergeFrom((com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues)other); + if (other + instanceof + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) { + return mergeFrom( + (com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues other) { - if (other == com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + other) { + if (other + == com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + .getDefaultInstance()) return this; if (other.hasArrivalTime()) { mergeArrivalTime(other.getArrivalTime()); } @@ -2000,26 +2341,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getArrivalTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDepartureTimeFieldBuilder().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(getArrivalTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDepartureTimeFieldBuilder().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) { @@ -2029,38 +2369,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.maps.routing.v2.LocalizedTime arrivalTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.LocalizedTime, com.google.maps.routing.v2.LocalizedTime.Builder, com.google.maps.routing.v2.LocalizedTimeOrBuilder> arrivalTimeBuilder_; + com.google.maps.routing.v2.LocalizedTime, + com.google.maps.routing.v2.LocalizedTime.Builder, + com.google.maps.routing.v2.LocalizedTimeOrBuilder> + arrivalTimeBuilder_; /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
* * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + * * @return Whether the arrivalTime field is set. */ public boolean hasArrivalTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
* * .google.maps.routing.v2.LocalizedTime arrival_time = 1; + * * @return The arrivalTime. */ public com.google.maps.routing.v2.LocalizedTime getArrivalTime() { if (arrivalTimeBuilder_ == null) { - return arrivalTime_ == null ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : arrivalTime_; + return arrivalTime_ == null + ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() + : arrivalTime_; } else { return arrivalTimeBuilder_.getMessage(); } } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
@@ -2081,6 +2435,8 @@ public Builder setArrivalTime(com.google.maps.routing.v2.LocalizedTime value) { return this; } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
@@ -2099,6 +2455,8 @@ public Builder setArrivalTime( return this; } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
@@ -2107,9 +2465,9 @@ public Builder setArrivalTime( */ public Builder mergeArrivalTime(com.google.maps.routing.v2.LocalizedTime value) { if (arrivalTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - arrivalTime_ != null && - arrivalTime_ != com.google.maps.routing.v2.LocalizedTime.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && arrivalTime_ != null + && arrivalTime_ != com.google.maps.routing.v2.LocalizedTime.getDefaultInstance()) { getArrivalTimeBuilder().mergeFrom(value); } else { arrivalTime_ = value; @@ -2122,6 +2480,8 @@ public Builder mergeArrivalTime(com.google.maps.routing.v2.LocalizedTime value) return this; } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
@@ -2139,6 +2499,8 @@ public Builder clearArrivalTime() { return this; } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
@@ -2151,6 +2513,8 @@ public com.google.maps.routing.v2.LocalizedTime.Builder getArrivalTimeBuilder() return getArrivalTimeFieldBuilder().getBuilder(); } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
@@ -2161,11 +2525,14 @@ public com.google.maps.routing.v2.LocalizedTimeOrBuilder getArrivalTimeOrBuilder if (arrivalTimeBuilder_ != null) { return arrivalTimeBuilder_.getMessageOrBuilder(); } else { - return arrivalTime_ == null ? - com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : arrivalTime_; + return arrivalTime_ == null + ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() + : arrivalTime_; } } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
@@ -2173,14 +2540,17 @@ public com.google.maps.routing.v2.LocalizedTimeOrBuilder getArrivalTimeOrBuilder * .google.maps.routing.v2.LocalizedTime arrival_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.LocalizedTime, com.google.maps.routing.v2.LocalizedTime.Builder, com.google.maps.routing.v2.LocalizedTimeOrBuilder> + com.google.maps.routing.v2.LocalizedTime, + com.google.maps.routing.v2.LocalizedTime.Builder, + com.google.maps.routing.v2.LocalizedTimeOrBuilder> getArrivalTimeFieldBuilder() { if (arrivalTimeBuilder_ == null) { - arrivalTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.LocalizedTime, com.google.maps.routing.v2.LocalizedTime.Builder, com.google.maps.routing.v2.LocalizedTimeOrBuilder>( - getArrivalTime(), - getParentForChildren(), - isClean()); + arrivalTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.LocalizedTime, + com.google.maps.routing.v2.LocalizedTime.Builder, + com.google.maps.routing.v2.LocalizedTimeOrBuilder>( + getArrivalTime(), getParentForChildren(), isClean()); arrivalTime_ = null; } return arrivalTimeBuilder_; @@ -2188,34 +2558,47 @@ public com.google.maps.routing.v2.LocalizedTimeOrBuilder getArrivalTimeOrBuilder private com.google.maps.routing.v2.LocalizedTime departureTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.LocalizedTime, com.google.maps.routing.v2.LocalizedTime.Builder, com.google.maps.routing.v2.LocalizedTimeOrBuilder> departureTimeBuilder_; + com.google.maps.routing.v2.LocalizedTime, + com.google.maps.routing.v2.LocalizedTime.Builder, + com.google.maps.routing.v2.LocalizedTimeOrBuilder> + departureTimeBuilder_; /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
* * .google.maps.routing.v2.LocalizedTime departure_time = 2; + * * @return Whether the departureTime field is set. */ public boolean hasDepartureTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
* * .google.maps.routing.v2.LocalizedTime departure_time = 2; + * * @return The departureTime. */ public com.google.maps.routing.v2.LocalizedTime getDepartureTime() { if (departureTimeBuilder_ == null) { - return departureTime_ == null ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() + : departureTime_; } else { return departureTimeBuilder_.getMessage(); } } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
@@ -2236,6 +2619,8 @@ public Builder setDepartureTime(com.google.maps.routing.v2.LocalizedTime value) return this; } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
@@ -2254,6 +2639,8 @@ public Builder setDepartureTime( return this; } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
@@ -2262,9 +2649,9 @@ public Builder setDepartureTime( */ public Builder mergeDepartureTime(com.google.maps.routing.v2.LocalizedTime value) { if (departureTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - departureTime_ != null && - departureTime_ != com.google.maps.routing.v2.LocalizedTime.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && departureTime_ != null + && departureTime_ != com.google.maps.routing.v2.LocalizedTime.getDefaultInstance()) { getDepartureTimeBuilder().mergeFrom(value); } else { departureTime_ = value; @@ -2277,6 +2664,8 @@ public Builder mergeDepartureTime(com.google.maps.routing.v2.LocalizedTime value return this; } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
@@ -2294,6 +2683,8 @@ public Builder clearDepartureTime() { return this; } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
@@ -2306,6 +2697,8 @@ public com.google.maps.routing.v2.LocalizedTime.Builder getDepartureTimeBuilder( return getDepartureTimeFieldBuilder().getBuilder(); } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
@@ -2316,11 +2709,14 @@ public com.google.maps.routing.v2.LocalizedTimeOrBuilder getDepartureTimeOrBuild if (departureTimeBuilder_ != null) { return departureTimeBuilder_.getMessageOrBuilder(); } else { - return departureTime_ == null ? - com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() : departureTime_; + return departureTime_ == null + ? com.google.maps.routing.v2.LocalizedTime.getDefaultInstance() + : departureTime_; } } /** + * + * *
        * Time in its formatted text representation with a corresponding time zone.
        * 
@@ -2328,18 +2724,22 @@ public com.google.maps.routing.v2.LocalizedTimeOrBuilder getDepartureTimeOrBuild * .google.maps.routing.v2.LocalizedTime departure_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.LocalizedTime, com.google.maps.routing.v2.LocalizedTime.Builder, com.google.maps.routing.v2.LocalizedTimeOrBuilder> + com.google.maps.routing.v2.LocalizedTime, + com.google.maps.routing.v2.LocalizedTime.Builder, + com.google.maps.routing.v2.LocalizedTimeOrBuilder> getDepartureTimeFieldBuilder() { if (departureTimeBuilder_ == null) { - departureTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.LocalizedTime, com.google.maps.routing.v2.LocalizedTime.Builder, com.google.maps.routing.v2.LocalizedTimeOrBuilder>( - getDepartureTime(), - getParentForChildren(), - isClean()); + departureTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.LocalizedTime, + com.google.maps.routing.v2.LocalizedTime.Builder, + com.google.maps.routing.v2.LocalizedTimeOrBuilder>( + getDepartureTime(), getParentForChildren(), isClean()); departureTime_ = null; } return departureTimeBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2352,41 +2752,47 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues) - private static final com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues DEFAULT_INSTANCE; + private static final com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValues + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues(); + DEFAULT_INSTANCE = + new com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues(); } - public static com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues getDefaultInstance() { + public static com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValues + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransitDetailsLocalizedValues 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 TransitDetailsLocalizedValues 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; @@ -2398,20 +2804,24 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues getDefaultInstanceForType() { + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int STOP_DETAILS_FIELD_NUMBER = 1; private com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stopDetails_; /** + * + * *
    * Information about the arrival and departure stops for the step.
    * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * + * * @return Whether the stopDetails field is set. */ @java.lang.Override @@ -2419,37 +2829,57 @@ public boolean hasStopDetails() { return stopDetails_ != null; } /** + * + * *
    * Information about the arrival and departure stops for the step.
    * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * + * * @return The stopDetails. */ @java.lang.Override public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails getStopDetails() { - return stopDetails_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.getDefaultInstance() : stopDetails_; + return stopDetails_ == null + ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + .getDefaultInstance() + : stopDetails_; } /** + * + * *
    * Information about the arrival and departure stops for the step.
    * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * */ @java.lang.Override - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder getStopDetailsOrBuilder() { - return stopDetails_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.getDefaultInstance() : stopDetails_; + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder + getStopDetailsOrBuilder() { + return stopDetails_ == null + ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + .getDefaultInstance() + : stopDetails_; } public static final int LOCALIZED_VALUES_FIELD_NUMBER = 2; - private com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localizedValues_; + private com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + localizedValues_; /** + * + * *
    * Text representations of properties of the `RouteLegStepTransitDetails`.
    * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * * @return Whether the localizedValues field is set. */ @java.lang.Override @@ -2457,33 +2887,54 @@ public boolean hasLocalizedValues() { return localizedValues_ != null; } /** + * + * *
    * Text representations of properties of the `RouteLegStepTransitDetails`.
    * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * * @return The localizedValues. */ @java.lang.Override - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues getLocalizedValues() { - return localizedValues_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.getDefaultInstance() : localizedValues_; + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + getLocalizedValues() { + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + .getDefaultInstance() + : localizedValues_; } /** + * + * *
    * Text representations of properties of the `RouteLegStepTransitDetails`.
    * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * */ @java.lang.Override - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { - return localizedValues_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.getDefaultInstance() : localizedValues_; + public com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValuesOrBuilder + getLocalizedValuesOrBuilder() { + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + .getDefaultInstance() + : localizedValues_; } public static final int HEADSIGN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object headsign_ = ""; /** + * + * *
    * Specifies the direction in which to travel on this line as marked on
    * the vehicle or at the departure stop. The direction is often the terminus
@@ -2491,6 +2942,7 @@ public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocal
    * 
* * string headsign = 3; + * * @return The headsign. */ @java.lang.Override @@ -2499,14 +2951,15 @@ public java.lang.String getHeadsign() { 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(); headsign_ = s; return s; } } /** + * + * *
    * Specifies the direction in which to travel on this line as marked on
    * the vehicle or at the departure stop. The direction is often the terminus
@@ -2514,16 +2967,15 @@ public java.lang.String getHeadsign() {
    * 
* * string headsign = 3; + * * @return The bytes for headsign. */ @java.lang.Override - public com.google.protobuf.ByteString - getHeadsignBytes() { + public com.google.protobuf.ByteString getHeadsignBytes() { java.lang.Object ref = headsign_; 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); headsign_ = b; return b; } else { @@ -2534,6 +2986,8 @@ public java.lang.String getHeadsign() { public static final int HEADWAY_FIELD_NUMBER = 4; private com.google.protobuf.Duration headway_; /** + * + * *
    * Specifies the expected time as a duration between departures from the same
    * stop at this time. For example, with a headway seconds value of 600, you
@@ -2541,6 +2995,7 @@ public java.lang.String getHeadsign() {
    * 
* * .google.protobuf.Duration headway = 4; + * * @return Whether the headway field is set. */ @java.lang.Override @@ -2548,6 +3003,8 @@ public boolean hasHeadway() { return headway_ != null; } /** + * + * *
    * Specifies the expected time as a duration between departures from the same
    * stop at this time. For example, with a headway seconds value of 600, you
@@ -2555,6 +3012,7 @@ public boolean hasHeadway() {
    * 
* * .google.protobuf.Duration headway = 4; + * * @return The headway. */ @java.lang.Override @@ -2562,6 +3020,8 @@ public com.google.protobuf.Duration getHeadway() { return headway_ == null ? com.google.protobuf.Duration.getDefaultInstance() : headway_; } /** + * + * *
    * Specifies the expected time as a duration between departures from the same
    * stop at this time. For example, with a headway seconds value of 600, you
@@ -2578,11 +3038,14 @@ public com.google.protobuf.DurationOrBuilder getHeadwayOrBuilder() {
   public static final int TRANSIT_LINE_FIELD_NUMBER = 5;
   private com.google.maps.routing.v2.TransitLine transitLine_;
   /**
+   *
+   *
    * 
    * Information about the transit line used in this step.
    * 
* * .google.maps.routing.v2.TransitLine transit_line = 5; + * * @return Whether the transitLine field is set. */ @java.lang.Override @@ -2590,18 +3053,25 @@ public boolean hasTransitLine() { return transitLine_ != null; } /** + * + * *
    * Information about the transit line used in this step.
    * 
* * .google.maps.routing.v2.TransitLine transit_line = 5; + * * @return The transitLine. */ @java.lang.Override public com.google.maps.routing.v2.TransitLine getTransitLine() { - return transitLine_ == null ? com.google.maps.routing.v2.TransitLine.getDefaultInstance() : transitLine_; + return transitLine_ == null + ? com.google.maps.routing.v2.TransitLine.getDefaultInstance() + : transitLine_; } /** + * + * *
    * Information about the transit line used in this step.
    * 
@@ -2610,12 +3080,16 @@ public com.google.maps.routing.v2.TransitLine getTransitLine() { */ @java.lang.Override public com.google.maps.routing.v2.TransitLineOrBuilder getTransitLineOrBuilder() { - return transitLine_ == null ? com.google.maps.routing.v2.TransitLine.getDefaultInstance() : transitLine_; + return transitLine_ == null + ? com.google.maps.routing.v2.TransitLine.getDefaultInstance() + : transitLine_; } public static final int STOP_COUNT_FIELD_NUMBER = 6; private int stopCount_ = 0; /** + * + * *
    * The number of stops from the departure to the arrival stop. This count
    * includes the arrival stop, but excludes the departure stop. For example, if
@@ -2624,6 +3098,7 @@ public com.google.maps.routing.v2.TransitLineOrBuilder getTransitLineOrBuilder()
    * 
* * int32 stop_count = 6; + * * @return The stopCount. */ @java.lang.Override @@ -2632,9 +3107,12 @@ public int getStopCount() { } public static final int TRIP_SHORT_TEXT_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object tripShortText_ = ""; /** + * + * *
    * The text that appears in schedules and sign boards to identify a transit
    * trip to passengers. The text should uniquely identify a trip within a
@@ -2643,6 +3121,7 @@ public int getStopCount() {
    * 
* * string trip_short_text = 7; + * * @return The tripShortText. */ @java.lang.Override @@ -2651,14 +3130,15 @@ public java.lang.String getTripShortText() { 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(); tripShortText_ = s; return s; } } /** + * + * *
    * The text that appears in schedules and sign boards to identify a transit
    * trip to passengers. The text should uniquely identify a trip within a
@@ -2667,16 +3147,15 @@ public java.lang.String getTripShortText() {
    * 
* * string trip_short_text = 7; + * * @return The bytes for tripShortText. */ @java.lang.Override - public com.google.protobuf.ByteString - getTripShortTextBytes() { + public com.google.protobuf.ByteString getTripShortTextBytes() { java.lang.Object ref = tripShortText_; 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); tripShortText_ = b; return b; } else { @@ -2685,6 +3164,7 @@ public java.lang.String getTripShortText() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2696,8 +3176,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 (stopDetails_ != null) { output.writeMessage(1, getStopDetails()); } @@ -2729,27 +3208,22 @@ public int getSerializedSize() { size = 0; if (stopDetails_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStopDetails()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStopDetails()); } if (localizedValues_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLocalizedValues()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLocalizedValues()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(headsign_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, headsign_); } if (headway_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getHeadway()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getHeadway()); } if (transitLine_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getTransitLine()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTransitLine()); } if (stopCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, stopCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, stopCount_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tripShortText_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, tripShortText_); @@ -2762,39 +3236,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.maps.routing.v2.RouteLegStepTransitDetails)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteLegStepTransitDetails other = (com.google.maps.routing.v2.RouteLegStepTransitDetails) obj; + com.google.maps.routing.v2.RouteLegStepTransitDetails other = + (com.google.maps.routing.v2.RouteLegStepTransitDetails) obj; if (hasStopDetails() != other.hasStopDetails()) return false; if (hasStopDetails()) { - if (!getStopDetails() - .equals(other.getStopDetails())) return false; + if (!getStopDetails().equals(other.getStopDetails())) return false; } if (hasLocalizedValues() != other.hasLocalizedValues()) return false; if (hasLocalizedValues()) { - if (!getLocalizedValues() - .equals(other.getLocalizedValues())) return false; + if (!getLocalizedValues().equals(other.getLocalizedValues())) return false; } - if (!getHeadsign() - .equals(other.getHeadsign())) return false; + if (!getHeadsign().equals(other.getHeadsign())) return false; if (hasHeadway() != other.hasHeadway()) return false; if (hasHeadway()) { - if (!getHeadway() - .equals(other.getHeadway())) return false; + if (!getHeadway().equals(other.getHeadway())) return false; } if (hasTransitLine() != other.hasTransitLine()) return false; if (hasTransitLine()) { - if (!getTransitLine() - .equals(other.getTransitLine())) return false; + if (!getTransitLine().equals(other.getTransitLine())) return false; } - if (getStopCount() - != other.getStopCount()) return false; - if (!getTripShortText() - .equals(other.getTripShortText())) return false; + if (getStopCount() != other.getStopCount()) return false; + if (!getTripShortText().equals(other.getTripShortText())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2834,131 +3302,136 @@ public int hashCode() { } public static com.google.maps.routing.v2.RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.maps.routing.v2.RouteLegStepTransitDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.maps.routing.v2.RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteLegStepTransitDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails prototype) { + + public static Builder newBuilder( + com.google.maps.routing.v2.RouteLegStepTransitDetails 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; } /** + * + * *
    * Additional information for the `RouteLegStep` related to `TRANSIT` routes.
    * 
* * Protobuf type {@code google.maps.routing.v2.RouteLegStepTransitDetails} */ - 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.maps.routing.v2.RouteLegStepTransitDetails) com.google.maps.routing.v2.RouteLegStepTransitDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_fieldAccessorTable + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteLegStepTransitDetails.class, com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder.class); + com.google.maps.routing.v2.RouteLegStepTransitDetails.class, + com.google.maps.routing.v2.RouteLegStepTransitDetails.Builder.class); } // Construct using com.google.maps.routing.v2.RouteLegStepTransitDetails.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(); @@ -2990,9 +3463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.RouteProto + .internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor; } @java.lang.Override @@ -3011,8 +3484,11 @@ public com.google.maps.routing.v2.RouteLegStepTransitDetails build() { @java.lang.Override public com.google.maps.routing.v2.RouteLegStepTransitDetails buildPartial() { - com.google.maps.routing.v2.RouteLegStepTransitDetails result = new com.google.maps.routing.v2.RouteLegStepTransitDetails(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.maps.routing.v2.RouteLegStepTransitDetails result = + new com.google.maps.routing.v2.RouteLegStepTransitDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -3020,27 +3496,22 @@ public com.google.maps.routing.v2.RouteLegStepTransitDetails buildPartial() { private void buildPartial0(com.google.maps.routing.v2.RouteLegStepTransitDetails result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.stopDetails_ = stopDetailsBuilder_ == null - ? stopDetails_ - : stopDetailsBuilder_.build(); + result.stopDetails_ = + stopDetailsBuilder_ == null ? stopDetails_ : stopDetailsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.localizedValues_ = localizedValuesBuilder_ == null - ? localizedValues_ - : localizedValuesBuilder_.build(); + result.localizedValues_ = + localizedValuesBuilder_ == null ? localizedValues_ : localizedValuesBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.headsign_ = headsign_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.headway_ = headwayBuilder_ == null - ? headway_ - : headwayBuilder_.build(); + result.headway_ = headwayBuilder_ == null ? headway_ : headwayBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.transitLine_ = transitLineBuilder_ == null - ? transitLine_ - : transitLineBuilder_.build(); + result.transitLine_ = + transitLineBuilder_ == null ? transitLine_ : transitLineBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.stopCount_ = stopCount_; @@ -3054,38 +3525,39 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLegStepTransitDetails 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.maps.routing.v2.RouteLegStepTransitDetails) { - return mergeFrom((com.google.maps.routing.v2.RouteLegStepTransitDetails)other); + return mergeFrom((com.google.maps.routing.v2.RouteLegStepTransitDetails) other); } else { super.mergeFrom(other); return this; @@ -3093,7 +3565,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.maps.routing.v2.RouteLegStepTransitDetails other) { - if (other == com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance()) return this; + if (other == com.google.maps.routing.v2.RouteLegStepTransitDetails.getDefaultInstance()) + return this; if (other.hasStopDetails()) { mergeStopDetails(other.getStopDetails()); } @@ -3145,55 +3618,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStopDetailsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getLocalizedValuesFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - headsign_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getHeadwayFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getTransitLineFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - stopCount_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - tripShortText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStopDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getLocalizedValuesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + headsign_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getHeadwayFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getTransitLineFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + stopCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + tripShortText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + 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) { @@ -3203,45 +3676,65 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stopDetails_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder> stopDetailsBuilder_; + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails, + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder, + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder> + stopDetailsBuilder_; /** + * + * *
      * Information about the arrival and departure stops for the step.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * + * * @return Whether the stopDetails field is set. */ public boolean hasStopDetails() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Information about the arrival and departure stops for the step.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * + * * @return The stopDetails. */ - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails getStopDetails() { + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + getStopDetails() { if (stopDetailsBuilder_ == null) { - return stopDetails_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.getDefaultInstance() : stopDetails_; + return stopDetails_ == null + ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + .getDefaultInstance() + : stopDetails_; } else { return stopDetailsBuilder_.getMessage(); } } /** + * + * *
      * Information about the arrival and departure stops for the step.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * */ - public Builder setStopDetails(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails value) { + public Builder setStopDetails( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails value) { if (stopDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3255,14 +3748,18 @@ public Builder setStopDetails(com.google.maps.routing.v2.RouteLegStepTransitDeta return this; } /** + * + * *
      * Information about the arrival and departure stops for the step.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * */ public Builder setStopDetails( - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder builderForValue) { + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder + builderForValue) { if (stopDetailsBuilder_ == null) { stopDetails_ = builderForValue.build(); } else { @@ -3273,17 +3770,23 @@ public Builder setStopDetails( return this; } /** + * + * *
      * Information about the arrival and departure stops for the step.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * */ - public Builder mergeStopDetails(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails value) { + public Builder mergeStopDetails( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails value) { if (stopDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - stopDetails_ != null && - stopDetails_ != com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && stopDetails_ != null + && stopDetails_ + != com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + .getDefaultInstance()) { getStopDetailsBuilder().mergeFrom(value); } else { stopDetails_ = value; @@ -3296,11 +3799,14 @@ public Builder mergeStopDetails(com.google.maps.routing.v2.RouteLegStepTransitDe return this; } /** + * + * *
      * Information about the arrival and departure stops for the step.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * */ public Builder clearStopDetails() { bitField0_ = (bitField0_ & ~0x00000001); @@ -3313,90 +3819,131 @@ public Builder clearStopDetails() { return this; } /** + * + * *
      * Information about the arrival and departure stops for the step.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * */ - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder getStopDetailsBuilder() { + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder + getStopDetailsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStopDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Information about the arrival and departure stops for the step.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * */ - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder getStopDetailsOrBuilder() { + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder + getStopDetailsOrBuilder() { if (stopDetailsBuilder_ != null) { return stopDetailsBuilder_.getMessageOrBuilder(); } else { - return stopDetails_ == null ? - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.getDefaultInstance() : stopDetails_; + return stopDetails_ == null + ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails + .getDefaultInstance() + : stopDetails_; } } /** + * + * *
      * Information about the arrival and departure stops for the step.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder> + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails, + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder, + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder> getStopDetailsFieldBuilder() { if (stopDetailsBuilder_ == null) { - stopDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder>( - getStopDetails(), - getParentForChildren(), - isClean()); + stopDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails, + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.Builder, + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder>( + getStopDetails(), getParentForChildren(), isClean()); stopDetails_ = null; } return stopDetailsBuilder_; } - private com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localizedValues_; + private com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + localizedValues_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder> localizedValuesBuilder_; + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues, + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + .Builder, + com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValuesOrBuilder> + localizedValuesBuilder_; /** + * + * *
      * Text representations of properties of the `RouteLegStepTransitDetails`.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * * @return Whether the localizedValues field is set. */ public boolean hasLocalizedValues() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Text representations of properties of the `RouteLegStepTransitDetails`.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * * @return The localizedValues. */ - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues getLocalizedValues() { + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + getLocalizedValues() { if (localizedValuesBuilder_ == null) { - return localizedValues_ == null ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.getDefaultInstance() : localizedValues_; + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + .getDefaultInstance() + : localizedValues_; } else { return localizedValuesBuilder_.getMessage(); } } /** + * + * *
      * Text representations of properties of the `RouteLegStepTransitDetails`.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * */ - public Builder setLocalizedValues(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues value) { + public Builder setLocalizedValues( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues value) { if (localizedValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3410,14 +3957,19 @@ public Builder setLocalizedValues(com.google.maps.routing.v2.RouteLegStepTransit return this; } /** + * + * *
      * Text representations of properties of the `RouteLegStepTransitDetails`.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * */ public Builder setLocalizedValues( - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder builderForValue) { + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder + builderForValue) { if (localizedValuesBuilder_ == null) { localizedValues_ = builderForValue.build(); } else { @@ -3428,17 +3980,24 @@ public Builder setLocalizedValues( return this; } /** + * + * *
      * Text representations of properties of the `RouteLegStepTransitDetails`.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * */ - public Builder mergeLocalizedValues(com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues value) { + public Builder mergeLocalizedValues( + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues value) { if (localizedValuesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - localizedValues_ != null && - localizedValues_ != com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && localizedValues_ != null + && localizedValues_ + != com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValues.getDefaultInstance()) { getLocalizedValuesBuilder().mergeFrom(value); } else { localizedValues_ = value; @@ -3451,11 +4010,15 @@ public Builder mergeLocalizedValues(com.google.maps.routing.v2.RouteLegStepTrans return this; } /** + * + * *
      * Text representations of properties of the `RouteLegStepTransitDetails`.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * */ public Builder clearLocalizedValues() { bitField0_ = (bitField0_ & ~0x00000002); @@ -3468,48 +4031,73 @@ public Builder clearLocalizedValues() { return this; } /** + * + * *
      * Text representations of properties of the `RouteLegStepTransitDetails`.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * */ - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder getLocalizedValuesBuilder() { + public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + .Builder + getLocalizedValuesBuilder() { bitField0_ |= 0x00000002; onChanged(); return getLocalizedValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Text representations of properties of the `RouteLegStepTransitDetails`.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * */ - public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { + public com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValuesOrBuilder + getLocalizedValuesOrBuilder() { if (localizedValuesBuilder_ != null) { return localizedValuesBuilder_.getMessageOrBuilder(); } else { - return localizedValues_ == null ? - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.getDefaultInstance() : localizedValues_; + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + .getDefaultInstance() + : localizedValues_; } } /** + * + * *
      * Text representations of properties of the `RouteLegStepTransitDetails`.
      * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder> + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues, + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + .Builder, + com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValuesOrBuilder> getLocalizedValuesFieldBuilder() { if (localizedValuesBuilder_ == null) { - localizedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.Builder, com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder>( - getLocalizedValues(), - getParentForChildren(), - isClean()); + localizedValuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues, + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + .Builder, + com.google.maps.routing.v2.RouteLegStepTransitDetails + .TransitDetailsLocalizedValuesOrBuilder>( + getLocalizedValues(), getParentForChildren(), isClean()); localizedValues_ = null; } return localizedValuesBuilder_; @@ -3517,6 +4105,8 @@ public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocal private java.lang.Object headsign_ = ""; /** + * + * *
      * Specifies the direction in which to travel on this line as marked on
      * the vehicle or at the departure stop. The direction is often the terminus
@@ -3524,13 +4114,13 @@ public com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocal
      * 
* * string headsign = 3; + * * @return The headsign. */ public java.lang.String getHeadsign() { java.lang.Object ref = headsign_; 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(); headsign_ = s; return s; @@ -3539,6 +4129,8 @@ public java.lang.String getHeadsign() { } } /** + * + * *
      * Specifies the direction in which to travel on this line as marked on
      * the vehicle or at the departure stop. The direction is often the terminus
@@ -3546,15 +4138,14 @@ public java.lang.String getHeadsign() {
      * 
* * string headsign = 3; + * * @return The bytes for headsign. */ - public com.google.protobuf.ByteString - getHeadsignBytes() { + public com.google.protobuf.ByteString getHeadsignBytes() { java.lang.Object ref = headsign_; 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); headsign_ = b; return b; } else { @@ -3562,6 +4153,8 @@ public java.lang.String getHeadsign() { } } /** + * + * *
      * Specifies the direction in which to travel on this line as marked on
      * the vehicle or at the departure stop. The direction is often the terminus
@@ -3569,18 +4162,22 @@ public java.lang.String getHeadsign() {
      * 
* * string headsign = 3; + * * @param value The headsign to set. * @return This builder for chaining. */ - public Builder setHeadsign( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHeadsign(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } headsign_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Specifies the direction in which to travel on this line as marked on
      * the vehicle or at the departure stop. The direction is often the terminus
@@ -3588,6 +4185,7 @@ public Builder setHeadsign(
      * 
* * string headsign = 3; + * * @return This builder for chaining. */ public Builder clearHeadsign() { @@ -3597,6 +4195,8 @@ public Builder clearHeadsign() { return this; } /** + * + * *
      * Specifies the direction in which to travel on this line as marked on
      * the vehicle or at the departure stop. The direction is often the terminus
@@ -3604,12 +4204,14 @@ public Builder clearHeadsign() {
      * 
* * string headsign = 3; + * * @param value The bytes for headsign to set. * @return This builder for chaining. */ - public Builder setHeadsignBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHeadsignBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); headsign_ = value; bitField0_ |= 0x00000004; @@ -3619,8 +4221,13 @@ public Builder setHeadsignBytes( private com.google.protobuf.Duration headway_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> headwayBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + headwayBuilder_; /** + * + * *
      * Specifies the expected time as a duration between departures from the same
      * stop at this time. For example, with a headway seconds value of 600, you
@@ -3628,12 +4235,15 @@ public Builder setHeadsignBytes(
      * 
* * .google.protobuf.Duration headway = 4; + * * @return Whether the headway field is set. */ public boolean hasHeadway() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Specifies the expected time as a duration between departures from the same
      * stop at this time. For example, with a headway seconds value of 600, you
@@ -3641,6 +4251,7 @@ public boolean hasHeadway() {
      * 
* * .google.protobuf.Duration headway = 4; + * * @return The headway. */ public com.google.protobuf.Duration getHeadway() { @@ -3651,6 +4262,8 @@ public com.google.protobuf.Duration getHeadway() { } } /** + * + * *
      * Specifies the expected time as a duration between departures from the same
      * stop at this time. For example, with a headway seconds value of 600, you
@@ -3673,6 +4286,8 @@ public Builder setHeadway(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the expected time as a duration between departures from the same
      * stop at this time. For example, with a headway seconds value of 600, you
@@ -3681,8 +4296,7 @@ public Builder setHeadway(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration headway = 4;
      */
-    public Builder setHeadway(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setHeadway(com.google.protobuf.Duration.Builder builderForValue) {
       if (headwayBuilder_ == null) {
         headway_ = builderForValue.build();
       } else {
@@ -3693,6 +4307,8 @@ public Builder setHeadway(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the expected time as a duration between departures from the same
      * stop at this time. For example, with a headway seconds value of 600, you
@@ -3703,9 +4319,9 @@ public Builder setHeadway(
      */
     public Builder mergeHeadway(com.google.protobuf.Duration value) {
       if (headwayBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          headway_ != null &&
-          headway_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && headway_ != null
+            && headway_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getHeadwayBuilder().mergeFrom(value);
         } else {
           headway_ = value;
@@ -3718,6 +4334,8 @@ public Builder mergeHeadway(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the expected time as a duration between departures from the same
      * stop at this time. For example, with a headway seconds value of 600, you
@@ -3737,6 +4355,8 @@ public Builder clearHeadway() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specifies the expected time as a duration between departures from the same
      * stop at this time. For example, with a headway seconds value of 600, you
@@ -3751,6 +4371,8 @@ public com.google.protobuf.Duration.Builder getHeadwayBuilder() {
       return getHeadwayFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Specifies the expected time as a duration between departures from the same
      * stop at this time. For example, with a headway seconds value of 600, you
@@ -3763,11 +4385,12 @@ public com.google.protobuf.DurationOrBuilder getHeadwayOrBuilder() {
       if (headwayBuilder_ != null) {
         return headwayBuilder_.getMessageOrBuilder();
       } else {
-        return headway_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : headway_;
+        return headway_ == null ? com.google.protobuf.Duration.getDefaultInstance() : headway_;
       }
     }
     /**
+     *
+     *
      * 
      * Specifies the expected time as a duration between departures from the same
      * stop at this time. For example, with a headway seconds value of 600, you
@@ -3777,14 +4400,17 @@ public com.google.protobuf.DurationOrBuilder getHeadwayOrBuilder() {
      * .google.protobuf.Duration headway = 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>
         getHeadwayFieldBuilder() {
       if (headwayBuilder_ == null) {
-        headwayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getHeadway(),
-                getParentForChildren(),
-                isClean());
+        headwayBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getHeadway(), getParentForChildren(), isClean());
         headway_ = null;
       }
       return headwayBuilder_;
@@ -3792,34 +4418,47 @@ public com.google.protobuf.DurationOrBuilder getHeadwayOrBuilder() {
 
     private com.google.maps.routing.v2.TransitLine transitLine_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.TransitLine, com.google.maps.routing.v2.TransitLine.Builder, com.google.maps.routing.v2.TransitLineOrBuilder> transitLineBuilder_;
+            com.google.maps.routing.v2.TransitLine,
+            com.google.maps.routing.v2.TransitLine.Builder,
+            com.google.maps.routing.v2.TransitLineOrBuilder>
+        transitLineBuilder_;
     /**
+     *
+     *
      * 
      * Information about the transit line used in this step.
      * 
* * .google.maps.routing.v2.TransitLine transit_line = 5; + * * @return Whether the transitLine field is set. */ public boolean hasTransitLine() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Information about the transit line used in this step.
      * 
* * .google.maps.routing.v2.TransitLine transit_line = 5; + * * @return The transitLine. */ public com.google.maps.routing.v2.TransitLine getTransitLine() { if (transitLineBuilder_ == null) { - return transitLine_ == null ? com.google.maps.routing.v2.TransitLine.getDefaultInstance() : transitLine_; + return transitLine_ == null + ? com.google.maps.routing.v2.TransitLine.getDefaultInstance() + : transitLine_; } else { return transitLineBuilder_.getMessage(); } } /** + * + * *
      * Information about the transit line used in this step.
      * 
@@ -3840,14 +4479,15 @@ public Builder setTransitLine(com.google.maps.routing.v2.TransitLine value) { return this; } /** + * + * *
      * Information about the transit line used in this step.
      * 
* * .google.maps.routing.v2.TransitLine transit_line = 5; */ - public Builder setTransitLine( - com.google.maps.routing.v2.TransitLine.Builder builderForValue) { + public Builder setTransitLine(com.google.maps.routing.v2.TransitLine.Builder builderForValue) { if (transitLineBuilder_ == null) { transitLine_ = builderForValue.build(); } else { @@ -3858,6 +4498,8 @@ public Builder setTransitLine( return this; } /** + * + * *
      * Information about the transit line used in this step.
      * 
@@ -3866,9 +4508,9 @@ public Builder setTransitLine( */ public Builder mergeTransitLine(com.google.maps.routing.v2.TransitLine value) { if (transitLineBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - transitLine_ != null && - transitLine_ != com.google.maps.routing.v2.TransitLine.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && transitLine_ != null + && transitLine_ != com.google.maps.routing.v2.TransitLine.getDefaultInstance()) { getTransitLineBuilder().mergeFrom(value); } else { transitLine_ = value; @@ -3881,6 +4523,8 @@ public Builder mergeTransitLine(com.google.maps.routing.v2.TransitLine value) { return this; } /** + * + * *
      * Information about the transit line used in this step.
      * 
@@ -3898,6 +4542,8 @@ public Builder clearTransitLine() { return this; } /** + * + * *
      * Information about the transit line used in this step.
      * 
@@ -3910,6 +4556,8 @@ public com.google.maps.routing.v2.TransitLine.Builder getTransitLineBuilder() { return getTransitLineFieldBuilder().getBuilder(); } /** + * + * *
      * Information about the transit line used in this step.
      * 
@@ -3920,11 +4568,14 @@ public com.google.maps.routing.v2.TransitLineOrBuilder getTransitLineOrBuilder() if (transitLineBuilder_ != null) { return transitLineBuilder_.getMessageOrBuilder(); } else { - return transitLine_ == null ? - com.google.maps.routing.v2.TransitLine.getDefaultInstance() : transitLine_; + return transitLine_ == null + ? com.google.maps.routing.v2.TransitLine.getDefaultInstance() + : transitLine_; } } /** + * + * *
      * Information about the transit line used in this step.
      * 
@@ -3932,21 +4583,26 @@ public com.google.maps.routing.v2.TransitLineOrBuilder getTransitLineOrBuilder() * .google.maps.routing.v2.TransitLine transit_line = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitLine, com.google.maps.routing.v2.TransitLine.Builder, com.google.maps.routing.v2.TransitLineOrBuilder> + com.google.maps.routing.v2.TransitLine, + com.google.maps.routing.v2.TransitLine.Builder, + com.google.maps.routing.v2.TransitLineOrBuilder> getTransitLineFieldBuilder() { if (transitLineBuilder_ == null) { - transitLineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitLine, com.google.maps.routing.v2.TransitLine.Builder, com.google.maps.routing.v2.TransitLineOrBuilder>( - getTransitLine(), - getParentForChildren(), - isClean()); + transitLineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitLine, + com.google.maps.routing.v2.TransitLine.Builder, + com.google.maps.routing.v2.TransitLineOrBuilder>( + getTransitLine(), getParentForChildren(), isClean()); transitLine_ = null; } return transitLineBuilder_; } - private int stopCount_ ; + private int stopCount_; /** + * + * *
      * The number of stops from the departure to the arrival stop. This count
      * includes the arrival stop, but excludes the departure stop. For example, if
@@ -3955,6 +4611,7 @@ public com.google.maps.routing.v2.TransitLineOrBuilder getTransitLineOrBuilder()
      * 
* * int32 stop_count = 6; + * * @return The stopCount. */ @java.lang.Override @@ -3962,6 +4619,8 @@ public int getStopCount() { return stopCount_; } /** + * + * *
      * The number of stops from the departure to the arrival stop. This count
      * includes the arrival stop, but excludes the departure stop. For example, if
@@ -3970,6 +4629,7 @@ public int getStopCount() {
      * 
* * int32 stop_count = 6; + * * @param value The stopCount to set. * @return This builder for chaining. */ @@ -3981,6 +4641,8 @@ public Builder setStopCount(int value) { return this; } /** + * + * *
      * The number of stops from the departure to the arrival stop. This count
      * includes the arrival stop, but excludes the departure stop. For example, if
@@ -3989,6 +4651,7 @@ public Builder setStopCount(int value) {
      * 
* * int32 stop_count = 6; + * * @return This builder for chaining. */ public Builder clearStopCount() { @@ -4000,6 +4663,8 @@ public Builder clearStopCount() { private java.lang.Object tripShortText_ = ""; /** + * + * *
      * The text that appears in schedules and sign boards to identify a transit
      * trip to passengers. The text should uniquely identify a trip within a
@@ -4008,13 +4673,13 @@ public Builder clearStopCount() {
      * 
* * string trip_short_text = 7; + * * @return The tripShortText. */ public java.lang.String getTripShortText() { java.lang.Object ref = tripShortText_; 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(); tripShortText_ = s; return s; @@ -4023,6 +4688,8 @@ public java.lang.String getTripShortText() { } } /** + * + * *
      * The text that appears in schedules and sign boards to identify a transit
      * trip to passengers. The text should uniquely identify a trip within a
@@ -4031,15 +4698,14 @@ public java.lang.String getTripShortText() {
      * 
* * string trip_short_text = 7; + * * @return The bytes for tripShortText. */ - public com.google.protobuf.ByteString - getTripShortTextBytes() { + public com.google.protobuf.ByteString getTripShortTextBytes() { java.lang.Object ref = tripShortText_; 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); tripShortText_ = b; return b; } else { @@ -4047,6 +4713,8 @@ public java.lang.String getTripShortText() { } } /** + * + * *
      * The text that appears in schedules and sign boards to identify a transit
      * trip to passengers. The text should uniquely identify a trip within a
@@ -4055,18 +4723,22 @@ public java.lang.String getTripShortText() {
      * 
* * string trip_short_text = 7; + * * @param value The tripShortText to set. * @return This builder for chaining. */ - public Builder setTripShortText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTripShortText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } tripShortText_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * The text that appears in schedules and sign boards to identify a transit
      * trip to passengers. The text should uniquely identify a trip within a
@@ -4075,6 +4747,7 @@ public Builder setTripShortText(
      * 
* * string trip_short_text = 7; + * * @return This builder for chaining. */ public Builder clearTripShortText() { @@ -4084,6 +4757,8 @@ public Builder clearTripShortText() { return this; } /** + * + * *
      * The text that appears in schedules and sign boards to identify a transit
      * trip to passengers. The text should uniquely identify a trip within a
@@ -4092,21 +4767,23 @@ public Builder clearTripShortText() {
      * 
* * string trip_short_text = 7; + * * @param value The bytes for tripShortText to set. * @return This builder for chaining. */ - public Builder setTripShortTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTripShortTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); tripShortText_ = value; bitField0_ |= 0x00000040; 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); } @@ -4116,12 +4793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteLegStepTransitDetails) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLegStepTransitDetails) private static final com.google.maps.routing.v2.RouteLegStepTransitDetails DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLegStepTransitDetails(); } @@ -4130,27 +4807,27 @@ public static com.google.maps.routing.v2.RouteLegStepTransitDetails getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteLegStepTransitDetails 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 RouteLegStepTransitDetails 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; @@ -4165,6 +4842,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.maps.routing.v2.RouteLegStepTransitDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetailsOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetailsOrBuilder.java similarity index 76% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetailsOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetailsOrBuilder.java index b022f8a98ec1..369ea75be635 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetailsOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTransitDetailsOrBuilder.java @@ -1,67 +1,113 @@ +/* + * 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/maps/routing/v2/route.proto package com.google.maps.routing.v2; -public interface RouteLegStepTransitDetailsOrBuilder extends +public interface RouteLegStepTransitDetailsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLegStepTransitDetails) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Information about the arrival and departure stops for the step.
    * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * + * * @return Whether the stopDetails field is set. */ boolean hasStopDetails(); /** + * + * *
    * Information about the arrival and departure stops for the step.
    * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * + * * @return The stopDetails. */ com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails getStopDetails(); /** + * + * *
    * Information about the arrival and departure stops for the step.
    * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails stop_details = 1; + * */ - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder getStopDetailsOrBuilder(); + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetailsOrBuilder + getStopDetailsOrBuilder(); /** + * + * *
    * Text representations of properties of the `RouteLegStepTransitDetails`.
    * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * * @return Whether the localizedValues field is set. */ boolean hasLocalizedValues(); /** + * + * *
    * Text representations of properties of the `RouteLegStepTransitDetails`.
    * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * * @return The localizedValues. */ - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues getLocalizedValues(); + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues + getLocalizedValues(); /** + * + * *
    * Text representations of properties of the `RouteLegStepTransitDetails`.
    * 
* - * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * + * .google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues localized_values = 2; + * */ - com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder getLocalizedValuesOrBuilder(); + com.google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValuesOrBuilder + getLocalizedValuesOrBuilder(); /** + * + * *
    * Specifies the direction in which to travel on this line as marked on
    * the vehicle or at the departure stop. The direction is often the terminus
@@ -69,10 +115,13 @@ public interface RouteLegStepTransitDetailsOrBuilder extends
    * 
* * string headsign = 3; + * * @return The headsign. */ java.lang.String getHeadsign(); /** + * + * *
    * Specifies the direction in which to travel on this line as marked on
    * the vehicle or at the departure stop. The direction is often the terminus
@@ -80,12 +129,14 @@ public interface RouteLegStepTransitDetailsOrBuilder extends
    * 
* * string headsign = 3; + * * @return The bytes for headsign. */ - com.google.protobuf.ByteString - getHeadsignBytes(); + com.google.protobuf.ByteString getHeadsignBytes(); /** + * + * *
    * Specifies the expected time as a duration between departures from the same
    * stop at this time. For example, with a headway seconds value of 600, you
@@ -93,10 +144,13 @@ public interface RouteLegStepTransitDetailsOrBuilder extends
    * 
* * .google.protobuf.Duration headway = 4; + * * @return Whether the headway field is set. */ boolean hasHeadway(); /** + * + * *
    * Specifies the expected time as a duration between departures from the same
    * stop at this time. For example, with a headway seconds value of 600, you
@@ -104,10 +158,13 @@ public interface RouteLegStepTransitDetailsOrBuilder extends
    * 
* * .google.protobuf.Duration headway = 4; + * * @return The headway. */ com.google.protobuf.Duration getHeadway(); /** + * + * *
    * Specifies the expected time as a duration between departures from the same
    * stop at this time. For example, with a headway seconds value of 600, you
@@ -119,24 +176,32 @@ public interface RouteLegStepTransitDetailsOrBuilder extends
   com.google.protobuf.DurationOrBuilder getHeadwayOrBuilder();
 
   /**
+   *
+   *
    * 
    * Information about the transit line used in this step.
    * 
* * .google.maps.routing.v2.TransitLine transit_line = 5; + * * @return Whether the transitLine field is set. */ boolean hasTransitLine(); /** + * + * *
    * Information about the transit line used in this step.
    * 
* * .google.maps.routing.v2.TransitLine transit_line = 5; + * * @return The transitLine. */ com.google.maps.routing.v2.TransitLine getTransitLine(); /** + * + * *
    * Information about the transit line used in this step.
    * 
@@ -146,6 +211,8 @@ public interface RouteLegStepTransitDetailsOrBuilder extends com.google.maps.routing.v2.TransitLineOrBuilder getTransitLineOrBuilder(); /** + * + * *
    * The number of stops from the departure to the arrival stop. This count
    * includes the arrival stop, but excludes the departure stop. For example, if
@@ -154,11 +221,14 @@ public interface RouteLegStepTransitDetailsOrBuilder extends
    * 
* * int32 stop_count = 6; + * * @return The stopCount. */ int getStopCount(); /** + * + * *
    * The text that appears in schedules and sign boards to identify a transit
    * trip to passengers. The text should uniquely identify a trip within a
@@ -167,10 +237,13 @@ public interface RouteLegStepTransitDetailsOrBuilder extends
    * 
* * string trip_short_text = 7; + * * @return The tripShortText. */ java.lang.String getTripShortText(); /** + * + * *
    * The text that appears in schedules and sign boards to identify a transit
    * trip to passengers. The text should uniquely identify a trip within a
@@ -179,8 +252,8 @@ public interface RouteLegStepTransitDetailsOrBuilder extends
    * 
* * string trip_short_text = 7; + * * @return The bytes for tripShortText. */ - com.google.protobuf.ByteString - getTripShortTextBytes(); + com.google.protobuf.ByteString getTripShortTextBytes(); } diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisory.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisory.java similarity index 69% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisory.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisory.java index 2714a686f018..4f442d1e49e2 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisory.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisory.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/maps/routing/v2/route.proto package com.google.maps.routing.v2; /** + * + * *
  * Contains the additional information that the user should be informed
  * about, such as possible traffic zone restrictions on a leg step.
@@ -11,43 +28,48 @@
  *
  * Protobuf type {@code google.maps.routing.v2.RouteLegStepTravelAdvisory}
  */
-public final class RouteLegStepTravelAdvisory extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RouteLegStepTravelAdvisory extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLegStepTravelAdvisory)
     RouteLegStepTravelAdvisoryOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RouteLegStepTravelAdvisory.newBuilder() to construct.
   private RouteLegStepTravelAdvisory(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RouteLegStepTravelAdvisory() {
     speedReadingIntervals_ = 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 RouteLegStepTravelAdvisory();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.maps.routing.v2.RouteProto
+        .internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable
+    return com.google.maps.routing.v2.RouteProto
+        .internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.RouteLegStepTravelAdvisory.class, com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder.class);
+            com.google.maps.routing.v2.RouteLegStepTravelAdvisory.class,
+            com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder.class);
   }
 
   public static final int SPEED_READING_INTERVALS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List speedReadingIntervals_;
   /**
+   *
+   *
    * 
    * NOTE: This field is not currently populated.
    * 
@@ -55,10 +77,13 @@ protected java.lang.Object newInstance( * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ @java.lang.Override - public java.util.List getSpeedReadingIntervalsList() { + public java.util.List + getSpeedReadingIntervalsList() { return speedReadingIntervals_; } /** + * + * *
    * NOTE: This field is not currently populated.
    * 
@@ -66,11 +91,13 @@ public java.util.List getSpeedR * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSpeedReadingIntervalsOrBuilderList() { return speedReadingIntervals_; } /** + * + * *
    * NOTE: This field is not currently populated.
    * 
@@ -82,6 +109,8 @@ public int getSpeedReadingIntervalsCount() { return speedReadingIntervals_.size(); } /** + * + * *
    * NOTE: This field is not currently populated.
    * 
@@ -93,6 +122,8 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals( return speedReadingIntervals_.get(index); } /** + * + * *
    * NOTE: This field is not currently populated.
    * 
@@ -106,6 +137,7 @@ public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingI } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -117,8 +149,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 < speedReadingIntervals_.size(); i++) { output.writeMessage(1, speedReadingIntervals_.get(i)); } @@ -132,8 +163,9 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < speedReadingIntervals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, speedReadingIntervals_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, speedReadingIntervals_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -143,15 +175,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.maps.routing.v2.RouteLegStepTravelAdvisory)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteLegStepTravelAdvisory other = (com.google.maps.routing.v2.RouteLegStepTravelAdvisory) obj; + com.google.maps.routing.v2.RouteLegStepTravelAdvisory other = + (com.google.maps.routing.v2.RouteLegStepTravelAdvisory) obj; - if (!getSpeedReadingIntervalsList() - .equals(other.getSpeedReadingIntervalsList())) return false; + if (!getSpeedReadingIntervalsList().equals(other.getSpeedReadingIntervalsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -173,98 +205,104 @@ public int hashCode() { } public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory 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.maps.routing.v2.RouteLegStepTravelAdvisory prototype) { + + public static Builder newBuilder( + com.google.maps.routing.v2.RouteLegStepTravelAdvisory 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; } /** + * + * *
    * Contains the additional information that the user should be informed
    * about, such as possible traffic zone restrictions on a leg step.
@@ -272,33 +310,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.maps.routing.v2.RouteLegStepTravelAdvisory}
    */
-  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.maps.routing.v2.RouteLegStepTravelAdvisory)
       com.google.maps.routing.v2.RouteLegStepTravelAdvisoryOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.maps.routing.v2.RouteProto
+          .internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable
+      return com.google.maps.routing.v2.RouteProto
+          .internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.RouteLegStepTravelAdvisory.class, com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder.class);
+              com.google.maps.routing.v2.RouteLegStepTravelAdvisory.class,
+              com.google.maps.routing.v2.RouteLegStepTravelAdvisory.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.RouteLegStepTravelAdvisory.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();
@@ -314,9 +351,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.maps.routing.v2.RouteProto
+          .internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor;
     }
 
     @java.lang.Override
@@ -335,14 +372,18 @@ public com.google.maps.routing.v2.RouteLegStepTravelAdvisory build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.RouteLegStepTravelAdvisory buildPartial() {
-      com.google.maps.routing.v2.RouteLegStepTravelAdvisory result = new com.google.maps.routing.v2.RouteLegStepTravelAdvisory(this);
+      com.google.maps.routing.v2.RouteLegStepTravelAdvisory result =
+          new com.google.maps.routing.v2.RouteLegStepTravelAdvisory(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.maps.routing.v2.RouteLegStepTravelAdvisory result) {
+    private void buildPartialRepeatedFields(
+        com.google.maps.routing.v2.RouteLegStepTravelAdvisory result) {
       if (speedReadingIntervalsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           speedReadingIntervals_ = java.util.Collections.unmodifiableList(speedReadingIntervals_);
@@ -362,38 +403,39 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLegStepTravelAdvisory
     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.maps.routing.v2.RouteLegStepTravelAdvisory) {
-        return mergeFrom((com.google.maps.routing.v2.RouteLegStepTravelAdvisory)other);
+        return mergeFrom((com.google.maps.routing.v2.RouteLegStepTravelAdvisory) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -401,7 +443,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.maps.routing.v2.RouteLegStepTravelAdvisory other) {
-      if (other == com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance()) return this;
+      if (other == com.google.maps.routing.v2.RouteLegStepTravelAdvisory.getDefaultInstance())
+        return this;
       if (speedReadingIntervalsBuilder_ == null) {
         if (!other.speedReadingIntervals_.isEmpty()) {
           if (speedReadingIntervals_.isEmpty()) {
@@ -420,9 +463,10 @@ public Builder mergeFrom(com.google.maps.routing.v2.RouteLegStepTravelAdvisory o
             speedReadingIntervalsBuilder_ = null;
             speedReadingIntervals_ = other.speedReadingIntervals_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            speedReadingIntervalsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSpeedReadingIntervalsFieldBuilder() : null;
+            speedReadingIntervalsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSpeedReadingIntervalsFieldBuilder()
+                    : null;
           } else {
             speedReadingIntervalsBuilder_.addAllMessages(other.speedReadingIntervals_);
           }
@@ -454,25 +498,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.maps.routing.v2.SpeedReadingInterval m =
-                  input.readMessage(
-                      com.google.maps.routing.v2.SpeedReadingInterval.parser(),
-                      extensionRegistry);
-              if (speedReadingIntervalsBuilder_ == null) {
-                ensureSpeedReadingIntervalsIsMutable();
-                speedReadingIntervals_.add(m);
-              } else {
-                speedReadingIntervalsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.maps.routing.v2.SpeedReadingInterval m =
+                    input.readMessage(
+                        com.google.maps.routing.v2.SpeedReadingInterval.parser(),
+                        extensionRegistry);
+                if (speedReadingIntervalsBuilder_ == null) {
+                  ensureSpeedReadingIntervalsIsMutable();
+                  speedReadingIntervals_.add(m);
+                } else {
+                  speedReadingIntervalsBuilder_.addMessage(m);
+                }
+                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) {
@@ -482,28 +528,39 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List speedReadingIntervals_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSpeedReadingIntervalsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        speedReadingIntervals_ = new java.util.ArrayList(speedReadingIntervals_);
+        speedReadingIntervals_ =
+            new java.util.ArrayList(
+                speedReadingIntervals_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> speedReadingIntervalsBuilder_;
+            com.google.maps.routing.v2.SpeedReadingInterval,
+            com.google.maps.routing.v2.SpeedReadingInterval.Builder,
+            com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder>
+        speedReadingIntervalsBuilder_;
 
     /**
+     *
+     *
      * 
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ - public java.util.List getSpeedReadingIntervalsList() { + public java.util.List + getSpeedReadingIntervalsList() { if (speedReadingIntervalsBuilder_ == null) { return java.util.Collections.unmodifiableList(speedReadingIntervals_); } else { @@ -511,11 +568,14 @@ public java.util.List getSpeedR } } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ public int getSpeedReadingIntervalsCount() { if (speedReadingIntervalsBuilder_ == null) { @@ -525,11 +585,14 @@ public int getSpeedReadingIntervalsCount() { } } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(int index) { if (speedReadingIntervalsBuilder_ == null) { @@ -539,11 +602,14 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals( } } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ public Builder setSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval value) { @@ -560,11 +626,14 @@ public Builder setSpeedReadingIntervals( return this; } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ public Builder setSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -578,11 +647,14 @@ public Builder setSpeedReadingIntervals( return this; } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingInterval value) { if (speedReadingIntervalsBuilder_ == null) { @@ -598,11 +670,14 @@ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingI return this; } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ public Builder addSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval value) { @@ -619,11 +694,14 @@ public Builder addSpeedReadingIntervals( return this; } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ public Builder addSpeedReadingIntervals( com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -637,11 +715,14 @@ public Builder addSpeedReadingIntervals( return this; } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ public Builder addSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -655,18 +736,20 @@ public Builder addSpeedReadingIntervals( return this; } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ public Builder addAllSpeedReadingIntervals( java.lang.Iterable values) { if (speedReadingIntervalsBuilder_ == null) { ensureSpeedReadingIntervalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, speedReadingIntervals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speedReadingIntervals_); onChanged(); } else { speedReadingIntervalsBuilder_.addAllMessages(values); @@ -674,11 +757,14 @@ public Builder addAllSpeedReadingIntervals( return this; } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ public Builder clearSpeedReadingIntervals() { if (speedReadingIntervalsBuilder_ == null) { @@ -691,11 +777,14 @@ public Builder clearSpeedReadingIntervals() { return this; } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ public Builder removeSpeedReadingIntervals(int index) { if (speedReadingIntervalsBuilder_ == null) { @@ -708,39 +797,49 @@ public Builder removeSpeedReadingIntervals(int index) { return this; } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIntervalsBuilder( int index) { return getSpeedReadingIntervalsFieldBuilder().getBuilder(index); } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ - public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingIntervalsOrBuilder( - int index) { + public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder + getSpeedReadingIntervalsOrBuilder(int index) { if (speedReadingIntervalsBuilder_ == null) { - return speedReadingIntervals_.get(index); } else { + return speedReadingIntervals_.get(index); + } else { return speedReadingIntervalsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ - public java.util.List - getSpeedReadingIntervalsOrBuilderList() { + public java.util.List + getSpeedReadingIntervalsOrBuilderList() { if (speedReadingIntervalsBuilder_ != null) { return speedReadingIntervalsBuilder_.getMessageOrBuilderList(); } else { @@ -748,45 +847,61 @@ public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingI } } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ - public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIntervalsBuilder() { - return getSpeedReadingIntervalsFieldBuilder().addBuilder( - com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); + public com.google.maps.routing.v2.SpeedReadingInterval.Builder + addSpeedReadingIntervalsBuilder() { + return getSpeedReadingIntervalsFieldBuilder() + .addBuilder(com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIntervalsBuilder( int index) { - return getSpeedReadingIntervalsFieldBuilder().addBuilder( - index, com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); + return getSpeedReadingIntervalsFieldBuilder() + .addBuilder(index, com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); } /** + * + * *
      * NOTE: This field is not currently populated.
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; + * */ - public java.util.List - getSpeedReadingIntervalsBuilderList() { + public java.util.List + getSpeedReadingIntervalsBuilderList() { return getSpeedReadingIntervalsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> + com.google.maps.routing.v2.SpeedReadingInterval, + com.google.maps.routing.v2.SpeedReadingInterval.Builder, + com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> getSpeedReadingIntervalsFieldBuilder() { if (speedReadingIntervalsBuilder_ == null) { - speedReadingIntervalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder>( + speedReadingIntervalsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.SpeedReadingInterval, + com.google.maps.routing.v2.SpeedReadingInterval.Builder, + com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder>( speedReadingIntervals_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -795,9 +910,9 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIn } return speedReadingIntervalsBuilder_; } + @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); } @@ -807,12 +922,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteLegStepTravelAdvisory) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLegStepTravelAdvisory) private static final com.google.maps.routing.v2.RouteLegStepTravelAdvisory DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLegStepTravelAdvisory(); } @@ -821,27 +936,27 @@ public static com.google.maps.routing.v2.RouteLegStepTravelAdvisory getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteLegStepTravelAdvisory 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 RouteLegStepTravelAdvisory 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; @@ -856,6 +971,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.maps.routing.v2.RouteLegStepTravelAdvisory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisoryOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisoryOrBuilder.java similarity index 68% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisoryOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisoryOrBuilder.java index 433d367cddc8..420fc03bf85b 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisoryOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegStepTravelAdvisoryOrBuilder.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/maps/routing/v2/route.proto package com.google.maps.routing.v2; -public interface RouteLegStepTravelAdvisoryOrBuilder extends +public interface RouteLegStepTravelAdvisoryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLegStepTravelAdvisory) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * NOTE: This field is not currently populated.
    * 
* * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ - java.util.List - getSpeedReadingIntervalsList(); + java.util.List getSpeedReadingIntervalsList(); /** + * + * *
    * NOTE: This field is not currently populated.
    * 
@@ -25,6 +44,8 @@ public interface RouteLegStepTravelAdvisoryOrBuilder extends */ com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(int index); /** + * + * *
    * NOTE: This field is not currently populated.
    * 
@@ -33,15 +54,19 @@ public interface RouteLegStepTravelAdvisoryOrBuilder extends */ int getSpeedReadingIntervalsCount(); /** + * + * *
    * NOTE: This field is not currently populated.
    * 
* * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 1; */ - java.util.List + java.util.List getSpeedReadingIntervalsOrBuilderList(); /** + * + * *
    * NOTE: This field is not currently populated.
    * 
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisory.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisory.java similarity index 78% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisory.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisory.java index 9ec3e7fb0bdf..286ead60c7a3 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisory.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisory.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/maps/routing/v2/route.proto package com.google.maps.routing.v2; /** + * + * *
  * Contains the additional information that the user should be informed
  * about on a leg step, such as possible traffic zone restrictions.
@@ -11,42 +28,46 @@
  *
  * Protobuf type {@code google.maps.routing.v2.RouteLegTravelAdvisory}
  */
-public final class RouteLegTravelAdvisory extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RouteLegTravelAdvisory extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteLegTravelAdvisory)
     RouteLegTravelAdvisoryOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RouteLegTravelAdvisory.newBuilder() to construct.
   private RouteLegTravelAdvisory(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RouteLegTravelAdvisory() {
     speedReadingIntervals_ = 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 RouteLegTravelAdvisory();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.maps.routing.v2.RouteProto
+        .internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable
+    return com.google.maps.routing.v2.RouteProto
+        .internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.RouteLegTravelAdvisory.class, com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder.class);
+            com.google.maps.routing.v2.RouteLegTravelAdvisory.class,
+            com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder.class);
   }
 
   public static final int TOLL_INFO_FIELD_NUMBER = 1;
   private com.google.maps.routing.v2.TollInfo tollInfo_;
   /**
+   *
+   *
    * 
    * Contains information about tolls on the specific `RouteLeg`.
    * This field is only populated if we expect there are tolls on the
@@ -57,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; + * * @return Whether the tollInfo field is set. */ @java.lang.Override @@ -64,6 +86,8 @@ public boolean hasTollInfo() { return tollInfo_ != null; } /** + * + * *
    * Contains information about tolls on the specific `RouteLeg`.
    * This field is only populated if we expect there are tolls on the
@@ -74,6 +98,7 @@ public boolean hasTollInfo() {
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; + * * @return The tollInfo. */ @java.lang.Override @@ -81,6 +106,8 @@ public com.google.maps.routing.v2.TollInfo getTollInfo() { return tollInfo_ == null ? com.google.maps.routing.v2.TollInfo.getDefaultInstance() : tollInfo_; } /** + * + * *
    * Contains information about tolls on the specific `RouteLeg`.
    * This field is only populated if we expect there are tolls on the
@@ -98,9 +125,12 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() {
   }
 
   public static final int SPEED_READING_INTERVALS_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private java.util.List speedReadingIntervals_;
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -117,10 +147,13 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() {
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2;
    */
   @java.lang.Override
-  public java.util.List getSpeedReadingIntervalsList() {
+  public java.util.List
+      getSpeedReadingIntervalsList() {
     return speedReadingIntervals_;
   }
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -137,11 +170,13 @@ public java.util.List getSpeedR
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getSpeedReadingIntervalsOrBuilderList() {
     return speedReadingIntervals_;
   }
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -162,6 +197,8 @@ public int getSpeedReadingIntervalsCount() {
     return speedReadingIntervals_.size();
   }
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -182,6 +219,8 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(
     return speedReadingIntervals_.get(index);
   }
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -204,6 +243,7 @@ public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingI
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -215,8 +255,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 (tollInfo_ != null) {
       output.writeMessage(1, getTollInfo());
     }
@@ -233,12 +272,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (tollInfo_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getTollInfo());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTollInfo());
     }
     for (int i = 0; i < speedReadingIntervals_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, speedReadingIntervals_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, speedReadingIntervals_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -248,20 +287,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.maps.routing.v2.RouteLegTravelAdvisory)) {
       return super.equals(obj);
     }
-    com.google.maps.routing.v2.RouteLegTravelAdvisory other = (com.google.maps.routing.v2.RouteLegTravelAdvisory) obj;
+    com.google.maps.routing.v2.RouteLegTravelAdvisory other =
+        (com.google.maps.routing.v2.RouteLegTravelAdvisory) obj;
 
     if (hasTollInfo() != other.hasTollInfo()) return false;
     if (hasTollInfo()) {
-      if (!getTollInfo()
-          .equals(other.getTollInfo())) return false;
+      if (!getTollInfo().equals(other.getTollInfo())) return false;
     }
-    if (!getSpeedReadingIntervalsList()
-        .equals(other.getSpeedReadingIntervalsList())) return false;
+    if (!getSpeedReadingIntervalsList().equals(other.getSpeedReadingIntervalsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -287,98 +325,103 @@ public int hashCode() {
   }
 
   public static com.google.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.maps.routing.v2.RouteLegTravelAdvisory parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.maps.routing.v2.RouteLegTravelAdvisory parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory 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;
   }
   /**
+   *
+   *
    * 
    * Contains the additional information that the user should be informed
    * about on a leg step, such as possible traffic zone restrictions.
@@ -386,33 +429,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.maps.routing.v2.RouteLegTravelAdvisory}
    */
-  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.maps.routing.v2.RouteLegTravelAdvisory)
       com.google.maps.routing.v2.RouteLegTravelAdvisoryOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.maps.routing.v2.RouteProto
+          .internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable
+      return com.google.maps.routing.v2.RouteProto
+          .internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.RouteLegTravelAdvisory.class, com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder.class);
+              com.google.maps.routing.v2.RouteLegTravelAdvisory.class,
+              com.google.maps.routing.v2.RouteLegTravelAdvisory.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.RouteLegTravelAdvisory.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();
@@ -433,9 +475,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.maps.routing.v2.RouteProto
+          .internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor;
     }
 
     @java.lang.Override
@@ -454,14 +496,18 @@ public com.google.maps.routing.v2.RouteLegTravelAdvisory build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.RouteLegTravelAdvisory buildPartial() {
-      com.google.maps.routing.v2.RouteLegTravelAdvisory result = new com.google.maps.routing.v2.RouteLegTravelAdvisory(this);
+      com.google.maps.routing.v2.RouteLegTravelAdvisory result =
+          new com.google.maps.routing.v2.RouteLegTravelAdvisory(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.maps.routing.v2.RouteLegTravelAdvisory result) {
+    private void buildPartialRepeatedFields(
+        com.google.maps.routing.v2.RouteLegTravelAdvisory result) {
       if (speedReadingIntervalsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
           speedReadingIntervals_ = java.util.Collections.unmodifiableList(speedReadingIntervals_);
@@ -476,9 +522,7 @@ private void buildPartialRepeatedFields(com.google.maps.routing.v2.RouteLegTrave
     private void buildPartial0(com.google.maps.routing.v2.RouteLegTravelAdvisory result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.tollInfo_ = tollInfoBuilder_ == null
-            ? tollInfo_
-            : tollInfoBuilder_.build();
+        result.tollInfo_ = tollInfoBuilder_ == null ? tollInfo_ : tollInfoBuilder_.build();
       }
     }
 
@@ -486,38 +530,39 @@ private void buildPartial0(com.google.maps.routing.v2.RouteLegTravelAdvisory 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.maps.routing.v2.RouteLegTravelAdvisory) {
-        return mergeFrom((com.google.maps.routing.v2.RouteLegTravelAdvisory)other);
+        return mergeFrom((com.google.maps.routing.v2.RouteLegTravelAdvisory) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -525,7 +570,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.maps.routing.v2.RouteLegTravelAdvisory other) {
-      if (other == com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance()) return this;
+      if (other == com.google.maps.routing.v2.RouteLegTravelAdvisory.getDefaultInstance())
+        return this;
       if (other.hasTollInfo()) {
         mergeTollInfo(other.getTollInfo());
       }
@@ -547,9 +593,10 @@ public Builder mergeFrom(com.google.maps.routing.v2.RouteLegTravelAdvisory other
             speedReadingIntervalsBuilder_ = null;
             speedReadingIntervals_ = other.speedReadingIntervals_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            speedReadingIntervalsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSpeedReadingIntervalsFieldBuilder() : null;
+            speedReadingIntervalsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSpeedReadingIntervalsFieldBuilder()
+                    : null;
           } else {
             speedReadingIntervalsBuilder_.addAllMessages(other.speedReadingIntervals_);
           }
@@ -581,32 +628,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getTollInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.maps.routing.v2.SpeedReadingInterval m =
-                  input.readMessage(
-                      com.google.maps.routing.v2.SpeedReadingInterval.parser(),
-                      extensionRegistry);
-              if (speedReadingIntervalsBuilder_ == null) {
-                ensureSpeedReadingIntervalsIsMutable();
-                speedReadingIntervals_.add(m);
-              } else {
-                speedReadingIntervalsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getTollInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.maps.routing.v2.SpeedReadingInterval m =
+                    input.readMessage(
+                        com.google.maps.routing.v2.SpeedReadingInterval.parser(),
+                        extensionRegistry);
+                if (speedReadingIntervalsBuilder_ == null) {
+                  ensureSpeedReadingIntervalsIsMutable();
+                  speedReadingIntervals_.add(m);
+                } else {
+                  speedReadingIntervalsBuilder_.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) {
@@ -616,12 +664,18 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.maps.routing.v2.TollInfo tollInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.TollInfo, com.google.maps.routing.v2.TollInfo.Builder, com.google.maps.routing.v2.TollInfoOrBuilder> tollInfoBuilder_;
+            com.google.maps.routing.v2.TollInfo,
+            com.google.maps.routing.v2.TollInfo.Builder,
+            com.google.maps.routing.v2.TollInfoOrBuilder>
+        tollInfoBuilder_;
     /**
+     *
+     *
      * 
      * Contains information about tolls on the specific `RouteLeg`.
      * This field is only populated if we expect there are tolls on the
@@ -632,12 +686,15 @@ public Builder mergeFrom(
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; + * * @return Whether the tollInfo field is set. */ public boolean hasTollInfo() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Contains information about tolls on the specific `RouteLeg`.
      * This field is only populated if we expect there are tolls on the
@@ -648,16 +705,21 @@ public boolean hasTollInfo() {
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; + * * @return The tollInfo. */ public com.google.maps.routing.v2.TollInfo getTollInfo() { if (tollInfoBuilder_ == null) { - return tollInfo_ == null ? com.google.maps.routing.v2.TollInfo.getDefaultInstance() : tollInfo_; + return tollInfo_ == null + ? com.google.maps.routing.v2.TollInfo.getDefaultInstance() + : tollInfo_; } else { return tollInfoBuilder_.getMessage(); } } /** + * + * *
      * Contains information about tolls on the specific `RouteLeg`.
      * This field is only populated if we expect there are tolls on the
@@ -683,6 +745,8 @@ public Builder setTollInfo(com.google.maps.routing.v2.TollInfo value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains information about tolls on the specific `RouteLeg`.
      * This field is only populated if we expect there are tolls on the
@@ -694,8 +758,7 @@ public Builder setTollInfo(com.google.maps.routing.v2.TollInfo value) {
      *
      * .google.maps.routing.v2.TollInfo toll_info = 1;
      */
-    public Builder setTollInfo(
-        com.google.maps.routing.v2.TollInfo.Builder builderForValue) {
+    public Builder setTollInfo(com.google.maps.routing.v2.TollInfo.Builder builderForValue) {
       if (tollInfoBuilder_ == null) {
         tollInfo_ = builderForValue.build();
       } else {
@@ -706,6 +769,8 @@ public Builder setTollInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains information about tolls on the specific `RouteLeg`.
      * This field is only populated if we expect there are tolls on the
@@ -719,9 +784,9 @@ public Builder setTollInfo(
      */
     public Builder mergeTollInfo(com.google.maps.routing.v2.TollInfo value) {
       if (tollInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          tollInfo_ != null &&
-          tollInfo_ != com.google.maps.routing.v2.TollInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && tollInfo_ != null
+            && tollInfo_ != com.google.maps.routing.v2.TollInfo.getDefaultInstance()) {
           getTollInfoBuilder().mergeFrom(value);
         } else {
           tollInfo_ = value;
@@ -734,6 +799,8 @@ public Builder mergeTollInfo(com.google.maps.routing.v2.TollInfo value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains information about tolls on the specific `RouteLeg`.
      * This field is only populated if we expect there are tolls on the
@@ -756,6 +823,8 @@ public Builder clearTollInfo() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains information about tolls on the specific `RouteLeg`.
      * This field is only populated if we expect there are tolls on the
@@ -773,6 +842,8 @@ public com.google.maps.routing.v2.TollInfo.Builder getTollInfoBuilder() {
       return getTollInfoFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Contains information about tolls on the specific `RouteLeg`.
      * This field is only populated if we expect there are tolls on the
@@ -788,11 +859,14 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() {
       if (tollInfoBuilder_ != null) {
         return tollInfoBuilder_.getMessageOrBuilder();
       } else {
-        return tollInfo_ == null ?
-            com.google.maps.routing.v2.TollInfo.getDefaultInstance() : tollInfo_;
+        return tollInfo_ == null
+            ? com.google.maps.routing.v2.TollInfo.getDefaultInstance()
+            : tollInfo_;
       }
     }
     /**
+     *
+     *
      * 
      * Contains information about tolls on the specific `RouteLeg`.
      * This field is only populated if we expect there are tolls on the
@@ -805,32 +879,43 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() {
      * .google.maps.routing.v2.TollInfo toll_info = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.TollInfo, com.google.maps.routing.v2.TollInfo.Builder, com.google.maps.routing.v2.TollInfoOrBuilder> 
+            com.google.maps.routing.v2.TollInfo,
+            com.google.maps.routing.v2.TollInfo.Builder,
+            com.google.maps.routing.v2.TollInfoOrBuilder>
         getTollInfoFieldBuilder() {
       if (tollInfoBuilder_ == null) {
-        tollInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.TollInfo, com.google.maps.routing.v2.TollInfo.Builder, com.google.maps.routing.v2.TollInfoOrBuilder>(
-                getTollInfo(),
-                getParentForChildren(),
-                isClean());
+        tollInfoBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.maps.routing.v2.TollInfo,
+                com.google.maps.routing.v2.TollInfo.Builder,
+                com.google.maps.routing.v2.TollInfoOrBuilder>(
+                getTollInfo(), getParentForChildren(), isClean());
         tollInfo_ = null;
       }
       return tollInfoBuilder_;
     }
 
     private java.util.List speedReadingIntervals_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSpeedReadingIntervalsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        speedReadingIntervals_ = new java.util.ArrayList(speedReadingIntervals_);
+        speedReadingIntervals_ =
+            new java.util.ArrayList(
+                speedReadingIntervals_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> speedReadingIntervalsBuilder_;
+            com.google.maps.routing.v2.SpeedReadingInterval,
+            com.google.maps.routing.v2.SpeedReadingInterval.Builder,
+            com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder>
+        speedReadingIntervalsBuilder_;
 
     /**
+     *
+     *
      * 
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -844,9 +929,11 @@ private void ensureSpeedReadingIntervalsIsMutable() {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ - public java.util.List getSpeedReadingIntervalsList() { + public java.util.List + getSpeedReadingIntervalsList() { if (speedReadingIntervalsBuilder_ == null) { return java.util.Collections.unmodifiableList(speedReadingIntervals_); } else { @@ -854,6 +941,8 @@ public java.util.List getSpeedR } } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -867,7 +956,8 @@ public java.util.List getSpeedR
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ public int getSpeedReadingIntervalsCount() { if (speedReadingIntervalsBuilder_ == null) { @@ -877,6 +967,8 @@ public int getSpeedReadingIntervalsCount() { } } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -890,7 +982,8 @@ public int getSpeedReadingIntervalsCount() {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(int index) { if (speedReadingIntervalsBuilder_ == null) { @@ -900,6 +993,8 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals( } } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -913,7 +1008,8 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ public Builder setSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval value) { @@ -930,6 +1026,8 @@ public Builder setSpeedReadingIntervals( return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -943,7 +1041,8 @@ public Builder setSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ public Builder setSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -957,6 +1056,8 @@ public Builder setSpeedReadingIntervals( return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -970,7 +1071,8 @@ public Builder setSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingInterval value) { if (speedReadingIntervalsBuilder_ == null) { @@ -986,6 +1088,8 @@ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingI return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -999,7 +1103,8 @@ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingI
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ public Builder addSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval value) { @@ -1016,6 +1121,8 @@ public Builder addSpeedReadingIntervals( return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1029,7 +1136,8 @@ public Builder addSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ public Builder addSpeedReadingIntervals( com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -1043,6 +1151,8 @@ public Builder addSpeedReadingIntervals( return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1056,7 +1166,8 @@ public Builder addSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ public Builder addSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -1070,6 +1181,8 @@ public Builder addSpeedReadingIntervals( return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1083,14 +1196,14 @@ public Builder addSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ public Builder addAllSpeedReadingIntervals( java.lang.Iterable values) { if (speedReadingIntervalsBuilder_ == null) { ensureSpeedReadingIntervalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, speedReadingIntervals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speedReadingIntervals_); onChanged(); } else { speedReadingIntervalsBuilder_.addAllMessages(values); @@ -1098,6 +1211,8 @@ public Builder addAllSpeedReadingIntervals( return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1111,7 +1226,8 @@ public Builder addAllSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ public Builder clearSpeedReadingIntervals() { if (speedReadingIntervalsBuilder_ == null) { @@ -1124,6 +1240,8 @@ public Builder clearSpeedReadingIntervals() { return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1137,7 +1255,8 @@ public Builder clearSpeedReadingIntervals() {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ public Builder removeSpeedReadingIntervals(int index) { if (speedReadingIntervalsBuilder_ == null) { @@ -1150,6 +1269,8 @@ public Builder removeSpeedReadingIntervals(int index) { return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1163,13 +1284,16 @@ public Builder removeSpeedReadingIntervals(int index) {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIntervalsBuilder( int index) { return getSpeedReadingIntervalsFieldBuilder().getBuilder(index); } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1183,16 +1307,20 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ - public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingIntervalsOrBuilder( - int index) { + public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder + getSpeedReadingIntervalsOrBuilder(int index) { if (speedReadingIntervalsBuilder_ == null) { - return speedReadingIntervals_.get(index); } else { + return speedReadingIntervals_.get(index); + } else { return speedReadingIntervalsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1206,10 +1334,11 @@ public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingI
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ - public java.util.List - getSpeedReadingIntervalsOrBuilderList() { + public java.util.List + getSpeedReadingIntervalsOrBuilderList() { if (speedReadingIntervalsBuilder_ != null) { return speedReadingIntervalsBuilder_.getMessageOrBuilderList(); } else { @@ -1217,6 +1346,8 @@ public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingI } } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1230,13 +1361,17 @@ public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingI
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ - public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIntervalsBuilder() { - return getSpeedReadingIntervalsFieldBuilder().addBuilder( - com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); + public com.google.maps.routing.v2.SpeedReadingInterval.Builder + addSpeedReadingIntervalsBuilder() { + return getSpeedReadingIntervalsFieldBuilder() + .addBuilder(com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1250,14 +1385,17 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIntervalsBuilder( int index) { - return getSpeedReadingIntervalsFieldBuilder().addBuilder( - index, com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); + return getSpeedReadingIntervalsFieldBuilder() + .addBuilder(index, com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1271,18 +1409,25 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2; + * */ - public java.util.List - getSpeedReadingIntervalsBuilderList() { + public java.util.List + getSpeedReadingIntervalsBuilderList() { return getSpeedReadingIntervalsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> + com.google.maps.routing.v2.SpeedReadingInterval, + com.google.maps.routing.v2.SpeedReadingInterval.Builder, + com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> getSpeedReadingIntervalsFieldBuilder() { if (speedReadingIntervalsBuilder_ == null) { - speedReadingIntervalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder>( + speedReadingIntervalsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.SpeedReadingInterval, + com.google.maps.routing.v2.SpeedReadingInterval.Builder, + com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder>( speedReadingIntervals_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1291,9 +1436,9 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIn } return speedReadingIntervalsBuilder_; } + @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); } @@ -1303,12 +1448,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteLegTravelAdvisory) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteLegTravelAdvisory) private static final com.google.maps.routing.v2.RouteLegTravelAdvisory DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteLegTravelAdvisory(); } @@ -1317,27 +1462,27 @@ public static com.google.maps.routing.v2.RouteLegTravelAdvisory getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteLegTravelAdvisory 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 RouteLegTravelAdvisory 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; @@ -1352,6 +1497,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.RouteLegTravelAdvisory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisoryOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisoryOrBuilder.java similarity index 87% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisoryOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisoryOrBuilder.java index 10565d601627..20913cb0a0f3 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisoryOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLegTravelAdvisoryOrBuilder.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/maps/routing/v2/route.proto package com.google.maps.routing.v2; -public interface RouteLegTravelAdvisoryOrBuilder extends +public interface RouteLegTravelAdvisoryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteLegTravelAdvisory) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Contains information about tolls on the specific `RouteLeg`.
    * This field is only populated if we expect there are tolls on the
@@ -18,10 +36,13 @@ public interface RouteLegTravelAdvisoryOrBuilder extends
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; + * * @return Whether the tollInfo field is set. */ boolean hasTollInfo(); /** + * + * *
    * Contains information about tolls on the specific `RouteLeg`.
    * This field is only populated if we expect there are tolls on the
@@ -32,10 +53,13 @@ public interface RouteLegTravelAdvisoryOrBuilder extends
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 1; + * * @return The tollInfo. */ com.google.maps.routing.v2.TollInfo getTollInfo(); /** + * + * *
    * Contains information about tolls on the specific `RouteLeg`.
    * This field is only populated if we expect there are tolls on the
@@ -50,6 +74,8 @@ public interface RouteLegTravelAdvisoryOrBuilder extends
   com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder();
 
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -65,9 +91,10 @@ public interface RouteLegTravelAdvisoryOrBuilder extends
    *
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2;
    */
-  java.util.List 
-      getSpeedReadingIntervalsList();
+  java.util.List getSpeedReadingIntervalsList();
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -85,6 +112,8 @@ public interface RouteLegTravelAdvisoryOrBuilder extends
    */
   com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(int index);
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -102,6 +131,8 @@ public interface RouteLegTravelAdvisoryOrBuilder extends
    */
   int getSpeedReadingIntervalsCount();
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -117,9 +148,11 @@ public interface RouteLegTravelAdvisoryOrBuilder extends
    *
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 2;
    */
-  java.util.List 
+  java.util.List
       getSpeedReadingIntervalsOrBuilderList();
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestination.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestination.java
similarity index 61%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestination.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestination.java
index 3823c130cf87..fc6cdde9b75e 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestination.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestination.java
@@ -1,55 +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/maps/routing/v2/routes_service.proto
 
 package com.google.maps.routing.v2;
 
 /**
+ *
+ *
  * 
  * A single destination for ComputeRouteMatrixRequest
  * 
* * Protobuf type {@code google.maps.routing.v2.RouteMatrixDestination} */ -public final class RouteMatrixDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RouteMatrixDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteMatrixDestination) RouteMatrixDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RouteMatrixDestination.newBuilder() to construct. private RouteMatrixDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RouteMatrixDestination() { - } + + private RouteMatrixDestination() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RouteMatrixDestination(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteMatrixDestination.class, com.google.maps.routing.v2.RouteMatrixDestination.Builder.class); + com.google.maps.routing.v2.RouteMatrixDestination.class, + com.google.maps.routing.v2.RouteMatrixDestination.Builder.class); } public static final int WAYPOINT_FIELD_NUMBER = 1; private com.google.maps.routing.v2.Waypoint waypoint_; /** + * + * *
    * Required. Destination waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the waypoint field is set. */ @java.lang.Override @@ -57,11 +79,15 @@ public boolean hasWaypoint() { return waypoint_ != null; } /** + * + * *
    * Required. Destination waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The waypoint. */ @java.lang.Override @@ -69,11 +95,14 @@ public com.google.maps.routing.v2.Waypoint getWaypoint() { return waypoint_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : waypoint_; } /** + * + * *
    * Required. Destination waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder() { @@ -81,6 +110,7 @@ public com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -92,8 +122,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 (waypoint_ != null) { output.writeMessage(1, getWaypoint()); } @@ -107,8 +136,7 @@ public int getSerializedSize() { size = 0; if (waypoint_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWaypoint()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWaypoint()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -118,17 +146,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.maps.routing.v2.RouteMatrixDestination)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteMatrixDestination other = (com.google.maps.routing.v2.RouteMatrixDestination) obj; + com.google.maps.routing.v2.RouteMatrixDestination other = + (com.google.maps.routing.v2.RouteMatrixDestination) obj; if (hasWaypoint() != other.hasWaypoint()) return false; if (hasWaypoint()) { - if (!getWaypoint() - .equals(other.getWaypoint())) return false; + if (!getWaypoint().equals(other.getWaypoint())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -151,131 +179,135 @@ public int hashCode() { } public static com.google.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.maps.routing.v2.RouteMatrixDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteMatrixDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination 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 single destination for ComputeRouteMatrixRequest
    * 
* * Protobuf type {@code google.maps.routing.v2.RouteMatrixDestination} */ - 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.maps.routing.v2.RouteMatrixDestination) com.google.maps.routing.v2.RouteMatrixDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteMatrixDestination.class, com.google.maps.routing.v2.RouteMatrixDestination.Builder.class); + com.google.maps.routing.v2.RouteMatrixDestination.class, + com.google.maps.routing.v2.RouteMatrixDestination.Builder.class); } // Construct using com.google.maps.routing.v2.RouteMatrixDestination.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 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; } @java.lang.Override @@ -310,8 +342,11 @@ public com.google.maps.routing.v2.RouteMatrixDestination build() { @java.lang.Override public com.google.maps.routing.v2.RouteMatrixDestination buildPartial() { - com.google.maps.routing.v2.RouteMatrixDestination result = new com.google.maps.routing.v2.RouteMatrixDestination(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.maps.routing.v2.RouteMatrixDestination result = + new com.google.maps.routing.v2.RouteMatrixDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -319,9 +354,7 @@ public com.google.maps.routing.v2.RouteMatrixDestination buildPartial() { private void buildPartial0(com.google.maps.routing.v2.RouteMatrixDestination result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.waypoint_ = waypointBuilder_ == null - ? waypoint_ - : waypointBuilder_.build(); + result.waypoint_ = waypointBuilder_ == null ? waypoint_ : waypointBuilder_.build(); } } @@ -329,38 +362,39 @@ private void buildPartial0(com.google.maps.routing.v2.RouteMatrixDestination 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.maps.routing.v2.RouteMatrixDestination) { - return mergeFrom((com.google.maps.routing.v2.RouteMatrixDestination)other); + return mergeFrom((com.google.maps.routing.v2.RouteMatrixDestination) other); } else { super.mergeFrom(other); return this; @@ -368,7 +402,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.maps.routing.v2.RouteMatrixDestination other) { - if (other == com.google.maps.routing.v2.RouteMatrixDestination.getDefaultInstance()) return this; + if (other == com.google.maps.routing.v2.RouteMatrixDestination.getDefaultInstance()) + return this; if (other.hasWaypoint()) { mergeWaypoint(other.getWaypoint()); } @@ -398,19 +433,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getWaypointFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getWaypointFieldBuilder().getBuilder(), extensionRegistry); + 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) { @@ -420,43 +455,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.maps.routing.v2.Waypoint waypoint_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> waypointBuilder_; + com.google.maps.routing.v2.Waypoint, + com.google.maps.routing.v2.Waypoint.Builder, + com.google.maps.routing.v2.WaypointOrBuilder> + waypointBuilder_; /** + * + * *
      * Required. Destination waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the waypoint field is set. */ public boolean hasWaypoint() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Destination waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The waypoint. */ public com.google.maps.routing.v2.Waypoint getWaypoint() { if (waypointBuilder_ == null) { - return waypoint_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : waypoint_; + return waypoint_ == null + ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() + : waypoint_; } else { return waypointBuilder_.getMessage(); } } /** + * + * *
      * Required. Destination waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWaypoint(com.google.maps.routing.v2.Waypoint value) { if (waypointBuilder_ == null) { @@ -472,14 +527,17 @@ public Builder setWaypoint(com.google.maps.routing.v2.Waypoint value) { return this; } /** + * + * *
      * Required. Destination waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWaypoint( - com.google.maps.routing.v2.Waypoint.Builder builderForValue) { + public Builder setWaypoint(com.google.maps.routing.v2.Waypoint.Builder builderForValue) { if (waypointBuilder_ == null) { waypoint_ = builderForValue.build(); } else { @@ -490,17 +548,21 @@ public Builder setWaypoint( return this; } /** + * + * *
      * Required. Destination waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWaypoint(com.google.maps.routing.v2.Waypoint value) { if (waypointBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - waypoint_ != null && - waypoint_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && waypoint_ != null + && waypoint_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { getWaypointBuilder().mergeFrom(value); } else { waypoint_ = value; @@ -513,11 +575,15 @@ public Builder mergeWaypoint(com.google.maps.routing.v2.Waypoint value) { return this; } /** + * + * *
      * Required. Destination waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWaypoint() { bitField0_ = (bitField0_ & ~0x00000001); @@ -530,11 +596,15 @@ public Builder clearWaypoint() { return this; } /** + * + * *
      * Required. Destination waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.maps.routing.v2.Waypoint.Builder getWaypointBuilder() { bitField0_ |= 0x00000001; @@ -542,43 +612,55 @@ public com.google.maps.routing.v2.Waypoint.Builder getWaypointBuilder() { return getWaypointFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Destination waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder() { if (waypointBuilder_ != null) { return waypointBuilder_.getMessageOrBuilder(); } else { - return waypoint_ == null ? - com.google.maps.routing.v2.Waypoint.getDefaultInstance() : waypoint_; + return waypoint_ == null + ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() + : waypoint_; } } /** + * + * *
      * Required. Destination waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> + com.google.maps.routing.v2.Waypoint, + com.google.maps.routing.v2.Waypoint.Builder, + com.google.maps.routing.v2.WaypointOrBuilder> getWaypointFieldBuilder() { if (waypointBuilder_ == null) { - waypointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder>( - getWaypoint(), - getParentForChildren(), - isClean()); + waypointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Waypoint, + com.google.maps.routing.v2.Waypoint.Builder, + com.google.maps.routing.v2.WaypointOrBuilder>( + getWaypoint(), getParentForChildren(), isClean()); waypoint_ = null; } return waypointBuilder_; } + @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); } @@ -588,12 +670,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteMatrixDestination) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteMatrixDestination) private static final com.google.maps.routing.v2.RouteMatrixDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteMatrixDestination(); } @@ -602,27 +684,27 @@ public static com.google.maps.routing.v2.RouteMatrixDestination getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteMatrixDestination 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 RouteMatrixDestination 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; @@ -637,6 +719,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.RouteMatrixDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestinationOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestinationOrBuilder.java similarity index 52% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestinationOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestinationOrBuilder.java index 7be9a7b37ed3..e75d9d8ddb6e 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestinationOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixDestinationOrBuilder.java @@ -1,36 +1,63 @@ +/* + * 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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; -public interface RouteMatrixDestinationOrBuilder extends +public interface RouteMatrixDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteMatrixDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Destination waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the waypoint field is set. */ boolean hasWaypoint(); /** + * + * *
    * Required. Destination waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The waypoint. */ com.google.maps.routing.v2.Waypoint getWaypoint(); /** + * + * *
    * Required. Destination waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder(); } diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElement.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElement.java similarity index 75% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElement.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElement.java index 2dce0194f438..e50f546a673d 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElement.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElement.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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; /** + * + * *
  * Contains route information computed for an origin/destination pair in the
  * ComputeRouteMatrix API. This proto can be streamed to the client.
@@ -11,62 +28,73 @@
  *
  * Protobuf type {@code google.maps.routing.v2.RouteMatrixElement}
  */
-public final class RouteMatrixElement extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RouteMatrixElement extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteMatrixElement)
     RouteMatrixElementOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RouteMatrixElement.newBuilder() to construct.
   private RouteMatrixElement(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RouteMatrixElement() {
     condition_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RouteMatrixElement();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.maps.routing.v2.RoutesServiceProto
+        .internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_fieldAccessorTable
+    return com.google.maps.routing.v2.RoutesServiceProto
+        .internal_static_google_maps_routing_v2_RouteMatrixElement_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.RouteMatrixElement.class, com.google.maps.routing.v2.RouteMatrixElement.Builder.class);
+            com.google.maps.routing.v2.RouteMatrixElement.class,
+            com.google.maps.routing.v2.RouteMatrixElement.Builder.class);
   }
 
-  public interface LocalizedValuesOrBuilder extends
+  public interface LocalizedValuesOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteMatrixElement.LocalizedValues)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return Whether the distance field is set. */ boolean hasDistance(); /** + * + * *
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return The distance. */ com.google.type.LocalizedText getDistance(); /** + * + * *
      * Travel distance represented in text form.
      * 
@@ -76,6 +104,8 @@ public interface LocalizedValuesOrBuilder extends com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder(); /** + * + * *
      * Duration represented in text form taking traffic conditions into
      * consideration. Note: If traffic information was not requested, this value
@@ -83,10 +113,13 @@ public interface LocalizedValuesOrBuilder extends
      * 
* * .google.type.LocalizedText duration = 2; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
      * Duration represented in text form taking traffic conditions into
      * consideration. Note: If traffic information was not requested, this value
@@ -94,10 +127,13 @@ public interface LocalizedValuesOrBuilder extends
      * 
* * .google.type.LocalizedText duration = 2; + * * @return The duration. */ com.google.type.LocalizedText getDuration(); /** + * + * *
      * Duration represented in text form taking traffic conditions into
      * consideration. Note: If traffic information was not requested, this value
@@ -109,26 +145,34 @@ public interface LocalizedValuesOrBuilder extends
     com.google.type.LocalizedTextOrBuilder getDurationOrBuilder();
 
     /**
+     *
+     *
      * 
      * Duration represented in text form without taking traffic conditions into
      * consideration.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return Whether the staticDuration field is set. */ boolean hasStaticDuration(); /** + * + * *
      * Duration represented in text form without taking traffic conditions into
      * consideration.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return The staticDuration. */ com.google.type.LocalizedText getStaticDuration(); /** + * + * *
      * Duration represented in text form without taking traffic conditions into
      * consideration.
@@ -139,24 +183,32 @@ public interface LocalizedValuesOrBuilder extends
     com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder();
 
     /**
+     *
+     *
      * 
      * Transit fare represented in text form.
      * 
* * .google.type.LocalizedText transit_fare = 4; + * * @return Whether the transitFare field is set. */ boolean hasTransitFare(); /** + * + * *
      * Transit fare represented in text form.
      * 
* * .google.type.LocalizedText transit_fare = 4; + * * @return The transitFare. */ com.google.type.LocalizedText getTransitFare(); /** + * + * *
      * Transit fare represented in text form.
      * 
@@ -166,52 +218,58 @@ public interface LocalizedValuesOrBuilder extends com.google.type.LocalizedTextOrBuilder getTransitFareOrBuilder(); } /** + * + * *
    * Text representations of certain properties.
    * 
* * Protobuf type {@code google.maps.routing.v2.RouteMatrixElement.LocalizedValues} */ - public static final class LocalizedValues extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class LocalizedValues extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteMatrixElement.LocalizedValues) LocalizedValuesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocalizedValues.newBuilder() to construct. private LocalizedValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LocalizedValues() { - } + + private LocalizedValues() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LocalizedValues(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.class, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder.class); + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.class, + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder.class); } public static final int DISTANCE_FIELD_NUMBER = 1; private com.google.type.LocalizedText distance_; /** + * + * *
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return Whether the distance field is set. */ @java.lang.Override @@ -219,11 +277,14 @@ public boolean hasDistance() { return distance_ != null; } /** + * + * *
      * Travel distance represented in text form.
      * 
* * .google.type.LocalizedText distance = 1; + * * @return The distance. */ @java.lang.Override @@ -231,6 +292,8 @@ public com.google.type.LocalizedText getDistance() { return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; } /** + * + * *
      * Travel distance represented in text form.
      * 
@@ -245,6 +308,8 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { public static final int DURATION_FIELD_NUMBER = 2; private com.google.type.LocalizedText duration_; /** + * + * *
      * Duration represented in text form taking traffic conditions into
      * consideration. Note: If traffic information was not requested, this value
@@ -252,6 +317,7 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() {
      * 
* * .google.type.LocalizedText duration = 2; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -259,6 +325,8 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
      * Duration represented in text form taking traffic conditions into
      * consideration. Note: If traffic information was not requested, this value
@@ -266,6 +334,7 @@ public boolean hasDuration() {
      * 
* * .google.type.LocalizedText duration = 2; + * * @return The duration. */ @java.lang.Override @@ -273,6 +342,8 @@ public com.google.type.LocalizedText getDuration() { return duration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : duration_; } /** + * + * *
      * Duration represented in text form taking traffic conditions into
      * consideration. Note: If traffic information was not requested, this value
@@ -289,12 +360,15 @@ public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() {
     public static final int STATIC_DURATION_FIELD_NUMBER = 3;
     private com.google.type.LocalizedText staticDuration_;
     /**
+     *
+     *
      * 
      * Duration represented in text form without taking traffic conditions into
      * consideration.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return Whether the staticDuration field is set. */ @java.lang.Override @@ -302,19 +376,26 @@ public boolean hasStaticDuration() { return staticDuration_ != null; } /** + * + * *
      * Duration represented in text form without taking traffic conditions into
      * consideration.
      * 
* * .google.type.LocalizedText static_duration = 3; + * * @return The staticDuration. */ @java.lang.Override public com.google.type.LocalizedText getStaticDuration() { - return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : staticDuration_; } /** + * + * *
      * Duration represented in text form without taking traffic conditions into
      * consideration.
@@ -324,17 +405,22 @@ public com.google.type.LocalizedText getStaticDuration() {
      */
     @java.lang.Override
     public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() {
-      return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_;
+      return staticDuration_ == null
+          ? com.google.type.LocalizedText.getDefaultInstance()
+          : staticDuration_;
     }
 
     public static final int TRANSIT_FARE_FIELD_NUMBER = 4;
     private com.google.type.LocalizedText transitFare_;
     /**
+     *
+     *
      * 
      * Transit fare represented in text form.
      * 
* * .google.type.LocalizedText transit_fare = 4; + * * @return Whether the transitFare field is set. */ @java.lang.Override @@ -342,18 +428,25 @@ public boolean hasTransitFare() { return transitFare_ != null; } /** + * + * *
      * Transit fare represented in text form.
      * 
* * .google.type.LocalizedText transit_fare = 4; + * * @return The transitFare. */ @java.lang.Override public com.google.type.LocalizedText getTransitFare() { - return transitFare_ == null ? com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + return transitFare_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : transitFare_; } /** + * + * *
      * Transit fare represented in text form.
      * 
@@ -362,10 +455,13 @@ public com.google.type.LocalizedText getTransitFare() { */ @java.lang.Override public com.google.type.LocalizedTextOrBuilder getTransitFareOrBuilder() { - return transitFare_ == null ? com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + return transitFare_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : transitFare_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -377,8 +473,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 (distance_ != null) { output.writeMessage(1, getDistance()); } @@ -401,20 +496,16 @@ public int getSerializedSize() { size = 0; if (distance_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDistance()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDistance()); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDuration()); } if (staticDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStaticDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStaticDuration()); } if (transitFare_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTransitFare()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTransitFare()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -424,32 +515,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.maps.routing.v2.RouteMatrixElement.LocalizedValues)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues other = (com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues) obj; + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues other = + (com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues) obj; if (hasDistance() != other.hasDistance()) return false; if (hasDistance()) { - if (!getDistance() - .equals(other.getDistance())) return false; + if (!getDistance().equals(other.getDistance())) 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 (hasStaticDuration() != other.hasStaticDuration()) return false; if (hasStaticDuration()) { - if (!getStaticDuration() - .equals(other.getStaticDuration())) return false; + if (!getStaticDuration().equals(other.getStaticDuration())) return false; } if (hasTransitFare() != other.hasTransitFare()) return false; if (hasTransitFare()) { - if (!getTransitFare() - .equals(other.getTransitFare())) return false; + if (!getTransitFare().equals(other.getTransitFare())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -484,89 +572,94 @@ public int hashCode() { } public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues 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.maps.routing.v2.RouteMatrixElement.LocalizedValues 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.maps.routing.v2.RouteMatrixElement.LocalizedValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues 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.maps.routing.v2.RouteMatrixElement.LocalizedValues parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues 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.maps.routing.v2.RouteMatrixElement.LocalizedValues parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues 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.maps.routing.v2.RouteMatrixElement.LocalizedValues parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues 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.maps.routing.v2.RouteMatrixElement.LocalizedValues 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.maps.routing.v2.RouteMatrixElement.LocalizedValues 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.maps.routing.v2.RouteMatrixElement.LocalizedValues prototype) { + + public static Builder newBuilder( + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues 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 @@ -576,39 +669,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Text representations of certain properties.
      * 
* * Protobuf type {@code google.maps.routing.v2.RouteMatrixElement.LocalizedValues} */ - 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.maps.routing.v2.RouteMatrixElement.LocalizedValues) com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.class, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder.class); + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.class, + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder.class); } // Construct using com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.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(); @@ -637,13 +732,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor; } @java.lang.Override - public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues getDefaultInstanceForType() { + public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues + getDefaultInstanceForType() { return com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance(); } @@ -658,33 +754,31 @@ public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues build() { @java.lang.Override public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues buildPartial() { - com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues result = new com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues result = + new com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues result) { + private void buildPartial0( + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.distance_ = distanceBuilder_ == null - ? distance_ - : distanceBuilder_.build(); + result.distance_ = distanceBuilder_ == null ? distance_ : distanceBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.duration_ = durationBuilder_ == null - ? duration_ - : durationBuilder_.build(); + result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.staticDuration_ = staticDurationBuilder_ == null - ? staticDuration_ - : staticDurationBuilder_.build(); + result.staticDuration_ = + staticDurationBuilder_ == null ? staticDuration_ : staticDurationBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.transitFare_ = transitFareBuilder_ == null - ? transitFare_ - : transitFareBuilder_.build(); + result.transitFare_ = + transitFareBuilder_ == null ? transitFare_ : transitFareBuilder_.build(); } } @@ -692,46 +786,52 @@ private void buildPartial0(com.google.maps.routing.v2.RouteMatrixElement.Localiz 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.maps.routing.v2.RouteMatrixElement.LocalizedValues) { - return mergeFrom((com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues)other); + return mergeFrom((com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues other) { - if (other == com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues other) { + if (other + == com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance()) + return this; if (other.hasDistance()) { mergeDistance(other.getDistance()); } @@ -770,40 +870,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getDistanceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getStaticDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getTransitFareFieldBuilder().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(getDistanceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getStaticDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getTransitFareFieldBuilder().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) { @@ -813,28 +911,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.type.LocalizedText distance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> distanceBuilder_; + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + distanceBuilder_; /** + * + * *
        * Travel distance represented in text form.
        * 
* * .google.type.LocalizedText distance = 1; + * * @return Whether the distance field is set. */ public boolean hasDistance() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Travel distance represented in text form.
        * 
* * .google.type.LocalizedText distance = 1; + * * @return The distance. */ public com.google.type.LocalizedText getDistance() { @@ -845,6 +953,8 @@ public com.google.type.LocalizedText getDistance() { } } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -865,14 +975,15 @@ public Builder setDistance(com.google.type.LocalizedText value) { return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
* * .google.type.LocalizedText distance = 1; */ - public Builder setDistance( - com.google.type.LocalizedText.Builder builderForValue) { + public Builder setDistance(com.google.type.LocalizedText.Builder builderForValue) { if (distanceBuilder_ == null) { distance_ = builderForValue.build(); } else { @@ -883,6 +994,8 @@ public Builder setDistance( return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -891,9 +1004,9 @@ public Builder setDistance( */ public Builder mergeDistance(com.google.type.LocalizedText value) { if (distanceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - distance_ != null && - distance_ != com.google.type.LocalizedText.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && distance_ != null + && distance_ != com.google.type.LocalizedText.getDefaultInstance()) { getDistanceBuilder().mergeFrom(value); } else { distance_ = value; @@ -906,6 +1019,8 @@ public Builder mergeDistance(com.google.type.LocalizedText value) { return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -923,6 +1038,8 @@ public Builder clearDistance() { return this; } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -935,6 +1052,8 @@ public com.google.type.LocalizedText.Builder getDistanceBuilder() { return getDistanceFieldBuilder().getBuilder(); } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -945,11 +1064,12 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { if (distanceBuilder_ != null) { return distanceBuilder_.getMessageOrBuilder(); } else { - return distance_ == null ? - com.google.type.LocalizedText.getDefaultInstance() : distance_; + return distance_ == null ? com.google.type.LocalizedText.getDefaultInstance() : distance_; } } /** + * + * *
        * Travel distance represented in text form.
        * 
@@ -957,14 +1077,17 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { * .google.type.LocalizedText distance = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> getDistanceFieldBuilder() { if (distanceBuilder_ == null) { - distanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( - getDistance(), - getParentForChildren(), - isClean()); + distanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getDistance(), getParentForChildren(), isClean()); distance_ = null; } return distanceBuilder_; @@ -972,8 +1095,13 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() { private com.google.type.LocalizedText duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> durationBuilder_; + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + durationBuilder_; /** + * + * *
        * Duration represented in text form taking traffic conditions into
        * consideration. Note: If traffic information was not requested, this value
@@ -981,12 +1109,15 @@ public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder() {
        * 
* * .google.type.LocalizedText duration = 2; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Duration represented in text form taking traffic conditions into
        * consideration. Note: If traffic information was not requested, this value
@@ -994,6 +1125,7 @@ public boolean hasDuration() {
        * 
* * .google.type.LocalizedText duration = 2; + * * @return The duration. */ public com.google.type.LocalizedText getDuration() { @@ -1004,6 +1136,8 @@ public com.google.type.LocalizedText getDuration() { } } /** + * + * *
        * Duration represented in text form taking traffic conditions into
        * consideration. Note: If traffic information was not requested, this value
@@ -1026,6 +1160,8 @@ public Builder setDuration(com.google.type.LocalizedText value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration represented in text form taking traffic conditions into
        * consideration. Note: If traffic information was not requested, this value
@@ -1034,8 +1170,7 @@ public Builder setDuration(com.google.type.LocalizedText value) {
        *
        * .google.type.LocalizedText duration = 2;
        */
-      public Builder setDuration(
-          com.google.type.LocalizedText.Builder builderForValue) {
+      public Builder setDuration(com.google.type.LocalizedText.Builder builderForValue) {
         if (durationBuilder_ == null) {
           duration_ = builderForValue.build();
         } else {
@@ -1046,6 +1181,8 @@ public Builder setDuration(
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration represented in text form taking traffic conditions into
        * consideration. Note: If traffic information was not requested, this value
@@ -1056,9 +1193,9 @@ public Builder setDuration(
        */
       public Builder mergeDuration(com.google.type.LocalizedText value) {
         if (durationBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0) &&
-            duration_ != null &&
-            duration_ != com.google.type.LocalizedText.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0)
+              && duration_ != null
+              && duration_ != com.google.type.LocalizedText.getDefaultInstance()) {
             getDurationBuilder().mergeFrom(value);
           } else {
             duration_ = value;
@@ -1071,6 +1208,8 @@ public Builder mergeDuration(com.google.type.LocalizedText value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration represented in text form taking traffic conditions into
        * consideration. Note: If traffic information was not requested, this value
@@ -1090,6 +1229,8 @@ public Builder clearDuration() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration represented in text form taking traffic conditions into
        * consideration. Note: If traffic information was not requested, this value
@@ -1104,6 +1245,8 @@ public com.google.type.LocalizedText.Builder getDurationBuilder() {
         return getDurationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Duration represented in text form taking traffic conditions into
        * consideration. Note: If traffic information was not requested, this value
@@ -1116,11 +1259,12 @@ public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() {
         if (durationBuilder_ != null) {
           return durationBuilder_.getMessageOrBuilder();
         } else {
-          return duration_ == null ?
-              com.google.type.LocalizedText.getDefaultInstance() : duration_;
+          return duration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : duration_;
         }
       }
       /**
+       *
+       *
        * 
        * Duration represented in text form taking traffic conditions into
        * consideration. Note: If traffic information was not requested, this value
@@ -1130,14 +1274,17 @@ public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() {
        * .google.type.LocalizedText duration = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> 
+              com.google.type.LocalizedText,
+              com.google.type.LocalizedText.Builder,
+              com.google.type.LocalizedTextOrBuilder>
           getDurationFieldBuilder() {
         if (durationBuilder_ == null) {
-          durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>(
-                  getDuration(),
-                  getParentForChildren(),
-                  isClean());
+          durationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.type.LocalizedText,
+                  com.google.type.LocalizedText.Builder,
+                  com.google.type.LocalizedTextOrBuilder>(
+                  getDuration(), getParentForChildren(), isClean());
           duration_ = null;
         }
         return durationBuilder_;
@@ -1145,36 +1292,49 @@ public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder() {
 
       private com.google.type.LocalizedText staticDuration_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> staticDurationBuilder_;
+              com.google.type.LocalizedText,
+              com.google.type.LocalizedText.Builder,
+              com.google.type.LocalizedTextOrBuilder>
+          staticDurationBuilder_;
       /**
+       *
+       *
        * 
        * Duration represented in text form without taking traffic conditions into
        * consideration.
        * 
* * .google.type.LocalizedText static_duration = 3; + * * @return Whether the staticDuration field is set. */ public boolean hasStaticDuration() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * Duration represented in text form without taking traffic conditions into
        * consideration.
        * 
* * .google.type.LocalizedText static_duration = 3; + * * @return The staticDuration. */ public com.google.type.LocalizedText getStaticDuration() { if (staticDurationBuilder_ == null) { - return staticDuration_ == null ? com.google.type.LocalizedText.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : staticDuration_; } else { return staticDurationBuilder_.getMessage(); } } /** + * + * *
        * Duration represented in text form without taking traffic conditions into
        * consideration.
@@ -1196,6 +1356,8 @@ public Builder setStaticDuration(com.google.type.LocalizedText value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration represented in text form without taking traffic conditions into
        * consideration.
@@ -1203,8 +1365,7 @@ public Builder setStaticDuration(com.google.type.LocalizedText value) {
        *
        * .google.type.LocalizedText static_duration = 3;
        */
-      public Builder setStaticDuration(
-          com.google.type.LocalizedText.Builder builderForValue) {
+      public Builder setStaticDuration(com.google.type.LocalizedText.Builder builderForValue) {
         if (staticDurationBuilder_ == null) {
           staticDuration_ = builderForValue.build();
         } else {
@@ -1215,6 +1376,8 @@ public Builder setStaticDuration(
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration represented in text form without taking traffic conditions into
        * consideration.
@@ -1224,9 +1387,9 @@ public Builder setStaticDuration(
        */
       public Builder mergeStaticDuration(com.google.type.LocalizedText value) {
         if (staticDurationBuilder_ == null) {
-          if (((bitField0_ & 0x00000004) != 0) &&
-            staticDuration_ != null &&
-            staticDuration_ != com.google.type.LocalizedText.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000004) != 0)
+              && staticDuration_ != null
+              && staticDuration_ != com.google.type.LocalizedText.getDefaultInstance()) {
             getStaticDurationBuilder().mergeFrom(value);
           } else {
             staticDuration_ = value;
@@ -1239,6 +1402,8 @@ public Builder mergeStaticDuration(com.google.type.LocalizedText value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration represented in text form without taking traffic conditions into
        * consideration.
@@ -1257,6 +1422,8 @@ public Builder clearStaticDuration() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration represented in text form without taking traffic conditions into
        * consideration.
@@ -1270,6 +1437,8 @@ public com.google.type.LocalizedText.Builder getStaticDurationBuilder() {
         return getStaticDurationFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Duration represented in text form without taking traffic conditions into
        * consideration.
@@ -1281,11 +1450,14 @@ public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() {
         if (staticDurationBuilder_ != null) {
           return staticDurationBuilder_.getMessageOrBuilder();
         } else {
-          return staticDuration_ == null ?
-              com.google.type.LocalizedText.getDefaultInstance() : staticDuration_;
+          return staticDuration_ == null
+              ? com.google.type.LocalizedText.getDefaultInstance()
+              : staticDuration_;
         }
       }
       /**
+       *
+       *
        * 
        * Duration represented in text form without taking traffic conditions into
        * consideration.
@@ -1294,14 +1466,17 @@ public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() {
        * .google.type.LocalizedText static_duration = 3;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> 
+              com.google.type.LocalizedText,
+              com.google.type.LocalizedText.Builder,
+              com.google.type.LocalizedTextOrBuilder>
           getStaticDurationFieldBuilder() {
         if (staticDurationBuilder_ == null) {
-          staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>(
-                  getStaticDuration(),
-                  getParentForChildren(),
-                  isClean());
+          staticDurationBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.type.LocalizedText,
+                  com.google.type.LocalizedText.Builder,
+                  com.google.type.LocalizedTextOrBuilder>(
+                  getStaticDuration(), getParentForChildren(), isClean());
           staticDuration_ = null;
         }
         return staticDurationBuilder_;
@@ -1309,34 +1484,47 @@ public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder() {
 
       private com.google.type.LocalizedText transitFare_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> transitFareBuilder_;
+              com.google.type.LocalizedText,
+              com.google.type.LocalizedText.Builder,
+              com.google.type.LocalizedTextOrBuilder>
+          transitFareBuilder_;
       /**
+       *
+       *
        * 
        * Transit fare represented in text form.
        * 
* * .google.type.LocalizedText transit_fare = 4; + * * @return Whether the transitFare field is set. */ public boolean hasTransitFare() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
        * Transit fare represented in text form.
        * 
* * .google.type.LocalizedText transit_fare = 4; + * * @return The transitFare. */ public com.google.type.LocalizedText getTransitFare() { if (transitFareBuilder_ == null) { - return transitFare_ == null ? com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + return transitFare_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : transitFare_; } else { return transitFareBuilder_.getMessage(); } } /** + * + * *
        * Transit fare represented in text form.
        * 
@@ -1357,14 +1545,15 @@ public Builder setTransitFare(com.google.type.LocalizedText value) { return this; } /** + * + * *
        * Transit fare represented in text form.
        * 
* * .google.type.LocalizedText transit_fare = 4; */ - public Builder setTransitFare( - com.google.type.LocalizedText.Builder builderForValue) { + public Builder setTransitFare(com.google.type.LocalizedText.Builder builderForValue) { if (transitFareBuilder_ == null) { transitFare_ = builderForValue.build(); } else { @@ -1375,6 +1564,8 @@ public Builder setTransitFare( return this; } /** + * + * *
        * Transit fare represented in text form.
        * 
@@ -1383,9 +1574,9 @@ public Builder setTransitFare( */ public Builder mergeTransitFare(com.google.type.LocalizedText value) { if (transitFareBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - transitFare_ != null && - transitFare_ != com.google.type.LocalizedText.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && transitFare_ != null + && transitFare_ != com.google.type.LocalizedText.getDefaultInstance()) { getTransitFareBuilder().mergeFrom(value); } else { transitFare_ = value; @@ -1398,6 +1589,8 @@ public Builder mergeTransitFare(com.google.type.LocalizedText value) { return this; } /** + * + * *
        * Transit fare represented in text form.
        * 
@@ -1415,6 +1608,8 @@ public Builder clearTransitFare() { return this; } /** + * + * *
        * Transit fare represented in text form.
        * 
@@ -1427,6 +1622,8 @@ public com.google.type.LocalizedText.Builder getTransitFareBuilder() { return getTransitFareFieldBuilder().getBuilder(); } /** + * + * *
        * Transit fare represented in text form.
        * 
@@ -1437,11 +1634,14 @@ public com.google.type.LocalizedTextOrBuilder getTransitFareOrBuilder() { if (transitFareBuilder_ != null) { return transitFareBuilder_.getMessageOrBuilder(); } else { - return transitFare_ == null ? - com.google.type.LocalizedText.getDefaultInstance() : transitFare_; + return transitFare_ == null + ? com.google.type.LocalizedText.getDefaultInstance() + : transitFare_; } } /** + * + * *
        * Transit fare represented in text form.
        * 
@@ -1449,18 +1649,22 @@ public com.google.type.LocalizedTextOrBuilder getTransitFareOrBuilder() { * .google.type.LocalizedText transit_fare = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> getTransitFareFieldBuilder() { if (transitFareBuilder_ == null) { - transitFareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( - getTransitFare(), - getParentForChildren(), - isClean()); + transitFareBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getTransitFare(), getParentForChildren(), isClean()); transitFare_ = null; } return transitFareBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1473,41 +1677,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteMatrixElement.LocalizedValues) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteMatrixElement.LocalizedValues) - private static final com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues DEFAULT_INSTANCE; + private static final com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues(); } - public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues getDefaultInstance() { + public static com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocalizedValues 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 LocalizedValues 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; @@ -1519,21 +1726,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues getDefaultInstanceForType() { + public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int ORIGIN_INDEX_FIELD_NUMBER = 1; private int originIndex_ = 0; /** + * + * *
    * Zero-based index of the origin in the request.
    * 
* * optional int32 origin_index = 1; + * * @return Whether the originIndex field is set. */ @java.lang.Override @@ -1541,11 +1751,14 @@ public boolean hasOriginIndex() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Zero-based index of the origin in the request.
    * 
* * optional int32 origin_index = 1; + * * @return The originIndex. */ @java.lang.Override @@ -1556,11 +1769,14 @@ public int getOriginIndex() { public static final int DESTINATION_INDEX_FIELD_NUMBER = 2; private int destinationIndex_ = 0; /** + * + * *
    * Zero-based index of the destination in the request.
    * 
* * optional int32 destination_index = 2; + * * @return Whether the destinationIndex field is set. */ @java.lang.Override @@ -1568,11 +1784,14 @@ public boolean hasDestinationIndex() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Zero-based index of the destination in the request.
    * 
* * optional int32 destination_index = 2; + * * @return The destinationIndex. */ @java.lang.Override @@ -1583,11 +1802,14 @@ public int getDestinationIndex() { public static final int STATUS_FIELD_NUMBER = 3; private com.google.rpc.Status status_; /** + * + * *
    * Error status code for this element.
    * 
* * .google.rpc.Status status = 3; + * * @return Whether the status field is set. */ @java.lang.Override @@ -1595,11 +1817,14 @@ public boolean hasStatus() { return status_ != null; } /** + * + * *
    * Error status code for this element.
    * 
* * .google.rpc.Status status = 3; + * * @return The status. */ @java.lang.Override @@ -1607,6 +1832,8 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** + * + * *
    * Error status code for this element.
    * 
@@ -1621,37 +1848,51 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { public static final int CONDITION_FIELD_NUMBER = 9; private int condition_ = 0; /** + * + * *
    * Indicates whether the route was found or not. Independent of status.
    * 
* * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * * @return The enum numeric value on the wire for condition. */ - @java.lang.Override public int getConditionValue() { + @java.lang.Override + public int getConditionValue() { return condition_; } /** + * + * *
    * Indicates whether the route was found or not. Independent of status.
    * 
* * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * * @return The condition. */ - @java.lang.Override public com.google.maps.routing.v2.RouteMatrixElementCondition getCondition() { - com.google.maps.routing.v2.RouteMatrixElementCondition result = com.google.maps.routing.v2.RouteMatrixElementCondition.forNumber(condition_); - return result == null ? com.google.maps.routing.v2.RouteMatrixElementCondition.UNRECOGNIZED : result; + @java.lang.Override + public com.google.maps.routing.v2.RouteMatrixElementCondition getCondition() { + com.google.maps.routing.v2.RouteMatrixElementCondition result = + com.google.maps.routing.v2.RouteMatrixElementCondition.forNumber(condition_); + return result == null + ? com.google.maps.routing.v2.RouteMatrixElementCondition.UNRECOGNIZED + : result; } public static final int DISTANCE_METERS_FIELD_NUMBER = 4; private int distanceMeters_ = 0; /** + * + * *
    * The travel distance of the route, in meters.
    * 
* * int32 distance_meters = 4; + * * @return The distanceMeters. */ @java.lang.Override @@ -1662,6 +1903,8 @@ public int getDistanceMeters() { public static final int DURATION_FIELD_NUMBER = 5; private com.google.protobuf.Duration duration_; /** + * + * *
    * The length of time needed to navigate the route. If you set the
    * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -1672,6 +1915,7 @@ public int getDistanceMeters() {
    * 
* * .google.protobuf.Duration duration = 5; + * * @return Whether the duration field is set. */ @java.lang.Override @@ -1679,6 +1923,8 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
    * The length of time needed to navigate the route. If you set the
    * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -1689,6 +1935,7 @@ public boolean hasDuration() {
    * 
* * .google.protobuf.Duration duration = 5; + * * @return The duration. */ @java.lang.Override @@ -1696,6 +1943,8 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
    * The length of time needed to navigate the route. If you set the
    * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -1715,12 +1964,15 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
   public static final int STATIC_DURATION_FIELD_NUMBER = 6;
   private com.google.protobuf.Duration staticDuration_;
   /**
+   *
+   *
    * 
    * The duration of traveling through the route without taking traffic
    * conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 6; + * * @return Whether the staticDuration field is set. */ @java.lang.Override @@ -1728,19 +1980,26 @@ public boolean hasStaticDuration() { return staticDuration_ != null; } /** + * + * *
    * The duration of traveling through the route without taking traffic
    * conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 6; + * * @return The staticDuration. */ @java.lang.Override public com.google.protobuf.Duration getStaticDuration() { - return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : staticDuration_; } /** + * + * *
    * The duration of traveling through the route without taking traffic
    * conditions into consideration.
@@ -1750,18 +2009,23 @@ public com.google.protobuf.Duration getStaticDuration() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
-    return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_;
+    return staticDuration_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : staticDuration_;
   }
 
   public static final int TRAVEL_ADVISORY_FIELD_NUMBER = 7;
   private com.google.maps.routing.v2.RouteTravelAdvisory travelAdvisory_;
   /**
+   *
+   *
    * 
    * Additional information about the route. For example: restriction
    * information and toll information
    * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + * * @return Whether the travelAdvisory field is set. */ @java.lang.Override @@ -1769,19 +2033,26 @@ public boolean hasTravelAdvisory() { return travelAdvisory_ != null; } /** + * + * *
    * Additional information about the route. For example: restriction
    * information and toll information
    * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + * * @return The travelAdvisory. */ @java.lang.Override public com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory() { - return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_; + return travelAdvisory_ == null + ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() + : travelAdvisory_; } /** + * + * *
    * Additional information about the route. For example: restriction
    * information and toll information
@@ -1791,12 +2062,16 @@ public com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory() {
    */
   @java.lang.Override
   public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder() {
-    return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_;
+    return travelAdvisory_ == null
+        ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance()
+        : travelAdvisory_;
   }
 
   public static final int FALLBACK_INFO_FIELD_NUMBER = 8;
   private com.google.maps.routing.v2.FallbackInfo fallbackInfo_;
   /**
+   *
+   *
    * 
    * In some cases when the server is not able to compute the route with the
    * given preferences for this particular origin/destination pair, it may
@@ -1806,6 +2081,7 @@ public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisory
    * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + * * @return Whether the fallbackInfo field is set. */ @java.lang.Override @@ -1813,6 +2089,8 @@ public boolean hasFallbackInfo() { return fallbackInfo_ != null; } /** + * + * *
    * In some cases when the server is not able to compute the route with the
    * given preferences for this particular origin/destination pair, it may
@@ -1822,13 +2100,18 @@ public boolean hasFallbackInfo() {
    * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + * * @return The fallbackInfo. */ @java.lang.Override public com.google.maps.routing.v2.FallbackInfo getFallbackInfo() { - return fallbackInfo_ == null ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_; + return fallbackInfo_ == null + ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() + : fallbackInfo_; } /** + * + * *
    * In some cases when the server is not able to compute the route with the
    * given preferences for this particular origin/destination pair, it may
@@ -1841,17 +2124,22 @@ public com.google.maps.routing.v2.FallbackInfo getFallbackInfo() {
    */
   @java.lang.Override
   public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder() {
-    return fallbackInfo_ == null ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_;
+    return fallbackInfo_ == null
+        ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance()
+        : fallbackInfo_;
   }
 
   public static final int LOCALIZED_VALUES_FIELD_NUMBER = 10;
   private com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localizedValues_;
   /**
+   *
+   *
    * 
    * Text representations of properties of the `RouteMatrixElement`.
    * 
* * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * * @return Whether the localizedValues field is set. */ @java.lang.Override @@ -1859,18 +2147,25 @@ public boolean hasLocalizedValues() { return localizedValues_ != null; } /** + * + * *
    * Text representations of properties of the `RouteMatrixElement`.
    * 
* * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * * @return The localizedValues. */ @java.lang.Override public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues getLocalizedValues() { - return localizedValues_ == null ? com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance() : localizedValues_; + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance() + : localizedValues_; } /** + * + * *
    * Text representations of properties of the `RouteMatrixElement`.
    * 
@@ -1878,11 +2173,15 @@ public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues getLocalize * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; */ @java.lang.Override - public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { - return localizedValues_ == null ? com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance() : localizedValues_; + public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder + getLocalizedValuesOrBuilder() { + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance() + : localizedValues_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1894,8 +2193,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, originIndex_); } @@ -1920,7 +2218,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (fallbackInfo_ != null) { output.writeMessage(8, getFallbackInfo()); } - if (condition_ != com.google.maps.routing.v2.RouteMatrixElementCondition.ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED.getNumber()) { + if (condition_ + != com.google.maps.routing.v2.RouteMatrixElementCondition + .ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED + .getNumber()) { output.writeEnum(9, condition_); } if (localizedValues_ != null) { @@ -1936,44 +2237,37 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, originIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, originIndex_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, destinationIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, destinationIndex_); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus()); } if (distanceMeters_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, distanceMeters_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, distanceMeters_); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDuration()); } if (staticDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getStaticDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStaticDuration()); } if (travelAdvisory_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getTravelAdvisory()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTravelAdvisory()); } if (fallbackInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getFallbackInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFallbackInfo()); } - if (condition_ != com.google.maps.routing.v2.RouteMatrixElementCondition.ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, condition_); + if (condition_ + != com.google.maps.routing.v2.RouteMatrixElementCondition + .ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, condition_); } if (localizedValues_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getLocalizedValues()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLocalizedValues()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1983,55 +2277,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.maps.routing.v2.RouteMatrixElement)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteMatrixElement other = (com.google.maps.routing.v2.RouteMatrixElement) obj; + com.google.maps.routing.v2.RouteMatrixElement other = + (com.google.maps.routing.v2.RouteMatrixElement) obj; if (hasOriginIndex() != other.hasOriginIndex()) return false; if (hasOriginIndex()) { - if (getOriginIndex() - != other.getOriginIndex()) return false; + if (getOriginIndex() != other.getOriginIndex()) return false; } if (hasDestinationIndex() != other.hasDestinationIndex()) return false; if (hasDestinationIndex()) { - if (getDestinationIndex() - != other.getDestinationIndex()) return false; + if (getDestinationIndex() != other.getDestinationIndex()) return false; } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; + if (!getStatus().equals(other.getStatus())) return false; } if (condition_ != other.condition_) return false; - if (getDistanceMeters() - != other.getDistanceMeters()) return false; + if (getDistanceMeters() != other.getDistanceMeters()) 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 (hasStaticDuration() != other.hasStaticDuration()) return false; if (hasStaticDuration()) { - if (!getStaticDuration() - .equals(other.getStaticDuration())) return false; + if (!getStaticDuration().equals(other.getStaticDuration())) return false; } if (hasTravelAdvisory() != other.hasTravelAdvisory()) return false; if (hasTravelAdvisory()) { - if (!getTravelAdvisory() - .equals(other.getTravelAdvisory())) return false; + if (!getTravelAdvisory().equals(other.getTravelAdvisory())) return false; } if (hasFallbackInfo() != other.hasFallbackInfo()) return false; if (hasFallbackInfo()) { - if (!getFallbackInfo() - .equals(other.getFallbackInfo())) return false; + if (!getFallbackInfo().equals(other.getFallbackInfo())) return false; } if (hasLocalizedValues() != other.hasLocalizedValues()) return false; if (hasLocalizedValues()) { - if (!getLocalizedValues() - .equals(other.getLocalizedValues())) return false; + if (!getLocalizedValues().equals(other.getLocalizedValues())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2085,99 +2371,104 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.RouteMatrixElement parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.RouteMatrixElement parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteMatrixElement parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement 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; } /** + * + * *
    * Contains route information computed for an origin/destination pair in the
    * ComputeRouteMatrix API. This proto can be streamed to the client.
@@ -2185,33 +2476,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.maps.routing.v2.RouteMatrixElement}
    */
-  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.maps.routing.v2.RouteMatrixElement)
       com.google.maps.routing.v2.RouteMatrixElementOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.maps.routing.v2.RoutesServiceProto
+          .internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_fieldAccessorTable
+      return com.google.maps.routing.v2.RoutesServiceProto
+          .internal_static_google_maps_routing_v2_RouteMatrixElement_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.RouteMatrixElement.class, com.google.maps.routing.v2.RouteMatrixElement.Builder.class);
+              com.google.maps.routing.v2.RouteMatrixElement.class,
+              com.google.maps.routing.v2.RouteMatrixElement.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.RouteMatrixElement.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();
@@ -2254,9 +2544,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.maps.routing.v2.RoutesServiceProto
+          .internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor;
     }
 
     @java.lang.Override
@@ -2275,8 +2565,11 @@ public com.google.maps.routing.v2.RouteMatrixElement build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.RouteMatrixElement buildPartial() {
-      com.google.maps.routing.v2.RouteMatrixElement result = new com.google.maps.routing.v2.RouteMatrixElement(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.maps.routing.v2.RouteMatrixElement result =
+          new com.google.maps.routing.v2.RouteMatrixElement(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -2293,9 +2586,7 @@ private void buildPartial0(com.google.maps.routing.v2.RouteMatrixElement result)
         to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.status_ = statusBuilder_ == null
-            ? status_
-            : statusBuilder_.build();
+        result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.condition_ = condition_;
@@ -2304,29 +2595,23 @@ private void buildPartial0(com.google.maps.routing.v2.RouteMatrixElement result)
         result.distanceMeters_ = distanceMeters_;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.duration_ = durationBuilder_ == null
-            ? duration_
-            : durationBuilder_.build();
+        result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.staticDuration_ = staticDurationBuilder_ == null
-            ? staticDuration_
-            : staticDurationBuilder_.build();
+        result.staticDuration_ =
+            staticDurationBuilder_ == null ? staticDuration_ : staticDurationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.travelAdvisory_ = travelAdvisoryBuilder_ == null
-            ? travelAdvisory_
-            : travelAdvisoryBuilder_.build();
+        result.travelAdvisory_ =
+            travelAdvisoryBuilder_ == null ? travelAdvisory_ : travelAdvisoryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.fallbackInfo_ = fallbackInfoBuilder_ == null
-            ? fallbackInfo_
-            : fallbackInfoBuilder_.build();
+        result.fallbackInfo_ =
+            fallbackInfoBuilder_ == null ? fallbackInfo_ : fallbackInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.localizedValues_ = localizedValuesBuilder_ == null
-            ? localizedValues_
-            : localizedValuesBuilder_.build();
+        result.localizedValues_ =
+            localizedValuesBuilder_ == null ? localizedValues_ : localizedValuesBuilder_.build();
       }
       result.bitField0_ |= to_bitField0_;
     }
@@ -2335,38 +2620,39 @@ private void buildPartial0(com.google.maps.routing.v2.RouteMatrixElement 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.maps.routing.v2.RouteMatrixElement) {
-        return mergeFrom((com.google.maps.routing.v2.RouteMatrixElement)other);
+        return mergeFrom((com.google.maps.routing.v2.RouteMatrixElement) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2431,74 +2717,73 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              originIndex_ = input.readInt32();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              destinationIndex_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              input.readMessage(
-                  getStatusFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              distanceMeters_ = input.readInt32();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 32
-            case 42: {
-              input.readMessage(
-                  getDurationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getStaticDurationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getTravelAdvisoryFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getFallbackInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 72: {
-              condition_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 72
-            case 82: {
-              input.readMessage(
-                  getLocalizedValuesFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                originIndex_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                destinationIndex_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                distanceMeters_ = input.readInt32();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 32
+            case 42:
+              {
+                input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getStaticDurationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getTravelAdvisoryFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getFallbackInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 72:
+              {
+                condition_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 72
+            case 82:
+              {
+                input.readMessage(getLocalizedValuesFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                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) {
@@ -2508,15 +2793,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private int originIndex_ ;
+    private int originIndex_;
     /**
+     *
+     *
      * 
      * Zero-based index of the origin in the request.
      * 
* * optional int32 origin_index = 1; + * * @return Whether the originIndex field is set. */ @java.lang.Override @@ -2524,11 +2813,14 @@ public boolean hasOriginIndex() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Zero-based index of the origin in the request.
      * 
* * optional int32 origin_index = 1; + * * @return The originIndex. */ @java.lang.Override @@ -2536,11 +2828,14 @@ public int getOriginIndex() { return originIndex_; } /** + * + * *
      * Zero-based index of the origin in the request.
      * 
* * optional int32 origin_index = 1; + * * @param value The originIndex to set. * @return This builder for chaining. */ @@ -2552,11 +2847,14 @@ public Builder setOriginIndex(int value) { return this; } /** + * + * *
      * Zero-based index of the origin in the request.
      * 
* * optional int32 origin_index = 1; + * * @return This builder for chaining. */ public Builder clearOriginIndex() { @@ -2566,13 +2864,16 @@ public Builder clearOriginIndex() { return this; } - private int destinationIndex_ ; + private int destinationIndex_; /** + * + * *
      * Zero-based index of the destination in the request.
      * 
* * optional int32 destination_index = 2; + * * @return Whether the destinationIndex field is set. */ @java.lang.Override @@ -2580,11 +2881,14 @@ public boolean hasDestinationIndex() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Zero-based index of the destination in the request.
      * 
* * optional int32 destination_index = 2; + * * @return The destinationIndex. */ @java.lang.Override @@ -2592,11 +2896,14 @@ public int getDestinationIndex() { return destinationIndex_; } /** + * + * *
      * Zero-based index of the destination in the request.
      * 
* * optional int32 destination_index = 2; + * * @param value The destinationIndex to set. * @return This builder for chaining. */ @@ -2608,11 +2915,14 @@ public Builder setDestinationIndex(int value) { return this; } /** + * + * *
      * Zero-based index of the destination in the request.
      * 
* * optional int32 destination_index = 2; + * * @return This builder for chaining. */ public Builder clearDestinationIndex() { @@ -2624,24 +2934,31 @@ public Builder clearDestinationIndex() { private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; /** + * + * *
      * Error status code for this element.
      * 
* * .google.rpc.Status status = 3; + * * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Error status code for this element.
      * 
* * .google.rpc.Status status = 3; + * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -2652,6 +2969,8 @@ public com.google.rpc.Status getStatus() { } } /** + * + * *
      * Error status code for this element.
      * 
@@ -2672,14 +2991,15 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** + * + * *
      * Error status code for this element.
      * 
* * .google.rpc.Status status = 3; */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); } else { @@ -2690,6 +3010,8 @@ public Builder setStatus( return this; } /** + * + * *
      * Error status code for this element.
      * 
@@ -2698,9 +3020,9 @@ public Builder setStatus( */ public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - status_ != null && - status_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -2713,6 +3035,8 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** + * + * *
      * Error status code for this element.
      * 
@@ -2730,6 +3054,8 @@ public Builder clearStatus() { return this; } /** + * + * *
      * Error status code for this element.
      * 
@@ -2742,6 +3068,8 @@ public com.google.rpc.Status.Builder getStatusBuilder() { return getStatusFieldBuilder().getBuilder(); } /** + * + * *
      * Error status code for this element.
      * 
@@ -2752,11 +3080,12 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** + * + * *
      * Error status code for this element.
      * 
@@ -2764,14 +3093,14 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * .google.rpc.Status status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; @@ -2779,22 +3108,29 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { private int condition_ = 0; /** + * + * *
      * Indicates whether the route was found or not. Independent of status.
      * 
* * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * * @return The enum numeric value on the wire for condition. */ - @java.lang.Override public int getConditionValue() { + @java.lang.Override + public int getConditionValue() { return condition_; } /** + * + * *
      * Indicates whether the route was found or not. Independent of status.
      * 
* * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * * @param value The enum numeric value on the wire for condition to set. * @return This builder for chaining. */ @@ -2805,24 +3141,33 @@ public Builder setConditionValue(int value) { return this; } /** + * + * *
      * Indicates whether the route was found or not. Independent of status.
      * 
* * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * * @return The condition. */ @java.lang.Override public com.google.maps.routing.v2.RouteMatrixElementCondition getCondition() { - com.google.maps.routing.v2.RouteMatrixElementCondition result = com.google.maps.routing.v2.RouteMatrixElementCondition.forNumber(condition_); - return result == null ? com.google.maps.routing.v2.RouteMatrixElementCondition.UNRECOGNIZED : result; + com.google.maps.routing.v2.RouteMatrixElementCondition result = + com.google.maps.routing.v2.RouteMatrixElementCondition.forNumber(condition_); + return result == null + ? com.google.maps.routing.v2.RouteMatrixElementCondition.UNRECOGNIZED + : result; } /** + * + * *
      * Indicates whether the route was found or not. Independent of status.
      * 
* * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * * @param value The condition to set. * @return This builder for chaining. */ @@ -2836,11 +3181,14 @@ public Builder setCondition(com.google.maps.routing.v2.RouteMatrixElementConditi return this; } /** + * + * *
      * Indicates whether the route was found or not. Independent of status.
      * 
* * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * * @return This builder for chaining. */ public Builder clearCondition() { @@ -2850,13 +3198,16 @@ public Builder clearCondition() { return this; } - private int distanceMeters_ ; + private int distanceMeters_; /** + * + * *
      * The travel distance of the route, in meters.
      * 
* * int32 distance_meters = 4; + * * @return The distanceMeters. */ @java.lang.Override @@ -2864,11 +3215,14 @@ public int getDistanceMeters() { return distanceMeters_; } /** + * + * *
      * The travel distance of the route, in meters.
      * 
* * int32 distance_meters = 4; + * * @param value The distanceMeters to set. * @return This builder for chaining. */ @@ -2880,11 +3234,14 @@ public Builder setDistanceMeters(int value) { return this; } /** + * + * *
      * The travel distance of the route, in meters.
      * 
* * int32 distance_meters = 4; + * * @return This builder for chaining. */ public Builder clearDistanceMeters() { @@ -2896,8 +3253,13 @@ public Builder clearDistanceMeters() { 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_; /** + * + * *
      * The length of time needed to navigate the route. If you set the
      * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -2908,12 +3270,15 @@ public Builder clearDistanceMeters() {
      * 
* * .google.protobuf.Duration duration = 5; + * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * The length of time needed to navigate the route. If you set the
      * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -2924,6 +3289,7 @@ public boolean hasDuration() {
      * 
* * .google.protobuf.Duration duration = 5; + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -2934,6 +3300,8 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * *
      * The length of time needed to navigate the route. If you set the
      * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -2959,6 +3327,8 @@ public Builder setDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the route. If you set the
      * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -2970,8 +3340,7 @@ public Builder setDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration duration = 5;
      */
-    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 {
@@ -2982,6 +3351,8 @@ public Builder setDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the route. If you set the
      * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -2995,9 +3366,9 @@ public Builder setDuration(
      */
     public Builder mergeDuration(com.google.protobuf.Duration value) {
       if (durationBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0) &&
-          duration_ != null &&
-          duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0)
+            && duration_ != null
+            && duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getDurationBuilder().mergeFrom(value);
         } else {
           duration_ = value;
@@ -3010,6 +3381,8 @@ public Builder mergeDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the route. If you set the
      * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -3032,6 +3405,8 @@ public Builder clearDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the route. If you set the
      * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -3049,6 +3424,8 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() {
       return getDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the route. If you set the
      * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -3064,11 +3441,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_;
       }
     }
     /**
+     *
+     *
      * 
      * The length of time needed to navigate the route. If you set the
      * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -3081,14 +3459,17 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
      * .google.protobuf.Duration 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>
         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_;
@@ -3096,36 +3477,49 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
 
     private com.google.protobuf.Duration staticDuration_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> staticDurationBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        staticDurationBuilder_;
     /**
+     *
+     *
      * 
      * The duration of traveling through the route without taking traffic
      * conditions into consideration.
      * 
* * .google.protobuf.Duration static_duration = 6; + * * @return Whether the staticDuration field is set. */ public boolean hasStaticDuration() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * The duration of traveling through the route without taking traffic
      * conditions into consideration.
      * 
* * .google.protobuf.Duration static_duration = 6; + * * @return The staticDuration. */ public com.google.protobuf.Duration getStaticDuration() { if (staticDurationBuilder_ == null) { - return staticDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : staticDuration_; + return staticDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : staticDuration_; } else { return staticDurationBuilder_.getMessage(); } } /** + * + * *
      * The duration of traveling through the route without taking traffic
      * conditions into consideration.
@@ -3147,6 +3541,8 @@ public Builder setStaticDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of traveling through the route without taking traffic
      * conditions into consideration.
@@ -3154,8 +3550,7 @@ public Builder setStaticDuration(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration static_duration = 6;
      */
-    public Builder setStaticDuration(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStaticDuration(com.google.protobuf.Duration.Builder builderForValue) {
       if (staticDurationBuilder_ == null) {
         staticDuration_ = builderForValue.build();
       } else {
@@ -3166,6 +3561,8 @@ public Builder setStaticDuration(
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of traveling through the route without taking traffic
      * conditions into consideration.
@@ -3175,9 +3572,9 @@ public Builder setStaticDuration(
      */
     public Builder mergeStaticDuration(com.google.protobuf.Duration value) {
       if (staticDurationBuilder_ == null) {
-        if (((bitField0_ & 0x00000040) != 0) &&
-          staticDuration_ != null &&
-          staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000040) != 0)
+            && staticDuration_ != null
+            && staticDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStaticDurationBuilder().mergeFrom(value);
         } else {
           staticDuration_ = value;
@@ -3190,6 +3587,8 @@ public Builder mergeStaticDuration(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of traveling through the route without taking traffic
      * conditions into consideration.
@@ -3208,6 +3607,8 @@ public Builder clearStaticDuration() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The duration of traveling through the route without taking traffic
      * conditions into consideration.
@@ -3221,6 +3622,8 @@ public com.google.protobuf.Duration.Builder getStaticDurationBuilder() {
       return getStaticDurationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The duration of traveling through the route without taking traffic
      * conditions into consideration.
@@ -3232,11 +3635,14 @@ public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
       if (staticDurationBuilder_ != null) {
         return staticDurationBuilder_.getMessageOrBuilder();
       } else {
-        return staticDuration_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : staticDuration_;
+        return staticDuration_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : staticDuration_;
       }
     }
     /**
+     *
+     *
      * 
      * The duration of traveling through the route without taking traffic
      * conditions into consideration.
@@ -3245,14 +3651,17 @@ public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
      * .google.protobuf.Duration static_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>
         getStaticDurationFieldBuilder() {
       if (staticDurationBuilder_ == null) {
-        staticDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getStaticDuration(),
-                getParentForChildren(),
-                isClean());
+        staticDurationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getStaticDuration(), getParentForChildren(), isClean());
         staticDuration_ = null;
       }
       return staticDurationBuilder_;
@@ -3260,36 +3669,49 @@ public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder() {
 
     private com.google.maps.routing.v2.RouteTravelAdvisory travelAdvisory_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.RouteTravelAdvisory, com.google.maps.routing.v2.RouteTravelAdvisory.Builder, com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder> travelAdvisoryBuilder_;
+            com.google.maps.routing.v2.RouteTravelAdvisory,
+            com.google.maps.routing.v2.RouteTravelAdvisory.Builder,
+            com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder>
+        travelAdvisoryBuilder_;
     /**
+     *
+     *
      * 
      * Additional information about the route. For example: restriction
      * information and toll information
      * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + * * @return Whether the travelAdvisory field is set. */ public boolean hasTravelAdvisory() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Additional information about the route. For example: restriction
      * information and toll information
      * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + * * @return The travelAdvisory. */ public com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory() { if (travelAdvisoryBuilder_ == null) { - return travelAdvisory_ == null ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_; + return travelAdvisory_ == null + ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() + : travelAdvisory_; } else { return travelAdvisoryBuilder_.getMessage(); } } /** + * + * *
      * Additional information about the route. For example: restriction
      * information and toll information
@@ -3311,6 +3733,8 @@ public Builder setTravelAdvisory(com.google.maps.routing.v2.RouteTravelAdvisory
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information about the route. For example: restriction
      * information and toll information
@@ -3330,6 +3754,8 @@ public Builder setTravelAdvisory(
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information about the route. For example: restriction
      * information and toll information
@@ -3339,9 +3765,10 @@ public Builder setTravelAdvisory(
      */
     public Builder mergeTravelAdvisory(com.google.maps.routing.v2.RouteTravelAdvisory value) {
       if (travelAdvisoryBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0) &&
-          travelAdvisory_ != null &&
-          travelAdvisory_ != com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0)
+            && travelAdvisory_ != null
+            && travelAdvisory_
+                != com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance()) {
           getTravelAdvisoryBuilder().mergeFrom(value);
         } else {
           travelAdvisory_ = value;
@@ -3354,6 +3781,8 @@ public Builder mergeTravelAdvisory(com.google.maps.routing.v2.RouteTravelAdvisor
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information about the route. For example: restriction
      * information and toll information
@@ -3372,6 +3801,8 @@ public Builder clearTravelAdvisory() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Additional information about the route. For example: restriction
      * information and toll information
@@ -3385,6 +3816,8 @@ public com.google.maps.routing.v2.RouteTravelAdvisory.Builder getTravelAdvisoryB
       return getTravelAdvisoryFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Additional information about the route. For example: restriction
      * information and toll information
@@ -3396,11 +3829,14 @@ public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisory
       if (travelAdvisoryBuilder_ != null) {
         return travelAdvisoryBuilder_.getMessageOrBuilder();
       } else {
-        return travelAdvisory_ == null ?
-            com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance() : travelAdvisory_;
+        return travelAdvisory_ == null
+            ? com.google.maps.routing.v2.RouteTravelAdvisory.getDefaultInstance()
+            : travelAdvisory_;
       }
     }
     /**
+     *
+     *
      * 
      * Additional information about the route. For example: restriction
      * information and toll information
@@ -3409,14 +3845,17 @@ public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisory
      * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.RouteTravelAdvisory, com.google.maps.routing.v2.RouteTravelAdvisory.Builder, com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder> 
+            com.google.maps.routing.v2.RouteTravelAdvisory,
+            com.google.maps.routing.v2.RouteTravelAdvisory.Builder,
+            com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder>
         getTravelAdvisoryFieldBuilder() {
       if (travelAdvisoryBuilder_ == null) {
-        travelAdvisoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.RouteTravelAdvisory, com.google.maps.routing.v2.RouteTravelAdvisory.Builder, com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder>(
-                getTravelAdvisory(),
-                getParentForChildren(),
-                isClean());
+        travelAdvisoryBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.maps.routing.v2.RouteTravelAdvisory,
+                com.google.maps.routing.v2.RouteTravelAdvisory.Builder,
+                com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder>(
+                getTravelAdvisory(), getParentForChildren(), isClean());
         travelAdvisory_ = null;
       }
       return travelAdvisoryBuilder_;
@@ -3424,8 +3863,13 @@ public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisory
 
     private com.google.maps.routing.v2.FallbackInfo fallbackInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.FallbackInfo, com.google.maps.routing.v2.FallbackInfo.Builder, com.google.maps.routing.v2.FallbackInfoOrBuilder> fallbackInfoBuilder_;
+            com.google.maps.routing.v2.FallbackInfo,
+            com.google.maps.routing.v2.FallbackInfo.Builder,
+            com.google.maps.routing.v2.FallbackInfoOrBuilder>
+        fallbackInfoBuilder_;
     /**
+     *
+     *
      * 
      * In some cases when the server is not able to compute the route with the
      * given preferences for this particular origin/destination pair, it may
@@ -3435,12 +3879,15 @@ public com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisory
      * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + * * @return Whether the fallbackInfo field is set. */ public boolean hasFallbackInfo() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * In some cases when the server is not able to compute the route with the
      * given preferences for this particular origin/destination pair, it may
@@ -3450,16 +3897,21 @@ public boolean hasFallbackInfo() {
      * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + * * @return The fallbackInfo. */ public com.google.maps.routing.v2.FallbackInfo getFallbackInfo() { if (fallbackInfoBuilder_ == null) { - return fallbackInfo_ == null ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_; + return fallbackInfo_ == null + ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() + : fallbackInfo_; } else { return fallbackInfoBuilder_.getMessage(); } } /** + * + * *
      * In some cases when the server is not able to compute the route with the
      * given preferences for this particular origin/destination pair, it may
@@ -3484,6 +3936,8 @@ public Builder setFallbackInfo(com.google.maps.routing.v2.FallbackInfo value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * In some cases when the server is not able to compute the route with the
      * given preferences for this particular origin/destination pair, it may
@@ -3506,6 +3960,8 @@ public Builder setFallbackInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * In some cases when the server is not able to compute the route with the
      * given preferences for this particular origin/destination pair, it may
@@ -3518,9 +3974,9 @@ public Builder setFallbackInfo(
      */
     public Builder mergeFallbackInfo(com.google.maps.routing.v2.FallbackInfo value) {
       if (fallbackInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0) &&
-          fallbackInfo_ != null &&
-          fallbackInfo_ != com.google.maps.routing.v2.FallbackInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000100) != 0)
+            && fallbackInfo_ != null
+            && fallbackInfo_ != com.google.maps.routing.v2.FallbackInfo.getDefaultInstance()) {
           getFallbackInfoBuilder().mergeFrom(value);
         } else {
           fallbackInfo_ = value;
@@ -3533,6 +3989,8 @@ public Builder mergeFallbackInfo(com.google.maps.routing.v2.FallbackInfo value)
       return this;
     }
     /**
+     *
+     *
      * 
      * In some cases when the server is not able to compute the route with the
      * given preferences for this particular origin/destination pair, it may
@@ -3554,6 +4012,8 @@ public Builder clearFallbackInfo() {
       return this;
     }
     /**
+     *
+     *
      * 
      * In some cases when the server is not able to compute the route with the
      * given preferences for this particular origin/destination pair, it may
@@ -3570,6 +4030,8 @@ public com.google.maps.routing.v2.FallbackInfo.Builder getFallbackInfoBuilder()
       return getFallbackInfoFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * In some cases when the server is not able to compute the route with the
      * given preferences for this particular origin/destination pair, it may
@@ -3584,11 +4046,14 @@ public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder
       if (fallbackInfoBuilder_ != null) {
         return fallbackInfoBuilder_.getMessageOrBuilder();
       } else {
-        return fallbackInfo_ == null ?
-            com.google.maps.routing.v2.FallbackInfo.getDefaultInstance() : fallbackInfo_;
+        return fallbackInfo_ == null
+            ? com.google.maps.routing.v2.FallbackInfo.getDefaultInstance()
+            : fallbackInfo_;
       }
     }
     /**
+     *
+     *
      * 
      * In some cases when the server is not able to compute the route with the
      * given preferences for this particular origin/destination pair, it may
@@ -3600,14 +4065,17 @@ public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder
      * .google.maps.routing.v2.FallbackInfo fallback_info = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.FallbackInfo, com.google.maps.routing.v2.FallbackInfo.Builder, com.google.maps.routing.v2.FallbackInfoOrBuilder> 
+            com.google.maps.routing.v2.FallbackInfo,
+            com.google.maps.routing.v2.FallbackInfo.Builder,
+            com.google.maps.routing.v2.FallbackInfoOrBuilder>
         getFallbackInfoFieldBuilder() {
       if (fallbackInfoBuilder_ == null) {
-        fallbackInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.FallbackInfo, com.google.maps.routing.v2.FallbackInfo.Builder, com.google.maps.routing.v2.FallbackInfoOrBuilder>(
-                getFallbackInfo(),
-                getParentForChildren(),
-                isClean());
+        fallbackInfoBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.maps.routing.v2.FallbackInfo,
+                com.google.maps.routing.v2.FallbackInfo.Builder,
+                com.google.maps.routing.v2.FallbackInfoOrBuilder>(
+                getFallbackInfo(), getParentForChildren(), isClean());
         fallbackInfo_ = null;
       }
       return fallbackInfoBuilder_;
@@ -3615,41 +4083,58 @@ public com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder
 
     private com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localizedValues_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder> localizedValuesBuilder_;
+            com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues,
+            com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder,
+            com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder>
+        localizedValuesBuilder_;
     /**
+     *
+     *
      * 
      * Text representations of properties of the `RouteMatrixElement`.
      * 
* - * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * + * * @return Whether the localizedValues field is set. */ public boolean hasLocalizedValues() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Text representations of properties of the `RouteMatrixElement`.
      * 
* - * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * + * * @return The localizedValues. */ public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues getLocalizedValues() { if (localizedValuesBuilder_ == null) { - return localizedValues_ == null ? com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance() : localizedValues_; + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance() + : localizedValues_; } else { return localizedValuesBuilder_.getMessage(); } } /** + * + * *
      * Text representations of properties of the `RouteMatrixElement`.
      * 
* - * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * */ - public Builder setLocalizedValues(com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues value) { + public Builder setLocalizedValues( + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues value) { if (localizedValuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3663,11 +4148,14 @@ public Builder setLocalizedValues(com.google.maps.routing.v2.RouteMatrixElement. return this; } /** + * + * *
      * Text representations of properties of the `RouteMatrixElement`.
      * 
* - * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * */ public Builder setLocalizedValues( com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder builderForValue) { @@ -3681,17 +4169,23 @@ public Builder setLocalizedValues( return this; } /** + * + * *
      * Text representations of properties of the `RouteMatrixElement`.
      * 
* - * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * */ - public Builder mergeLocalizedValues(com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues value) { + public Builder mergeLocalizedValues( + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues value) { if (localizedValuesBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - localizedValues_ != null && - localizedValues_ != com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && localizedValues_ != null + && localizedValues_ + != com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues + .getDefaultInstance()) { getLocalizedValuesBuilder().mergeFrom(value); } else { localizedValues_ = value; @@ -3704,11 +4198,14 @@ public Builder mergeLocalizedValues(com.google.maps.routing.v2.RouteMatrixElemen return this; } /** + * + * *
      * Text representations of properties of the `RouteMatrixElement`.
      * 
* - * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * */ public Builder clearLocalizedValues() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3721,55 +4218,70 @@ public Builder clearLocalizedValues() { return this; } /** + * + * *
      * Text representations of properties of the `RouteMatrixElement`.
      * 
* - * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * */ - public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder getLocalizedValuesBuilder() { + public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder + getLocalizedValuesBuilder() { bitField0_ |= 0x00000200; onChanged(); return getLocalizedValuesFieldBuilder().getBuilder(); } /** + * + * *
      * Text representations of properties of the `RouteMatrixElement`.
      * 
* - * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * */ - public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder getLocalizedValuesOrBuilder() { + public com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder + getLocalizedValuesOrBuilder() { if (localizedValuesBuilder_ != null) { return localizedValuesBuilder_.getMessageOrBuilder(); } else { - return localizedValues_ == null ? - com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance() : localizedValues_; + return localizedValues_ == null + ? com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.getDefaultInstance() + : localizedValues_; } } /** + * + * *
      * Text representations of properties of the `RouteMatrixElement`.
      * 
* - * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder> + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues, + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder, + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder> getLocalizedValuesFieldBuilder() { if (localizedValuesBuilder_ == null) { - localizedValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder, com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder>( - getLocalizedValues(), - getParentForChildren(), - isClean()); + localizedValuesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues, + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder, + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder>( + getLocalizedValues(), getParentForChildren(), isClean()); localizedValues_ = null; } return localizedValuesBuilder_; } + @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); } @@ -3779,12 +4291,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteMatrixElement) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteMatrixElement) private static final com.google.maps.routing.v2.RouteMatrixElement DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteMatrixElement(); } @@ -3793,27 +4305,27 @@ public static com.google.maps.routing.v2.RouteMatrixElement getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteMatrixElement 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 RouteMatrixElement 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; @@ -3828,6 +4340,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.RouteMatrixElement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementCondition.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementCondition.java similarity index 71% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementCondition.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementCondition.java index 1b9d70c4950a..505808f5968d 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementCondition.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementCondition.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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; /** + * + * *
  * The condition of the route being returned.
  * 
* * Protobuf enum {@code google.maps.routing.v2.RouteMatrixElementCondition} */ -public enum RouteMatrixElementCondition - implements com.google.protobuf.ProtocolMessageEnum { +public enum RouteMatrixElementCondition implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Only used when the `status` of the element is not OK.
    * 
@@ -21,6 +39,8 @@ public enum RouteMatrixElementCondition */ ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED(0), /** + * + * *
    * A route was found, and the corresponding information was filled out for the
    * element.
@@ -30,6 +50,8 @@ public enum RouteMatrixElementCondition
    */
   ROUTE_EXISTS(1),
   /**
+   *
+   *
    * 
    * No route could be found. Fields containing route information, such as
    * `distance_meters` or `duration`, will not be filled out in the element.
@@ -42,6 +64,8 @@ public enum RouteMatrixElementCondition
   ;
 
   /**
+   *
+   *
    * 
    * Only used when the `status` of the element is not OK.
    * 
@@ -50,6 +74,8 @@ public enum RouteMatrixElementCondition */ public static final int ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED_VALUE = 0; /** + * + * *
    * A route was found, and the corresponding information was filled out for the
    * element.
@@ -59,6 +85,8 @@ public enum RouteMatrixElementCondition
    */
   public static final int ROUTE_EXISTS_VALUE = 1;
   /**
+   *
+   *
    * 
    * No route could be found. Fields containing route information, such as
    * `distance_meters` or `duration`, will not be filled out in the element.
@@ -68,7 +96,6 @@ public enum RouteMatrixElementCondition
    */
   public static final int ROUTE_NOT_FOUND_VALUE = 2;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -93,10 +120,14 @@ public static RouteMatrixElementCondition valueOf(int value) {
    */
   public static RouteMatrixElementCondition forNumber(int value) {
     switch (value) {
-      case 0: return ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED;
-      case 1: return ROUTE_EXISTS;
-      case 2: return ROUTE_NOT_FOUND;
-      default: return null;
+      case 0:
+        return ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED;
+      case 1:
+        return ROUTE_EXISTS;
+      case 2:
+        return ROUTE_NOT_FOUND;
+      default:
+        return null;
     }
   }
 
@@ -104,28 +135,28 @@ public static RouteMatrixElementCondition forNumber(int value) {
       internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      RouteMatrixElementCondition> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public RouteMatrixElementCondition findValueByNumber(int number) {
-            return RouteMatrixElementCondition.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 RouteMatrixElementCondition findValueByNumber(int number) {
+              return RouteMatrixElementCondition.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.maps.routing.v2.RoutesServiceProto.getDescriptor().getEnumTypes().get(0);
   }
 
@@ -134,8 +165,7 @@ public RouteMatrixElementCondition findValueByNumber(int number) {
   public static RouteMatrixElementCondition 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;
@@ -151,4 +181,3 @@ private RouteMatrixElementCondition(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.RouteMatrixElementCondition)
 }
-
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementOrBuilder.java
similarity index 89%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementOrBuilder.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementOrBuilder.java
index c11b4f12d942..37ddd6d63b9f 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementOrBuilder.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixElementOrBuilder.java
@@ -1,69 +1,105 @@
+/*
+ * 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/maps/routing/v2/routes_service.proto
 
 package com.google.maps.routing.v2;
 
-public interface RouteMatrixElementOrBuilder extends
+public interface RouteMatrixElementOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteMatrixElement)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Zero-based index of the origin in the request.
    * 
* * optional int32 origin_index = 1; + * * @return Whether the originIndex field is set. */ boolean hasOriginIndex(); /** + * + * *
    * Zero-based index of the origin in the request.
    * 
* * optional int32 origin_index = 1; + * * @return The originIndex. */ int getOriginIndex(); /** + * + * *
    * Zero-based index of the destination in the request.
    * 
* * optional int32 destination_index = 2; + * * @return Whether the destinationIndex field is set. */ boolean hasDestinationIndex(); /** + * + * *
    * Zero-based index of the destination in the request.
    * 
* * optional int32 destination_index = 2; + * * @return The destinationIndex. */ int getDestinationIndex(); /** + * + * *
    * Error status code for this element.
    * 
* * .google.rpc.Status status = 3; + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
    * Error status code for this element.
    * 
* * .google.rpc.Status status = 3; + * * @return The status. */ com.google.rpc.Status getStatus(); /** + * + * *
    * Error status code for this element.
    * 
@@ -73,35 +109,46 @@ public interface RouteMatrixElementOrBuilder extends com.google.rpc.StatusOrBuilder getStatusOrBuilder(); /** + * + * *
    * Indicates whether the route was found or not. Independent of status.
    * 
* * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * * @return The enum numeric value on the wire for condition. */ int getConditionValue(); /** + * + * *
    * Indicates whether the route was found or not. Independent of status.
    * 
* * .google.maps.routing.v2.RouteMatrixElementCondition condition = 9; + * * @return The condition. */ com.google.maps.routing.v2.RouteMatrixElementCondition getCondition(); /** + * + * *
    * The travel distance of the route, in meters.
    * 
* * int32 distance_meters = 4; + * * @return The distanceMeters. */ int getDistanceMeters(); /** + * + * *
    * The length of time needed to navigate the route. If you set the
    * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -112,10 +159,13 @@ public interface RouteMatrixElementOrBuilder extends
    * 
* * .google.protobuf.Duration duration = 5; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
    * The length of time needed to navigate the route. If you set the
    * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -126,10 +176,13 @@ public interface RouteMatrixElementOrBuilder extends
    * 
* * .google.protobuf.Duration duration = 5; + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
    * The length of time needed to navigate the route. If you set the
    * [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
@@ -144,26 +197,34 @@ public interface RouteMatrixElementOrBuilder extends
   com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The duration of traveling through the route without taking traffic
    * conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 6; + * * @return Whether the staticDuration field is set. */ boolean hasStaticDuration(); /** + * + * *
    * The duration of traveling through the route without taking traffic
    * conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 6; + * * @return The staticDuration. */ com.google.protobuf.Duration getStaticDuration(); /** + * + * *
    * The duration of traveling through the route without taking traffic
    * conditions into consideration.
@@ -174,26 +235,34 @@ public interface RouteMatrixElementOrBuilder extends
   com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Additional information about the route. For example: restriction
    * information and toll information
    * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + * * @return Whether the travelAdvisory field is set. */ boolean hasTravelAdvisory(); /** + * + * *
    * Additional information about the route. For example: restriction
    * information and toll information
    * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7; + * * @return The travelAdvisory. */ com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory(); /** + * + * *
    * Additional information about the route. For example: restriction
    * information and toll information
@@ -204,6 +273,8 @@ public interface RouteMatrixElementOrBuilder extends
   com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder();
 
   /**
+   *
+   *
    * 
    * In some cases when the server is not able to compute the route with the
    * given preferences for this particular origin/destination pair, it may
@@ -213,10 +284,13 @@ public interface RouteMatrixElementOrBuilder extends
    * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + * * @return Whether the fallbackInfo field is set. */ boolean hasFallbackInfo(); /** + * + * *
    * In some cases when the server is not able to compute the route with the
    * given preferences for this particular origin/destination pair, it may
@@ -226,10 +300,13 @@ public interface RouteMatrixElementOrBuilder extends
    * 
* * .google.maps.routing.v2.FallbackInfo fallback_info = 8; + * * @return The fallbackInfo. */ com.google.maps.routing.v2.FallbackInfo getFallbackInfo(); /** + * + * *
    * In some cases when the server is not able to compute the route with the
    * given preferences for this particular origin/destination pair, it may
@@ -243,29 +320,38 @@ public interface RouteMatrixElementOrBuilder extends
   com.google.maps.routing.v2.FallbackInfoOrBuilder getFallbackInfoOrBuilder();
 
   /**
+   *
+   *
    * 
    * Text representations of properties of the `RouteMatrixElement`.
    * 
* * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * * @return Whether the localizedValues field is set. */ boolean hasLocalizedValues(); /** + * + * *
    * Text representations of properties of the `RouteMatrixElement`.
    * 
* * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; + * * @return The localizedValues. */ com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues getLocalizedValues(); /** + * + * *
    * Text representations of properties of the `RouteMatrixElement`.
    * 
* * .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10; */ - com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder getLocalizedValuesOrBuilder(); + com.google.maps.routing.v2.RouteMatrixElement.LocalizedValuesOrBuilder + getLocalizedValuesOrBuilder(); } diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOrigin.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOrigin.java similarity index 60% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOrigin.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOrigin.java index 79f2c937410f..90057d85bd0b 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOrigin.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOrigin.java @@ -1,55 +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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; /** + * + * *
  * A single origin for ComputeRouteMatrixRequest
  * 
* * Protobuf type {@code google.maps.routing.v2.RouteMatrixOrigin} */ -public final class RouteMatrixOrigin extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RouteMatrixOrigin extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteMatrixOrigin) RouteMatrixOriginOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RouteMatrixOrigin.newBuilder() to construct. private RouteMatrixOrigin(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RouteMatrixOrigin() { - } + + private RouteMatrixOrigin() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RouteMatrixOrigin(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteMatrixOrigin.class, com.google.maps.routing.v2.RouteMatrixOrigin.Builder.class); + com.google.maps.routing.v2.RouteMatrixOrigin.class, + com.google.maps.routing.v2.RouteMatrixOrigin.Builder.class); } public static final int WAYPOINT_FIELD_NUMBER = 1; private com.google.maps.routing.v2.Waypoint waypoint_; /** + * + * *
    * Required. Origin waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the waypoint field is set. */ @java.lang.Override @@ -57,11 +79,15 @@ public boolean hasWaypoint() { return waypoint_ != null; } /** + * + * *
    * Required. Origin waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The waypoint. */ @java.lang.Override @@ -69,11 +95,14 @@ public com.google.maps.routing.v2.Waypoint getWaypoint() { return waypoint_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : waypoint_; } /** + * + * *
    * Required. Origin waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder() { @@ -83,11 +112,16 @@ public com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder() { public static final int ROUTE_MODIFIERS_FIELD_NUMBER = 2; private com.google.maps.routing.v2.RouteModifiers routeModifiers_; /** + * + * *
    * Optional. Modifiers for every route that takes this as the origin
    * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the routeModifiers field is set. */ @java.lang.Override @@ -95,30 +129,44 @@ public boolean hasRouteModifiers() { return routeModifiers_ != null; } /** + * + * *
    * Optional. Modifiers for every route that takes this as the origin
    * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The routeModifiers. */ @java.lang.Override public com.google.maps.routing.v2.RouteModifiers getRouteModifiers() { - return routeModifiers_ == null ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; + return routeModifiers_ == null + ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() + : routeModifiers_; } /** + * + * *
    * Optional. Modifiers for every route that takes this as the origin
    * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBuilder() { - return routeModifiers_ == null ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; + return routeModifiers_ == null + ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() + : routeModifiers_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,8 +178,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 (waypoint_ != null) { output.writeMessage(1, getWaypoint()); } @@ -148,12 +195,10 @@ public int getSerializedSize() { size = 0; if (waypoint_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWaypoint()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWaypoint()); } if (routeModifiers_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRouteModifiers()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRouteModifiers()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -163,22 +208,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.maps.routing.v2.RouteMatrixOrigin)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteMatrixOrigin other = (com.google.maps.routing.v2.RouteMatrixOrigin) obj; + com.google.maps.routing.v2.RouteMatrixOrigin other = + (com.google.maps.routing.v2.RouteMatrixOrigin) obj; if (hasWaypoint() != other.hasWaypoint()) return false; if (hasWaypoint()) { - if (!getWaypoint() - .equals(other.getWaypoint())) return false; + if (!getWaypoint().equals(other.getWaypoint())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -204,132 +248,136 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.RouteMatrixOrigin parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.RouteMatrixOrigin parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteMatrixOrigin parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin 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 single origin for ComputeRouteMatrixRequest
    * 
* * Protobuf type {@code google.maps.routing.v2.RouteMatrixOrigin} */ - 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.maps.routing.v2.RouteMatrixOrigin) com.google.maps.routing.v2.RouteMatrixOriginOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.RouteMatrixOrigin.class, com.google.maps.routing.v2.RouteMatrixOrigin.Builder.class); + com.google.maps.routing.v2.RouteMatrixOrigin.class, + com.google.maps.routing.v2.RouteMatrixOrigin.Builder.class); } // Construct using com.google.maps.routing.v2.RouteMatrixOrigin.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(); @@ -348,9 +396,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.RoutesServiceProto.internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.RoutesServiceProto + .internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; } @java.lang.Override @@ -369,8 +417,11 @@ public com.google.maps.routing.v2.RouteMatrixOrigin build() { @java.lang.Override public com.google.maps.routing.v2.RouteMatrixOrigin buildPartial() { - com.google.maps.routing.v2.RouteMatrixOrigin result = new com.google.maps.routing.v2.RouteMatrixOrigin(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.maps.routing.v2.RouteMatrixOrigin result = + new com.google.maps.routing.v2.RouteMatrixOrigin(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -378,14 +429,11 @@ public com.google.maps.routing.v2.RouteMatrixOrigin buildPartial() { private void buildPartial0(com.google.maps.routing.v2.RouteMatrixOrigin result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.waypoint_ = waypointBuilder_ == null - ? waypoint_ - : waypointBuilder_.build(); + result.waypoint_ = waypointBuilder_ == null ? waypoint_ : waypointBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.routeModifiers_ = routeModifiersBuilder_ == null - ? routeModifiers_ - : routeModifiersBuilder_.build(); + result.routeModifiers_ = + routeModifiersBuilder_ == null ? routeModifiers_ : routeModifiersBuilder_.build(); } } @@ -393,38 +441,39 @@ private void buildPartial0(com.google.maps.routing.v2.RouteMatrixOrigin 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.maps.routing.v2.RouteMatrixOrigin) { - return mergeFrom((com.google.maps.routing.v2.RouteMatrixOrigin)other); + return mergeFrom((com.google.maps.routing.v2.RouteMatrixOrigin) other); } else { super.mergeFrom(other); return this; @@ -465,26 +514,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getWaypointFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRouteModifiersFieldBuilder().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(getWaypointFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getRouteModifiersFieldBuilder().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) { @@ -494,43 +542,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.maps.routing.v2.Waypoint waypoint_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> waypointBuilder_; + com.google.maps.routing.v2.Waypoint, + com.google.maps.routing.v2.Waypoint.Builder, + com.google.maps.routing.v2.WaypointOrBuilder> + waypointBuilder_; /** + * + * *
      * Required. Origin waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the waypoint field is set. */ public boolean hasWaypoint() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Origin waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The waypoint. */ public com.google.maps.routing.v2.Waypoint getWaypoint() { if (waypointBuilder_ == null) { - return waypoint_ == null ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() : waypoint_; + return waypoint_ == null + ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() + : waypoint_; } else { return waypointBuilder_.getMessage(); } } /** + * + * *
      * Required. Origin waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWaypoint(com.google.maps.routing.v2.Waypoint value) { if (waypointBuilder_ == null) { @@ -546,14 +614,17 @@ public Builder setWaypoint(com.google.maps.routing.v2.Waypoint value) { return this; } /** + * + * *
      * Required. Origin waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWaypoint( - com.google.maps.routing.v2.Waypoint.Builder builderForValue) { + public Builder setWaypoint(com.google.maps.routing.v2.Waypoint.Builder builderForValue) { if (waypointBuilder_ == null) { waypoint_ = builderForValue.build(); } else { @@ -564,17 +635,21 @@ public Builder setWaypoint( return this; } /** + * + * *
      * Required. Origin waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWaypoint(com.google.maps.routing.v2.Waypoint value) { if (waypointBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - waypoint_ != null && - waypoint_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && waypoint_ != null + && waypoint_ != com.google.maps.routing.v2.Waypoint.getDefaultInstance()) { getWaypointBuilder().mergeFrom(value); } else { waypoint_ = value; @@ -587,11 +662,15 @@ public Builder mergeWaypoint(com.google.maps.routing.v2.Waypoint value) { return this; } /** + * + * *
      * Required. Origin waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWaypoint() { bitField0_ = (bitField0_ & ~0x00000001); @@ -604,11 +683,15 @@ public Builder clearWaypoint() { return this; } /** + * + * *
      * Required. Origin waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.maps.routing.v2.Waypoint.Builder getWaypointBuilder() { bitField0_ |= 0x00000001; @@ -616,36 +699,48 @@ public com.google.maps.routing.v2.Waypoint.Builder getWaypointBuilder() { return getWaypointFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Origin waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder() { if (waypointBuilder_ != null) { return waypointBuilder_.getMessageOrBuilder(); } else { - return waypoint_ == null ? - com.google.maps.routing.v2.Waypoint.getDefaultInstance() : waypoint_; + return waypoint_ == null + ? com.google.maps.routing.v2.Waypoint.getDefaultInstance() + : waypoint_; } } /** + * + * *
      * Required. Origin waypoint
      * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder> + com.google.maps.routing.v2.Waypoint, + com.google.maps.routing.v2.Waypoint.Builder, + com.google.maps.routing.v2.WaypointOrBuilder> getWaypointFieldBuilder() { if (waypointBuilder_ == null) { - waypointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Waypoint, com.google.maps.routing.v2.Waypoint.Builder, com.google.maps.routing.v2.WaypointOrBuilder>( - getWaypoint(), - getParentForChildren(), - isClean()); + waypointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Waypoint, + com.google.maps.routing.v2.Waypoint.Builder, + com.google.maps.routing.v2.WaypointOrBuilder>( + getWaypoint(), getParentForChildren(), isClean()); waypoint_ = null; } return waypointBuilder_; @@ -653,39 +748,58 @@ public com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder() { private com.google.maps.routing.v2.RouteModifiers routeModifiers_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteModifiers, com.google.maps.routing.v2.RouteModifiers.Builder, com.google.maps.routing.v2.RouteModifiersOrBuilder> routeModifiersBuilder_; + com.google.maps.routing.v2.RouteModifiers, + com.google.maps.routing.v2.RouteModifiers.Builder, + com.google.maps.routing.v2.RouteModifiersOrBuilder> + routeModifiersBuilder_; /** + * + * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the routeModifiers field is set. */ public boolean hasRouteModifiers() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The routeModifiers. */ public com.google.maps.routing.v2.RouteModifiers getRouteModifiers() { if (routeModifiersBuilder_ == null) { - return routeModifiers_ == null ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; + return routeModifiers_ == null + ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() + : routeModifiers_; } else { return routeModifiersBuilder_.getMessage(); } } /** + * + * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRouteModifiers(com.google.maps.routing.v2.RouteModifiers value) { if (routeModifiersBuilder_ == null) { @@ -701,11 +815,15 @@ public Builder setRouteModifiers(com.google.maps.routing.v2.RouteModifiers value return this; } /** + * + * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRouteModifiers( com.google.maps.routing.v2.RouteModifiers.Builder builderForValue) { @@ -719,17 +837,21 @@ public Builder setRouteModifiers( return this; } /** + * + * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeRouteModifiers(com.google.maps.routing.v2.RouteModifiers value) { if (routeModifiersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - routeModifiers_ != null && - routeModifiers_ != com.google.maps.routing.v2.RouteModifiers.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && routeModifiers_ != null + && routeModifiers_ != com.google.maps.routing.v2.RouteModifiers.getDefaultInstance()) { getRouteModifiersBuilder().mergeFrom(value); } else { routeModifiers_ = value; @@ -742,11 +864,15 @@ public Builder mergeRouteModifiers(com.google.maps.routing.v2.RouteModifiers val return this; } /** + * + * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearRouteModifiers() { bitField0_ = (bitField0_ & ~0x00000002); @@ -759,11 +885,15 @@ public Builder clearRouteModifiers() { return this; } /** + * + * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.maps.routing.v2.RouteModifiers.Builder getRouteModifiersBuilder() { bitField0_ |= 0x00000002; @@ -771,43 +901,55 @@ public com.google.maps.routing.v2.RouteModifiers.Builder getRouteModifiersBuilde return getRouteModifiersFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBuilder() { if (routeModifiersBuilder_ != null) { return routeModifiersBuilder_.getMessageOrBuilder(); } else { - return routeModifiers_ == null ? - com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() : routeModifiers_; + return routeModifiers_ == null + ? com.google.maps.routing.v2.RouteModifiers.getDefaultInstance() + : routeModifiers_; } } /** + * + * *
      * Optional. Modifiers for every route that takes this as the origin
      * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteModifiers, com.google.maps.routing.v2.RouteModifiers.Builder, com.google.maps.routing.v2.RouteModifiersOrBuilder> + com.google.maps.routing.v2.RouteModifiers, + com.google.maps.routing.v2.RouteModifiers.Builder, + com.google.maps.routing.v2.RouteModifiersOrBuilder> getRouteModifiersFieldBuilder() { if (routeModifiersBuilder_ == null) { - routeModifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.RouteModifiers, com.google.maps.routing.v2.RouteModifiers.Builder, com.google.maps.routing.v2.RouteModifiersOrBuilder>( - getRouteModifiers(), - getParentForChildren(), - isClean()); + routeModifiersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.RouteModifiers, + com.google.maps.routing.v2.RouteModifiers.Builder, + com.google.maps.routing.v2.RouteModifiersOrBuilder>( + getRouteModifiers(), getParentForChildren(), isClean()); routeModifiers_ = null; } return routeModifiersBuilder_; } + @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); } @@ -817,12 +959,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteMatrixOrigin) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteMatrixOrigin) private static final com.google.maps.routing.v2.RouteMatrixOrigin DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteMatrixOrigin(); } @@ -831,27 +973,27 @@ public static com.google.maps.routing.v2.RouteMatrixOrigin getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RouteMatrixOrigin 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 RouteMatrixOrigin 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; @@ -866,6 +1008,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.RouteMatrixOrigin getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOriginOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOriginOrBuilder.java similarity index 54% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOriginOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOriginOrBuilder.java index 5ed1c2ed8c5d..86df73fc2739 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOriginOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteMatrixOriginOrBuilder.java @@ -1,63 +1,104 @@ +/* + * 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/maps/routing/v2/routes_service.proto package com.google.maps.routing.v2; -public interface RouteMatrixOriginOrBuilder extends +public interface RouteMatrixOriginOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteMatrixOrigin) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Origin waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the waypoint field is set. */ boolean hasWaypoint(); /** + * + * *
    * Required. Origin waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The waypoint. */ com.google.maps.routing.v2.Waypoint getWaypoint(); /** + * + * *
    * Required. Origin waypoint
    * 
* - * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.maps.routing.v2.Waypoint waypoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.maps.routing.v2.WaypointOrBuilder getWaypointOrBuilder(); /** + * + * *
    * Optional. Modifiers for every route that takes this as the origin
    * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the routeModifiers field is set. */ boolean hasRouteModifiers(); /** + * + * *
    * Optional. Modifiers for every route that takes this as the origin
    * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The routeModifiers. */ com.google.maps.routing.v2.RouteModifiers getRouteModifiers(); /** + * + * *
    * Optional. Modifiers for every route that takes this as the origin
    * 
* - * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.maps.routing.v2.RouteModifiers route_modifiers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.maps.routing.v2.RouteModifiersOrBuilder getRouteModifiersOrBuilder(); } diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiers.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiers.java similarity index 77% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiers.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiers.java index 9f9dd72cf11e..d9b975176d41 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiers.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/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/maps/routing/v2/route_modifiers.proto package com.google.maps.routing.v2; /** + * + * *
  * Encapsulates a set of optional conditions to satisfy when calculating the
  * routes.
@@ -11,42 +28,46 @@
  *
  * Protobuf type {@code google.maps.routing.v2.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.maps.routing.v2.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() {
     tollPasses_ = 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 RouteModifiers();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.maps.routing.v2.RouteModifiersProto.internal_static_google_maps_routing_v2_RouteModifiers_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.maps.routing.v2.RouteModifiersProto
+        .internal_static_google_maps_routing_v2_RouteModifiers_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.RouteModifiersProto.internal_static_google_maps_routing_v2_RouteModifiers_fieldAccessorTable
+    return com.google.maps.routing.v2.RouteModifiersProto
+        .internal_static_google_maps_routing_v2_RouteModifiers_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.RouteModifiers.class, com.google.maps.routing.v2.RouteModifiers.Builder.class);
+            com.google.maps.routing.v2.RouteModifiers.class,
+            com.google.maps.routing.v2.RouteModifiers.Builder.class);
   }
 
   public static final int AVOID_TOLLS_FIELD_NUMBER = 1;
   private boolean avoidTolls_ = false;
   /**
+   *
+   *
    * 
    * When set to true, avoids toll roads where reasonable, giving preference to
    * routes not containing toll roads. Applies only to the `DRIVE` and
@@ -54,6 +75,7 @@ protected java.lang.Object newInstance(
    * 
* * bool avoid_tolls = 1; + * * @return The avoidTolls. */ @java.lang.Override @@ -64,6 +86,8 @@ public boolean getAvoidTolls() { public static final int AVOID_HIGHWAYS_FIELD_NUMBER = 2; private boolean avoidHighways_ = false; /** + * + * *
    * When set to true, avoids highways where reasonable, giving preference to
    * routes not containing highways. Applies only to the `DRIVE` and
@@ -71,6 +95,7 @@ public boolean getAvoidTolls() {
    * 
* * bool avoid_highways = 2; + * * @return The avoidHighways. */ @java.lang.Override @@ -81,6 +106,8 @@ public boolean getAvoidHighways() { public static final int AVOID_FERRIES_FIELD_NUMBER = 3; private boolean avoidFerries_ = false; /** + * + * *
    * When set to true, avoids ferries where reasonable, giving preference to
    * routes not containing ferries. Applies only to the `DRIVE` and`TWO_WHEELER`
@@ -88,6 +115,7 @@ public boolean getAvoidHighways() {
    * 
* * bool avoid_ferries = 3; + * * @return The avoidFerries. */ @java.lang.Override @@ -98,6 +126,8 @@ public boolean getAvoidFerries() { public static final int AVOID_INDOOR_FIELD_NUMBER = 4; private boolean avoidIndoor_ = false; /** + * + * *
    * When set to true, avoids navigating indoors where reasonable, giving
    * preference to routes not containing indoor navigation. Applies only to the
@@ -105,6 +135,7 @@ public boolean getAvoidFerries() {
    * 
* * bool avoid_indoor = 4; + * * @return The avoidIndoor. */ @java.lang.Override @@ -115,11 +146,14 @@ public boolean getAvoidIndoor() { public static final int VEHICLE_INFO_FIELD_NUMBER = 5; private com.google.maps.routing.v2.VehicleInfo vehicleInfo_; /** + * + * *
    * Specifies the vehicle information.
    * 
* * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; + * * @return Whether the vehicleInfo field is set. */ @java.lang.Override @@ -127,18 +161,25 @@ public boolean hasVehicleInfo() { return vehicleInfo_ != null; } /** + * + * *
    * Specifies the vehicle information.
    * 
* * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; + * * @return The vehicleInfo. */ @java.lang.Override public com.google.maps.routing.v2.VehicleInfo getVehicleInfo() { - return vehicleInfo_ == null ? com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() : vehicleInfo_; + return vehicleInfo_ == null + ? com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() + : vehicleInfo_; } /** + * + * *
    * Specifies the vehicle information.
    * 
@@ -147,22 +188,30 @@ public com.google.maps.routing.v2.VehicleInfo getVehicleInfo() { */ @java.lang.Override public com.google.maps.routing.v2.VehicleInfoOrBuilder getVehicleInfoOrBuilder() { - return vehicleInfo_ == null ? com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() : vehicleInfo_; + return vehicleInfo_ == null + ? com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() + : vehicleInfo_; } public static final int TOLL_PASSES_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private java.util.List tollPasses_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.maps.routing.v2.TollPass> tollPasses_converter_ = + java.lang.Integer, com.google.maps.routing.v2.TollPass> + tollPasses_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.maps.routing.v2.TollPass>() { public com.google.maps.routing.v2.TollPass convert(java.lang.Integer from) { - com.google.maps.routing.v2.TollPass result = com.google.maps.routing.v2.TollPass.forNumber(from); + com.google.maps.routing.v2.TollPass result = + com.google.maps.routing.v2.TollPass.forNumber(from); return result == null ? com.google.maps.routing.v2.TollPass.UNRECOGNIZED : result; } }; /** + * + * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -173,6 +222,7 @@ public com.google.maps.routing.v2.TollPass convert(java.lang.Integer from) {
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @return A list containing the tollPasses. */ @java.lang.Override @@ -181,6 +231,8 @@ public java.util.List getTollPassesList() { java.lang.Integer, com.google.maps.routing.v2.TollPass>(tollPasses_, tollPasses_converter_); } /** + * + * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -191,6 +243,7 @@ public java.util.List getTollPassesList() {
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @return The count of tollPasses. */ @java.lang.Override @@ -198,6 +251,8 @@ public int getTollPassesCount() { return tollPasses_.size(); } /** + * + * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -208,6 +263,7 @@ public int getTollPassesCount() {
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @param index The index of the element to return. * @return The tollPasses at the given index. */ @@ -216,6 +272,8 @@ public com.google.maps.routing.v2.TollPass getTollPasses(int index) { return tollPasses_converter_.convert(tollPasses_.get(index)); } /** + * + * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -226,14 +284,16 @@ public com.google.maps.routing.v2.TollPass getTollPasses(int index) {
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @return A list containing the enum numeric values on the wire for tollPasses. */ @java.lang.Override - public java.util.List - getTollPassesValueList() { + public java.util.List getTollPassesValueList() { return tollPasses_; } /** + * + * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -244,6 +304,7 @@ public com.google.maps.routing.v2.TollPass getTollPasses(int index) {
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of tollPasses at the given index. */ @@ -251,9 +312,11 @@ public com.google.maps.routing.v2.TollPass getTollPasses(int index) { public int getTollPassesValue(int index) { return tollPasses_.get(index); } + private int tollPassesMemoizedSerializedSize; private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +328,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(); if (avoidTolls_ != false) { output.writeBool(1, avoidTolls_); @@ -300,36 +362,31 @@ public int getSerializedSize() { size = 0; if (avoidTolls_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, avoidTolls_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, avoidTolls_); } if (avoidHighways_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, avoidHighways_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, avoidHighways_); } if (avoidFerries_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, avoidFerries_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, avoidFerries_); } if (avoidIndoor_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, avoidIndoor_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, avoidIndoor_); } if (vehicleInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getVehicleInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getVehicleInfo()); } { int dataSize = 0; for (int i = 0; i < tollPasses_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(tollPasses_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(tollPasses_.get(i)); } size += dataSize; - if (!getTollPassesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }tollPassesMemoizedSerializedSize = dataSize; + if (!getTollPassesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + tollPassesMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -339,25 +396,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.maps.routing.v2.RouteModifiers)) { return super.equals(obj); } - com.google.maps.routing.v2.RouteModifiers other = (com.google.maps.routing.v2.RouteModifiers) obj; + com.google.maps.routing.v2.RouteModifiers other = + (com.google.maps.routing.v2.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 (hasVehicleInfo() != other.hasVehicleInfo()) return false; if (hasVehicleInfo()) { - if (!getVehicleInfo() - .equals(other.getVehicleInfo())) return false; + if (!getVehicleInfo().equals(other.getVehicleInfo())) return false; } if (!tollPasses_.equals(other.tollPasses_)) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -372,17 +425,13 @@ 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()); if (hasVehicleInfo()) { hash = (37 * hash) + VEHICLE_INFO_FIELD_NUMBER; hash = (53 * hash) + getVehicleInfo().hashCode(); @@ -396,99 +445,104 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.RouteModifiers parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.RouteModifiers parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.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.maps.routing.v2.RouteModifiers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.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.maps.routing.v2.RouteModifiers parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.RouteModifiers parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.RouteModifiers parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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 the
    * routes.
@@ -496,33 +550,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.maps.routing.v2.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.maps.routing.v2.RouteModifiers)
       com.google.maps.routing.v2.RouteModifiersOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.maps.routing.v2.RouteModifiersProto.internal_static_google_maps_routing_v2_RouteModifiers_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.maps.routing.v2.RouteModifiersProto
+          .internal_static_google_maps_routing_v2_RouteModifiers_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.RouteModifiersProto.internal_static_google_maps_routing_v2_RouteModifiers_fieldAccessorTable
+      return com.google.maps.routing.v2.RouteModifiersProto
+          .internal_static_google_maps_routing_v2_RouteModifiers_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.RouteModifiers.class, com.google.maps.routing.v2.RouteModifiers.Builder.class);
+              com.google.maps.routing.v2.RouteModifiers.class,
+              com.google.maps.routing.v2.RouteModifiers.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.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();
@@ -542,9 +595,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.maps.routing.v2.RouteModifiersProto.internal_static_google_maps_routing_v2_RouteModifiers_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.maps.routing.v2.RouteModifiersProto
+          .internal_static_google_maps_routing_v2_RouteModifiers_descriptor;
     }
 
     @java.lang.Override
@@ -563,9 +616,12 @@ public com.google.maps.routing.v2.RouteModifiers build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.RouteModifiers buildPartial() {
-      com.google.maps.routing.v2.RouteModifiers result = new com.google.maps.routing.v2.RouteModifiers(this);
+      com.google.maps.routing.v2.RouteModifiers result =
+          new com.google.maps.routing.v2.RouteModifiers(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -593,9 +649,8 @@ private void buildPartial0(com.google.maps.routing.v2.RouteModifiers result) {
         result.avoidIndoor_ = avoidIndoor_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.vehicleInfo_ = vehicleInfoBuilder_ == null
-            ? vehicleInfo_
-            : vehicleInfoBuilder_.build();
+        result.vehicleInfo_ =
+            vehicleInfoBuilder_ == null ? vehicleInfo_ : vehicleInfoBuilder_.build();
       }
     }
 
@@ -603,38 +658,39 @@ private void buildPartial0(com.google.maps.routing.v2.RouteModifiers 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.maps.routing.v2.RouteModifiers) {
-        return mergeFrom((com.google.maps.routing.v2.RouteModifiers)other);
+        return mergeFrom((com.google.maps.routing.v2.RouteModifiers) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -694,56 +750,62 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              avoidTolls_ = input.readBool();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              avoidHighways_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              avoidFerries_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 32: {
-              avoidIndoor_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              input.readMessage(
-                  getVehicleInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 48: {
-              int tmpRaw = input.readEnum();
-              ensureTollPassesIsMutable();
-              tollPasses_.add(tmpRaw);
-              break;
-            } // case 48
-            case 50: {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while(input.getBytesUntilLimit() > 0) {
+            case 8:
+              {
+                avoidTolls_ = input.readBool();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                avoidHighways_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                avoidFerries_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 32:
+              {
+                avoidIndoor_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                input.readMessage(getVehicleInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 48:
+              {
                 int tmpRaw = input.readEnum();
                 ensureTollPassesIsMutable();
                 tollPasses_.add(tmpRaw);
-              }
-              input.popLimit(oldLimit);
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 48
+            case 50:
+              {
+                int length = input.readRawVarint32();
+                int oldLimit = input.pushLimit(length);
+                while (input.getBytesUntilLimit() > 0) {
+                  int tmpRaw = input.readEnum();
+                  ensureTollPassesIsMutable();
+                  tollPasses_.add(tmpRaw);
+                }
+                input.popLimit(oldLimit);
+                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) {
@@ -753,10 +815,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private boolean avoidTolls_ ;
+    private boolean avoidTolls_;
     /**
+     *
+     *
      * 
      * When set to true, avoids toll roads where reasonable, giving preference to
      * routes not containing toll roads. Applies only to the `DRIVE` and
@@ -764,6 +829,7 @@ public Builder mergeFrom(
      * 
* * bool avoid_tolls = 1; + * * @return The avoidTolls. */ @java.lang.Override @@ -771,6 +837,8 @@ public boolean getAvoidTolls() { return avoidTolls_; } /** + * + * *
      * When set to true, avoids toll roads where reasonable, giving preference to
      * routes not containing toll roads. Applies only to the `DRIVE` and
@@ -778,6 +846,7 @@ public boolean getAvoidTolls() {
      * 
* * bool avoid_tolls = 1; + * * @param value The avoidTolls to set. * @return This builder for chaining. */ @@ -789,6 +858,8 @@ public Builder setAvoidTolls(boolean value) { return this; } /** + * + * *
      * When set to true, avoids toll roads where reasonable, giving preference to
      * routes not containing toll roads. Applies only to the `DRIVE` and
@@ -796,6 +867,7 @@ public Builder setAvoidTolls(boolean value) {
      * 
* * bool avoid_tolls = 1; + * * @return This builder for chaining. */ public Builder clearAvoidTolls() { @@ -805,8 +877,10 @@ public Builder clearAvoidTolls() { return this; } - private boolean avoidHighways_ ; + private boolean avoidHighways_; /** + * + * *
      * When set to true, avoids highways where reasonable, giving preference to
      * routes not containing highways. Applies only to the `DRIVE` and
@@ -814,6 +888,7 @@ public Builder clearAvoidTolls() {
      * 
* * bool avoid_highways = 2; + * * @return The avoidHighways. */ @java.lang.Override @@ -821,6 +896,8 @@ public boolean getAvoidHighways() { return avoidHighways_; } /** + * + * *
      * When set to true, avoids highways where reasonable, giving preference to
      * routes not containing highways. Applies only to the `DRIVE` and
@@ -828,6 +905,7 @@ public boolean getAvoidHighways() {
      * 
* * bool avoid_highways = 2; + * * @param value The avoidHighways to set. * @return This builder for chaining. */ @@ -839,6 +917,8 @@ public Builder setAvoidHighways(boolean value) { return this; } /** + * + * *
      * When set to true, avoids highways where reasonable, giving preference to
      * routes not containing highways. Applies only to the `DRIVE` and
@@ -846,6 +926,7 @@ public Builder setAvoidHighways(boolean value) {
      * 
* * bool avoid_highways = 2; + * * @return This builder for chaining. */ public Builder clearAvoidHighways() { @@ -855,8 +936,10 @@ public Builder clearAvoidHighways() { return this; } - private boolean avoidFerries_ ; + private boolean avoidFerries_; /** + * + * *
      * When set to true, avoids ferries where reasonable, giving preference to
      * routes not containing ferries. Applies only to the `DRIVE` and`TWO_WHEELER`
@@ -864,6 +947,7 @@ public Builder clearAvoidHighways() {
      * 
* * bool avoid_ferries = 3; + * * @return The avoidFerries. */ @java.lang.Override @@ -871,6 +955,8 @@ public boolean getAvoidFerries() { return avoidFerries_; } /** + * + * *
      * When set to true, avoids ferries where reasonable, giving preference to
      * routes not containing ferries. Applies only to the `DRIVE` and`TWO_WHEELER`
@@ -878,6 +964,7 @@ public boolean getAvoidFerries() {
      * 
* * bool avoid_ferries = 3; + * * @param value The avoidFerries to set. * @return This builder for chaining. */ @@ -889,6 +976,8 @@ public Builder setAvoidFerries(boolean value) { return this; } /** + * + * *
      * When set to true, avoids ferries where reasonable, giving preference to
      * routes not containing ferries. Applies only to the `DRIVE` and`TWO_WHEELER`
@@ -896,6 +985,7 @@ public Builder setAvoidFerries(boolean value) {
      * 
* * bool avoid_ferries = 3; + * * @return This builder for chaining. */ public Builder clearAvoidFerries() { @@ -905,8 +995,10 @@ public Builder clearAvoidFerries() { return this; } - private boolean avoidIndoor_ ; + private boolean avoidIndoor_; /** + * + * *
      * When set to true, avoids navigating indoors where reasonable, giving
      * preference to routes not containing indoor navigation. Applies only to the
@@ -914,6 +1006,7 @@ public Builder clearAvoidFerries() {
      * 
* * bool avoid_indoor = 4; + * * @return The avoidIndoor. */ @java.lang.Override @@ -921,6 +1014,8 @@ public boolean getAvoidIndoor() { return avoidIndoor_; } /** + * + * *
      * When set to true, avoids navigating indoors where reasonable, giving
      * preference to routes not containing indoor navigation. Applies only to the
@@ -928,6 +1023,7 @@ public boolean getAvoidIndoor() {
      * 
* * bool avoid_indoor = 4; + * * @param value The avoidIndoor to set. * @return This builder for chaining. */ @@ -939,6 +1035,8 @@ public Builder setAvoidIndoor(boolean value) { return this; } /** + * + * *
      * When set to true, avoids navigating indoors where reasonable, giving
      * preference to routes not containing indoor navigation. Applies only to the
@@ -946,6 +1044,7 @@ public Builder setAvoidIndoor(boolean value) {
      * 
* * bool avoid_indoor = 4; + * * @return This builder for chaining. */ public Builder clearAvoidIndoor() { @@ -957,34 +1056,47 @@ public Builder clearAvoidIndoor() { private com.google.maps.routing.v2.VehicleInfo vehicleInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.VehicleInfo, com.google.maps.routing.v2.VehicleInfo.Builder, com.google.maps.routing.v2.VehicleInfoOrBuilder> vehicleInfoBuilder_; + com.google.maps.routing.v2.VehicleInfo, + com.google.maps.routing.v2.VehicleInfo.Builder, + com.google.maps.routing.v2.VehicleInfoOrBuilder> + vehicleInfoBuilder_; /** + * + * *
      * Specifies the vehicle information.
      * 
* * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; + * * @return Whether the vehicleInfo field is set. */ public boolean hasVehicleInfo() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Specifies the vehicle information.
      * 
* * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; + * * @return The vehicleInfo. */ public com.google.maps.routing.v2.VehicleInfo getVehicleInfo() { if (vehicleInfoBuilder_ == null) { - return vehicleInfo_ == null ? com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() : vehicleInfo_; + return vehicleInfo_ == null + ? com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() + : vehicleInfo_; } else { return vehicleInfoBuilder_.getMessage(); } } /** + * + * *
      * Specifies the vehicle information.
      * 
@@ -1005,14 +1117,15 @@ public Builder setVehicleInfo(com.google.maps.routing.v2.VehicleInfo value) { return this; } /** + * + * *
      * Specifies the vehicle information.
      * 
* * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; */ - public Builder setVehicleInfo( - com.google.maps.routing.v2.VehicleInfo.Builder builderForValue) { + public Builder setVehicleInfo(com.google.maps.routing.v2.VehicleInfo.Builder builderForValue) { if (vehicleInfoBuilder_ == null) { vehicleInfo_ = builderForValue.build(); } else { @@ -1023,6 +1136,8 @@ public Builder setVehicleInfo( return this; } /** + * + * *
      * Specifies the vehicle information.
      * 
@@ -1031,9 +1146,9 @@ public Builder setVehicleInfo( */ public Builder mergeVehicleInfo(com.google.maps.routing.v2.VehicleInfo value) { if (vehicleInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - vehicleInfo_ != null && - vehicleInfo_ != com.google.maps.routing.v2.VehicleInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && vehicleInfo_ != null + && vehicleInfo_ != com.google.maps.routing.v2.VehicleInfo.getDefaultInstance()) { getVehicleInfoBuilder().mergeFrom(value); } else { vehicleInfo_ = value; @@ -1046,6 +1161,8 @@ public Builder mergeVehicleInfo(com.google.maps.routing.v2.VehicleInfo value) { return this; } /** + * + * *
      * Specifies the vehicle information.
      * 
@@ -1063,6 +1180,8 @@ public Builder clearVehicleInfo() { return this; } /** + * + * *
      * Specifies the vehicle information.
      * 
@@ -1075,6 +1194,8 @@ public com.google.maps.routing.v2.VehicleInfo.Builder getVehicleInfoBuilder() { return getVehicleInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Specifies the vehicle information.
      * 
@@ -1085,11 +1206,14 @@ public com.google.maps.routing.v2.VehicleInfoOrBuilder getVehicleInfoOrBuilder() if (vehicleInfoBuilder_ != null) { return vehicleInfoBuilder_.getMessageOrBuilder(); } else { - return vehicleInfo_ == null ? - com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() : vehicleInfo_; + return vehicleInfo_ == null + ? com.google.maps.routing.v2.VehicleInfo.getDefaultInstance() + : vehicleInfo_; } } /** + * + * *
      * Specifies the vehicle information.
      * 
@@ -1097,21 +1221,24 @@ public com.google.maps.routing.v2.VehicleInfoOrBuilder getVehicleInfoOrBuilder() * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.VehicleInfo, com.google.maps.routing.v2.VehicleInfo.Builder, com.google.maps.routing.v2.VehicleInfoOrBuilder> + com.google.maps.routing.v2.VehicleInfo, + com.google.maps.routing.v2.VehicleInfo.Builder, + com.google.maps.routing.v2.VehicleInfoOrBuilder> getVehicleInfoFieldBuilder() { if (vehicleInfoBuilder_ == null) { - vehicleInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.VehicleInfo, com.google.maps.routing.v2.VehicleInfo.Builder, com.google.maps.routing.v2.VehicleInfoOrBuilder>( - getVehicleInfo(), - getParentForChildren(), - isClean()); + vehicleInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.VehicleInfo, + com.google.maps.routing.v2.VehicleInfo.Builder, + com.google.maps.routing.v2.VehicleInfoOrBuilder>( + getVehicleInfo(), getParentForChildren(), isClean()); vehicleInfo_ = null; } return vehicleInfoBuilder_; } - private java.util.List tollPasses_ = - java.util.Collections.emptyList(); + private java.util.List tollPasses_ = java.util.Collections.emptyList(); + private void ensureTollPassesIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { tollPasses_ = new java.util.ArrayList(tollPasses_); @@ -1119,6 +1246,8 @@ private void ensureTollPassesIsMutable() { } } /** + * + * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1129,13 +1258,17 @@ private void ensureTollPassesIsMutable() {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @return A list containing the tollPasses. */ public java.util.List getTollPassesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.TollPass>(tollPasses_, tollPasses_converter_); + java.lang.Integer, com.google.maps.routing.v2.TollPass>( + tollPasses_, tollPasses_converter_); } /** + * + * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1146,12 +1279,15 @@ public java.util.List getTollPassesList() {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @return The count of tollPasses. */ public int getTollPassesCount() { return tollPasses_.size(); } /** + * + * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1162,6 +1298,7 @@ public int getTollPassesCount() {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @param index The index of the element to return. * @return The tollPasses at the given index. */ @@ -1169,6 +1306,8 @@ public com.google.maps.routing.v2.TollPass getTollPasses(int index) { return tollPasses_converter_.convert(tollPasses_.get(index)); } /** + * + * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1179,12 +1318,12 @@ public com.google.maps.routing.v2.TollPass getTollPasses(int index) {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @param index The index to set the value at. * @param value The tollPasses to set. * @return This builder for chaining. */ - public Builder setTollPasses( - int index, com.google.maps.routing.v2.TollPass value) { + public Builder setTollPasses(int index, com.google.maps.routing.v2.TollPass value) { if (value == null) { throw new NullPointerException(); } @@ -1194,6 +1333,8 @@ public Builder setTollPasses( return this; } /** + * + * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1204,6 +1345,7 @@ public Builder setTollPasses(
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @param value The tollPasses to add. * @return This builder for chaining. */ @@ -1217,6 +1359,8 @@ public Builder addTollPasses(com.google.maps.routing.v2.TollPass value) { return this; } /** + * + * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1227,6 +1371,7 @@ public Builder addTollPasses(com.google.maps.routing.v2.TollPass value) {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @param values The tollPasses to add. * @return This builder for chaining. */ @@ -1240,6 +1385,8 @@ public Builder addAllTollPasses( return this; } /** + * + * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1250,6 +1397,7 @@ public Builder addAllTollPasses(
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @return This builder for chaining. */ public Builder clearTollPasses() { @@ -1259,6 +1407,8 @@ public Builder clearTollPasses() { return this; } /** + * + * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1269,13 +1419,15 @@ public Builder clearTollPasses() {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @return A list containing the enum numeric values on the wire for tollPasses. */ - public java.util.List - getTollPassesValueList() { + public java.util.List getTollPassesValueList() { return java.util.Collections.unmodifiableList(tollPasses_); } /** + * + * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1286,6 +1438,7 @@ public Builder clearTollPasses() {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of tollPasses at the given index. */ @@ -1293,6 +1446,8 @@ public int getTollPassesValue(int index) { return tollPasses_.get(index); } /** + * + * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1303,18 +1458,20 @@ public int getTollPassesValue(int index) {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for tollPasses to set. * @return This builder for chaining. */ - public Builder setTollPassesValue( - int index, int value) { + public Builder setTollPassesValue(int index, int value) { ensureTollPassesIsMutable(); tollPasses_.set(index, value); onChanged(); return this; } /** + * + * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1325,6 +1482,7 @@ public Builder setTollPassesValue(
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @param value The enum numeric value on the wire for tollPasses to add. * @return This builder for chaining. */ @@ -1335,6 +1493,8 @@ public Builder addTollPassesValue(int value) { return this; } /** + * + * *
      * Encapsulates information about toll passes.
      * If toll passes are provided, the API tries to return the pass price. If
@@ -1345,11 +1505,11 @@ public Builder addTollPassesValue(int value) {
      * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @param values The enum numeric values on the wire for tollPasses to add. * @return This builder for chaining. */ - public Builder addAllTollPassesValue( - java.lang.Iterable values) { + public Builder addAllTollPassesValue(java.lang.Iterable values) { ensureTollPassesIsMutable(); for (int value : values) { tollPasses_.add(value); @@ -1357,9 +1517,9 @@ public Builder addAllTollPassesValue( 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); } @@ -1369,12 +1529,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteModifiers) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteModifiers) private static final com.google.maps.routing.v2.RouteModifiers DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteModifiers(); } @@ -1383,27 +1543,27 @@ public static com.google.maps.routing.v2.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; @@ -1418,6 +1578,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.RouteModifiers getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersOrBuilder.java similarity index 85% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersOrBuilder.java index f54c64ec87c6..0857dcedede0 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/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/maps/routing/v2/route_modifiers.proto package com.google.maps.routing.v2; -public interface RouteModifiersOrBuilder extends +public interface RouteModifiersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteModifiers) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * When set to true, avoids toll roads where reasonable, giving preference to
    * routes not containing toll roads. Applies only to the `DRIVE` and
@@ -15,11 +33,14 @@ public interface RouteModifiersOrBuilder extends
    * 
* * bool avoid_tolls = 1; + * * @return The avoidTolls. */ boolean getAvoidTolls(); /** + * + * *
    * When set to true, avoids highways where reasonable, giving preference to
    * routes not containing highways. Applies only to the `DRIVE` and
@@ -27,11 +48,14 @@ public interface RouteModifiersOrBuilder extends
    * 
* * bool avoid_highways = 2; + * * @return The avoidHighways. */ boolean getAvoidHighways(); /** + * + * *
    * When set to true, avoids ferries where reasonable, giving preference to
    * routes not containing ferries. Applies only to the `DRIVE` and`TWO_WHEELER`
@@ -39,11 +63,14 @@ public interface RouteModifiersOrBuilder extends
    * 
* * bool avoid_ferries = 3; + * * @return The avoidFerries. */ boolean getAvoidFerries(); /** + * + * *
    * When set to true, avoids navigating indoors where reasonable, giving
    * preference to routes not containing indoor navigation. Applies only to the
@@ -51,29 +78,38 @@ public interface RouteModifiersOrBuilder extends
    * 
* * bool avoid_indoor = 4; + * * @return The avoidIndoor. */ boolean getAvoidIndoor(); /** + * + * *
    * Specifies the vehicle information.
    * 
* * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; + * * @return Whether the vehicleInfo field is set. */ boolean hasVehicleInfo(); /** + * + * *
    * Specifies the vehicle information.
    * 
* * .google.maps.routing.v2.VehicleInfo vehicle_info = 5; + * * @return The vehicleInfo. */ com.google.maps.routing.v2.VehicleInfo getVehicleInfo(); /** + * + * *
    * Specifies the vehicle information.
    * 
@@ -83,6 +119,8 @@ public interface RouteModifiersOrBuilder extends com.google.maps.routing.v2.VehicleInfoOrBuilder getVehicleInfoOrBuilder(); /** + * + * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -93,10 +131,13 @@ public interface RouteModifiersOrBuilder extends
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @return A list containing the tollPasses. */ java.util.List getTollPassesList(); /** + * + * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -107,10 +148,13 @@ public interface RouteModifiersOrBuilder extends
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @return The count of tollPasses. */ int getTollPassesCount(); /** + * + * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -121,11 +165,14 @@ public interface RouteModifiersOrBuilder extends
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @param index The index of the element to return. * @return The tollPasses at the given index. */ com.google.maps.routing.v2.TollPass getTollPasses(int index); /** + * + * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -136,11 +183,13 @@ public interface RouteModifiersOrBuilder extends
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @return A list containing the enum numeric values on the wire for tollPasses. */ - java.util.List - getTollPassesValueList(); + java.util.List getTollPassesValueList(); /** + * + * *
    * Encapsulates information about toll passes.
    * If toll passes are provided, the API tries to return the pass price. If
@@ -151,6 +200,7 @@ public interface RouteModifiersOrBuilder extends
    * 
* * repeated .google.maps.routing.v2.TollPass toll_passes = 6; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of tollPasses at the given index. */ diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java new file mode 100644 index 000000000000..1f2314628834 --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java @@ -0,0 +1,84 @@ +/* + * 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/maps/routing/v2/route_modifiers.proto + +package com.google.maps.routing.v2; + +public final class RouteModifiersProto { + private RouteModifiersProto() {} + + 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_maps_routing_v2_RouteModifiers_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteModifiers_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/maps/routing/v2/route_modifiers" + + ".proto\022\026google.maps.routing.v2\032(google/m" + + "aps/routing/v2/toll_passes.proto\032)google" + + "/maps/routing/v2/vehicle_info.proto\"\334\001\n\016" + + "RouteModifiers\022\023\n\013avoid_tolls\030\001 \001(\010\022\026\n\016a" + + "void_highways\030\002 \001(\010\022\025\n\ravoid_ferries\030\003 \001" + + "(\010\022\024\n\014avoid_indoor\030\004 \001(\010\0229\n\014vehicle_info" + + "\030\005 \001(\0132#.google.maps.routing.v2.VehicleI" + + "nfo\0225\n\013toll_passes\030\006 \003(\0162 .google.maps.r" + + "outing.v2.TollPassB\310\001\n\032com.google.maps.r" + + "outing.v2B\023RouteModifiersProtoP\001Z:cloud." + + "google.com/go/maps/routing/apiv2/routing" + + "pb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Ro" + + "uting.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Goog" + + "le::Maps::Routing::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.maps.routing.v2.TollPassesProto.getDescriptor(), + com.google.maps.routing.v2.VehicleInfoProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_RouteModifiers_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_RouteModifiers_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteModifiers_descriptor, + new java.lang.String[] { + "AvoidTolls", + "AvoidHighways", + "AvoidFerries", + "AvoidIndoor", + "VehicleInfo", + "TollPasses", + }); + com.google.maps.routing.v2.TollPassesProto.getDescriptor(); + com.google.maps.routing.v2.VehicleInfoProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java similarity index 91% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java index fd420b4e5663..69f2b7e962c7 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteOrBuilder.java @@ -1,67 +1,99 @@ +/* + * 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/maps/routing/v2/route.proto package com.google.maps.routing.v2; -public interface RouteOrBuilder extends +public interface RouteOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.Route) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Labels for the `Route` that are useful to identify specific properties
    * of the route to compare against others.
    * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @return A list containing the routeLabels. */ java.util.List getRouteLabelsList(); /** + * + * *
    * Labels for the `Route` that are useful to identify specific properties
    * of the route to compare against others.
    * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @return The count of routeLabels. */ int getRouteLabelsCount(); /** + * + * *
    * Labels for the `Route` that are useful to identify specific properties
    * of the route to compare against others.
    * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @param index The index of the element to return. * @return The routeLabels at the given index. */ com.google.maps.routing.v2.RouteLabel getRouteLabels(int index); /** + * + * *
    * Labels for the `Route` that are useful to identify specific properties
    * of the route to compare against others.
    * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @return A list containing the enum numeric values on the wire for routeLabels. */ - java.util.List - getRouteLabelsValueList(); + java.util.List getRouteLabelsValueList(); /** + * + * *
    * Labels for the `Route` that are useful to identify specific properties
    * of the route to compare against others.
    * 
* * repeated .google.maps.routing.v2.RouteLabel route_labels = 13; + * * @param index The index of the value to return. * @return The enum numeric value on the wire of routeLabels at the given index. */ int getRouteLabelsValue(int index); /** + * + * *
    * A collection of legs (path segments between waypoints) that make up the
    * route. Each leg corresponds to the trip between two non-`via`
@@ -74,9 +106,10 @@ public interface RouteOrBuilder extends
    *
    * repeated .google.maps.routing.v2.RouteLeg legs = 1;
    */
-  java.util.List 
-      getLegsList();
+  java.util.List getLegsList();
   /**
+   *
+   *
    * 
    * A collection of legs (path segments between waypoints) that make up the
    * route. Each leg corresponds to the trip between two non-`via`
@@ -91,6 +124,8 @@ public interface RouteOrBuilder extends
    */
   com.google.maps.routing.v2.RouteLeg getLegs(int index);
   /**
+   *
+   *
    * 
    * A collection of legs (path segments between waypoints) that make up the
    * route. Each leg corresponds to the trip between two non-`via`
@@ -105,6 +140,8 @@ public interface RouteOrBuilder extends
    */
   int getLegsCount();
   /**
+   *
+   *
    * 
    * A collection of legs (path segments between waypoints) that make up the
    * route. Each leg corresponds to the trip between two non-`via`
@@ -117,9 +154,10 @@ public interface RouteOrBuilder extends
    *
    * repeated .google.maps.routing.v2.RouteLeg legs = 1;
    */
-  java.util.List 
-      getLegsOrBuilderList();
+  java.util.List getLegsOrBuilderList();
   /**
+   *
+   *
    * 
    * A collection of legs (path segments between waypoints) that make up the
    * route. Each leg corresponds to the trip between two non-`via`
@@ -132,20 +170,24 @@ public interface RouteOrBuilder extends
    *
    * repeated .google.maps.routing.v2.RouteLeg legs = 1;
    */
-  com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
-      int index);
+  com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The travel distance of the route, in meters.
    * 
* * int32 distance_meters = 2; + * * @return The distanceMeters. */ int getDistanceMeters(); /** + * + * *
    * The length of time needed to navigate the route. If you set the
    * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -155,10 +197,13 @@ com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
    * 
* * .google.protobuf.Duration duration = 3; + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
    * The length of time needed to navigate the route. If you set the
    * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -168,10 +213,13 @@ com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
    * 
* * .google.protobuf.Duration duration = 3; + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
    * The length of time needed to navigate the route. If you set the
    * `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
@@ -185,26 +233,34 @@ com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
   com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The duration of travel through the route without taking traffic
    * conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 4; + * * @return Whether the staticDuration field is set. */ boolean hasStaticDuration(); /** + * + * *
    * The duration of travel through the route without taking traffic
    * conditions into consideration.
    * 
* * .google.protobuf.Duration static_duration = 4; + * * @return The staticDuration. */ com.google.protobuf.Duration getStaticDuration(); /** + * + * *
    * The duration of travel through the route without taking traffic
    * conditions into consideration.
@@ -215,26 +271,34 @@ com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
   com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The overall route polyline. This polyline is the combined polyline of
    * all `legs`.
    * 
* * .google.maps.routing.v2.Polyline polyline = 5; + * * @return Whether the polyline field is set. */ boolean hasPolyline(); /** + * + * *
    * The overall route polyline. This polyline is the combined polyline of
    * all `legs`.
    * 
* * .google.maps.routing.v2.Polyline polyline = 5; + * * @return The polyline. */ com.google.maps.routing.v2.Polyline getPolyline(); /** + * + * *
    * The overall route polyline. This polyline is the combined polyline of
    * all `legs`.
@@ -245,85 +309,108 @@ com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
   com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder();
 
   /**
+   *
+   *
    * 
    * A description of the route.
    * 
* * string description = 6; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A description of the route.
    * 
* * string description = 6; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * An array of warnings to show when displaying the route.
    * 
* * repeated string warnings = 7; + * * @return A list containing the warnings. */ - java.util.List - getWarningsList(); + java.util.List getWarningsList(); /** + * + * *
    * An array of warnings to show when displaying the route.
    * 
* * repeated string warnings = 7; + * * @return The count of warnings. */ int getWarningsCount(); /** + * + * *
    * An array of warnings to show when displaying the route.
    * 
* * repeated string warnings = 7; + * * @param index The index of the element to return. * @return The warnings at the given index. */ java.lang.String getWarnings(int index); /** + * + * *
    * An array of warnings to show when displaying the route.
    * 
* * repeated string warnings = 7; + * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ - com.google.protobuf.ByteString - getWarningsBytes(int index); + com.google.protobuf.ByteString getWarningsBytes(int index); /** + * + * *
    * The viewport bounding box of the polyline.
    * 
* * .google.geo.type.Viewport viewport = 8; + * * @return Whether the viewport field is set. */ boolean hasViewport(); /** + * + * *
    * The viewport bounding box of the polyline.
    * 
* * .google.geo.type.Viewport viewport = 8; + * * @return The viewport. */ com.google.geo.type.Viewport getViewport(); /** + * + * *
    * The viewport bounding box of the polyline.
    * 
@@ -333,24 +420,32 @@ com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder( com.google.geo.type.ViewportOrBuilder getViewportOrBuilder(); /** + * + * *
    * Additional information about the route.
    * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + * * @return Whether the travelAdvisory field is set. */ boolean hasTravelAdvisory(); /** + * + * *
    * Additional information about the route.
    * 
* * .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; + * * @return The travelAdvisory. */ com.google.maps.routing.v2.RouteTravelAdvisory getTravelAdvisory(); /** + * + * *
    * Additional information about the route.
    * 
@@ -360,6 +455,8 @@ com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder( com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder(); /** + * + * *
    * If you set
    * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
@@ -373,10 +470,13 @@ com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
    * 
* * repeated int32 optimized_intermediate_waypoint_index = 10; + * * @return A list containing the optimizedIntermediateWaypointIndex. */ java.util.List getOptimizedIntermediateWaypointIndexList(); /** + * + * *
    * If you set
    * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
@@ -390,10 +490,13 @@ com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
    * 
* * repeated int32 optimized_intermediate_waypoint_index = 10; + * * @return The count of optimizedIntermediateWaypointIndex. */ int getOptimizedIntermediateWaypointIndexCount(); /** + * + * *
    * If you set
    * [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
@@ -407,30 +510,39 @@ com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
    * 
* * repeated int32 optimized_intermediate_waypoint_index = 10; + * * @param index The index of the element to return. * @return The optimizedIntermediateWaypointIndex at the given index. */ int getOptimizedIntermediateWaypointIndex(int index); /** + * + * *
    * Text representations of properties of the `Route`.
    * 
* * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + * * @return Whether the localizedValues field is set. */ boolean hasLocalizedValues(); /** + * + * *
    * Text representations of properties of the `Route`.
    * 
* * .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; + * * @return The localizedValues. */ com.google.maps.routing.v2.Route.RouteLocalizedValues getLocalizedValues(); /** + * + * *
    * Text representations of properties of the `Route`.
    * 
@@ -440,6 +552,8 @@ com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder( com.google.maps.routing.v2.Route.RouteLocalizedValuesOrBuilder getLocalizedValuesOrBuilder(); /** + * + * *
    * A web-safe, base64-encoded route token that can be passed to the Navigation
    * SDK, that allows the Navigation SDK to reconstruct the route during
@@ -453,10 +567,13 @@ com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
    * 
* * string route_token = 12; + * * @return The routeToken. */ java.lang.String getRouteToken(); /** + * + * *
    * A web-safe, base64-encoded route token that can be passed to the Navigation
    * SDK, that allows the Navigation SDK to reconstruct the route during
@@ -470,8 +587,8 @@ com.google.maps.routing.v2.RouteLegOrBuilder getLegsOrBuilder(
    * 
* * string route_token = 12; + * * @return The bytes for routeToken. */ - com.google.protobuf.ByteString - getRouteTokenBytes(); + com.google.protobuf.ByteString getRouteTokenBytes(); } diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java new file mode 100644 index 000000000000..7c3cb924dfce --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java @@ -0,0 +1,418 @@ +/* + * 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/maps/routing/v2/route.proto + +package com.google.maps.routing.v2; + +public final class RouteProto { + private RouteProto() {} + + 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_maps_routing_v2_Route_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_Route_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLeg_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLegStep_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLegStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_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/maps/routing/v2/route.proto\022\026go" + + "ogle.maps.routing.v2\032\036google/geo/type/vi" + + "ewport.proto\032+google/maps/routing/v2/loc" + + "alized_time.proto\032%google/maps/routing/v" + + "2/location.proto\0323google/maps/routing/v2" + + "/navigation_instruction.proto\032%google/ma" + + "ps/routing/v2/polyline.proto\032(google/map" + + "s/routing/v2/route_label.proto\032.google/m" + + "aps/routing/v2/route_travel_mode.proto\0323" + + "google/maps/routing/v2/speed_reading_int" + + "erval.proto\032&google/maps/routing/v2/toll" + + "_info.proto\032$google/maps/routing/v2/tran" + + "sit.proto\032\036google/protobuf/duration.prot" + + "o\032\037google/protobuf/timestamp.proto\032 goog" + + "le/type/localized_text.proto\032\027google/typ" + + "e/money.proto\"\247\006\n\005Route\0228\n\014route_labels\030" + + "\r \003(\0162\".google.maps.routing.v2.RouteLabe" + + "l\022.\n\004legs\030\001 \003(\0132 .google.maps.routing.v2" + + ".RouteLeg\022\027\n\017distance_meters\030\002 \001(\005\022+\n\010du" + + "ration\030\003 \001(\0132\031.google.protobuf.Duration\022" + + "2\n\017static_duration\030\004 \001(\0132\031.google.protob" + + "uf.Duration\0222\n\010polyline\030\005 \001(\0132 .google.m" + + "aps.routing.v2.Polyline\022\023\n\013description\030\006" + + " \001(\t\022\020\n\010warnings\030\007 \003(\t\022+\n\010viewport\030\010 \001(\013" + + "2\031.google.geo.type.Viewport\022D\n\017travel_ad" + + "visory\030\t \001(\0132+.google.maps.routing.v2.Ro" + + "uteTravelAdvisory\022-\n%optimized_intermedi" + + "ate_waypoint_index\030\n \003(\005\022L\n\020localized_va" + + "lues\030\013 \001(\01322.google.maps.routing.v2.Rout" + + "e.RouteLocalizedValues\022\023\n\013route_token\030\014 " + + "\001(\t\032\331\001\n\024RouteLocalizedValues\022,\n\010distance" + + "\030\001 \001(\0132\032.google.type.LocalizedText\022,\n\010du" + + "ration\030\002 \001(\0132\032.google.type.LocalizedText" + + "\0223\n\017static_duration\030\003 \001(\0132\032.google.type." + + "LocalizedText\0220\n\014transit_fare\030\004 \001(\0132\032.go" + + "ogle.type.LocalizedText\"\227\002\n\023RouteTravelA" + + "dvisory\0223\n\ttoll_info\030\002 \001(\0132 .google.maps" + + ".routing.v2.TollInfo\022M\n\027speed_reading_in" + + "tervals\030\003 \003(\0132,.google.maps.routing.v2.S" + + "peedReadingInterval\022$\n\034fuel_consumption_" + + "microliters\030\005 \001(\003\022,\n$route_restrictions_" + + "partially_ignored\030\006 \001(\010\022(\n\014transit_fare\030" + + "\007 \001(\0132\022.google.type.Money\"\234\001\n\026RouteLegTr" + + "avelAdvisory\0223\n\ttoll_info\030\001 \001(\0132 .google" + + ".maps.routing.v2.TollInfo\022M\n\027speed_readi" + + "ng_intervals\030\002 \003(\0132,.google.maps.routing" + + ".v2.SpeedReadingInterval\"k\n\032RouteLegStep" + + "TravelAdvisory\022M\n\027speed_reading_interval" + + "s\030\001 \003(\0132,.google.maps.routing.v2.SpeedRe" + + "adingInterval\"\352\010\n\010RouteLeg\022\027\n\017distance_m" + + "eters\030\001 \001(\005\022+\n\010duration\030\002 \001(\0132\031.google.p" + + "rotobuf.Duration\0222\n\017static_duration\030\003 \001(" + + "\0132\031.google.protobuf.Duration\0222\n\010polyline" + + "\030\004 \001(\0132 .google.maps.routing.v2.Polyline" + + "\0228\n\016start_location\030\005 \001(\0132 .google.maps.r" + + "outing.v2.Location\0226\n\014end_location\030\006 \001(\013" + + "2 .google.maps.routing.v2.Location\0223\n\005st" + + "eps\030\007 \003(\0132$.google.maps.routing.v2.Route" + + "LegStep\022G\n\017travel_advisory\030\010 \001(\0132..googl" + + "e.maps.routing.v2.RouteLegTravelAdvisory" + + "\022R\n\020localized_values\030\t \001(\01328.google.maps" + + ".routing.v2.RouteLeg.RouteLegLocalizedVa" + + "lues\022F\n\016steps_overview\030\n \001(\0132..google.ma" + + "ps.routing.v2.RouteLeg.StepsOverview\032\252\001\n" + + "\027RouteLegLocalizedValues\022,\n\010distance\030\001 \001" + + "(\0132\032.google.type.LocalizedText\022,\n\010durati" + + "on\030\002 \001(\0132\032.google.type.LocalizedText\0223\n\017" + + "static_duration\030\003 \001(\0132\032.google.type.Loca" + + "lizedText\032\366\002\n\rStepsOverview\022^\n\024multi_mod" + + "al_segments\030\001 \003(\0132@.google.maps.routing." + + "v2.RouteLeg.StepsOverview.MultiModalSegm" + + "ent\032\204\002\n\021MultiModalSegment\022\035\n\020step_start_" + + "index\030\001 \001(\005H\000\210\001\001\022\033\n\016step_end_index\030\002 \001(\005" + + "H\001\210\001\001\022M\n\026navigation_instruction\030\003 \001(\0132-." + + "google.maps.routing.v2.NavigationInstruc" + + "tion\022<\n\013travel_mode\030\004 \001(\0162\'.google.maps." + + "routing.v2.RouteTravelModeB\023\n\021_step_star" + + "t_indexB\021\n\017_step_end_index\"\207\006\n\014RouteLegS" + + "tep\022\027\n\017distance_meters\030\001 \001(\005\0222\n\017static_d" + + "uration\030\002 \001(\0132\031.google.protobuf.Duration" + + "\0222\n\010polyline\030\003 \001(\0132 .google.maps.routing" + + ".v2.Polyline\0228\n\016start_location\030\004 \001(\0132 .g" + + "oogle.maps.routing.v2.Location\0226\n\014end_lo" + + "cation\030\005 \001(\0132 .google.maps.routing.v2.Lo" + + "cation\022M\n\026navigation_instruction\030\006 \001(\0132-" + + ".google.maps.routing.v2.NavigationInstru" + + "ction\022K\n\017travel_advisory\030\007 \001(\01322.google." + + "maps.routing.v2.RouteLegStepTravelAdviso" + + "ry\022Z\n\020localized_values\030\010 \001(\0132@.google.ma" + + "ps.routing.v2.RouteLegStep.RouteLegStepL" + + "ocalizedValues\022K\n\017transit_details\030\t \001(\0132" + + "2.google.maps.routing.v2.RouteLegStepTra" + + "nsitDetails\022<\n\013travel_mode\030\n \001(\0162\'.googl" + + "e.maps.routing.v2.RouteTravelMode\032\200\001\n\033Ro" + + "uteLegStepLocalizedValues\022,\n\010distance\030\001 " + + "\001(\0132\032.google.type.LocalizedText\0223\n\017stati" + + "c_duration\030\003 \001(\0132\032.google.type.Localized" + + "Text\"\236\006\n\032RouteLegStepTransitDetails\022[\n\014s" + + "top_details\030\001 \001(\0132E.google.maps.routing." + + "v2.RouteLegStepTransitDetails.TransitSto" + + "pDetails\022j\n\020localized_values\030\002 \001(\0132P.goo" + + "gle.maps.routing.v2.RouteLegStepTransitD" + + "etails.TransitDetailsLocalizedValues\022\020\n\010" + + "headsign\030\003 \001(\t\022*\n\007headway\030\004 \001(\0132\031.google" + + ".protobuf.Duration\0229\n\014transit_line\030\005 \001(\013" + + "2#.google.maps.routing.v2.TransitLine\022\022\n" + + "\nstop_count\030\006 \001(\005\022\027\n\017trip_short_text\030\007 \001" + + "(\t\032\362\001\n\022TransitStopDetails\0229\n\014arrival_sto" + + "p\030\001 \001(\0132#.google.maps.routing.v2.Transit" + + "Stop\0220\n\014arrival_time\030\002 \001(\0132\032.google.prot" + + "obuf.Timestamp\022;\n\016departure_stop\030\003 \001(\0132#" + + ".google.maps.routing.v2.TransitStop\0222\n\016d" + + "eparture_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestamp\032\233\001\n\035TransitDetailsLocalizedValue" + + "s\022;\n\014arrival_time\030\001 \001(\0132%.google.maps.ro" + + "uting.v2.LocalizedTime\022=\n\016departure_time" + + "\030\002 \001(\0132%.google.maps.routing.v2.Localize" + + "dTimeB\277\001\n\032com.google.maps.routing.v2B\nRo" + + "uteProtoP\001Z:cloud.google.com/go/maps/rou" + + "ting/apiv2/routingpb;routingpb\370\001\001\242\002\005GMRV" + + "2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Maps" + + "\\Routing\\V2\352\002\031Google::Maps::Routing::V2b" + + "\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.geo.type.ViewportProto.getDescriptor(), + com.google.maps.routing.v2.LocalizedTimeProto.getDescriptor(), + com.google.maps.routing.v2.LocationProto.getDescriptor(), + com.google.maps.routing.v2.NavigationInstructionProto.getDescriptor(), + com.google.maps.routing.v2.PolylineProto.getDescriptor(), + com.google.maps.routing.v2.RouteLabelProto.getDescriptor(), + com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(), + com.google.maps.routing.v2.SpeedReadingIntervalProto.getDescriptor(), + com.google.maps.routing.v2.TollInfoProto.getDescriptor(), + com.google.maps.routing.v2.TransitProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.LocalizedTextProto.getDescriptor(), + com.google.type.MoneyProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_Route_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_Route_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_Route_descriptor, + new java.lang.String[] { + "RouteLabels", + "Legs", + "DistanceMeters", + "Duration", + "StaticDuration", + "Polyline", + "Description", + "Warnings", + "Viewport", + "TravelAdvisory", + "OptimizedIntermediateWaypointIndex", + "LocalizedValues", + "RouteToken", + }); + internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor = + internal_static_google_maps_routing_v2_Route_descriptor.getNestedTypes().get(0); + internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor, + new java.lang.String[] { + "Distance", "Duration", "StaticDuration", "TransitFare", + }); + internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor, + new java.lang.String[] { + "TollInfo", + "SpeedReadingIntervals", + "FuelConsumptionMicroliters", + "RouteRestrictionsPartiallyIgnored", + "TransitFare", + }); + internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor, + new java.lang.String[] { + "TollInfo", "SpeedReadingIntervals", + }); + internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor, + new java.lang.String[] { + "SpeedReadingIntervals", + }); + internal_static_google_maps_routing_v2_RouteLeg_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLeg_descriptor, + new java.lang.String[] { + "DistanceMeters", + "Duration", + "StaticDuration", + "Polyline", + "StartLocation", + "EndLocation", + "Steps", + "TravelAdvisory", + "LocalizedValues", + "StepsOverview", + }); + internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor = + internal_static_google_maps_routing_v2_RouteLeg_descriptor.getNestedTypes().get(0); + internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor, + new java.lang.String[] { + "Distance", "Duration", "StaticDuration", + }); + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor = + internal_static_google_maps_routing_v2_RouteLeg_descriptor.getNestedTypes().get(1); + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor, + new java.lang.String[] { + "MultiModalSegments", + }); + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor = + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor + .getNestedTypes() + .get(0); + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor, + new java.lang.String[] { + "StepStartIndex", + "StepEndIndex", + "NavigationInstruction", + "TravelMode", + "StepStartIndex", + "StepEndIndex", + }); + internal_static_google_maps_routing_v2_RouteLegStep_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_maps_routing_v2_RouteLegStep_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLegStep_descriptor, + new java.lang.String[] { + "DistanceMeters", + "StaticDuration", + "Polyline", + "StartLocation", + "EndLocation", + "NavigationInstruction", + "TravelAdvisory", + "LocalizedValues", + "TransitDetails", + "TravelMode", + }); + internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor = + internal_static_google_maps_routing_v2_RouteLegStep_descriptor.getNestedTypes().get(0); + internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor, + new java.lang.String[] { + "Distance", "StaticDuration", + }); + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor, + new java.lang.String[] { + "StopDetails", + "LocalizedValues", + "Headsign", + "Headway", + "TransitLine", + "StopCount", + "TripShortText", + }); + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor = + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor + .getNestedTypes() + .get(0); + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor, + new java.lang.String[] { + "ArrivalStop", "ArrivalTime", "DepartureStop", "DepartureTime", + }); + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor = + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor + .getNestedTypes() + .get(1); + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor, + new java.lang.String[] { + "ArrivalTime", "DepartureTime", + }); + com.google.geo.type.ViewportProto.getDescriptor(); + com.google.maps.routing.v2.LocalizedTimeProto.getDescriptor(); + com.google.maps.routing.v2.LocationProto.getDescriptor(); + com.google.maps.routing.v2.NavigationInstructionProto.getDescriptor(); + com.google.maps.routing.v2.PolylineProto.getDescriptor(); + com.google.maps.routing.v2.RouteLabelProto.getDescriptor(); + com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(); + com.google.maps.routing.v2.SpeedReadingIntervalProto.getDescriptor(); + com.google.maps.routing.v2.TollInfoProto.getDescriptor(); + com.google.maps.routing.v2.TransitProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.LocalizedTextProto.getDescriptor(); + com.google.type.MoneyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisory.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisory.java similarity index 79% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisory.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisory.java index c225e49681f2..9c42d39879c8 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisory.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisory.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/maps/routing/v2/route.proto package com.google.maps.routing.v2; /** + * + * *
  * Contains the additional information that the user should be informed
  * about, such as possible traffic zone restrictions.
@@ -11,42 +28,46 @@
  *
  * Protobuf type {@code google.maps.routing.v2.RouteTravelAdvisory}
  */
-public final class RouteTravelAdvisory extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RouteTravelAdvisory extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.RouteTravelAdvisory)
     RouteTravelAdvisoryOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RouteTravelAdvisory.newBuilder() to construct.
   private RouteTravelAdvisory(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RouteTravelAdvisory() {
     speedReadingIntervals_ = 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 RouteTravelAdvisory();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.maps.routing.v2.RouteProto
+        .internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable
+    return com.google.maps.routing.v2.RouteProto
+        .internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.RouteTravelAdvisory.class, com.google.maps.routing.v2.RouteTravelAdvisory.Builder.class);
+            com.google.maps.routing.v2.RouteTravelAdvisory.class,
+            com.google.maps.routing.v2.RouteTravelAdvisory.Builder.class);
   }
 
   public static final int TOLL_INFO_FIELD_NUMBER = 2;
   private com.google.maps.routing.v2.TollInfo tollInfo_;
   /**
+   *
+   *
    * 
    * Contains information about tolls on the route. This field is only populated
    * if tolls are expected on the route. If this field is set, but the
@@ -56,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; + * * @return Whether the tollInfo field is set. */ @java.lang.Override @@ -63,6 +85,8 @@ public boolean hasTollInfo() { return tollInfo_ != null; } /** + * + * *
    * Contains information about tolls on the route. This field is only populated
    * if tolls are expected on the route. If this field is set, but the
@@ -72,6 +96,7 @@ public boolean hasTollInfo() {
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; + * * @return The tollInfo. */ @java.lang.Override @@ -79,6 +104,8 @@ public com.google.maps.routing.v2.TollInfo getTollInfo() { return tollInfo_ == null ? com.google.maps.routing.v2.TollInfo.getDefaultInstance() : tollInfo_; } /** + * + * *
    * Contains information about tolls on the route. This field is only populated
    * if tolls are expected on the route. If this field is set, but the
@@ -95,9 +122,12 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() {
   }
 
   public static final int SPEED_READING_INTERVALS_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private java.util.List speedReadingIntervals_;
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -114,10 +144,13 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() {
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;
    */
   @java.lang.Override
-  public java.util.List getSpeedReadingIntervalsList() {
+  public java.util.List
+      getSpeedReadingIntervalsList() {
     return speedReadingIntervals_;
   }
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -134,11 +167,13 @@ public java.util.List getSpeedR
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getSpeedReadingIntervalsOrBuilderList() {
     return speedReadingIntervals_;
   }
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -159,6 +194,8 @@ public int getSpeedReadingIntervalsCount() {
     return speedReadingIntervals_.size();
   }
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -179,6 +216,8 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(
     return speedReadingIntervals_.get(index);
   }
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -203,11 +242,14 @@ public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingI
   public static final int FUEL_CONSUMPTION_MICROLITERS_FIELD_NUMBER = 5;
   private long fuelConsumptionMicroliters_ = 0L;
   /**
+   *
+   *
    * 
    * The predicted fuel consumption in microliters.
    * 
* * int64 fuel_consumption_microliters = 5; + * * @return The fuelConsumptionMicroliters. */ @java.lang.Override @@ -218,12 +260,15 @@ public long getFuelConsumptionMicroliters() { public static final int ROUTE_RESTRICTIONS_PARTIALLY_IGNORED_FIELD_NUMBER = 6; private boolean routeRestrictionsPartiallyIgnored_ = false; /** + * + * *
    * Returned route may have restrictions that are not suitable for requested
    * travel mode or route modifiers.
    * 
* * bool route_restrictions_partially_ignored = 6; + * * @return The routeRestrictionsPartiallyIgnored. */ @java.lang.Override @@ -234,6 +279,8 @@ public boolean getRouteRestrictionsPartiallyIgnored() { public static final int TRANSIT_FARE_FIELD_NUMBER = 7; private com.google.type.Money transitFare_; /** + * + * *
    * If present, contains the total fare or ticket costs on this route
    * This property is only returned for `TRANSIT` requests and only
@@ -241,6 +288,7 @@ public boolean getRouteRestrictionsPartiallyIgnored() {
    * 
* * .google.type.Money transit_fare = 7; + * * @return Whether the transitFare field is set. */ @java.lang.Override @@ -248,6 +296,8 @@ public boolean hasTransitFare() { return transitFare_ != null; } /** + * + * *
    * If present, contains the total fare or ticket costs on this route
    * This property is only returned for `TRANSIT` requests and only
@@ -255,6 +305,7 @@ public boolean hasTransitFare() {
    * 
* * .google.type.Money transit_fare = 7; + * * @return The transitFare. */ @java.lang.Override @@ -262,6 +313,8 @@ public com.google.type.Money getTransitFare() { return transitFare_ == null ? com.google.type.Money.getDefaultInstance() : transitFare_; } /** + * + * *
    * If present, contains the total fare or ticket costs on this route
    * This property is only returned for `TRANSIT` requests and only
@@ -276,6 +329,7 @@ public com.google.type.MoneyOrBuilder getTransitFareOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -287,8 +341,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 (tollInfo_ != null) {
       output.writeMessage(2, getTollInfo());
     }
@@ -314,24 +367,24 @@ public int getSerializedSize() {
 
     size = 0;
     if (tollInfo_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getTollInfo());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTollInfo());
     }
     for (int i = 0; i < speedReadingIntervals_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, speedReadingIntervals_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3, speedReadingIntervals_.get(i));
     }
     if (fuelConsumptionMicroliters_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(5, fuelConsumptionMicroliters_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeInt64Size(5, fuelConsumptionMicroliters_);
     }
     if (routeRestrictionsPartiallyIgnored_ != false) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBoolSize(6, routeRestrictionsPartiallyIgnored_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeBoolSize(
+              6, routeRestrictionsPartiallyIgnored_);
     }
     if (transitFare_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getTransitFare());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTransitFare());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -341,28 +394,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.maps.routing.v2.RouteTravelAdvisory)) {
       return super.equals(obj);
     }
-    com.google.maps.routing.v2.RouteTravelAdvisory other = (com.google.maps.routing.v2.RouteTravelAdvisory) obj;
+    com.google.maps.routing.v2.RouteTravelAdvisory other =
+        (com.google.maps.routing.v2.RouteTravelAdvisory) obj;
 
     if (hasTollInfo() != other.hasTollInfo()) return false;
     if (hasTollInfo()) {
-      if (!getTollInfo()
-          .equals(other.getTollInfo())) return false;
-    }
-    if (!getSpeedReadingIntervalsList()
-        .equals(other.getSpeedReadingIntervalsList())) return false;
-    if (getFuelConsumptionMicroliters()
-        != other.getFuelConsumptionMicroliters()) return false;
-    if (getRouteRestrictionsPartiallyIgnored()
-        != other.getRouteRestrictionsPartiallyIgnored()) return false;
+      if (!getTollInfo().equals(other.getTollInfo())) return false;
+    }
+    if (!getSpeedReadingIntervalsList().equals(other.getSpeedReadingIntervalsList())) return false;
+    if (getFuelConsumptionMicroliters() != other.getFuelConsumptionMicroliters()) return false;
+    if (getRouteRestrictionsPartiallyIgnored() != other.getRouteRestrictionsPartiallyIgnored())
+      return false;
     if (hasTransitFare() != other.hasTransitFare()) return false;
     if (hasTransitFare()) {
-      if (!getTransitFare()
-          .equals(other.getTransitFare())) return false;
+      if (!getTransitFare().equals(other.getTransitFare())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -384,11 +434,11 @@ public int hashCode() {
       hash = (53 * hash) + getSpeedReadingIntervalsList().hashCode();
     }
     hash = (37 * hash) + FUEL_CONSUMPTION_MICROLITERS_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getFuelConsumptionMicroliters());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFuelConsumptionMicroliters());
     hash = (37 * hash) + ROUTE_RESTRICTIONS_PARTIALLY_IGNORED_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-        getRouteRestrictionsPartiallyIgnored());
+    hash =
+        (53 * hash)
+            + com.google.protobuf.Internal.hashBoolean(getRouteRestrictionsPartiallyIgnored());
     if (hasTransitFare()) {
       hash = (37 * hash) + TRANSIT_FARE_FIELD_NUMBER;
       hash = (53 * hash) + getTransitFare().hashCode();
@@ -398,99 +448,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.maps.routing.v2.RouteTravelAdvisory parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.maps.routing.v2.RouteTravelAdvisory parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.maps.routing.v2.RouteTravelAdvisory parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory 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;
   }
   /**
+   *
+   *
    * 
    * Contains the additional information that the user should be informed
    * about, such as possible traffic zone restrictions.
@@ -498,33 +553,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.maps.routing.v2.RouteTravelAdvisory}
    */
-  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.maps.routing.v2.RouteTravelAdvisory)
       com.google.maps.routing.v2.RouteTravelAdvisoryOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.maps.routing.v2.RouteProto
+          .internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable
+      return com.google.maps.routing.v2.RouteProto
+          .internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.RouteTravelAdvisory.class, com.google.maps.routing.v2.RouteTravelAdvisory.Builder.class);
+              com.google.maps.routing.v2.RouteTravelAdvisory.class,
+              com.google.maps.routing.v2.RouteTravelAdvisory.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.RouteTravelAdvisory.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 +606,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.maps.routing.v2.RouteProto.internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.maps.routing.v2.RouteProto
+          .internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor;
     }
 
     @java.lang.Override
@@ -573,9 +627,12 @@ public com.google.maps.routing.v2.RouteTravelAdvisory build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.RouteTravelAdvisory buildPartial() {
-      com.google.maps.routing.v2.RouteTravelAdvisory result = new com.google.maps.routing.v2.RouteTravelAdvisory(this);
+      com.google.maps.routing.v2.RouteTravelAdvisory result =
+          new com.google.maps.routing.v2.RouteTravelAdvisory(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -595,9 +652,7 @@ private void buildPartialRepeatedFields(com.google.maps.routing.v2.RouteTravelAd
     private void buildPartial0(com.google.maps.routing.v2.RouteTravelAdvisory result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.tollInfo_ = tollInfoBuilder_ == null
-            ? tollInfo_
-            : tollInfoBuilder_.build();
+        result.tollInfo_ = tollInfoBuilder_ == null ? tollInfo_ : tollInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.fuelConsumptionMicroliters_ = fuelConsumptionMicroliters_;
@@ -606,9 +661,8 @@ private void buildPartial0(com.google.maps.routing.v2.RouteTravelAdvisory result
         result.routeRestrictionsPartiallyIgnored_ = routeRestrictionsPartiallyIgnored_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.transitFare_ = transitFareBuilder_ == null
-            ? transitFare_
-            : transitFareBuilder_.build();
+        result.transitFare_ =
+            transitFareBuilder_ == null ? transitFare_ : transitFareBuilder_.build();
       }
     }
 
@@ -616,38 +670,39 @@ private void buildPartial0(com.google.maps.routing.v2.RouteTravelAdvisory 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.maps.routing.v2.RouteTravelAdvisory) {
-        return mergeFrom((com.google.maps.routing.v2.RouteTravelAdvisory)other);
+        return mergeFrom((com.google.maps.routing.v2.RouteTravelAdvisory) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -677,9 +732,10 @@ public Builder mergeFrom(com.google.maps.routing.v2.RouteTravelAdvisory other) {
             speedReadingIntervalsBuilder_ = null;
             speedReadingIntervals_ = other.speedReadingIntervals_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            speedReadingIntervalsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSpeedReadingIntervalsFieldBuilder() : null;
+            speedReadingIntervalsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSpeedReadingIntervalsFieldBuilder()
+                    : null;
           } else {
             speedReadingIntervalsBuilder_.addAllMessages(other.speedReadingIntervals_);
           }
@@ -720,49 +776,51 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              input.readMessage(
-                  getTollInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 18
-            case 26: {
-              com.google.maps.routing.v2.SpeedReadingInterval m =
-                  input.readMessage(
-                      com.google.maps.routing.v2.SpeedReadingInterval.parser(),
-                      extensionRegistry);
-              if (speedReadingIntervalsBuilder_ == null) {
-                ensureSpeedReadingIntervalsIsMutable();
-                speedReadingIntervals_.add(m);
-              } else {
-                speedReadingIntervalsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            case 40: {
-              fuelConsumptionMicroliters_ = input.readInt64();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 40
-            case 48: {
-              routeRestrictionsPartiallyIgnored_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 48
-            case 58: {
-              input.readMessage(
-                  getTransitFareFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 58
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                input.readMessage(getTollInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.maps.routing.v2.SpeedReadingInterval m =
+                    input.readMessage(
+                        com.google.maps.routing.v2.SpeedReadingInterval.parser(),
+                        extensionRegistry);
+                if (speedReadingIntervalsBuilder_ == null) {
+                  ensureSpeedReadingIntervalsIsMutable();
+                  speedReadingIntervals_.add(m);
+                } else {
+                  speedReadingIntervalsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            case 40:
+              {
+                fuelConsumptionMicroliters_ = input.readInt64();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 40
+            case 48:
+              {
+                routeRestrictionsPartiallyIgnored_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 48
+            case 58:
+              {
+                input.readMessage(getTransitFareFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 58
+            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) {
@@ -772,12 +830,18 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.maps.routing.v2.TollInfo tollInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.TollInfo, com.google.maps.routing.v2.TollInfo.Builder, com.google.maps.routing.v2.TollInfoOrBuilder> tollInfoBuilder_;
+            com.google.maps.routing.v2.TollInfo,
+            com.google.maps.routing.v2.TollInfo.Builder,
+            com.google.maps.routing.v2.TollInfoOrBuilder>
+        tollInfoBuilder_;
     /**
+     *
+     *
      * 
      * Contains information about tolls on the route. This field is only populated
      * if tolls are expected on the route. If this field is set, but the
@@ -787,12 +851,15 @@ public Builder mergeFrom(
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; + * * @return Whether the tollInfo field is set. */ public boolean hasTollInfo() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Contains information about tolls on the route. This field is only populated
      * if tolls are expected on the route. If this field is set, but the
@@ -802,16 +869,21 @@ public boolean hasTollInfo() {
      * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; + * * @return The tollInfo. */ public com.google.maps.routing.v2.TollInfo getTollInfo() { if (tollInfoBuilder_ == null) { - return tollInfo_ == null ? com.google.maps.routing.v2.TollInfo.getDefaultInstance() : tollInfo_; + return tollInfo_ == null + ? com.google.maps.routing.v2.TollInfo.getDefaultInstance() + : tollInfo_; } else { return tollInfoBuilder_.getMessage(); } } /** + * + * *
      * Contains information about tolls on the route. This field is only populated
      * if tolls are expected on the route. If this field is set, but the
@@ -836,6 +908,8 @@ public Builder setTollInfo(com.google.maps.routing.v2.TollInfo value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains information about tolls on the route. This field is only populated
      * if tolls are expected on the route. If this field is set, but the
@@ -846,8 +920,7 @@ public Builder setTollInfo(com.google.maps.routing.v2.TollInfo value) {
      *
      * .google.maps.routing.v2.TollInfo toll_info = 2;
      */
-    public Builder setTollInfo(
-        com.google.maps.routing.v2.TollInfo.Builder builderForValue) {
+    public Builder setTollInfo(com.google.maps.routing.v2.TollInfo.Builder builderForValue) {
       if (tollInfoBuilder_ == null) {
         tollInfo_ = builderForValue.build();
       } else {
@@ -858,6 +931,8 @@ public Builder setTollInfo(
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains information about tolls on the route. This field is only populated
      * if tolls are expected on the route. If this field is set, but the
@@ -870,9 +945,9 @@ public Builder setTollInfo(
      */
     public Builder mergeTollInfo(com.google.maps.routing.v2.TollInfo value) {
       if (tollInfoBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          tollInfo_ != null &&
-          tollInfo_ != com.google.maps.routing.v2.TollInfo.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && tollInfo_ != null
+            && tollInfo_ != com.google.maps.routing.v2.TollInfo.getDefaultInstance()) {
           getTollInfoBuilder().mergeFrom(value);
         } else {
           tollInfo_ = value;
@@ -885,6 +960,8 @@ public Builder mergeTollInfo(com.google.maps.routing.v2.TollInfo value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains information about tolls on the route. This field is only populated
      * if tolls are expected on the route. If this field is set, but the
@@ -906,6 +983,8 @@ public Builder clearTollInfo() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Contains information about tolls on the route. This field is only populated
      * if tolls are expected on the route. If this field is set, but the
@@ -922,6 +1001,8 @@ public com.google.maps.routing.v2.TollInfo.Builder getTollInfoBuilder() {
       return getTollInfoFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Contains information about tolls on the route. This field is only populated
      * if tolls are expected on the route. If this field is set, but the
@@ -936,11 +1017,14 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() {
       if (tollInfoBuilder_ != null) {
         return tollInfoBuilder_.getMessageOrBuilder();
       } else {
-        return tollInfo_ == null ?
-            com.google.maps.routing.v2.TollInfo.getDefaultInstance() : tollInfo_;
+        return tollInfo_ == null
+            ? com.google.maps.routing.v2.TollInfo.getDefaultInstance()
+            : tollInfo_;
       }
     }
     /**
+     *
+     *
      * 
      * Contains information about tolls on the route. This field is only populated
      * if tolls are expected on the route. If this field is set, but the
@@ -952,32 +1036,43 @@ public com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder() {
      * .google.maps.routing.v2.TollInfo toll_info = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.TollInfo, com.google.maps.routing.v2.TollInfo.Builder, com.google.maps.routing.v2.TollInfoOrBuilder> 
+            com.google.maps.routing.v2.TollInfo,
+            com.google.maps.routing.v2.TollInfo.Builder,
+            com.google.maps.routing.v2.TollInfoOrBuilder>
         getTollInfoFieldBuilder() {
       if (tollInfoBuilder_ == null) {
-        tollInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.TollInfo, com.google.maps.routing.v2.TollInfo.Builder, com.google.maps.routing.v2.TollInfoOrBuilder>(
-                getTollInfo(),
-                getParentForChildren(),
-                isClean());
+        tollInfoBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.maps.routing.v2.TollInfo,
+                com.google.maps.routing.v2.TollInfo.Builder,
+                com.google.maps.routing.v2.TollInfoOrBuilder>(
+                getTollInfo(), getParentForChildren(), isClean());
         tollInfo_ = null;
       }
       return tollInfoBuilder_;
     }
 
     private java.util.List speedReadingIntervals_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSpeedReadingIntervalsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        speedReadingIntervals_ = new java.util.ArrayList(speedReadingIntervals_);
+        speedReadingIntervals_ =
+            new java.util.ArrayList(
+                speedReadingIntervals_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> speedReadingIntervalsBuilder_;
+            com.google.maps.routing.v2.SpeedReadingInterval,
+            com.google.maps.routing.v2.SpeedReadingInterval.Builder,
+            com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder>
+        speedReadingIntervalsBuilder_;
 
     /**
+     *
+     *
      * 
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -991,9 +1086,11 @@ private void ensureSpeedReadingIntervalsIsMutable() {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ - public java.util.List getSpeedReadingIntervalsList() { + public java.util.List + getSpeedReadingIntervalsList() { if (speedReadingIntervalsBuilder_ == null) { return java.util.Collections.unmodifiableList(speedReadingIntervals_); } else { @@ -1001,6 +1098,8 @@ public java.util.List getSpeedR } } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1014,7 +1113,8 @@ public java.util.List getSpeedR
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ public int getSpeedReadingIntervalsCount() { if (speedReadingIntervalsBuilder_ == null) { @@ -1024,6 +1124,8 @@ public int getSpeedReadingIntervalsCount() { } } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1037,7 +1139,8 @@ public int getSpeedReadingIntervalsCount() {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(int index) { if (speedReadingIntervalsBuilder_ == null) { @@ -1047,6 +1150,8 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals( } } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1060,7 +1165,8 @@ public com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ public Builder setSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval value) { @@ -1077,6 +1183,8 @@ public Builder setSpeedReadingIntervals( return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1090,7 +1198,8 @@ public Builder setSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ public Builder setSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -1104,6 +1213,8 @@ public Builder setSpeedReadingIntervals( return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1117,7 +1228,8 @@ public Builder setSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingInterval value) { if (speedReadingIntervalsBuilder_ == null) { @@ -1133,6 +1245,8 @@ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingI return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1146,7 +1260,8 @@ public Builder addSpeedReadingIntervals(com.google.maps.routing.v2.SpeedReadingI
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ public Builder addSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval value) { @@ -1163,6 +1278,8 @@ public Builder addSpeedReadingIntervals( return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1176,7 +1293,8 @@ public Builder addSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ public Builder addSpeedReadingIntervals( com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -1190,6 +1308,8 @@ public Builder addSpeedReadingIntervals( return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1203,7 +1323,8 @@ public Builder addSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ public Builder addSpeedReadingIntervals( int index, com.google.maps.routing.v2.SpeedReadingInterval.Builder builderForValue) { @@ -1217,6 +1338,8 @@ public Builder addSpeedReadingIntervals( return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1230,14 +1353,14 @@ public Builder addSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ public Builder addAllSpeedReadingIntervals( java.lang.Iterable values) { if (speedReadingIntervalsBuilder_ == null) { ensureSpeedReadingIntervalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, speedReadingIntervals_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speedReadingIntervals_); onChanged(); } else { speedReadingIntervalsBuilder_.addAllMessages(values); @@ -1245,6 +1368,8 @@ public Builder addAllSpeedReadingIntervals( return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1258,7 +1383,8 @@ public Builder addAllSpeedReadingIntervals(
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ public Builder clearSpeedReadingIntervals() { if (speedReadingIntervalsBuilder_ == null) { @@ -1271,6 +1397,8 @@ public Builder clearSpeedReadingIntervals() { return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1284,7 +1412,8 @@ public Builder clearSpeedReadingIntervals() {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ public Builder removeSpeedReadingIntervals(int index) { if (speedReadingIntervalsBuilder_ == null) { @@ -1297,6 +1426,8 @@ public Builder removeSpeedReadingIntervals(int index) { return this; } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1310,13 +1441,16 @@ public Builder removeSpeedReadingIntervals(int index) {
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIntervalsBuilder( int index) { return getSpeedReadingIntervalsFieldBuilder().getBuilder(index); } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1330,16 +1464,20 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder getSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ - public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingIntervalsOrBuilder( - int index) { + public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder + getSpeedReadingIntervalsOrBuilder(int index) { if (speedReadingIntervalsBuilder_ == null) { - return speedReadingIntervals_.get(index); } else { + return speedReadingIntervals_.get(index); + } else { return speedReadingIntervalsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1353,10 +1491,11 @@ public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingI
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ - public java.util.List - getSpeedReadingIntervalsOrBuilderList() { + public java.util.List + getSpeedReadingIntervalsOrBuilderList() { if (speedReadingIntervalsBuilder_ != null) { return speedReadingIntervalsBuilder_.getMessageOrBuilderList(); } else { @@ -1364,6 +1503,8 @@ public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingI } } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1377,13 +1518,17 @@ public com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingI
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ - public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIntervalsBuilder() { - return getSpeedReadingIntervalsFieldBuilder().addBuilder( - com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); + public com.google.maps.routing.v2.SpeedReadingInterval.Builder + addSpeedReadingIntervalsBuilder() { + return getSpeedReadingIntervalsFieldBuilder() + .addBuilder(com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1397,14 +1542,17 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIntervalsBuilder( int index) { - return getSpeedReadingIntervalsFieldBuilder().addBuilder( - index, com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); + return getSpeedReadingIntervalsFieldBuilder() + .addBuilder(index, com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()); } /** + * + * *
      * Speed reading intervals detailing traffic density. Applicable in case of
      * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -1418,18 +1566,25 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIn
      *     speed_reading_intervals: [A,C), [C,D), [D,G).
      * 
* - * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3; + * */ - public java.util.List - getSpeedReadingIntervalsBuilderList() { + public java.util.List + getSpeedReadingIntervalsBuilderList() { return getSpeedReadingIntervalsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> + com.google.maps.routing.v2.SpeedReadingInterval, + com.google.maps.routing.v2.SpeedReadingInterval.Builder, + com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder> getSpeedReadingIntervalsFieldBuilder() { if (speedReadingIntervalsBuilder_ == null) { - speedReadingIntervalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.SpeedReadingInterval, com.google.maps.routing.v2.SpeedReadingInterval.Builder, com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder>( + speedReadingIntervalsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.SpeedReadingInterval, + com.google.maps.routing.v2.SpeedReadingInterval.Builder, + com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder>( speedReadingIntervals_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1439,13 +1594,16 @@ public com.google.maps.routing.v2.SpeedReadingInterval.Builder addSpeedReadingIn return speedReadingIntervalsBuilder_; } - private long fuelConsumptionMicroliters_ ; + private long fuelConsumptionMicroliters_; /** + * + * *
      * The predicted fuel consumption in microliters.
      * 
* * int64 fuel_consumption_microliters = 5; + * * @return The fuelConsumptionMicroliters. */ @java.lang.Override @@ -1453,11 +1611,14 @@ public long getFuelConsumptionMicroliters() { return fuelConsumptionMicroliters_; } /** + * + * *
      * The predicted fuel consumption in microliters.
      * 
* * int64 fuel_consumption_microliters = 5; + * * @param value The fuelConsumptionMicroliters to set. * @return This builder for chaining. */ @@ -1469,11 +1630,14 @@ public Builder setFuelConsumptionMicroliters(long value) { return this; } /** + * + * *
      * The predicted fuel consumption in microliters.
      * 
* * int64 fuel_consumption_microliters = 5; + * * @return This builder for chaining. */ public Builder clearFuelConsumptionMicroliters() { @@ -1483,14 +1647,17 @@ public Builder clearFuelConsumptionMicroliters() { return this; } - private boolean routeRestrictionsPartiallyIgnored_ ; + private boolean routeRestrictionsPartiallyIgnored_; /** + * + * *
      * Returned route may have restrictions that are not suitable for requested
      * travel mode or route modifiers.
      * 
* * bool route_restrictions_partially_ignored = 6; + * * @return The routeRestrictionsPartiallyIgnored. */ @java.lang.Override @@ -1498,12 +1665,15 @@ public boolean getRouteRestrictionsPartiallyIgnored() { return routeRestrictionsPartiallyIgnored_; } /** + * + * *
      * Returned route may have restrictions that are not suitable for requested
      * travel mode or route modifiers.
      * 
* * bool route_restrictions_partially_ignored = 6; + * * @param value The routeRestrictionsPartiallyIgnored to set. * @return This builder for chaining. */ @@ -1515,12 +1685,15 @@ public Builder setRouteRestrictionsPartiallyIgnored(boolean value) { return this; } /** + * + * *
      * Returned route may have restrictions that are not suitable for requested
      * travel mode or route modifiers.
      * 
* * bool route_restrictions_partially_ignored = 6; + * * @return This builder for chaining. */ public Builder clearRouteRestrictionsPartiallyIgnored() { @@ -1532,8 +1705,11 @@ public Builder clearRouteRestrictionsPartiallyIgnored() { private com.google.type.Money transitFare_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> transitFareBuilder_; + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + transitFareBuilder_; /** + * + * *
      * If present, contains the total fare or ticket costs on this route
      * This property is only returned for `TRANSIT` requests and only
@@ -1541,12 +1717,15 @@ public Builder clearRouteRestrictionsPartiallyIgnored() {
      * 
* * .google.type.Money transit_fare = 7; + * * @return Whether the transitFare field is set. */ public boolean hasTransitFare() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * If present, contains the total fare or ticket costs on this route
      * This property is only returned for `TRANSIT` requests and only
@@ -1554,6 +1733,7 @@ public boolean hasTransitFare() {
      * 
* * .google.type.Money transit_fare = 7; + * * @return The transitFare. */ public com.google.type.Money getTransitFare() { @@ -1564,6 +1744,8 @@ public com.google.type.Money getTransitFare() { } } /** + * + * *
      * If present, contains the total fare or ticket costs on this route
      * This property is only returned for `TRANSIT` requests and only
@@ -1586,6 +1768,8 @@ public Builder setTransitFare(com.google.type.Money value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contains the total fare or ticket costs on this route
      * This property is only returned for `TRANSIT` requests and only
@@ -1594,8 +1778,7 @@ public Builder setTransitFare(com.google.type.Money value) {
      *
      * .google.type.Money transit_fare = 7;
      */
-    public Builder setTransitFare(
-        com.google.type.Money.Builder builderForValue) {
+    public Builder setTransitFare(com.google.type.Money.Builder builderForValue) {
       if (transitFareBuilder_ == null) {
         transitFare_ = builderForValue.build();
       } else {
@@ -1606,6 +1789,8 @@ public Builder setTransitFare(
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contains the total fare or ticket costs on this route
      * This property is only returned for `TRANSIT` requests and only
@@ -1616,9 +1801,9 @@ public Builder setTransitFare(
      */
     public Builder mergeTransitFare(com.google.type.Money value) {
       if (transitFareBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          transitFare_ != null &&
-          transitFare_ != com.google.type.Money.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && transitFare_ != null
+            && transitFare_ != com.google.type.Money.getDefaultInstance()) {
           getTransitFareBuilder().mergeFrom(value);
         } else {
           transitFare_ = value;
@@ -1631,6 +1816,8 @@ public Builder mergeTransitFare(com.google.type.Money value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contains the total fare or ticket costs on this route
      * This property is only returned for `TRANSIT` requests and only
@@ -1650,6 +1837,8 @@ public Builder clearTransitFare() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, contains the total fare or ticket costs on this route
      * This property is only returned for `TRANSIT` requests and only
@@ -1664,6 +1853,8 @@ public com.google.type.Money.Builder getTransitFareBuilder() {
       return getTransitFareFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If present, contains the total fare or ticket costs on this route
      * This property is only returned for `TRANSIT` requests and only
@@ -1676,11 +1867,12 @@ public com.google.type.MoneyOrBuilder getTransitFareOrBuilder() {
       if (transitFareBuilder_ != null) {
         return transitFareBuilder_.getMessageOrBuilder();
       } else {
-        return transitFare_ == null ?
-            com.google.type.Money.getDefaultInstance() : transitFare_;
+        return transitFare_ == null ? com.google.type.Money.getDefaultInstance() : transitFare_;
       }
     }
     /**
+     *
+     *
      * 
      * If present, contains the total fare or ticket costs on this route
      * This property is only returned for `TRANSIT` requests and only
@@ -1690,21 +1882,22 @@ public com.google.type.MoneyOrBuilder getTransitFareOrBuilder() {
      * .google.type.Money transit_fare = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> 
+            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
         getTransitFareFieldBuilder() {
       if (transitFareBuilder_ == null) {
-        transitFareBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>(
-                getTransitFare(),
-                getParentForChildren(),
-                isClean());
+        transitFareBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.type.Money,
+                com.google.type.Money.Builder,
+                com.google.type.MoneyOrBuilder>(
+                getTransitFare(), getParentForChildren(), isClean());
         transitFare_ = null;
       }
       return transitFareBuilder_;
     }
+
     @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);
     }
 
@@ -1714,12 +1907,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.RouteTravelAdvisory)
   }
 
   // @@protoc_insertion_point(class_scope:google.maps.routing.v2.RouteTravelAdvisory)
   private static final com.google.maps.routing.v2.RouteTravelAdvisory DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.maps.routing.v2.RouteTravelAdvisory();
   }
@@ -1728,27 +1921,27 @@ public static com.google.maps.routing.v2.RouteTravelAdvisory getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public RouteTravelAdvisory 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 RouteTravelAdvisory 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;
@@ -1763,6 +1956,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.maps.routing.v2.RouteTravelAdvisory getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisoryOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisoryOrBuilder.java
similarity index 89%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisoryOrBuilder.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisoryOrBuilder.java
index db712703a0ad..70154f741cb6 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisoryOrBuilder.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelAdvisoryOrBuilder.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/maps/routing/v2/route.proto
 
 package com.google.maps.routing.v2;
 
-public interface RouteTravelAdvisoryOrBuilder extends
+public interface RouteTravelAdvisoryOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.RouteTravelAdvisory)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Contains information about tolls on the route. This field is only populated
    * if tolls are expected on the route. If this field is set, but the
@@ -17,10 +35,13 @@ public interface RouteTravelAdvisoryOrBuilder extends
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; + * * @return Whether the tollInfo field is set. */ boolean hasTollInfo(); /** + * + * *
    * Contains information about tolls on the route. This field is only populated
    * if tolls are expected on the route. If this field is set, but the
@@ -30,10 +51,13 @@ public interface RouteTravelAdvisoryOrBuilder extends
    * 
* * .google.maps.routing.v2.TollInfo toll_info = 2; + * * @return The tollInfo. */ com.google.maps.routing.v2.TollInfo getTollInfo(); /** + * + * *
    * Contains information about tolls on the route. This field is only populated
    * if tolls are expected on the route. If this field is set, but the
@@ -47,6 +71,8 @@ public interface RouteTravelAdvisoryOrBuilder extends
   com.google.maps.routing.v2.TollInfoOrBuilder getTollInfoOrBuilder();
 
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -62,9 +88,10 @@ public interface RouteTravelAdvisoryOrBuilder extends
    *
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;
    */
-  java.util.List 
-      getSpeedReadingIntervalsList();
+  java.util.List getSpeedReadingIntervalsList();
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -82,6 +109,8 @@ public interface RouteTravelAdvisoryOrBuilder extends
    */
   com.google.maps.routing.v2.SpeedReadingInterval getSpeedReadingIntervals(int index);
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -99,6 +128,8 @@ public interface RouteTravelAdvisoryOrBuilder extends
    */
   int getSpeedReadingIntervalsCount();
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -114,9 +145,11 @@ public interface RouteTravelAdvisoryOrBuilder extends
    *
    * repeated .google.maps.routing.v2.SpeedReadingInterval speed_reading_intervals = 3;
    */
-  java.util.List 
+  java.util.List
       getSpeedReadingIntervalsOrBuilderList();
   /**
+   *
+   *
    * 
    * Speed reading intervals detailing traffic density. Applicable in case of
    * `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
@@ -136,27 +169,35 @@ com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingInterval
       int index);
 
   /**
+   *
+   *
    * 
    * The predicted fuel consumption in microliters.
    * 
* * int64 fuel_consumption_microliters = 5; + * * @return The fuelConsumptionMicroliters. */ long getFuelConsumptionMicroliters(); /** + * + * *
    * Returned route may have restrictions that are not suitable for requested
    * travel mode or route modifiers.
    * 
* * bool route_restrictions_partially_ignored = 6; + * * @return The routeRestrictionsPartiallyIgnored. */ boolean getRouteRestrictionsPartiallyIgnored(); /** + * + * *
    * If present, contains the total fare or ticket costs on this route
    * This property is only returned for `TRANSIT` requests and only
@@ -164,10 +205,13 @@ com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingInterval
    * 
* * .google.type.Money transit_fare = 7; + * * @return Whether the transitFare field is set. */ boolean hasTransitFare(); /** + * + * *
    * If present, contains the total fare or ticket costs on this route
    * This property is only returned for `TRANSIT` requests and only
@@ -175,10 +219,13 @@ com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder getSpeedReadingInterval
    * 
* * .google.type.Money transit_fare = 7; + * * @return The transitFare. */ com.google.type.Money getTransitFare(); /** + * + * *
    * If present, contains the total fare or ticket costs on this route
    * This property is only returned for `TRANSIT` requests and only
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java
similarity index 72%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java
index 5cfb347c5de8..fea4042ff7b4 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelMode.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/maps/routing/v2/route_travel_mode.proto
 
 package com.google.maps.routing.v2;
 
 /**
+ *
+ *
  * 
  * A set of values used to specify the mode of travel.
  * NOTE: `WALK`, `BICYCLE`, and `TWO_WHEELER` routes are in beta and might
@@ -14,9 +31,10 @@
  *
  * Protobuf enum {@code google.maps.routing.v2.RouteTravelMode}
  */
-public enum RouteTravelMode
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum RouteTravelMode implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No travel mode specified. Defaults to `DRIVE`.
    * 
@@ -25,6 +43,8 @@ public enum RouteTravelMode */ TRAVEL_MODE_UNSPECIFIED(0), /** + * + * *
    * Travel by passenger car.
    * 
@@ -33,6 +53,8 @@ public enum RouteTravelMode */ DRIVE(1), /** + * + * *
    * Travel by bicycle.
    * 
@@ -41,6 +63,8 @@ public enum RouteTravelMode */ BICYCLE(2), /** + * + * *
    * Travel by walking.
    * 
@@ -49,6 +73,8 @@ public enum RouteTravelMode */ WALK(3), /** + * + * *
    * Two-wheeled, motorized vehicle. For example, motorcycle. Note that this
    * differs from the `BICYCLE` travel mode which covers human-powered mode.
@@ -58,6 +84,8 @@ public enum RouteTravelMode
    */
   TWO_WHEELER(4),
   /**
+   *
+   *
    * 
    * Travel by public transit routes, where available.
    * 
@@ -69,6 +97,8 @@ public enum RouteTravelMode ; /** + * + * *
    * No travel mode specified. Defaults to `DRIVE`.
    * 
@@ -77,6 +107,8 @@ public enum RouteTravelMode */ public static final int TRAVEL_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Travel by passenger car.
    * 
@@ -85,6 +117,8 @@ public enum RouteTravelMode */ public static final int DRIVE_VALUE = 1; /** + * + * *
    * Travel by bicycle.
    * 
@@ -93,6 +127,8 @@ public enum RouteTravelMode */ public static final int BICYCLE_VALUE = 2; /** + * + * *
    * Travel by walking.
    * 
@@ -101,6 +137,8 @@ public enum RouteTravelMode */ public static final int WALK_VALUE = 3; /** + * + * *
    * Two-wheeled, motorized vehicle. For example, motorcycle. Note that this
    * differs from the `BICYCLE` travel mode which covers human-powered mode.
@@ -110,6 +148,8 @@ public enum RouteTravelMode
    */
   public static final int TWO_WHEELER_VALUE = 4;
   /**
+   *
+   *
    * 
    * Travel by public transit routes, where available.
    * 
@@ -118,7 +158,6 @@ public enum RouteTravelMode */ public static final int TRANSIT_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -143,52 +182,55 @@ public static RouteTravelMode valueOf(int value) { */ public static RouteTravelMode forNumber(int value) { switch (value) { - case 0: return TRAVEL_MODE_UNSPECIFIED; - case 1: return DRIVE; - case 2: return BICYCLE; - case 3: return WALK; - case 4: return TWO_WHEELER; - case 7: return TRANSIT; - default: return null; + case 0: + return TRAVEL_MODE_UNSPECIFIED; + case 1: + return DRIVE; + case 2: + return BICYCLE; + case 3: + return WALK; + case 4: + return TWO_WHEELER; + case 7: + return TRANSIT; + 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< - RouteTravelMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RouteTravelMode findValueByNumber(int number) { - return RouteTravelMode.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 RouteTravelMode findValueByNumber(int number) { + return RouteTravelMode.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.maps.routing.v2.RouteTravelModeProto.getDescriptor().getEnumTypes().get(0); } private static final RouteTravelMode[] VALUES = values(); - public static RouteTravelMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RouteTravelMode 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; @@ -204,4 +246,3 @@ private RouteTravelMode(int value) { // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.RouteTravelMode) } - diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java new file mode 100644 index 000000000000..f97b91b61696 --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java @@ -0,0 +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/maps/routing/v2/route_travel_mode.proto + +package com.google.maps.routing.v2; + +public final class RouteTravelModeProto { + private RouteTravelModeProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + 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/maps/routing/v2/route_travel_mo" + + "de.proto\022\026google.maps.routing.v2*n\n\017Rout" + + "eTravelMode\022\033\n\027TRAVEL_MODE_UNSPECIFIED\020\000" + + "\022\t\n\005DRIVE\020\001\022\013\n\007BICYCLE\020\002\022\010\n\004WALK\020\003\022\017\n\013TW" + + "O_WHEELER\020\004\022\013\n\007TRANSIT\020\007B\311\001\n\032com.google." + + "maps.routing.v2B\024RouteTravelModeProtoP\001Z" + + ":cloud.google.com/go/maps/routing/apiv2/" + + "routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google." + + "Maps.Routing.V2\312\002\026Google\\Maps\\Routing\\V2" + + "\352\002\031Google::Maps::Routing::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java new file mode 100644 index 000000000000..3a606d18ea79 --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java @@ -0,0 +1,339 @@ +/* + * 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/maps/routing/v2/routes_service.proto + +package com.google.maps.routing.v2; + +public final class RoutesServiceProto { + private RoutesServiceProto() {} + + 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_maps_routing_v2_ComputeRoutesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteMatrixElement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_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/maps/routing/v2/routes_service." + + "proto\022\026google.maps.routing.v2\032\034google/ap" + + "i/annotations.proto\032\027google/api/client.p" + + "roto\032\037google/api/field_behavior.proto\032*g" + + "oogle/maps/routing/v2/fallback_info.prot" + + "o\032.google/maps/routing/v2/geocoding_resu" + + "lts.proto\032%google/maps/routing/v2/polyli" + + "ne.proto\032\"google/maps/routing/v2/route.p" + + "roto\032,google/maps/routing/v2/route_modif" + + "iers.proto\032.google/maps/routing/v2/route" + + "_travel_mode.proto\032/google/maps/routing/" + + "v2/routing_preference.proto\032*google/maps" + + "/routing/v2/traffic_model.proto\0320google/" + + "maps/routing/v2/transit_preferences.prot" + + "o\032\"google/maps/routing/v2/units.proto\032%g" + + "oogle/maps/routing/v2/waypoint.proto\032\036go" + + "ogle/protobuf/duration.proto\032\037google/pro" + + "tobuf/timestamp.proto\032\027google/rpc/status" + + ".proto\032 google/type/localized_text.proto" + + "\"\244\013\n\024ComputeRoutesRequest\0226\n\006origin\030\001 \001(" + + "\0132 .google.maps.routing.v2.WaypointB\004\342A\001" + + "\002\022;\n\013destination\030\002 \001(\0132 .google.maps.rou" + + "ting.v2.WaypointB\004\342A\001\002\022=\n\rintermediates\030" + + "\003 \003(\0132 .google.maps.routing.v2.WaypointB" + + "\004\342A\001\001\022B\n\013travel_mode\030\004 \001(\0162\'.google.maps" + + ".routing.v2.RouteTravelModeB\004\342A\001\001\022K\n\022rou" + + "ting_preference\030\005 \001(\0162).google.maps.rout" + + "ing.v2.RoutingPreferenceB\004\342A\001\001\022G\n\020polyli" + + "ne_quality\030\006 \001(\0162\'.google.maps.routing.v" + + "2.PolylineQualityB\004\342A\001\001\022I\n\021polyline_enco" + + "ding\030\014 \001(\0162(.google.maps.routing.v2.Poly" + + "lineEncodingB\004\342A\001\001\0228\n\016departure_time\030\007 \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\001\0226\n\014" + + "arrival_time\030\023 \001(\0132\032.google.protobuf.Tim" + + "estampB\004\342A\001\001\022(\n\032compute_alternative_rout" + + "es\030\010 \001(\010B\004\342A\001\001\022E\n\017route_modifiers\030\t \001(\0132" + + "&.google.maps.routing.v2.RouteModifiersB" + + "\004\342A\001\001\022\033\n\rlanguage_code\030\n \001(\tB\004\342A\001\001\022\031\n\013re" + + "gion_code\030\020 \001(\tB\004\342A\001\001\0222\n\005units\030\013 \001(\0162\035.g" + + "oogle.maps.routing.v2.UnitsB\004\342A\001\001\022%\n\027opt" + + "imize_waypoint_order\030\r \001(\010B\004\342A\001\001\022e\n\032requ" + + "ested_reference_routes\030\016 \003(\0162;.google.ma" + + "ps.routing.v2.ComputeRoutesRequest.Refer" + + "enceRouteB\004\342A\001\001\022_\n\022extra_computations\030\017 " + + "\003(\0162=.google.maps.routing.v2.ComputeRout" + + "esRequest.ExtraComputationB\004\342A\001\001\022A\n\rtraf" + + "fic_model\030\022 \001(\0162$.google.maps.routing.v2" + + ".TrafficModelB\004\342A\001\001\022M\n\023transit_preferenc" + + "es\030\024 \001(\0132*.google.maps.routing.v2.Transi" + + "tPreferencesB\004\342A\001\001\"E\n\016ReferenceRoute\022\037\n\033" + + "REFERENCE_ROUTE_UNSPECIFIED\020\000\022\022\n\016FUEL_EF" + + "FICIENT\020\001\"\233\001\n\020ExtraComputation\022!\n\035EXTRA_" + + "COMPUTATION_UNSPECIFIED\020\000\022\t\n\005TOLLS\020\001\022\024\n\020" + + "FUEL_CONSUMPTION\020\002\022\027\n\023TRAFFIC_ON_POLYLIN" + + "E\020\003\022*\n&HTML_FORMATTED_NAVIGATION_INSTRUC" + + "TIONS\020\004\"\310\001\n\025ComputeRoutesResponse\022-\n\006rou" + + "tes\030\001 \003(\0132\035.google.maps.routing.v2.Route" + + "\022;\n\rfallback_info\030\002 \001(\0132$.google.maps.ro" + + "uting.v2.FallbackInfo\022C\n\021geocoding_resul" + + "ts\030\003 \001(\0132(.google.maps.routing.v2.Geocod" + + "ingResults\"\236\006\n\031ComputeRouteMatrixRequest" + + "\022@\n\007origins\030\001 \003(\0132).google.maps.routing." + + "v2.RouteMatrixOriginB\004\342A\001\002\022J\n\014destinatio" + + "ns\030\002 \003(\0132..google.maps.routing.v2.RouteM" + + "atrixDestinationB\004\342A\001\002\022B\n\013travel_mode\030\003 " + + "\001(\0162\'.google.maps.routing.v2.RouteTravel" + + "ModeB\004\342A\001\001\022K\n\022routing_preference\030\004 \001(\0162)" + + ".google.maps.routing.v2.RoutingPreferenc" + + "eB\004\342A\001\001\0228\n\016departure_time\030\005 \001(\0132\032.google" + + ".protobuf.TimestampB\004\342A\001\001\0226\n\014arrival_tim" + + "e\030\013 \001(\0132\032.google.protobuf.TimestampB\004\342A\001" + + "\001\022\033\n\rlanguage_code\030\006 \001(\tB\004\342A\001\001\022\031\n\013region" + + "_code\030\t \001(\tB\004\342A\001\001\022d\n\022extra_computations\030" + + "\010 \003(\0162B.google.maps.routing.v2.ComputeRo" + + "uteMatrixRequest.ExtraComputationB\004\342A\001\001\022" + + "A\n\rtraffic_model\030\n \001(\0162$.google.maps.rou" + + "ting.v2.TrafficModelB\004\342A\001\001\022M\n\023transit_pr" + + "eferences\030\014 \001(\0132*.google.maps.routing.v2" + + ".TransitPreferencesB\004\342A\001\001\"@\n\020ExtraComput" + + "ation\022!\n\035EXTRA_COMPUTATION_UNSPECIFIED\020\000" + + "\022\t\n\005TOLLS\020\001\"\224\001\n\021RouteMatrixOrigin\0228\n\010way" + + "point\030\001 \001(\0132 .google.maps.routing.v2.Way" + + "pointB\004\342A\001\002\022E\n\017route_modifiers\030\002 \001(\0132&.g" + + "oogle.maps.routing.v2.RouteModifiersB\004\342A" + + "\001\001\"R\n\026RouteMatrixDestination\0228\n\010waypoint" + + "\030\001 \001(\0132 .google.maps.routing.v2.Waypoint" + + "B\004\342A\001\002\"\214\006\n\022RouteMatrixElement\022\031\n\014origin_" + + "index\030\001 \001(\005H\000\210\001\001\022\036\n\021destination_index\030\002 " + + "\001(\005H\001\210\001\001\022\"\n\006status\030\003 \001(\0132\022.google.rpc.St" + + "atus\022F\n\tcondition\030\t \001(\01623.google.maps.ro" + + "uting.v2.RouteMatrixElementCondition\022\027\n\017" + + "distance_meters\030\004 \001(\005\022+\n\010duration\030\005 \001(\0132" + + "\031.google.protobuf.Duration\0222\n\017static_dur" + + "ation\030\006 \001(\0132\031.google.protobuf.Duration\022D" + + "\n\017travel_advisory\030\007 \001(\0132+.google.maps.ro" + + "uting.v2.RouteTravelAdvisory\022;\n\rfallback" + + "_info\030\010 \001(\0132$.google.maps.routing.v2.Fal" + + "lbackInfo\022T\n\020localized_values\030\n \001(\0132:.go" + + "ogle.maps.routing.v2.RouteMatrixElement." + + "LocalizedValues\032\324\001\n\017LocalizedValues\022,\n\010d" + + "istance\030\001 \001(\0132\032.google.type.LocalizedTex" + + "t\022,\n\010duration\030\002 \001(\0132\032.google.type.Locali" + + "zedText\0223\n\017static_duration\030\003 \001(\0132\032.googl" + + "e.type.LocalizedText\0220\n\014transit_fare\030\004 \001" + + "(\0132\032.google.type.LocalizedTextB\017\n\r_origi" + + "n_indexB\024\n\022_destination_index*t\n\033RouteMa" + + "trixElementCondition\022.\n*ROUTE_MATRIX_ELE" + + "MENT_CONDITION_UNSPECIFIED\020\000\022\020\n\014ROUTE_EX" + + "ISTS\020\001\022\023\n\017ROUTE_NOT_FOUND\020\0022\344\002\n\006Routes\022\225" + + "\001\n\rComputeRoutes\022,.google.maps.routing.v" + + "2.ComputeRoutesRequest\032-.google.maps.rou" + + "ting.v2.ComputeRoutesResponse\"\'\202\323\344\223\002!\"\034/" + + "directions/v2:computeRoutes:\001*\022\247\001\n\022Compu" + + "teRouteMatrix\0221.google.maps.routing.v2.C" + + "omputeRouteMatrixRequest\032*.google.maps.r" + + "outing.v2.RouteMatrixElement\"0\202\323\344\223\002*\"%/d" + + "istanceMatrix/v2:computeRouteMatrix:\001*0\001" + + "\032\030\312A\025routes.googleapis.comB\307\001\n\032com.googl" + + "e.maps.routing.v2B\022RoutesServiceProtoP\001Z" + + ":cloud.google.com/go/maps/routing/apiv2/" + + "routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google." + + "Maps.Routing.V2\312\002\026Google\\Maps\\Routing\\V2" + + "\352\002\031Google::Maps::Routing::V2b\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.maps.routing.v2.FallbackInfoProto.getDescriptor(), + com.google.maps.routing.v2.GeocodingResultsProto.getDescriptor(), + com.google.maps.routing.v2.PolylineProto.getDescriptor(), + com.google.maps.routing.v2.RouteProto.getDescriptor(), + com.google.maps.routing.v2.RouteModifiersProto.getDescriptor(), + com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(), + com.google.maps.routing.v2.RoutingPreferenceProto.getDescriptor(), + com.google.maps.routing.v2.TrafficModelProto.getDescriptor(), + com.google.maps.routing.v2.TransitPreferencesProto.getDescriptor(), + com.google.maps.routing.v2.UnitsProto.getDescriptor(), + com.google.maps.routing.v2.WaypointProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.LocalizedTextProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor, + new java.lang.String[] { + "Origin", + "Destination", + "Intermediates", + "TravelMode", + "RoutingPreference", + "PolylineQuality", + "PolylineEncoding", + "DepartureTime", + "ArrivalTime", + "ComputeAlternativeRoutes", + "RouteModifiers", + "LanguageCode", + "RegionCode", + "Units", + "OptimizeWaypointOrder", + "RequestedReferenceRoutes", + "ExtraComputations", + "TrafficModel", + "TransitPreferences", + }); + internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor, + new java.lang.String[] { + "Routes", "FallbackInfo", "GeocodingResults", + }); + internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor, + new java.lang.String[] { + "Origins", + "Destinations", + "TravelMode", + "RoutingPreference", + "DepartureTime", + "ArrivalTime", + "LanguageCode", + "RegionCode", + "ExtraComputations", + "TrafficModel", + "TransitPreferences", + }); + internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor, + new java.lang.String[] { + "Waypoint", "RouteModifiers", + }); + internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor, + new java.lang.String[] { + "Waypoint", + }); + internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_maps_routing_v2_RouteMatrixElement_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor, + new java.lang.String[] { + "OriginIndex", + "DestinationIndex", + "Status", + "Condition", + "DistanceMeters", + "Duration", + "StaticDuration", + "TravelAdvisory", + "FallbackInfo", + "LocalizedValues", + "OriginIndex", + "DestinationIndex", + }); + internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor = + internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor + .getNestedTypes() + .get(0); + internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor, + new java.lang.String[] { + "Distance", "Duration", "StaticDuration", "TransitFare", + }); + 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); + 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.maps.routing.v2.FallbackInfoProto.getDescriptor(); + com.google.maps.routing.v2.GeocodingResultsProto.getDescriptor(); + com.google.maps.routing.v2.PolylineProto.getDescriptor(); + com.google.maps.routing.v2.RouteProto.getDescriptor(); + com.google.maps.routing.v2.RouteModifiersProto.getDescriptor(); + com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(); + com.google.maps.routing.v2.RoutingPreferenceProto.getDescriptor(); + com.google.maps.routing.v2.TrafficModelProto.getDescriptor(); + com.google.maps.routing.v2.TransitPreferencesProto.getDescriptor(); + com.google.maps.routing.v2.UnitsProto.getDescriptor(); + com.google.maps.routing.v2.WaypointProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.LocalizedTextProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreference.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreference.java similarity index 78% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreference.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreference.java index ece47882c716..1b238346b138 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreference.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreference.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/maps/routing/v2/routing_preference.proto package com.google.maps.routing.v2; /** + * + * *
  * A set of values that specify factors to take into consideration when
  * calculating the route.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.maps.routing.v2.RoutingPreference}
  */
-public enum RoutingPreference
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum RoutingPreference implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No routing preference specified. Default to `TRAFFIC_UNAWARE`.
    * 
@@ -22,6 +40,8 @@ public enum RoutingPreference */ ROUTING_PREFERENCE_UNSPECIFIED(0), /** + * + * *
    * Computes routes without taking live traffic conditions into consideration.
    * Suitable when traffic conditions don't matter or are not applicable.
@@ -39,6 +59,8 @@ public enum RoutingPreference
    */
   TRAFFIC_UNAWARE(1),
   /**
+   *
+   *
    * 
    * Calculates routes taking live traffic conditions into consideration.
    * In contrast to `TRAFFIC_AWARE_OPTIMAL`, some optimizations are applied to
@@ -49,6 +71,8 @@ public enum RoutingPreference
    */
   TRAFFIC_AWARE(2),
   /**
+   *
+   *
    * 
    * Calculates the routes taking live traffic conditions into consideration,
    * without applying most performance optimizations. Using this value produces
@@ -62,6 +86,8 @@ public enum RoutingPreference
   ;
 
   /**
+   *
+   *
    * 
    * No routing preference specified. Default to `TRAFFIC_UNAWARE`.
    * 
@@ -70,6 +96,8 @@ public enum RoutingPreference */ public static final int ROUTING_PREFERENCE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Computes routes without taking live traffic conditions into consideration.
    * Suitable when traffic conditions don't matter or are not applicable.
@@ -87,6 +115,8 @@ public enum RoutingPreference
    */
   public static final int TRAFFIC_UNAWARE_VALUE = 1;
   /**
+   *
+   *
    * 
    * Calculates routes taking live traffic conditions into consideration.
    * In contrast to `TRAFFIC_AWARE_OPTIMAL`, some optimizations are applied to
@@ -97,6 +127,8 @@ public enum RoutingPreference
    */
   public static final int TRAFFIC_AWARE_VALUE = 2;
   /**
+   *
+   *
    * 
    * Calculates the routes taking live traffic conditions into consideration,
    * without applying most performance optimizations. Using this value produces
@@ -107,7 +139,6 @@ public enum RoutingPreference
    */
   public static final int TRAFFIC_AWARE_OPTIMAL_VALUE = 3;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -132,40 +163,44 @@ public static RoutingPreference valueOf(int value) {
    */
   public static RoutingPreference forNumber(int value) {
     switch (value) {
-      case 0: return ROUTING_PREFERENCE_UNSPECIFIED;
-      case 1: return TRAFFIC_UNAWARE;
-      case 2: return TRAFFIC_AWARE;
-      case 3: return TRAFFIC_AWARE_OPTIMAL;
-      default: return null;
+      case 0:
+        return ROUTING_PREFERENCE_UNSPECIFIED;
+      case 1:
+        return TRAFFIC_UNAWARE;
+      case 2:
+        return TRAFFIC_AWARE;
+      case 3:
+        return TRAFFIC_AWARE_OPTIMAL;
+      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<
-      RoutingPreference> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public RoutingPreference findValueByNumber(int number) {
-            return RoutingPreference.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 RoutingPreference findValueByNumber(int number) {
+              return RoutingPreference.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.maps.routing.v2.RoutingPreferenceProto.getDescriptor().getEnumTypes().get(0);
   }
 
@@ -174,8 +209,7 @@ public RoutingPreference findValueByNumber(int number) {
   public static RoutingPreference 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;
@@ -191,4 +225,3 @@ private RoutingPreference(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.RoutingPreference)
 }
-
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java
new file mode 100644
index 000000000000..270fe7cdff5a
--- /dev/null
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java
@@ -0,0 +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/maps/routing/v2/routing_preference.proto
+
+package com.google.maps.routing.v2;
+
+public final class RoutingPreferenceProto {
+  private RoutingPreferenceProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  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/maps/routing/v2/routing_prefere"
+          + "nce.proto\022\026google.maps.routing.v2*z\n\021Rou"
+          + "tingPreference\022\"\n\036ROUTING_PREFERENCE_UNS"
+          + "PECIFIED\020\000\022\023\n\017TRAFFIC_UNAWARE\020\001\022\021\n\rTRAFF"
+          + "IC_AWARE\020\002\022\031\n\025TRAFFIC_AWARE_OPTIMAL\020\003B\313\001"
+          + "\n\032com.google.maps.routing.v2B\026RoutingPre"
+          + "ferenceProtoP\001Z:cloud.google.com/go/maps"
+          + "/routing/apiv2/routingpb;routingpb\370\001\001\242\002\005"
+          + "GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\"
+          + "Maps\\Routing\\V2\352\002\031Google::Maps::Routing:"
+          + ":V2b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingInterval.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingInterval.java
similarity index 73%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingInterval.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingInterval.java
index ca4bb97c5b5f..188495cf62db 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingInterval.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingInterval.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/maps/routing/v2/speed_reading_interval.proto
 
 package com.google.maps.routing.v2;
 
 /**
+ *
+ *
  * 
  * Traffic density indicator on a contiguous segment of a polyline or path.
  * Given a path with points P_0, P_1, ... , P_N (zero-based index), the
@@ -13,48 +30,52 @@
  *
  * Protobuf type {@code google.maps.routing.v2.SpeedReadingInterval}
  */
-public final class SpeedReadingInterval extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SpeedReadingInterval extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.SpeedReadingInterval)
     SpeedReadingIntervalOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SpeedReadingInterval.newBuilder() to construct.
   private SpeedReadingInterval(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private SpeedReadingInterval() {
-  }
+
+  private SpeedReadingInterval() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SpeedReadingInterval();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.maps.routing.v2.SpeedReadingIntervalProto.internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.maps.routing.v2.SpeedReadingIntervalProto
+        .internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.SpeedReadingIntervalProto.internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable
+    return com.google.maps.routing.v2.SpeedReadingIntervalProto
+        .internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.SpeedReadingInterval.class, com.google.maps.routing.v2.SpeedReadingInterval.Builder.class);
+            com.google.maps.routing.v2.SpeedReadingInterval.class,
+            com.google.maps.routing.v2.SpeedReadingInterval.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The classification of polyline speed based on traffic data.
    * 
* * Protobuf enum {@code google.maps.routing.v2.SpeedReadingInterval.Speed} */ - public enum Speed - implements com.google.protobuf.ProtocolMessageEnum { + public enum Speed implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value. This value is unused.
      * 
@@ -63,6 +84,8 @@ public enum Speed */ SPEED_UNSPECIFIED(0), /** + * + * *
      * Normal speed, no slowdown is detected.
      * 
@@ -71,6 +94,8 @@ public enum Speed */ NORMAL(1), /** + * + * *
      * Slowdown detected, but no traffic jam formed.
      * 
@@ -79,6 +104,8 @@ public enum Speed */ SLOW(2), /** + * + * *
      * Traffic jam detected.
      * 
@@ -90,6 +117,8 @@ public enum Speed ; /** + * + * *
      * Default value. This value is unused.
      * 
@@ -98,6 +127,8 @@ public enum Speed */ public static final int SPEED_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Normal speed, no slowdown is detected.
      * 
@@ -106,6 +137,8 @@ public enum Speed */ public static final int NORMAL_VALUE = 1; /** + * + * *
      * Slowdown detected, but no traffic jam formed.
      * 
@@ -114,6 +147,8 @@ public enum Speed */ public static final int SLOW_VALUE = 2; /** + * + * *
      * Traffic jam detected.
      * 
@@ -122,7 +157,6 @@ public enum Speed */ public static final int TRAFFIC_JAM_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -147,50 +181,51 @@ public static Speed valueOf(int value) { */ public static Speed forNumber(int value) { switch (value) { - case 0: return SPEED_UNSPECIFIED; - case 1: return NORMAL; - case 2: return SLOW; - case 3: return TRAFFIC_JAM; - default: return null; + case 0: + return SPEED_UNSPECIFIED; + case 1: + return NORMAL; + case 2: + return SLOW; + case 3: + return TRAFFIC_JAM; + 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< - Speed> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Speed findValueByNumber(int number) { - return Speed.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 Speed findValueByNumber(int number) { + return Speed.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.maps.routing.v2.SpeedReadingInterval.getDescriptor().getEnumTypes().get(0); } private static final Speed[] VALUES = values(); - public static Speed valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Speed 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; @@ -209,14 +244,18 @@ private Speed(int value) { private int bitField0_; private int speedTypeCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object speedType_; + public enum SpeedTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SPEED(3), SPEEDTYPE_NOT_SET(0); private final int value; + private SpeedTypeCase(int value) { this.value = value; } @@ -232,30 +271,35 @@ public static SpeedTypeCase valueOf(int value) { public static SpeedTypeCase forNumber(int value) { switch (value) { - case 3: return SPEED; - case 0: return SPEEDTYPE_NOT_SET; - default: return null; + case 3: + return SPEED; + case 0: + return SPEEDTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SpeedTypeCase - getSpeedTypeCase() { - return SpeedTypeCase.forNumber( - speedTypeCase_); + public SpeedTypeCase getSpeedTypeCase() { + return SpeedTypeCase.forNumber(speedTypeCase_); } public static final int START_POLYLINE_POINT_INDEX_FIELD_NUMBER = 1; private int startPolylinePointIndex_ = 0; /** + * + * *
    * The starting index of this interval in the polyline.
    * 
* * optional int32 start_polyline_point_index = 1; + * * @return Whether the startPolylinePointIndex field is set. */ @java.lang.Override @@ -263,11 +307,14 @@ public boolean hasStartPolylinePointIndex() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The starting index of this interval in the polyline.
    * 
* * optional int32 start_polyline_point_index = 1; + * * @return The startPolylinePointIndex. */ @java.lang.Override @@ -278,11 +325,14 @@ public int getStartPolylinePointIndex() { public static final int END_POLYLINE_POINT_INDEX_FIELD_NUMBER = 2; private int endPolylinePointIndex_ = 0; /** + * + * *
    * The ending index of this interval in the polyline.
    * 
* * optional int32 end_polyline_point_index = 2; + * * @return Whether the endPolylinePointIndex field is set. */ @java.lang.Override @@ -290,11 +340,14 @@ public boolean hasEndPolylinePointIndex() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * The ending index of this interval in the polyline.
    * 
* * optional int32 end_polyline_point_index = 2; + * * @return The endPolylinePointIndex. */ @java.lang.Override @@ -304,22 +357,28 @@ public int getEndPolylinePointIndex() { public static final int SPEED_FIELD_NUMBER = 3; /** + * + * *
    * Traffic speed in this interval.
    * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; + * * @return Whether the speed field is set. */ public boolean hasSpeed() { return speedTypeCase_ == 3; } /** + * + * *
    * Traffic speed in this interval.
    * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; + * * @return The enum numeric value on the wire for speed. */ public int getSpeedValue() { @@ -329,23 +388,30 @@ public int getSpeedValue() { return 0; } /** + * + * *
    * Traffic speed in this interval.
    * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; + * * @return The speed. */ public com.google.maps.routing.v2.SpeedReadingInterval.Speed getSpeed() { if (speedTypeCase_ == 3) { - com.google.maps.routing.v2.SpeedReadingInterval.Speed result = com.google.maps.routing.v2.SpeedReadingInterval.Speed.forNumber( - (java.lang.Integer) speedType_); - return result == null ? com.google.maps.routing.v2.SpeedReadingInterval.Speed.UNRECOGNIZED : result; + com.google.maps.routing.v2.SpeedReadingInterval.Speed result = + com.google.maps.routing.v2.SpeedReadingInterval.Speed.forNumber( + (java.lang.Integer) speedType_); + return result == null + ? com.google.maps.routing.v2.SpeedReadingInterval.Speed.UNRECOGNIZED + : result; } return com.google.maps.routing.v2.SpeedReadingInterval.Speed.SPEED_UNSPECIFIED; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -357,8 +423,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, startPolylinePointIndex_); } @@ -378,16 +443,15 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, startPolylinePointIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, startPolylinePointIndex_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, endPolylinePointIndex_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, endPolylinePointIndex_); } if (speedTypeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, ((java.lang.Integer) speedType_)); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 3, ((java.lang.Integer) speedType_)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -397,28 +461,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.maps.routing.v2.SpeedReadingInterval)) { return super.equals(obj); } - com.google.maps.routing.v2.SpeedReadingInterval other = (com.google.maps.routing.v2.SpeedReadingInterval) obj; + com.google.maps.routing.v2.SpeedReadingInterval other = + (com.google.maps.routing.v2.SpeedReadingInterval) obj; if (hasStartPolylinePointIndex() != other.hasStartPolylinePointIndex()) return false; if (hasStartPolylinePointIndex()) { - if (getStartPolylinePointIndex() - != other.getStartPolylinePointIndex()) return false; + if (getStartPolylinePointIndex() != other.getStartPolylinePointIndex()) return false; } if (hasEndPolylinePointIndex() != other.hasEndPolylinePointIndex()) return false; if (hasEndPolylinePointIndex()) { - if (getEndPolylinePointIndex() - != other.getEndPolylinePointIndex()) return false; + if (getEndPolylinePointIndex() != other.getEndPolylinePointIndex()) return false; } if (!getSpeedTypeCase().equals(other.getSpeedTypeCase())) return false; switch (speedTypeCase_) { case 3: - if (getSpeedValue() - != other.getSpeedValue()) return false; + if (getSpeedValue() != other.getSpeedValue()) return false; break; case 0: default: @@ -455,99 +517,104 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.SpeedReadingInterval parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.SpeedReadingInterval parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.SpeedReadingInterval parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval 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.maps.routing.v2.SpeedReadingInterval 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; } /** + * + * *
    * Traffic density indicator on a contiguous segment of a polyline or path.
    * Given a path with points P_0, P_1, ... , P_N (zero-based index), the
@@ -557,33 +624,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.maps.routing.v2.SpeedReadingInterval}
    */
-  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.maps.routing.v2.SpeedReadingInterval)
       com.google.maps.routing.v2.SpeedReadingIntervalOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.maps.routing.v2.SpeedReadingIntervalProto.internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.maps.routing.v2.SpeedReadingIntervalProto
+          .internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.SpeedReadingIntervalProto.internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable
+      return com.google.maps.routing.v2.SpeedReadingIntervalProto
+          .internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.SpeedReadingInterval.class, com.google.maps.routing.v2.SpeedReadingInterval.Builder.class);
+              com.google.maps.routing.v2.SpeedReadingInterval.class,
+              com.google.maps.routing.v2.SpeedReadingInterval.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.SpeedReadingInterval.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();
@@ -596,9 +662,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.maps.routing.v2.SpeedReadingIntervalProto.internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.maps.routing.v2.SpeedReadingIntervalProto
+          .internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor;
     }
 
     @java.lang.Override
@@ -617,8 +683,11 @@ public com.google.maps.routing.v2.SpeedReadingInterval build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.SpeedReadingInterval buildPartial() {
-      com.google.maps.routing.v2.SpeedReadingInterval result = new com.google.maps.routing.v2.SpeedReadingInterval(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.maps.routing.v2.SpeedReadingInterval result =
+          new com.google.maps.routing.v2.SpeedReadingInterval(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -647,38 +716,39 @@ private void buildPartialOneofs(com.google.maps.routing.v2.SpeedReadingInterval
     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.maps.routing.v2.SpeedReadingInterval) {
-        return mergeFrom((com.google.maps.routing.v2.SpeedReadingInterval)other);
+        return mergeFrom((com.google.maps.routing.v2.SpeedReadingInterval) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -686,7 +756,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.maps.routing.v2.SpeedReadingInterval other) {
-      if (other == com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance()) return this;
+      if (other == com.google.maps.routing.v2.SpeedReadingInterval.getDefaultInstance())
+        return this;
       if (other.hasStartPolylinePointIndex()) {
         setStartPolylinePointIndex(other.getStartPolylinePointIndex());
       }
@@ -694,13 +765,15 @@ public Builder mergeFrom(com.google.maps.routing.v2.SpeedReadingInterval other)
         setEndPolylinePointIndex(other.getEndPolylinePointIndex());
       }
       switch (other.getSpeedTypeCase()) {
-        case SPEED: {
-          setSpeedValue(other.getSpeedValue());
-          break;
-        }
-        case SPEEDTYPE_NOT_SET: {
-          break;
-        }
+        case SPEED:
+          {
+            setSpeedValue(other.getSpeedValue());
+            break;
+          }
+        case SPEEDTYPE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -728,28 +801,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              startPolylinePointIndex_ = input.readInt32();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              endPolylinePointIndex_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              int rawValue = input.readEnum();
-              speedTypeCase_ = 3;
-              speedType_ = rawValue;
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                startPolylinePointIndex_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                endPolylinePointIndex_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                int rawValue = input.readEnum();
+                speedTypeCase_ = 3;
+                speedType_ = rawValue;
+                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) {
@@ -759,12 +836,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int speedTypeCase_ = 0;
     private java.lang.Object speedType_;
-    public SpeedTypeCase
-        getSpeedTypeCase() {
-      return SpeedTypeCase.forNumber(
-          speedTypeCase_);
+
+    public SpeedTypeCase getSpeedTypeCase() {
+      return SpeedTypeCase.forNumber(speedTypeCase_);
     }
 
     public Builder clearSpeedType() {
@@ -776,13 +853,16 @@ public Builder clearSpeedType() {
 
     private int bitField0_;
 
-    private int startPolylinePointIndex_ ;
+    private int startPolylinePointIndex_;
     /**
+     *
+     *
      * 
      * The starting index of this interval in the polyline.
      * 
* * optional int32 start_polyline_point_index = 1; + * * @return Whether the startPolylinePointIndex field is set. */ @java.lang.Override @@ -790,11 +870,14 @@ public boolean hasStartPolylinePointIndex() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The starting index of this interval in the polyline.
      * 
* * optional int32 start_polyline_point_index = 1; + * * @return The startPolylinePointIndex. */ @java.lang.Override @@ -802,11 +885,14 @@ public int getStartPolylinePointIndex() { return startPolylinePointIndex_; } /** + * + * *
      * The starting index of this interval in the polyline.
      * 
* * optional int32 start_polyline_point_index = 1; + * * @param value The startPolylinePointIndex to set. * @return This builder for chaining. */ @@ -818,11 +904,14 @@ public Builder setStartPolylinePointIndex(int value) { return this; } /** + * + * *
      * The starting index of this interval in the polyline.
      * 
* * optional int32 start_polyline_point_index = 1; + * * @return This builder for chaining. */ public Builder clearStartPolylinePointIndex() { @@ -832,13 +921,16 @@ public Builder clearStartPolylinePointIndex() { return this; } - private int endPolylinePointIndex_ ; + private int endPolylinePointIndex_; /** + * + * *
      * The ending index of this interval in the polyline.
      * 
* * optional int32 end_polyline_point_index = 2; + * * @return Whether the endPolylinePointIndex field is set. */ @java.lang.Override @@ -846,11 +938,14 @@ public boolean hasEndPolylinePointIndex() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The ending index of this interval in the polyline.
      * 
* * optional int32 end_polyline_point_index = 2; + * * @return The endPolylinePointIndex. */ @java.lang.Override @@ -858,11 +953,14 @@ public int getEndPolylinePointIndex() { return endPolylinePointIndex_; } /** + * + * *
      * The ending index of this interval in the polyline.
      * 
* * optional int32 end_polyline_point_index = 2; + * * @param value The endPolylinePointIndex to set. * @return This builder for chaining. */ @@ -874,11 +972,14 @@ public Builder setEndPolylinePointIndex(int value) { return this; } /** + * + * *
      * The ending index of this interval in the polyline.
      * 
* * optional int32 end_polyline_point_index = 2; + * * @return This builder for chaining. */ public Builder clearEndPolylinePointIndex() { @@ -889,11 +990,14 @@ public Builder clearEndPolylinePointIndex() { } /** + * + * *
      * Traffic speed in this interval.
      * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; + * * @return Whether the speed field is set. */ @java.lang.Override @@ -901,11 +1005,14 @@ public boolean hasSpeed() { return speedTypeCase_ == 3; } /** + * + * *
      * Traffic speed in this interval.
      * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; + * * @return The enum numeric value on the wire for speed. */ @java.lang.Override @@ -916,11 +1023,14 @@ public int getSpeedValue() { return 0; } /** + * + * *
      * Traffic speed in this interval.
      * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; + * * @param value The enum numeric value on the wire for speed to set. * @return This builder for chaining. */ @@ -931,28 +1041,37 @@ public Builder setSpeedValue(int value) { return this; } /** + * + * *
      * Traffic speed in this interval.
      * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; + * * @return The speed. */ @java.lang.Override public com.google.maps.routing.v2.SpeedReadingInterval.Speed getSpeed() { if (speedTypeCase_ == 3) { - com.google.maps.routing.v2.SpeedReadingInterval.Speed result = com.google.maps.routing.v2.SpeedReadingInterval.Speed.forNumber( - (java.lang.Integer) speedType_); - return result == null ? com.google.maps.routing.v2.SpeedReadingInterval.Speed.UNRECOGNIZED : result; + com.google.maps.routing.v2.SpeedReadingInterval.Speed result = + com.google.maps.routing.v2.SpeedReadingInterval.Speed.forNumber( + (java.lang.Integer) speedType_); + return result == null + ? com.google.maps.routing.v2.SpeedReadingInterval.Speed.UNRECOGNIZED + : result; } return com.google.maps.routing.v2.SpeedReadingInterval.Speed.SPEED_UNSPECIFIED; } /** + * + * *
      * Traffic speed in this interval.
      * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; + * * @param value The speed to set. * @return This builder for chaining. */ @@ -966,11 +1085,14 @@ public Builder setSpeed(com.google.maps.routing.v2.SpeedReadingInterval.Speed va return this; } /** + * + * *
      * Traffic speed in this interval.
      * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; + * * @return This builder for chaining. */ public Builder clearSpeed() { @@ -981,9 +1103,9 @@ public Builder clearSpeed() { } 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); } @@ -993,12 +1115,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.SpeedReadingInterval) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.SpeedReadingInterval) private static final com.google.maps.routing.v2.SpeedReadingInterval DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.SpeedReadingInterval(); } @@ -1007,27 +1129,27 @@ public static com.google.maps.routing.v2.SpeedReadingInterval getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeedReadingInterval 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 SpeedReadingInterval 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; @@ -1042,6 +1164,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.SpeedReadingInterval getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalOrBuilder.java similarity index 73% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalOrBuilder.java index c4d6930ddfbe..a62309676573 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalOrBuilder.java @@ -1,74 +1,111 @@ +/* + * 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/maps/routing/v2/speed_reading_interval.proto package com.google.maps.routing.v2; -public interface SpeedReadingIntervalOrBuilder extends +public interface SpeedReadingIntervalOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.SpeedReadingInterval) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The starting index of this interval in the polyline.
    * 
* * optional int32 start_polyline_point_index = 1; + * * @return Whether the startPolylinePointIndex field is set. */ boolean hasStartPolylinePointIndex(); /** + * + * *
    * The starting index of this interval in the polyline.
    * 
* * optional int32 start_polyline_point_index = 1; + * * @return The startPolylinePointIndex. */ int getStartPolylinePointIndex(); /** + * + * *
    * The ending index of this interval in the polyline.
    * 
* * optional int32 end_polyline_point_index = 2; + * * @return Whether the endPolylinePointIndex field is set. */ boolean hasEndPolylinePointIndex(); /** + * + * *
    * The ending index of this interval in the polyline.
    * 
* * optional int32 end_polyline_point_index = 2; + * * @return The endPolylinePointIndex. */ int getEndPolylinePointIndex(); /** + * + * *
    * Traffic speed in this interval.
    * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; + * * @return Whether the speed field is set. */ boolean hasSpeed(); /** + * + * *
    * Traffic speed in this interval.
    * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; + * * @return The enum numeric value on the wire for speed. */ int getSpeedValue(); /** + * + * *
    * Traffic speed in this interval.
    * 
* * .google.maps.routing.v2.SpeedReadingInterval.Speed speed = 3; + * * @return The speed. */ com.google.maps.routing.v2.SpeedReadingInterval.Speed getSpeed(); diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java new file mode 100644 index 000000000000..ceeeb076c375 --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java @@ -0,0 +1,79 @@ +/* + * 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/maps/routing/v2/speed_reading_interval.proto + +package com.google.maps.routing.v2; + +public final class SpeedReadingIntervalProto { + private SpeedReadingIntervalProto() {} + + 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_maps_routing_v2_SpeedReadingInterval_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/maps/routing/v2/speed_reading_i" + + "nterval.proto\022\026google.maps.routing.v2\"\274\002" + + "\n\024SpeedReadingInterval\022\'\n\032start_polyline" + + "_point_index\030\001 \001(\005H\001\210\001\001\022%\n\030end_polyline_" + + "point_index\030\002 \001(\005H\002\210\001\001\022C\n\005speed\030\003 \001(\01622." + + "google.maps.routing.v2.SpeedReadingInter" + + "val.SpeedH\000\"E\n\005Speed\022\025\n\021SPEED_UNSPECIFIE" + + "D\020\000\022\n\n\006NORMAL\020\001\022\010\n\004SLOW\020\002\022\017\n\013TRAFFIC_JAM" + + "\020\003B\014\n\nspeed_typeB\035\n\033_start_polyline_poin" + + "t_indexB\033\n\031_end_polyline_point_indexB\316\001\n" + + "\032com.google.maps.routing.v2B\031SpeedReadin" + + "gIntervalProtoP\001Z:cloud.google.com/go/ma" + + "ps/routing/apiv2/routingpb;routingpb\370\001\001\242" + + "\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Googl" + + "e\\Maps\\Routing\\V2\352\002\031Google::Maps::Routin" + + "g::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor, + new java.lang.String[] { + "StartPolylinePointIndex", + "EndPolylinePointIndex", + "Speed", + "SpeedType", + "StartPolylinePointIndex", + "EndPolylinePointIndex", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfo.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfo.java similarity index 78% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfo.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfo.java index 401e9072a453..261bdfecefe8 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfo.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfo.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/maps/routing/v2/toll_info.proto package com.google.maps.routing.v2; /** + * + * *
  * Encapsulates toll information on a [Route][google.maps.routing.v2.Route] or
  * on a [RouteLeg][google.maps.routing.v2.RouteLeg].
@@ -11,43 +28,48 @@
  *
  * Protobuf type {@code google.maps.routing.v2.TollInfo}
  */
-public final class TollInfo extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TollInfo extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.TollInfo)
     TollInfoOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TollInfo.newBuilder() to construct.
   private TollInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TollInfo() {
     estimatedPrice_ = 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 TollInfo();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.maps.routing.v2.TollInfoProto.internal_static_google_maps_routing_v2_TollInfo_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.maps.routing.v2.TollInfoProto
+        .internal_static_google_maps_routing_v2_TollInfo_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.TollInfoProto.internal_static_google_maps_routing_v2_TollInfo_fieldAccessorTable
+    return com.google.maps.routing.v2.TollInfoProto
+        .internal_static_google_maps_routing_v2_TollInfo_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.TollInfo.class, com.google.maps.routing.v2.TollInfo.Builder.class);
+            com.google.maps.routing.v2.TollInfo.class,
+            com.google.maps.routing.v2.TollInfo.Builder.class);
   }
 
   public static final int ESTIMATED_PRICE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List estimatedPrice_;
   /**
+   *
+   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -65,6 +87,8 @@ public java.util.List getEstimatedPriceList() {
     return estimatedPrice_;
   }
   /**
+   *
+   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -78,11 +102,12 @@ public java.util.List getEstimatedPriceList() {
    * repeated .google.type.Money estimated_price = 1;
    */
   @java.lang.Override
-  public java.util.List 
-      getEstimatedPriceOrBuilderList() {
+  public java.util.List getEstimatedPriceOrBuilderList() {
     return estimatedPrice_;
   }
   /**
+   *
+   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -100,6 +125,8 @@ public int getEstimatedPriceCount() {
     return estimatedPrice_.size();
   }
   /**
+   *
+   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -117,6 +144,8 @@ public com.google.type.Money getEstimatedPrice(int index) {
     return estimatedPrice_.get(index);
   }
   /**
+   *
+   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -130,12 +159,12 @@ public com.google.type.Money getEstimatedPrice(int index) {
    * repeated .google.type.Money estimated_price = 1;
    */
   @java.lang.Override
-  public com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(
-      int index) {
+  public com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(int index) {
     return estimatedPrice_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -147,8 +176,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 < estimatedPrice_.size(); i++) {
       output.writeMessage(1, estimatedPrice_.get(i));
     }
@@ -162,8 +190,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < estimatedPrice_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, estimatedPrice_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, estimatedPrice_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -173,15 +200,14 @@ 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.maps.routing.v2.TollInfo)) {
       return super.equals(obj);
     }
     com.google.maps.routing.v2.TollInfo other = (com.google.maps.routing.v2.TollInfo) obj;
 
-    if (!getEstimatedPriceList()
-        .equals(other.getEstimatedPriceList())) return false;
+    if (!getEstimatedPriceList().equals(other.getEstimatedPriceList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -202,99 +228,103 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.maps.routing.v2.TollInfo parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.maps.routing.v2.TollInfo parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.maps.routing.v2.TollInfo parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo 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 toll information on a [Route][google.maps.routing.v2.Route] or
    * on a [RouteLeg][google.maps.routing.v2.RouteLeg].
@@ -302,33 +332,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.maps.routing.v2.TollInfo}
    */
-  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.maps.routing.v2.TollInfo)
       com.google.maps.routing.v2.TollInfoOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.maps.routing.v2.TollInfoProto.internal_static_google_maps_routing_v2_TollInfo_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.maps.routing.v2.TollInfoProto
+          .internal_static_google_maps_routing_v2_TollInfo_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.TollInfoProto.internal_static_google_maps_routing_v2_TollInfo_fieldAccessorTable
+      return com.google.maps.routing.v2.TollInfoProto
+          .internal_static_google_maps_routing_v2_TollInfo_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.TollInfo.class, com.google.maps.routing.v2.TollInfo.Builder.class);
+              com.google.maps.routing.v2.TollInfo.class,
+              com.google.maps.routing.v2.TollInfo.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.TollInfo.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();
@@ -344,9 +373,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.maps.routing.v2.TollInfoProto.internal_static_google_maps_routing_v2_TollInfo_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.maps.routing.v2.TollInfoProto
+          .internal_static_google_maps_routing_v2_TollInfo_descriptor;
     }
 
     @java.lang.Override
@@ -367,7 +396,9 @@ public com.google.maps.routing.v2.TollInfo build() {
     public com.google.maps.routing.v2.TollInfo buildPartial() {
       com.google.maps.routing.v2.TollInfo result = new com.google.maps.routing.v2.TollInfo(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -392,38 +423,39 @@ private void buildPartial0(com.google.maps.routing.v2.TollInfo 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.maps.routing.v2.TollInfo) {
-        return mergeFrom((com.google.maps.routing.v2.TollInfo)other);
+        return mergeFrom((com.google.maps.routing.v2.TollInfo) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -450,9 +482,10 @@ public Builder mergeFrom(com.google.maps.routing.v2.TollInfo other) {
             estimatedPriceBuilder_ = null;
             estimatedPrice_ = other.estimatedPrice_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            estimatedPriceBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getEstimatedPriceFieldBuilder() : null;
+            estimatedPriceBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getEstimatedPriceFieldBuilder()
+                    : null;
           } else {
             estimatedPriceBuilder_.addAllMessages(other.estimatedPrice_);
           }
@@ -484,25 +517,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.type.Money m =
-                  input.readMessage(
-                      com.google.type.Money.parser(),
-                      extensionRegistry);
-              if (estimatedPriceBuilder_ == null) {
-                ensureEstimatedPriceIsMutable();
-                estimatedPrice_.add(m);
-              } else {
-                estimatedPriceBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.type.Money m =
+                    input.readMessage(com.google.type.Money.parser(), extensionRegistry);
+                if (estimatedPriceBuilder_ == null) {
+                  ensureEstimatedPriceIsMutable();
+                  estimatedPrice_.add(m);
+                } else {
+                  estimatedPriceBuilder_.addMessage(m);
+                }
+                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) {
@@ -512,21 +545,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List estimatedPrice_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureEstimatedPriceIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         estimatedPrice_ = new java.util.ArrayList(estimatedPrice_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> estimatedPriceBuilder_;
+            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
+        estimatedPriceBuilder_;
 
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -547,6 +585,8 @@ public java.util.List getEstimatedPriceList() {
       }
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -567,6 +607,8 @@ public int getEstimatedPriceCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -587,6 +629,8 @@ public com.google.type.Money getEstimatedPrice(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -599,8 +643,7 @@ public com.google.type.Money getEstimatedPrice(int index) {
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public Builder setEstimatedPrice(
-        int index, com.google.type.Money value) {
+    public Builder setEstimatedPrice(int index, com.google.type.Money value) {
       if (estimatedPriceBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -614,6 +657,8 @@ public Builder setEstimatedPrice(
       return this;
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -626,8 +671,7 @@ public Builder setEstimatedPrice(
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public Builder setEstimatedPrice(
-        int index, com.google.type.Money.Builder builderForValue) {
+    public Builder setEstimatedPrice(int index, com.google.type.Money.Builder builderForValue) {
       if (estimatedPriceBuilder_ == null) {
         ensureEstimatedPriceIsMutable();
         estimatedPrice_.set(index, builderForValue.build());
@@ -638,6 +682,8 @@ public Builder setEstimatedPrice(
       return this;
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -664,6 +710,8 @@ public Builder addEstimatedPrice(com.google.type.Money value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -676,8 +724,7 @@ public Builder addEstimatedPrice(com.google.type.Money value) {
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public Builder addEstimatedPrice(
-        int index, com.google.type.Money value) {
+    public Builder addEstimatedPrice(int index, com.google.type.Money value) {
       if (estimatedPriceBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -691,6 +738,8 @@ public Builder addEstimatedPrice(
       return this;
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -703,8 +752,7 @@ public Builder addEstimatedPrice(
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public Builder addEstimatedPrice(
-        com.google.type.Money.Builder builderForValue) {
+    public Builder addEstimatedPrice(com.google.type.Money.Builder builderForValue) {
       if (estimatedPriceBuilder_ == null) {
         ensureEstimatedPriceIsMutable();
         estimatedPrice_.add(builderForValue.build());
@@ -715,6 +763,8 @@ public Builder addEstimatedPrice(
       return this;
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -727,8 +777,7 @@ public Builder addEstimatedPrice(
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public Builder addEstimatedPrice(
-        int index, com.google.type.Money.Builder builderForValue) {
+    public Builder addEstimatedPrice(int index, com.google.type.Money.Builder builderForValue) {
       if (estimatedPriceBuilder_ == null) {
         ensureEstimatedPriceIsMutable();
         estimatedPrice_.add(index, builderForValue.build());
@@ -739,6 +788,8 @@ public Builder addEstimatedPrice(
       return this;
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -755,8 +806,7 @@ public Builder addAllEstimatedPrice(
         java.lang.Iterable values) {
       if (estimatedPriceBuilder_ == null) {
         ensureEstimatedPriceIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, estimatedPrice_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, estimatedPrice_);
         onChanged();
       } else {
         estimatedPriceBuilder_.addAllMessages(values);
@@ -764,6 +814,8 @@ public Builder addAllEstimatedPrice(
       return this;
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -787,6 +839,8 @@ public Builder clearEstimatedPrice() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -810,6 +864,8 @@ public Builder removeEstimatedPrice(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -822,11 +878,12 @@ public Builder removeEstimatedPrice(int index) {
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public com.google.type.Money.Builder getEstimatedPriceBuilder(
-        int index) {
+    public com.google.type.Money.Builder getEstimatedPriceBuilder(int index) {
       return getEstimatedPriceFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -839,14 +896,16 @@ public com.google.type.Money.Builder getEstimatedPriceBuilder(
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(
-        int index) {
+    public com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(int index) {
       if (estimatedPriceBuilder_ == null) {
-        return estimatedPrice_.get(index);  } else {
+        return estimatedPrice_.get(index);
+      } else {
         return estimatedPriceBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -859,8 +918,8 @@ public com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public java.util.List 
-         getEstimatedPriceOrBuilderList() {
+    public java.util.List
+        getEstimatedPriceOrBuilderList() {
       if (estimatedPriceBuilder_ != null) {
         return estimatedPriceBuilder_.getMessageOrBuilderList();
       } else {
@@ -868,6 +927,8 @@ public com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -881,10 +942,11 @@ public com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(
      * repeated .google.type.Money estimated_price = 1;
      */
     public com.google.type.Money.Builder addEstimatedPriceBuilder() {
-      return getEstimatedPriceFieldBuilder().addBuilder(
-          com.google.type.Money.getDefaultInstance());
+      return getEstimatedPriceFieldBuilder().addBuilder(com.google.type.Money.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -897,12 +959,13 @@ public com.google.type.Money.Builder addEstimatedPriceBuilder() {
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public com.google.type.Money.Builder addEstimatedPriceBuilder(
-        int index) {
-      return getEstimatedPriceFieldBuilder().addBuilder(
-          index, com.google.type.Money.getDefaultInstance());
+    public com.google.type.Money.Builder addEstimatedPriceBuilder(int index) {
+      return getEstimatedPriceFieldBuilder()
+          .addBuilder(index, com.google.type.Money.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The monetary amount of tolls for the corresponding
      * [Route][google.maps.routing.v2.Route] or
@@ -915,16 +978,19 @@ public com.google.type.Money.Builder addEstimatedPriceBuilder(
      *
      * repeated .google.type.Money estimated_price = 1;
      */
-    public java.util.List 
-         getEstimatedPriceBuilderList() {
+    public java.util.List getEstimatedPriceBuilderList() {
       return getEstimatedPriceFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> 
+            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
         getEstimatedPriceFieldBuilder() {
       if (estimatedPriceBuilder_ == null) {
-        estimatedPriceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>(
+        estimatedPriceBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.type.Money,
+                com.google.type.Money.Builder,
+                com.google.type.MoneyOrBuilder>(
                 estimatedPrice_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -933,9 +999,9 @@ public com.google.type.Money.Builder addEstimatedPriceBuilder(
       }
       return estimatedPriceBuilder_;
     }
+
     @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);
     }
 
@@ -945,12 +1011,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.TollInfo)
   }
 
   // @@protoc_insertion_point(class_scope:google.maps.routing.v2.TollInfo)
   private static final com.google.maps.routing.v2.TollInfo DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.maps.routing.v2.TollInfo();
   }
@@ -959,27 +1025,27 @@ public static com.google.maps.routing.v2.TollInfo getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public TollInfo 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 TollInfo 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;
@@ -994,6 +1060,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.maps.routing.v2.TollInfo getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoOrBuilder.java
similarity index 77%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoOrBuilder.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoOrBuilder.java
index 2ea8b93a0a46..dbb92b60c57a 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoOrBuilder.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoOrBuilder.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/maps/routing/v2/toll_info.proto
 
 package com.google.maps.routing.v2;
 
-public interface TollInfoOrBuilder extends
+public interface TollInfoOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.TollInfo)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -20,9 +38,10 @@ public interface TollInfoOrBuilder extends
    *
    * repeated .google.type.Money estimated_price = 1;
    */
-  java.util.List 
-      getEstimatedPriceList();
+  java.util.List getEstimatedPriceList();
   /**
+   *
+   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -37,6 +56,8 @@ public interface TollInfoOrBuilder extends
    */
   com.google.type.Money getEstimatedPrice(int index);
   /**
+   *
+   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -51,6 +72,8 @@ public interface TollInfoOrBuilder extends
    */
   int getEstimatedPriceCount();
   /**
+   *
+   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -63,9 +86,10 @@ public interface TollInfoOrBuilder extends
    *
    * repeated .google.type.Money estimated_price = 1;
    */
-  java.util.List 
-      getEstimatedPriceOrBuilderList();
+  java.util.List getEstimatedPriceOrBuilderList();
   /**
+   *
+   *
    * 
    * The monetary amount of tolls for the corresponding
    * [Route][google.maps.routing.v2.Route] or
@@ -78,6 +102,5 @@ public interface TollInfoOrBuilder extends
    *
    * repeated .google.type.Money estimated_price = 1;
    */
-  com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(
-      int index);
+  com.google.type.MoneyOrBuilder getEstimatedPriceOrBuilder(int index);
 }
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java
new file mode 100644
index 000000000000..b458764c7afc
--- /dev/null
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java
@@ -0,0 +1,71 @@
+/*
+ * 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/maps/routing/v2/toll_info.proto
+
+package com.google.maps.routing.v2;
+
+public final class TollInfoProto {
+  private TollInfoProto() {}
+
+  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_maps_routing_v2_TollInfo_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_maps_routing_v2_TollInfo_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/maps/routing/v2/toll_info.proto"
+          + "\022\026google.maps.routing.v2\032\027google/type/mo"
+          + "ney.proto\"7\n\010TollInfo\022+\n\017estimated_price"
+          + "\030\001 \003(\0132\022.google.type.MoneyB\302\001\n\032com.googl"
+          + "e.maps.routing.v2B\rTollInfoProtoP\001Z:clou"
+          + "d.google.com/go/maps/routing/apiv2/routi"
+          + "ngpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps."
+          + "Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Go"
+          + "ogle::Maps::Routing::V2b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.type.MoneyProto.getDescriptor(),
+            });
+    internal_static_google_maps_routing_v2_TollInfo_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_maps_routing_v2_TollInfo_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_maps_routing_v2_TollInfo_descriptor,
+            new java.lang.String[] {
+              "EstimatedPrice",
+            });
+    com.google.type.MoneyProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPass.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPass.java
similarity index 80%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPass.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPass.java
index 50790566ef0c..1ee55abadc3b 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPass.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPass.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/maps/routing/v2/toll_passes.proto
 
 package com.google.maps.routing.v2;
 
 /**
+ *
+ *
  * 
  * List of toll passes around the world that we support.
  * 
* * Protobuf enum {@code google.maps.routing.v2.TollPass} */ -public enum TollPass - implements com.google.protobuf.ProtocolMessageEnum { +public enum TollPass implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Not used. If this value is used, then the request fails.
    * 
@@ -21,6 +39,8 @@ public enum TollPass */ TOLL_PASS_UNSPECIFIED(0), /** + * + * *
    * Sydney toll pass. See additional details at https://www.myetoll.com.au.
    * 
@@ -29,6 +49,8 @@ public enum TollPass */ AU_ETOLL_TAG(82), /** + * + * *
    * Sydney toll pass. See additional details at https://www.tollpay.com.au.
    * 
@@ -37,6 +59,8 @@ public enum TollPass */ AU_EWAY_TAG(83), /** + * + * *
    * Australia-wide toll pass.
    * See additional details at https://www.linkt.com.au/.
@@ -46,6 +70,8 @@ public enum TollPass
    */
   AU_LINKT(2),
   /**
+   *
+   *
    * 
    * Argentina toll pass. See additional details at https://telepase.com.ar
    * 
@@ -54,6 +80,8 @@ public enum TollPass */ AR_TELEPASE(3), /** + * + * *
    * Brazil toll pass. See additional details at https://www.autoexpreso.com
    * 
@@ -62,6 +90,8 @@ public enum TollPass */ BR_AUTO_EXPRESO(81), /** + * + * *
    * Brazil toll pass. See additional details at https://conectcar.com.
    * 
@@ -70,6 +100,8 @@ public enum TollPass */ BR_CONECTCAR(7), /** + * + * *
    * Brazil toll pass. See additional details at https://movemais.com.
    * 
@@ -78,6 +110,8 @@ public enum TollPass */ BR_MOVE_MAIS(8), /** + * + * *
    * Brazil toll pass. See additional details at https://pasorapido.gob.do/
    * 
@@ -86,6 +120,8 @@ public enum TollPass */ BR_PASSA_RAPIDO(88), /** + * + * *
    * Brazil toll pass. See additional details at https://www.semparar.com.br.
    * 
@@ -94,6 +130,8 @@ public enum TollPass */ BR_SEM_PARAR(9), /** + * + * *
    * Brazil toll pass. See additional details at https://taggy.com.br.
    * 
@@ -102,6 +140,8 @@ public enum TollPass */ BR_TAGGY(10), /** + * + * *
    * Brazil toll pass. See additional details at
    * https://veloe.com.br/site/onde-usar.
@@ -111,6 +151,8 @@ public enum TollPass
    */
   BR_VELOE(11),
   /**
+   *
+   *
    * 
    * Canada to United States border crossing.
    * 
@@ -119,6 +161,8 @@ public enum TollPass */ CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD(84), /** + * + * *
    * Canada to United States border crossing.
    * 
@@ -127,6 +171,8 @@ public enum TollPass */ CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD(85), /** + * + * *
    * Ontario, Canada to Michigan, United States border crossing.
    * 
@@ -135,6 +181,8 @@ public enum TollPass */ CA_US_BLUE_WATER_EDGE_PASS(18), /** + * + * *
    * Ontario, Canada to Michigan, United States border crossing.
    * 
@@ -143,6 +191,8 @@ public enum TollPass */ CA_US_CONNEXION(19), /** + * + * *
    * Canada to United States border crossing.
    * 
@@ -151,6 +201,8 @@ public enum TollPass */ CA_US_NEXUS_CARD(20), /** + * + * *
    * Indonesia.
    * E-card provided by multiple banks used to pay for tolls. All e-cards
@@ -164,6 +216,8 @@ public enum TollPass
    */
   ID_E_TOLL(16),
   /**
+   *
+   *
    * 
    * India.
    * 
@@ -172,6 +226,8 @@ public enum TollPass */ IN_FASTAG(78), /** + * + * *
    * India, HP state plate exemption.
    * 
@@ -180,6 +236,8 @@ public enum TollPass */ IN_LOCAL_HP_PLATE_EXEMPT(79), /** + * + * *
    * Mexico toll pass.
    * https://iave.capufe.gob.mx/#/
@@ -189,6 +247,8 @@ public enum TollPass
    */
   MX_IAVE(90),
   /**
+   *
+   *
    * 
    * Mexico
    * https://www.pase.com.mx
@@ -198,6 +258,8 @@ public enum TollPass
    */
   MX_PASE(91),
   /**
+   *
+   *
    * 
    * Mexico
    *  https://operadoravial.com/quick-pass/
@@ -207,6 +269,8 @@ public enum TollPass
    */
   MX_QUICKPASS(93),
   /**
+   *
+   *
    * 
    * http://appsh.chihuahua.gob.mx/transparencia/?doc=/ingresos/TelepeajeFormato4.pdf
    * 
@@ -215,6 +279,8 @@ public enum TollPass */ MX_SISTEMA_TELEPEAJE_CHIHUAHUA(89), /** + * + * *
    * Mexico
    * 
@@ -223,6 +289,8 @@ public enum TollPass */ MX_TAG_IAVE(12), /** + * + * *
    * Mexico toll pass company. One of many operating in Mexico City. See
    * additional details at https://www.televia.com.mx.
@@ -232,6 +300,8 @@ public enum TollPass
    */
   MX_TAG_TELEVIA(13),
   /**
+   *
+   *
    * 
    * Mexico toll pass company. One of many operating in Mexico City.
    * https://www.televia.com.mx
@@ -241,6 +311,8 @@ public enum TollPass
    */
   MX_TELEVIA(92),
   /**
+   *
+   *
    * 
    * Mexico toll pass. See additional details at
    * https://www.viapass.com.mx/viapass/web_home.aspx.
@@ -250,6 +322,8 @@ public enum TollPass
    */
   MX_VIAPASS(14),
   /**
+   *
+   *
    * 
    * AL, USA.
    * 
@@ -258,6 +332,8 @@ public enum TollPass */ US_AL_FREEDOM_PASS(21), /** + * + * *
    * AK, USA.
    * 
@@ -266,6 +342,8 @@ public enum TollPass */ US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS(22), /** + * + * *
    * CA, USA.
    * 
@@ -274,6 +352,8 @@ public enum TollPass */ US_CA_FASTRAK(4), /** + * + * *
    * Indicates driver has any FasTrak pass in addition to the DMV issued Clean
    * Air Vehicle (CAV) sticker.
@@ -284,6 +364,8 @@ public enum TollPass
    */
   US_CA_FASTRAK_CAV_STICKER(86),
   /**
+   *
+   *
    * 
    * CO, USA.
    * 
@@ -292,6 +374,8 @@ public enum TollPass */ US_CO_EXPRESSTOLL(23), /** + * + * *
    * CO, USA.
    * 
@@ -300,6 +384,8 @@ public enum TollPass */ US_CO_GO_PASS(24), /** + * + * *
    * DE, USA.
    * 
@@ -308,6 +394,8 @@ public enum TollPass */ US_DE_EZPASSDE(25), /** + * + * *
    * FL, USA.
    * 
@@ -316,6 +404,8 @@ public enum TollPass */ US_FL_BOB_SIKES_TOLL_BRIDGE_PASS(65), /** + * + * *
    * FL, USA.
    * 
@@ -324,6 +414,8 @@ public enum TollPass */ US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD(66), /** + * + * *
    * FL, USA.
    * 
@@ -332,6 +424,8 @@ public enum TollPass */ US_FL_EPASS(67), /** + * + * *
    * FL, USA.
    * 
@@ -340,6 +434,8 @@ public enum TollPass */ US_FL_GIBA_TOLL_PASS(68), /** + * + * *
    * FL, USA.
    * 
@@ -348,6 +444,8 @@ public enum TollPass */ US_FL_LEEWAY(69), /** + * + * *
    * FL, USA.
    * 
@@ -356,6 +454,8 @@ public enum TollPass */ US_FL_SUNPASS(70), /** + * + * *
    * FL, USA.
    * 
@@ -364,6 +464,8 @@ public enum TollPass */ US_FL_SUNPASS_PRO(71), /** + * + * *
    * IL, USA.
    * 
@@ -372,6 +474,8 @@ public enum TollPass */ US_IL_EZPASSIL(73), /** + * + * *
    * IL, USA.
    * 
@@ -380,6 +484,8 @@ public enum TollPass */ US_IL_IPASS(72), /** + * + * *
    * IN, USA.
    * 
@@ -388,6 +494,8 @@ public enum TollPass */ US_IN_EZPASSIN(26), /** + * + * *
    * KS, USA.
    * 
@@ -396,6 +504,8 @@ public enum TollPass */ US_KS_BESTPASS_HORIZON(27), /** + * + * *
    * KS, USA.
    * 
@@ -404,6 +514,8 @@ public enum TollPass */ US_KS_KTAG(28), /** + * + * *
    * KS, USA.
    * 
@@ -412,6 +524,8 @@ public enum TollPass */ US_KS_NATIONALPASS(29), /** + * + * *
    * KS, USA.
    * 
@@ -420,6 +534,8 @@ public enum TollPass */ US_KS_PREPASS_ELITEPASS(30), /** + * + * *
    * KY, USA.
    * 
@@ -428,6 +544,8 @@ public enum TollPass */ US_KY_RIVERLINK(31), /** + * + * *
    * LA, USA.
    * 
@@ -436,6 +554,8 @@ public enum TollPass */ US_LA_GEAUXPASS(32), /** + * + * *
    * LA, USA.
    * 
@@ -444,6 +564,8 @@ public enum TollPass */ US_LA_TOLL_TAG(33), /** + * + * *
    * MA, USA.
    * 
@@ -452,6 +574,8 @@ public enum TollPass */ US_MA_EZPASSMA(6), /** + * + * *
    * MD, USA.
    * 
@@ -460,6 +584,8 @@ public enum TollPass */ US_MD_EZPASSMD(34), /** + * + * *
    * ME, USA.
    * 
@@ -468,6 +594,8 @@ public enum TollPass */ US_ME_EZPASSME(35), /** + * + * *
    * MI, USA.
    * 
@@ -476,6 +604,8 @@ public enum TollPass */ US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD(36), /** + * + * *
    * MI, USA.
    * 
@@ -484,6 +614,8 @@ public enum TollPass */ US_MI_BCPASS(94), /** + * + * *
    * MI, USA.
    * 
@@ -492,6 +624,8 @@ public enum TollPass */ US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG(37), /** + * + * *
    * MI, USA.
    * Deprecated as this pass type no longer exists.
@@ -502,6 +636,8 @@ public enum TollPass
   @java.lang.Deprecated
   US_MI_IQ_PROX_CARD(38),
   /**
+   *
+   *
    * 
    * MI, USA.
    * 
@@ -510,6 +646,8 @@ public enum TollPass */ US_MI_IQ_TAG(95), /** + * + * *
    * MI, USA.
    * 
@@ -518,6 +656,8 @@ public enum TollPass */ US_MI_MACKINAC_BRIDGE_MAC_PASS(39), /** + * + * *
    * MI, USA.
    * 
@@ -526,6 +666,8 @@ public enum TollPass */ US_MI_NEXPRESS_TOLL(40), /** + * + * *
    * MN, USA.
    * 
@@ -534,6 +676,8 @@ public enum TollPass */ US_MN_EZPASSMN(41), /** + * + * *
    * NC, USA.
    * 
@@ -542,6 +686,8 @@ public enum TollPass */ US_NC_EZPASSNC(42), /** + * + * *
    * NC, USA.
    * 
@@ -550,6 +696,8 @@ public enum TollPass */ US_NC_PEACH_PASS(87), /** + * + * *
    * NC, USA.
    * 
@@ -558,6 +706,8 @@ public enum TollPass */ US_NC_QUICK_PASS(43), /** + * + * *
    * NH, USA.
    * 
@@ -566,6 +716,8 @@ public enum TollPass */ US_NH_EZPASSNH(80), /** + * + * *
    * NJ, USA.
    * 
@@ -574,6 +726,8 @@ public enum TollPass */ US_NJ_DOWNBEACH_EXPRESS_PASS(75), /** + * + * *
    * NJ, USA.
    * 
@@ -582,6 +736,8 @@ public enum TollPass */ US_NJ_EZPASSNJ(74), /** + * + * *
    * NY, USA.
    * 
@@ -590,6 +746,8 @@ public enum TollPass */ US_NY_EXPRESSPASS(76), /** + * + * *
    * NY, USA.
    * 
@@ -598,6 +756,8 @@ public enum TollPass */ US_NY_EZPASSNY(77), /** + * + * *
    * OH, USA.
    * 
@@ -606,6 +766,8 @@ public enum TollPass */ US_OH_EZPASSOH(44), /** + * + * *
    * PA, USA.
    * 
@@ -614,6 +776,8 @@ public enum TollPass */ US_PA_EZPASSPA(45), /** + * + * *
    * RI, USA.
    * 
@@ -622,6 +786,8 @@ public enum TollPass */ US_RI_EZPASSRI(46), /** + * + * *
    * SC, USA.
    * 
@@ -630,6 +796,8 @@ public enum TollPass */ US_SC_PALPASS(47), /** + * + * *
    * TX, USA.
    * 
@@ -638,6 +806,8 @@ public enum TollPass */ US_TX_AVI_TAG(97), /** + * + * *
    * TX, USA.
    * 
@@ -646,6 +816,8 @@ public enum TollPass */ US_TX_BANCPASS(48), /** + * + * *
    * TX, USA.
    * 
@@ -654,6 +826,8 @@ public enum TollPass */ US_TX_DEL_RIO_PASS(49), /** + * + * *
    * TX, USA.
    * 
@@ -662,6 +836,8 @@ public enum TollPass */ US_TX_EFAST_PASS(50), /** + * + * *
    * TX, USA.
    * 
@@ -670,6 +846,8 @@ public enum TollPass */ US_TX_EAGLE_PASS_EXPRESS_CARD(51), /** + * + * *
    * TX, USA.
    * 
@@ -678,6 +856,8 @@ public enum TollPass */ US_TX_EPTOLL(52), /** + * + * *
    * TX, USA.
    * 
@@ -686,6 +866,8 @@ public enum TollPass */ US_TX_EZ_CROSS(53), /** + * + * *
    * TX, USA.
    * 
@@ -694,6 +876,8 @@ public enum TollPass */ US_TX_EZTAG(54), /** + * + * *
    * TX, USA.
    * 
@@ -702,6 +886,8 @@ public enum TollPass */ US_TX_FUEGO_TAG(96), /** + * + * *
    * TX, USA.
    * 
@@ -710,6 +896,8 @@ public enum TollPass */ US_TX_LAREDO_TRADE_TAG(55), /** + * + * *
    * TX, USA.
    * 
@@ -718,6 +906,8 @@ public enum TollPass */ US_TX_PLUSPASS(56), /** + * + * *
    * TX, USA.
    * 
@@ -726,6 +916,8 @@ public enum TollPass */ US_TX_TOLLTAG(57), /** + * + * *
    * TX, USA.
    * 
@@ -734,6 +926,8 @@ public enum TollPass */ US_TX_TXTAG(58), /** + * + * *
    * TX, USA.
    * 
@@ -742,6 +936,8 @@ public enum TollPass */ US_TX_XPRESS_CARD(59), /** + * + * *
    * UT, USA.
    * 
@@ -750,6 +946,8 @@ public enum TollPass */ US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD(60), /** + * + * *
    * VA, USA.
    * 
@@ -758,6 +956,8 @@ public enum TollPass */ US_VA_EZPASSVA(61), /** + * + * *
    * WA, USA.
    * 
@@ -766,6 +966,8 @@ public enum TollPass */ US_WA_BREEZEBY(17), /** + * + * *
    * WA, USA.
    * 
@@ -774,6 +976,8 @@ public enum TollPass */ US_WA_GOOD_TO_GO(1), /** + * + * *
    * WV, USA.
    * 
@@ -782,6 +986,8 @@ public enum TollPass */ US_WV_EZPASSWV(62), /** + * + * *
    * WV, USA.
    * 
@@ -790,6 +996,8 @@ public enum TollPass */ US_WV_MEMORIAL_BRIDGE_TICKETS(63), /** + * + * *
    * WV, USA.
    * 
@@ -801,6 +1009,8 @@ public enum TollPass ; /** + * + * *
    * Not used. If this value is used, then the request fails.
    * 
@@ -809,6 +1019,8 @@ public enum TollPass */ public static final int TOLL_PASS_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Sydney toll pass. See additional details at https://www.myetoll.com.au.
    * 
@@ -817,6 +1029,8 @@ public enum TollPass */ public static final int AU_ETOLL_TAG_VALUE = 82; /** + * + * *
    * Sydney toll pass. See additional details at https://www.tollpay.com.au.
    * 
@@ -825,6 +1039,8 @@ public enum TollPass */ public static final int AU_EWAY_TAG_VALUE = 83; /** + * + * *
    * Australia-wide toll pass.
    * See additional details at https://www.linkt.com.au/.
@@ -834,6 +1050,8 @@ public enum TollPass
    */
   public static final int AU_LINKT_VALUE = 2;
   /**
+   *
+   *
    * 
    * Argentina toll pass. See additional details at https://telepase.com.ar
    * 
@@ -842,6 +1060,8 @@ public enum TollPass */ public static final int AR_TELEPASE_VALUE = 3; /** + * + * *
    * Brazil toll pass. See additional details at https://www.autoexpreso.com
    * 
@@ -850,6 +1070,8 @@ public enum TollPass */ public static final int BR_AUTO_EXPRESO_VALUE = 81; /** + * + * *
    * Brazil toll pass. See additional details at https://conectcar.com.
    * 
@@ -858,6 +1080,8 @@ public enum TollPass */ public static final int BR_CONECTCAR_VALUE = 7; /** + * + * *
    * Brazil toll pass. See additional details at https://movemais.com.
    * 
@@ -866,6 +1090,8 @@ public enum TollPass */ public static final int BR_MOVE_MAIS_VALUE = 8; /** + * + * *
    * Brazil toll pass. See additional details at https://pasorapido.gob.do/
    * 
@@ -874,6 +1100,8 @@ public enum TollPass */ public static final int BR_PASSA_RAPIDO_VALUE = 88; /** + * + * *
    * Brazil toll pass. See additional details at https://www.semparar.com.br.
    * 
@@ -882,6 +1110,8 @@ public enum TollPass */ public static final int BR_SEM_PARAR_VALUE = 9; /** + * + * *
    * Brazil toll pass. See additional details at https://taggy.com.br.
    * 
@@ -890,6 +1120,8 @@ public enum TollPass */ public static final int BR_TAGGY_VALUE = 10; /** + * + * *
    * Brazil toll pass. See additional details at
    * https://veloe.com.br/site/onde-usar.
@@ -899,6 +1131,8 @@ public enum TollPass
    */
   public static final int BR_VELOE_VALUE = 11;
   /**
+   *
+   *
    * 
    * Canada to United States border crossing.
    * 
@@ -907,6 +1141,8 @@ public enum TollPass */ public static final int CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD_VALUE = 84; /** + * + * *
    * Canada to United States border crossing.
    * 
@@ -915,6 +1151,8 @@ public enum TollPass */ public static final int CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD_VALUE = 85; /** + * + * *
    * Ontario, Canada to Michigan, United States border crossing.
    * 
@@ -923,6 +1161,8 @@ public enum TollPass */ public static final int CA_US_BLUE_WATER_EDGE_PASS_VALUE = 18; /** + * + * *
    * Ontario, Canada to Michigan, United States border crossing.
    * 
@@ -931,6 +1171,8 @@ public enum TollPass */ public static final int CA_US_CONNEXION_VALUE = 19; /** + * + * *
    * Canada to United States border crossing.
    * 
@@ -939,6 +1181,8 @@ public enum TollPass */ public static final int CA_US_NEXUS_CARD_VALUE = 20; /** + * + * *
    * Indonesia.
    * E-card provided by multiple banks used to pay for tolls. All e-cards
@@ -952,6 +1196,8 @@ public enum TollPass
    */
   public static final int ID_E_TOLL_VALUE = 16;
   /**
+   *
+   *
    * 
    * India.
    * 
@@ -960,6 +1206,8 @@ public enum TollPass */ public static final int IN_FASTAG_VALUE = 78; /** + * + * *
    * India, HP state plate exemption.
    * 
@@ -968,6 +1216,8 @@ public enum TollPass */ public static final int IN_LOCAL_HP_PLATE_EXEMPT_VALUE = 79; /** + * + * *
    * Mexico toll pass.
    * https://iave.capufe.gob.mx/#/
@@ -977,6 +1227,8 @@ public enum TollPass
    */
   public static final int MX_IAVE_VALUE = 90;
   /**
+   *
+   *
    * 
    * Mexico
    * https://www.pase.com.mx
@@ -986,6 +1238,8 @@ public enum TollPass
    */
   public static final int MX_PASE_VALUE = 91;
   /**
+   *
+   *
    * 
    * Mexico
    *  https://operadoravial.com/quick-pass/
@@ -995,6 +1249,8 @@ public enum TollPass
    */
   public static final int MX_QUICKPASS_VALUE = 93;
   /**
+   *
+   *
    * 
    * http://appsh.chihuahua.gob.mx/transparencia/?doc=/ingresos/TelepeajeFormato4.pdf
    * 
@@ -1003,6 +1259,8 @@ public enum TollPass */ public static final int MX_SISTEMA_TELEPEAJE_CHIHUAHUA_VALUE = 89; /** + * + * *
    * Mexico
    * 
@@ -1011,6 +1269,8 @@ public enum TollPass */ public static final int MX_TAG_IAVE_VALUE = 12; /** + * + * *
    * Mexico toll pass company. One of many operating in Mexico City. See
    * additional details at https://www.televia.com.mx.
@@ -1020,6 +1280,8 @@ public enum TollPass
    */
   public static final int MX_TAG_TELEVIA_VALUE = 13;
   /**
+   *
+   *
    * 
    * Mexico toll pass company. One of many operating in Mexico City.
    * https://www.televia.com.mx
@@ -1029,6 +1291,8 @@ public enum TollPass
    */
   public static final int MX_TELEVIA_VALUE = 92;
   /**
+   *
+   *
    * 
    * Mexico toll pass. See additional details at
    * https://www.viapass.com.mx/viapass/web_home.aspx.
@@ -1038,6 +1302,8 @@ public enum TollPass
    */
   public static final int MX_VIAPASS_VALUE = 14;
   /**
+   *
+   *
    * 
    * AL, USA.
    * 
@@ -1046,6 +1312,8 @@ public enum TollPass */ public static final int US_AL_FREEDOM_PASS_VALUE = 21; /** + * + * *
    * AK, USA.
    * 
@@ -1054,6 +1322,8 @@ public enum TollPass */ public static final int US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS_VALUE = 22; /** + * + * *
    * CA, USA.
    * 
@@ -1062,6 +1332,8 @@ public enum TollPass */ public static final int US_CA_FASTRAK_VALUE = 4; /** + * + * *
    * Indicates driver has any FasTrak pass in addition to the DMV issued Clean
    * Air Vehicle (CAV) sticker.
@@ -1072,6 +1344,8 @@ public enum TollPass
    */
   public static final int US_CA_FASTRAK_CAV_STICKER_VALUE = 86;
   /**
+   *
+   *
    * 
    * CO, USA.
    * 
@@ -1080,6 +1354,8 @@ public enum TollPass */ public static final int US_CO_EXPRESSTOLL_VALUE = 23; /** + * + * *
    * CO, USA.
    * 
@@ -1088,6 +1364,8 @@ public enum TollPass */ public static final int US_CO_GO_PASS_VALUE = 24; /** + * + * *
    * DE, USA.
    * 
@@ -1096,6 +1374,8 @@ public enum TollPass */ public static final int US_DE_EZPASSDE_VALUE = 25; /** + * + * *
    * FL, USA.
    * 
@@ -1104,6 +1384,8 @@ public enum TollPass */ public static final int US_FL_BOB_SIKES_TOLL_BRIDGE_PASS_VALUE = 65; /** + * + * *
    * FL, USA.
    * 
@@ -1112,6 +1394,8 @@ public enum TollPass */ public static final int US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD_VALUE = 66; /** + * + * *
    * FL, USA.
    * 
@@ -1120,6 +1404,8 @@ public enum TollPass */ public static final int US_FL_EPASS_VALUE = 67; /** + * + * *
    * FL, USA.
    * 
@@ -1128,6 +1414,8 @@ public enum TollPass */ public static final int US_FL_GIBA_TOLL_PASS_VALUE = 68; /** + * + * *
    * FL, USA.
    * 
@@ -1136,6 +1424,8 @@ public enum TollPass */ public static final int US_FL_LEEWAY_VALUE = 69; /** + * + * *
    * FL, USA.
    * 
@@ -1144,6 +1434,8 @@ public enum TollPass */ public static final int US_FL_SUNPASS_VALUE = 70; /** + * + * *
    * FL, USA.
    * 
@@ -1152,6 +1444,8 @@ public enum TollPass */ public static final int US_FL_SUNPASS_PRO_VALUE = 71; /** + * + * *
    * IL, USA.
    * 
@@ -1160,6 +1454,8 @@ public enum TollPass */ public static final int US_IL_EZPASSIL_VALUE = 73; /** + * + * *
    * IL, USA.
    * 
@@ -1168,6 +1464,8 @@ public enum TollPass */ public static final int US_IL_IPASS_VALUE = 72; /** + * + * *
    * IN, USA.
    * 
@@ -1176,6 +1474,8 @@ public enum TollPass */ public static final int US_IN_EZPASSIN_VALUE = 26; /** + * + * *
    * KS, USA.
    * 
@@ -1184,6 +1484,8 @@ public enum TollPass */ public static final int US_KS_BESTPASS_HORIZON_VALUE = 27; /** + * + * *
    * KS, USA.
    * 
@@ -1192,6 +1494,8 @@ public enum TollPass */ public static final int US_KS_KTAG_VALUE = 28; /** + * + * *
    * KS, USA.
    * 
@@ -1200,6 +1504,8 @@ public enum TollPass */ public static final int US_KS_NATIONALPASS_VALUE = 29; /** + * + * *
    * KS, USA.
    * 
@@ -1208,6 +1514,8 @@ public enum TollPass */ public static final int US_KS_PREPASS_ELITEPASS_VALUE = 30; /** + * + * *
    * KY, USA.
    * 
@@ -1216,6 +1524,8 @@ public enum TollPass */ public static final int US_KY_RIVERLINK_VALUE = 31; /** + * + * *
    * LA, USA.
    * 
@@ -1224,6 +1534,8 @@ public enum TollPass */ public static final int US_LA_GEAUXPASS_VALUE = 32; /** + * + * *
    * LA, USA.
    * 
@@ -1232,6 +1544,8 @@ public enum TollPass */ public static final int US_LA_TOLL_TAG_VALUE = 33; /** + * + * *
    * MA, USA.
    * 
@@ -1240,6 +1554,8 @@ public enum TollPass */ public static final int US_MA_EZPASSMA_VALUE = 6; /** + * + * *
    * MD, USA.
    * 
@@ -1248,6 +1564,8 @@ public enum TollPass */ public static final int US_MD_EZPASSMD_VALUE = 34; /** + * + * *
    * ME, USA.
    * 
@@ -1256,6 +1574,8 @@ public enum TollPass */ public static final int US_ME_EZPASSME_VALUE = 35; /** + * + * *
    * MI, USA.
    * 
@@ -1264,6 +1584,8 @@ public enum TollPass */ public static final int US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD_VALUE = 36; /** + * + * *
    * MI, USA.
    * 
@@ -1272,6 +1594,8 @@ public enum TollPass */ public static final int US_MI_BCPASS_VALUE = 94; /** + * + * *
    * MI, USA.
    * 
@@ -1280,6 +1604,8 @@ public enum TollPass */ public static final int US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG_VALUE = 37; /** + * + * *
    * MI, USA.
    * Deprecated as this pass type no longer exists.
@@ -1289,6 +1615,8 @@ public enum TollPass
    */
   @java.lang.Deprecated public static final int US_MI_IQ_PROX_CARD_VALUE = 38;
   /**
+   *
+   *
    * 
    * MI, USA.
    * 
@@ -1297,6 +1625,8 @@ public enum TollPass */ public static final int US_MI_IQ_TAG_VALUE = 95; /** + * + * *
    * MI, USA.
    * 
@@ -1305,6 +1635,8 @@ public enum TollPass */ public static final int US_MI_MACKINAC_BRIDGE_MAC_PASS_VALUE = 39; /** + * + * *
    * MI, USA.
    * 
@@ -1313,6 +1645,8 @@ public enum TollPass */ public static final int US_MI_NEXPRESS_TOLL_VALUE = 40; /** + * + * *
    * MN, USA.
    * 
@@ -1321,6 +1655,8 @@ public enum TollPass */ public static final int US_MN_EZPASSMN_VALUE = 41; /** + * + * *
    * NC, USA.
    * 
@@ -1329,6 +1665,8 @@ public enum TollPass */ public static final int US_NC_EZPASSNC_VALUE = 42; /** + * + * *
    * NC, USA.
    * 
@@ -1337,6 +1675,8 @@ public enum TollPass */ public static final int US_NC_PEACH_PASS_VALUE = 87; /** + * + * *
    * NC, USA.
    * 
@@ -1345,6 +1685,8 @@ public enum TollPass */ public static final int US_NC_QUICK_PASS_VALUE = 43; /** + * + * *
    * NH, USA.
    * 
@@ -1353,6 +1695,8 @@ public enum TollPass */ public static final int US_NH_EZPASSNH_VALUE = 80; /** + * + * *
    * NJ, USA.
    * 
@@ -1361,6 +1705,8 @@ public enum TollPass */ public static final int US_NJ_DOWNBEACH_EXPRESS_PASS_VALUE = 75; /** + * + * *
    * NJ, USA.
    * 
@@ -1369,6 +1715,8 @@ public enum TollPass */ public static final int US_NJ_EZPASSNJ_VALUE = 74; /** + * + * *
    * NY, USA.
    * 
@@ -1377,6 +1725,8 @@ public enum TollPass */ public static final int US_NY_EXPRESSPASS_VALUE = 76; /** + * + * *
    * NY, USA.
    * 
@@ -1385,6 +1735,8 @@ public enum TollPass */ public static final int US_NY_EZPASSNY_VALUE = 77; /** + * + * *
    * OH, USA.
    * 
@@ -1393,6 +1745,8 @@ public enum TollPass */ public static final int US_OH_EZPASSOH_VALUE = 44; /** + * + * *
    * PA, USA.
    * 
@@ -1401,6 +1755,8 @@ public enum TollPass */ public static final int US_PA_EZPASSPA_VALUE = 45; /** + * + * *
    * RI, USA.
    * 
@@ -1409,6 +1765,8 @@ public enum TollPass */ public static final int US_RI_EZPASSRI_VALUE = 46; /** + * + * *
    * SC, USA.
    * 
@@ -1417,6 +1775,8 @@ public enum TollPass */ public static final int US_SC_PALPASS_VALUE = 47; /** + * + * *
    * TX, USA.
    * 
@@ -1425,6 +1785,8 @@ public enum TollPass */ public static final int US_TX_AVI_TAG_VALUE = 97; /** + * + * *
    * TX, USA.
    * 
@@ -1433,6 +1795,8 @@ public enum TollPass */ public static final int US_TX_BANCPASS_VALUE = 48; /** + * + * *
    * TX, USA.
    * 
@@ -1441,6 +1805,8 @@ public enum TollPass */ public static final int US_TX_DEL_RIO_PASS_VALUE = 49; /** + * + * *
    * TX, USA.
    * 
@@ -1449,6 +1815,8 @@ public enum TollPass */ public static final int US_TX_EFAST_PASS_VALUE = 50; /** + * + * *
    * TX, USA.
    * 
@@ -1457,6 +1825,8 @@ public enum TollPass */ public static final int US_TX_EAGLE_PASS_EXPRESS_CARD_VALUE = 51; /** + * + * *
    * TX, USA.
    * 
@@ -1465,6 +1835,8 @@ public enum TollPass */ public static final int US_TX_EPTOLL_VALUE = 52; /** + * + * *
    * TX, USA.
    * 
@@ -1473,6 +1845,8 @@ public enum TollPass */ public static final int US_TX_EZ_CROSS_VALUE = 53; /** + * + * *
    * TX, USA.
    * 
@@ -1481,6 +1855,8 @@ public enum TollPass */ public static final int US_TX_EZTAG_VALUE = 54; /** + * + * *
    * TX, USA.
    * 
@@ -1489,6 +1865,8 @@ public enum TollPass */ public static final int US_TX_FUEGO_TAG_VALUE = 96; /** + * + * *
    * TX, USA.
    * 
@@ -1497,6 +1875,8 @@ public enum TollPass */ public static final int US_TX_LAREDO_TRADE_TAG_VALUE = 55; /** + * + * *
    * TX, USA.
    * 
@@ -1505,6 +1885,8 @@ public enum TollPass */ public static final int US_TX_PLUSPASS_VALUE = 56; /** + * + * *
    * TX, USA.
    * 
@@ -1513,6 +1895,8 @@ public enum TollPass */ public static final int US_TX_TOLLTAG_VALUE = 57; /** + * + * *
    * TX, USA.
    * 
@@ -1521,6 +1905,8 @@ public enum TollPass */ public static final int US_TX_TXTAG_VALUE = 58; /** + * + * *
    * TX, USA.
    * 
@@ -1529,6 +1915,8 @@ public enum TollPass */ public static final int US_TX_XPRESS_CARD_VALUE = 59; /** + * + * *
    * UT, USA.
    * 
@@ -1537,6 +1925,8 @@ public enum TollPass */ public static final int US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD_VALUE = 60; /** + * + * *
    * VA, USA.
    * 
@@ -1545,6 +1935,8 @@ public enum TollPass */ public static final int US_VA_EZPASSVA_VALUE = 61; /** + * + * *
    * WA, USA.
    * 
@@ -1553,6 +1945,8 @@ public enum TollPass */ public static final int US_WA_BREEZEBY_VALUE = 17; /** + * + * *
    * WA, USA.
    * 
@@ -1561,6 +1955,8 @@ public enum TollPass */ public static final int US_WA_GOOD_TO_GO_VALUE = 1; /** + * + * *
    * WV, USA.
    * 
@@ -1569,6 +1965,8 @@ public enum TollPass */ public static final int US_WV_EZPASSWV_VALUE = 62; /** + * + * *
    * WV, USA.
    * 
@@ -1577,6 +1975,8 @@ public enum TollPass */ public static final int US_WV_MEMORIAL_BRIDGE_TICKETS_VALUE = 63; /** + * + * *
    * WV, USA.
    * 
@@ -1585,7 +1985,6 @@ public enum TollPass */ public static final int US_WV_NEWELL_TOLL_BRIDGE_TICKET_VALUE = 64; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1610,142 +2009,235 @@ public static TollPass valueOf(int value) { */ public static TollPass forNumber(int value) { switch (value) { - case 0: return TOLL_PASS_UNSPECIFIED; - case 82: return AU_ETOLL_TAG; - case 83: return AU_EWAY_TAG; - case 2: return AU_LINKT; - case 3: return AR_TELEPASE; - case 81: return BR_AUTO_EXPRESO; - case 7: return BR_CONECTCAR; - case 8: return BR_MOVE_MAIS; - case 88: return BR_PASSA_RAPIDO; - case 9: return BR_SEM_PARAR; - case 10: return BR_TAGGY; - case 11: return BR_VELOE; - case 84: return CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD; - case 85: return CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD; - case 18: return CA_US_BLUE_WATER_EDGE_PASS; - case 19: return CA_US_CONNEXION; - case 20: return CA_US_NEXUS_CARD; - case 16: return ID_E_TOLL; - case 78: return IN_FASTAG; - case 79: return IN_LOCAL_HP_PLATE_EXEMPT; - case 90: return MX_IAVE; - case 91: return MX_PASE; - case 93: return MX_QUICKPASS; - case 89: return MX_SISTEMA_TELEPEAJE_CHIHUAHUA; - case 12: return MX_TAG_IAVE; - case 13: return MX_TAG_TELEVIA; - case 92: return MX_TELEVIA; - case 14: return MX_VIAPASS; - case 21: return US_AL_FREEDOM_PASS; - case 22: return US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS; - case 4: return US_CA_FASTRAK; - case 86: return US_CA_FASTRAK_CAV_STICKER; - case 23: return US_CO_EXPRESSTOLL; - case 24: return US_CO_GO_PASS; - case 25: return US_DE_EZPASSDE; - case 65: return US_FL_BOB_SIKES_TOLL_BRIDGE_PASS; - case 66: return US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD; - case 67: return US_FL_EPASS; - case 68: return US_FL_GIBA_TOLL_PASS; - case 69: return US_FL_LEEWAY; - case 70: return US_FL_SUNPASS; - case 71: return US_FL_SUNPASS_PRO; - case 73: return US_IL_EZPASSIL; - case 72: return US_IL_IPASS; - case 26: return US_IN_EZPASSIN; - case 27: return US_KS_BESTPASS_HORIZON; - case 28: return US_KS_KTAG; - case 29: return US_KS_NATIONALPASS; - case 30: return US_KS_PREPASS_ELITEPASS; - case 31: return US_KY_RIVERLINK; - case 32: return US_LA_GEAUXPASS; - case 33: return US_LA_TOLL_TAG; - case 6: return US_MA_EZPASSMA; - case 34: return US_MD_EZPASSMD; - case 35: return US_ME_EZPASSME; - case 36: return US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD; - case 94: return US_MI_BCPASS; - case 37: return US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG; - case 38: return US_MI_IQ_PROX_CARD; - case 95: return US_MI_IQ_TAG; - case 39: return US_MI_MACKINAC_BRIDGE_MAC_PASS; - case 40: return US_MI_NEXPRESS_TOLL; - case 41: return US_MN_EZPASSMN; - case 42: return US_NC_EZPASSNC; - case 87: return US_NC_PEACH_PASS; - case 43: return US_NC_QUICK_PASS; - case 80: return US_NH_EZPASSNH; - case 75: return US_NJ_DOWNBEACH_EXPRESS_PASS; - case 74: return US_NJ_EZPASSNJ; - case 76: return US_NY_EXPRESSPASS; - case 77: return US_NY_EZPASSNY; - case 44: return US_OH_EZPASSOH; - case 45: return US_PA_EZPASSPA; - case 46: return US_RI_EZPASSRI; - case 47: return US_SC_PALPASS; - case 97: return US_TX_AVI_TAG; - case 48: return US_TX_BANCPASS; - case 49: return US_TX_DEL_RIO_PASS; - case 50: return US_TX_EFAST_PASS; - case 51: return US_TX_EAGLE_PASS_EXPRESS_CARD; - case 52: return US_TX_EPTOLL; - case 53: return US_TX_EZ_CROSS; - case 54: return US_TX_EZTAG; - case 96: return US_TX_FUEGO_TAG; - case 55: return US_TX_LAREDO_TRADE_TAG; - case 56: return US_TX_PLUSPASS; - case 57: return US_TX_TOLLTAG; - case 58: return US_TX_TXTAG; - case 59: return US_TX_XPRESS_CARD; - case 60: return US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD; - case 61: return US_VA_EZPASSVA; - case 17: return US_WA_BREEZEBY; - case 1: return US_WA_GOOD_TO_GO; - case 62: return US_WV_EZPASSWV; - case 63: return US_WV_MEMORIAL_BRIDGE_TICKETS; - case 64: return US_WV_NEWELL_TOLL_BRIDGE_TICKET; - default: return null; + case 0: + return TOLL_PASS_UNSPECIFIED; + case 82: + return AU_ETOLL_TAG; + case 83: + return AU_EWAY_TAG; + case 2: + return AU_LINKT; + case 3: + return AR_TELEPASE; + case 81: + return BR_AUTO_EXPRESO; + case 7: + return BR_CONECTCAR; + case 8: + return BR_MOVE_MAIS; + case 88: + return BR_PASSA_RAPIDO; + case 9: + return BR_SEM_PARAR; + case 10: + return BR_TAGGY; + case 11: + return BR_VELOE; + case 84: + return CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD; + case 85: + return CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD; + case 18: + return CA_US_BLUE_WATER_EDGE_PASS; + case 19: + return CA_US_CONNEXION; + case 20: + return CA_US_NEXUS_CARD; + case 16: + return ID_E_TOLL; + case 78: + return IN_FASTAG; + case 79: + return IN_LOCAL_HP_PLATE_EXEMPT; + case 90: + return MX_IAVE; + case 91: + return MX_PASE; + case 93: + return MX_QUICKPASS; + case 89: + return MX_SISTEMA_TELEPEAJE_CHIHUAHUA; + case 12: + return MX_TAG_IAVE; + case 13: + return MX_TAG_TELEVIA; + case 92: + return MX_TELEVIA; + case 14: + return MX_VIAPASS; + case 21: + return US_AL_FREEDOM_PASS; + case 22: + return US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS; + case 4: + return US_CA_FASTRAK; + case 86: + return US_CA_FASTRAK_CAV_STICKER; + case 23: + return US_CO_EXPRESSTOLL; + case 24: + return US_CO_GO_PASS; + case 25: + return US_DE_EZPASSDE; + case 65: + return US_FL_BOB_SIKES_TOLL_BRIDGE_PASS; + case 66: + return US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD; + case 67: + return US_FL_EPASS; + case 68: + return US_FL_GIBA_TOLL_PASS; + case 69: + return US_FL_LEEWAY; + case 70: + return US_FL_SUNPASS; + case 71: + return US_FL_SUNPASS_PRO; + case 73: + return US_IL_EZPASSIL; + case 72: + return US_IL_IPASS; + case 26: + return US_IN_EZPASSIN; + case 27: + return US_KS_BESTPASS_HORIZON; + case 28: + return US_KS_KTAG; + case 29: + return US_KS_NATIONALPASS; + case 30: + return US_KS_PREPASS_ELITEPASS; + case 31: + return US_KY_RIVERLINK; + case 32: + return US_LA_GEAUXPASS; + case 33: + return US_LA_TOLL_TAG; + case 6: + return US_MA_EZPASSMA; + case 34: + return US_MD_EZPASSMD; + case 35: + return US_ME_EZPASSME; + case 36: + return US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD; + case 94: + return US_MI_BCPASS; + case 37: + return US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG; + case 38: + return US_MI_IQ_PROX_CARD; + case 95: + return US_MI_IQ_TAG; + case 39: + return US_MI_MACKINAC_BRIDGE_MAC_PASS; + case 40: + return US_MI_NEXPRESS_TOLL; + case 41: + return US_MN_EZPASSMN; + case 42: + return US_NC_EZPASSNC; + case 87: + return US_NC_PEACH_PASS; + case 43: + return US_NC_QUICK_PASS; + case 80: + return US_NH_EZPASSNH; + case 75: + return US_NJ_DOWNBEACH_EXPRESS_PASS; + case 74: + return US_NJ_EZPASSNJ; + case 76: + return US_NY_EXPRESSPASS; + case 77: + return US_NY_EZPASSNY; + case 44: + return US_OH_EZPASSOH; + case 45: + return US_PA_EZPASSPA; + case 46: + return US_RI_EZPASSRI; + case 47: + return US_SC_PALPASS; + case 97: + return US_TX_AVI_TAG; + case 48: + return US_TX_BANCPASS; + case 49: + return US_TX_DEL_RIO_PASS; + case 50: + return US_TX_EFAST_PASS; + case 51: + return US_TX_EAGLE_PASS_EXPRESS_CARD; + case 52: + return US_TX_EPTOLL; + case 53: + return US_TX_EZ_CROSS; + case 54: + return US_TX_EZTAG; + case 96: + return US_TX_FUEGO_TAG; + case 55: + return US_TX_LAREDO_TRADE_TAG; + case 56: + return US_TX_PLUSPASS; + case 57: + return US_TX_TOLLTAG; + case 58: + return US_TX_TXTAG; + case 59: + return US_TX_XPRESS_CARD; + case 60: + return US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD; + case 61: + return US_VA_EZPASSVA; + case 17: + return US_WA_BREEZEBY; + case 1: + return US_WA_GOOD_TO_GO; + case 62: + return US_WV_EZPASSWV; + case 63: + return US_WV_MEMORIAL_BRIDGE_TICKETS; + case 64: + return US_WV_NEWELL_TOLL_BRIDGE_TICKET; + 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< - TollPass> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TollPass findValueByNumber(int number) { - return TollPass.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 TollPass findValueByNumber(int number) { + return TollPass.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.maps.routing.v2.TollPassesProto.getDescriptor().getEnumTypes().get(0); } private static final TollPass[] VALUES = values(); - public static TollPass valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TollPass 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; @@ -1761,4 +2253,3 @@ private TollPass(int value) { // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.TollPass) } - diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java new file mode 100644 index 000000000000..8a5ba2afe493 --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java @@ -0,0 +1,109 @@ +/* + * 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/maps/routing/v2/toll_passes.proto + +package com.google.maps.routing.v2; + +public final class TollPassesProto { + private TollPassesProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + 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/maps/routing/v2/toll_passes.pro" + + "to\022\026google.maps.routing.v2*\321\021\n\010TollPass\022" + + "\031\n\025TOLL_PASS_UNSPECIFIED\020\000\022\020\n\014AU_ETOLL_T" + + "AG\020R\022\017\n\013AU_EWAY_TAG\020S\022\014\n\010AU_LINKT\020\002\022\017\n\013A" + + "R_TELEPASE\020\003\022\023\n\017BR_AUTO_EXPRESO\020Q\022\020\n\014BR_" + + "CONECTCAR\020\007\022\020\n\014BR_MOVE_MAIS\020\010\022\023\n\017BR_PASS" + + "A_RAPIDO\020X\022\020\n\014BR_SEM_PARAR\020\t\022\014\n\010BR_TAGGY" + + "\020\n\022\014\n\010BR_VELOE\020\013\022)\n%CA_US_AKWASASNE_SEAW" + + "AY_CORPORATE_CARD\020T\022\'\n#CA_US_AKWASASNE_S" + + "EAWAY_TRANSIT_CARD\020U\022\036\n\032CA_US_BLUE_WATER" + + "_EDGE_PASS\020\022\022\023\n\017CA_US_CONNEXION\020\023\022\024\n\020CA_" + + "US_NEXUS_CARD\020\024\022\r\n\tID_E_TOLL\020\020\022\r\n\tIN_FAS" + + "TAG\020N\022\034\n\030IN_LOCAL_HP_PLATE_EXEMPT\020O\022\013\n\007M" + + "X_IAVE\020Z\022\013\n\007MX_PASE\020[\022\020\n\014MX_QUICKPASS\020]\022" + + "\"\n\036MX_SISTEMA_TELEPEAJE_CHIHUAHUA\020Y\022\017\n\013M" + + "X_TAG_IAVE\020\014\022\022\n\016MX_TAG_TELEVIA\020\r\022\016\n\nMX_T" + + "ELEVIA\020\\\022\016\n\nMX_VIAPASS\020\016\022\026\n\022US_AL_FREEDO" + + "M_PASS\020\025\0222\n.US_AK_ANTON_ANDERSON_TUNNEL_" + + "BOOK_OF_10_TICKETS\020\026\022\021\n\rUS_CA_FASTRAK\020\004\022" + + "\035\n\031US_CA_FASTRAK_CAV_STICKER\020V\022\025\n\021US_CO_" + + "EXPRESSTOLL\020\027\022\021\n\rUS_CO_GO_PASS\020\030\022\022\n\016US_D" + + "E_EZPASSDE\020\031\022$\n US_FL_BOB_SIKES_TOLL_BRI" + + "DGE_PASS\020A\022:\n6US_FL_DUNES_COMMUNITY_DEVE" + + "LOPMENT_DISTRICT_EXPRESSCARD\020B\022\017\n\013US_FL_" + + "EPASS\020C\022\030\n\024US_FL_GIBA_TOLL_PASS\020D\022\020\n\014US_" + + "FL_LEEWAY\020E\022\021\n\rUS_FL_SUNPASS\020F\022\025\n\021US_FL_" + + "SUNPASS_PRO\020G\022\022\n\016US_IL_EZPASSIL\020I\022\017\n\013US_" + + "IL_IPASS\020H\022\022\n\016US_IN_EZPASSIN\020\032\022\032\n\026US_KS_" + + "BESTPASS_HORIZON\020\033\022\016\n\nUS_KS_KTAG\020\034\022\026\n\022US" + + "_KS_NATIONALPASS\020\035\022\033\n\027US_KS_PREPASS_ELIT" + + "EPASS\020\036\022\023\n\017US_KY_RIVERLINK\020\037\022\023\n\017US_LA_GE" + + "AUXPASS\020 \022\022\n\016US_LA_TOLL_TAG\020!\022\022\n\016US_MA_E" + + "ZPASSMA\020\006\022\022\n\016US_MD_EZPASSMD\020\"\022\022\n\016US_ME_E" + + "ZPASSME\020#\0221\n-US_MI_AMBASSADOR_BRIDGE_PRE" + + "MIER_COMMUTER_CARD\020$\022\020\n\014US_MI_BCPASS\020^\022)" + + "\n%US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG\020" + + "%\022\032\n\022US_MI_IQ_PROX_CARD\020&\032\002\010\001\022\020\n\014US_MI_I" + + "Q_TAG\020_\022\"\n\036US_MI_MACKINAC_BRIDGE_MAC_PAS" + + "S\020\'\022\027\n\023US_MI_NEXPRESS_TOLL\020(\022\022\n\016US_MN_EZ" + + "PASSMN\020)\022\022\n\016US_NC_EZPASSNC\020*\022\024\n\020US_NC_PE" + + "ACH_PASS\020W\022\024\n\020US_NC_QUICK_PASS\020+\022\022\n\016US_N" + + "H_EZPASSNH\020P\022 \n\034US_NJ_DOWNBEACH_EXPRESS_" + + "PASS\020K\022\022\n\016US_NJ_EZPASSNJ\020J\022\025\n\021US_NY_EXPR" + + "ESSPASS\020L\022\022\n\016US_NY_EZPASSNY\020M\022\022\n\016US_OH_E" + + "ZPASSOH\020,\022\022\n\016US_PA_EZPASSPA\020-\022\022\n\016US_RI_E" + + "ZPASSRI\020.\022\021\n\rUS_SC_PALPASS\020/\022\021\n\rUS_TX_AV" + + "I_TAG\020a\022\022\n\016US_TX_BANCPASS\0200\022\026\n\022US_TX_DEL" + + "_RIO_PASS\0201\022\024\n\020US_TX_EFAST_PASS\0202\022!\n\035US_" + + "TX_EAGLE_PASS_EXPRESS_CARD\0203\022\020\n\014US_TX_EP" + + "TOLL\0204\022\022\n\016US_TX_EZ_CROSS\0205\022\017\n\013US_TX_EZTA" + + "G\0206\022\023\n\017US_TX_FUEGO_TAG\020`\022\032\n\026US_TX_LAREDO" + + "_TRADE_TAG\0207\022\022\n\016US_TX_PLUSPASS\0208\022\021\n\rUS_T" + + "X_TOLLTAG\0209\022\017\n\013US_TX_TXTAG\020:\022\025\n\021US_TX_XP" + + "RESS_CARD\020;\022\'\n#US_UT_ADAMS_AVE_PARKWAY_E" + + "XPRESSCARD\020<\022\022\n\016US_VA_EZPASSVA\020=\022\022\n\016US_W" + + "A_BREEZEBY\020\021\022\024\n\020US_WA_GOOD_TO_GO\020\001\022\022\n\016US" + + "_WV_EZPASSWV\020>\022!\n\035US_WV_MEMORIAL_BRIDGE_" + + "TICKETS\020?\022#\n\037US_WV_NEWELL_TOLL_BRIDGE_TI" + + "CKET\020@B\304\001\n\032com.google.maps.routing.v2B\017T" + + "ollPassesProtoP\001Z:cloud.google.com/go/ma" + + "ps/routing/apiv2/routingpb;routingpb\370\001\001\242" + + "\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Googl" + + "e\\Maps\\Routing\\V2\352\002\031Google::Maps::Routin" + + "g::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModel.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModel.java similarity index 74% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModel.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModel.java index db9abec85a40..dde6051b4ab5 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModel.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModel.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/maps/routing/v2/traffic_model.proto package com.google.maps.routing.v2; /** + * + * *
  * Specifies the assumptions to use when calculating time in traffic. This
  * setting affects the value returned in the `duration` field in the
@@ -13,9 +30,10 @@
  *
  * Protobuf enum {@code google.maps.routing.v2.TrafficModel}
  */
-public enum TrafficModel
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum TrafficModel implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Unused. If specified, will default to `BEST_GUESS`.
    * 
@@ -24,6 +42,8 @@ public enum TrafficModel */ TRAFFIC_MODEL_UNSPECIFIED(0), /** + * + * *
    * Indicates that the returned `duration` should be the best
    * estimate of travel time given what is known about both historical traffic
@@ -35,6 +55,8 @@ public enum TrafficModel
    */
   BEST_GUESS(1),
   /**
+   *
+   *
    * 
    * Indicates that the returned duration should be longer than the
    * actual travel time on most days, though occasional days with particularly
@@ -45,6 +67,8 @@ public enum TrafficModel
    */
   PESSIMISTIC(2),
   /**
+   *
+   *
    * 
    * Indicates that the returned duration should be shorter than the actual
    * travel time on most days, though occasional days with particularly good
@@ -58,6 +82,8 @@ public enum TrafficModel
   ;
 
   /**
+   *
+   *
    * 
    * Unused. If specified, will default to `BEST_GUESS`.
    * 
@@ -66,6 +92,8 @@ public enum TrafficModel */ public static final int TRAFFIC_MODEL_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Indicates that the returned `duration` should be the best
    * estimate of travel time given what is known about both historical traffic
@@ -77,6 +105,8 @@ public enum TrafficModel
    */
   public static final int BEST_GUESS_VALUE = 1;
   /**
+   *
+   *
    * 
    * Indicates that the returned duration should be longer than the
    * actual travel time on most days, though occasional days with particularly
@@ -87,6 +117,8 @@ public enum TrafficModel
    */
   public static final int PESSIMISTIC_VALUE = 2;
   /**
+   *
+   *
    * 
    * Indicates that the returned duration should be shorter than the actual
    * travel time on most days, though occasional days with particularly good
@@ -97,7 +129,6 @@ public enum TrafficModel
    */
   public static final int OPTIMISTIC_VALUE = 3;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -122,50 +153,51 @@ public static TrafficModel valueOf(int value) {
    */
   public static TrafficModel forNumber(int value) {
     switch (value) {
-      case 0: return TRAFFIC_MODEL_UNSPECIFIED;
-      case 1: return BEST_GUESS;
-      case 2: return PESSIMISTIC;
-      case 3: return OPTIMISTIC;
-      default: return null;
+      case 0:
+        return TRAFFIC_MODEL_UNSPECIFIED;
+      case 1:
+        return BEST_GUESS;
+      case 2:
+        return PESSIMISTIC;
+      case 3:
+        return OPTIMISTIC;
+      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<
-      TrafficModel> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public TrafficModel findValueByNumber(int number) {
-            return TrafficModel.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 TrafficModel findValueByNumber(int number) {
+          return TrafficModel.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.maps.routing.v2.TrafficModelProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final TrafficModel[] VALUES = values();
 
-  public static TrafficModel valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static TrafficModel 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;
@@ -181,4 +213,3 @@ private TrafficModel(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.TrafficModel)
 }
-
diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java
new file mode 100644
index 000000000000..deb3f040c308
--- /dev/null
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java
@@ -0,0 +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/maps/routing/v2/traffic_model.proto
+
+package com.google.maps.routing.v2;
+
+public final class TrafficModelProto {
+  private TrafficModelProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  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/maps/routing/v2/traffic_model.p"
+          + "roto\022\026google.maps.routing.v2*^\n\014TrafficM"
+          + "odel\022\035\n\031TRAFFIC_MODEL_UNSPECIFIED\020\000\022\016\n\nB"
+          + "EST_GUESS\020\001\022\017\n\013PESSIMISTIC\020\002\022\016\n\nOPTIMIST"
+          + "IC\020\003B\306\001\n\032com.google.maps.routing.v2B\021Tra"
+          + "fficModelProtoP\001Z:cloud.google.com/go/ma"
+          + "ps/routing/apiv2/routingpb;routingpb\370\001\001\242"
+          + "\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Googl"
+          + "e\\Maps\\Routing\\V2\352\002\031Google::Maps::Routin"
+          + "g::V2b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgency.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgency.java
similarity index 68%
rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgency.java
rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgency.java
index 9ed3a47f2f2c..0b9f114e4490 100644
--- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgency.java
+++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgency.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/maps/routing/v2/transit.proto
 
 package com.google.maps.routing.v2;
 
 /**
+ *
+ *
  * 
  * A transit agency that operates a transit line.
  * 
* * Protobuf type {@code google.maps.routing.v2.TransitAgency} */ -public final class TransitAgency extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TransitAgency extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.TransitAgency) TransitAgencyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TransitAgency.newBuilder() to construct. private TransitAgency(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TransitAgency() { name_ = ""; phoneNumber_ = ""; @@ -27,33 +45,38 @@ private TransitAgency() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransitAgency(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitAgency_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitAgency_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitAgency_fieldAccessorTable + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitAgency_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.TransitAgency.class, com.google.maps.routing.v2.TransitAgency.Builder.class); + com.google.maps.routing.v2.TransitAgency.class, + com.google.maps.routing.v2.TransitAgency.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of this transit agency.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -62,29 +85,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; } } /** + * + * *
    * The name of this transit agency.
    * 
* * 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 { @@ -93,14 +116,18 @@ public java.lang.String getName() { } public static final int PHONE_NUMBER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object phoneNumber_ = ""; /** + * + * *
    * The transit agency's locale-specific formatted phone number.
    * 
* * string phone_number = 2; + * * @return The phoneNumber. */ @java.lang.Override @@ -109,29 +136,29 @@ public java.lang.String getPhoneNumber() { 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(); phoneNumber_ = s; return s; } } /** + * + * *
    * The transit agency's locale-specific formatted phone number.
    * 
* * string phone_number = 2; + * * @return The bytes for phoneNumber. */ @java.lang.Override - public com.google.protobuf.ByteString - getPhoneNumberBytes() { + public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; 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); phoneNumber_ = b; return b; } else { @@ -140,14 +167,18 @@ public java.lang.String getPhoneNumber() { } public static final int URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** + * + * *
    * The transit agency's URI.
    * 
* * string uri = 3; + * * @return The uri. */ @java.lang.Override @@ -156,29 +187,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; } } /** + * + * *
    * The transit agency's URI.
    * 
* * string uri = 3; + * * @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 { @@ -187,6 +218,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +230,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -235,19 +266,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.maps.routing.v2.TransitAgency)) { return super.equals(obj); } com.google.maps.routing.v2.TransitAgency other = (com.google.maps.routing.v2.TransitAgency) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPhoneNumber() - .equals(other.getPhoneNumber())) return false; - if (!getUri() - .equals(other.getUri())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPhoneNumber().equals(other.getPhoneNumber())) return false; + if (!getUri().equals(other.getUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,132 +298,136 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.TransitAgency parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.TransitAgency parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.TransitAgency 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.maps.routing.v2.TransitAgency parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.TransitAgency 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.maps.routing.v2.TransitAgency parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.TransitAgency 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.maps.routing.v2.TransitAgency 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.maps.routing.v2.TransitAgency 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.maps.routing.v2.TransitAgency parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.TransitAgency parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.TransitAgency 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.maps.routing.v2.TransitAgency 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.maps.routing.v2.TransitAgency 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.maps.routing.v2.TransitAgency 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 transit agency that operates a transit line.
    * 
* * Protobuf type {@code google.maps.routing.v2.TransitAgency} */ - 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.maps.routing.v2.TransitAgency) com.google.maps.routing.v2.TransitAgencyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitAgency_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitAgency_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitAgency_fieldAccessorTable + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitAgency_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.TransitAgency.class, com.google.maps.routing.v2.TransitAgency.Builder.class); + com.google.maps.routing.v2.TransitAgency.class, + com.google.maps.routing.v2.TransitAgency.Builder.class); } // Construct using com.google.maps.routing.v2.TransitAgency.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(); @@ -407,9 +439,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitAgency_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitAgency_descriptor; } @java.lang.Override @@ -428,8 +460,11 @@ public com.google.maps.routing.v2.TransitAgency build() { @java.lang.Override public com.google.maps.routing.v2.TransitAgency buildPartial() { - com.google.maps.routing.v2.TransitAgency result = new com.google.maps.routing.v2.TransitAgency(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.maps.routing.v2.TransitAgency result = + new com.google.maps.routing.v2.TransitAgency(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -451,38 +486,39 @@ private void buildPartial0(com.google.maps.routing.v2.TransitAgency 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.maps.routing.v2.TransitAgency) { - return mergeFrom((com.google.maps.routing.v2.TransitAgency)other); + return mergeFrom((com.google.maps.routing.v2.TransitAgency) other); } else { super.mergeFrom(other); return this; @@ -532,27 +568,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - phoneNumber_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - 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 18: + { + phoneNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + uri_ = 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) { @@ -562,22 +602,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The name of this transit agency.
      * 
* * 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; @@ -586,20 +629,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of this transit agency.
      * 
* * 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 { @@ -607,28 +651,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of this transit agency.
      * 
* * 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; } /** + * + * *
      * The name of this transit agency.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -638,17 +689,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of this transit agency.
      * 
* * 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; @@ -658,18 +713,20 @@ public Builder setNameBytes( private java.lang.Object phoneNumber_ = ""; /** + * + * *
      * The transit agency's locale-specific formatted phone number.
      * 
* * string phone_number = 2; + * * @return The phoneNumber. */ public java.lang.String getPhoneNumber() { java.lang.Object ref = phoneNumber_; 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(); phoneNumber_ = s; return s; @@ -678,20 +735,21 @@ public java.lang.String getPhoneNumber() { } } /** + * + * *
      * The transit agency's locale-specific formatted phone number.
      * 
* * string phone_number = 2; + * * @return The bytes for phoneNumber. */ - public com.google.protobuf.ByteString - getPhoneNumberBytes() { + public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; 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); phoneNumber_ = b; return b; } else { @@ -699,28 +757,35 @@ public java.lang.String getPhoneNumber() { } } /** + * + * *
      * The transit agency's locale-specific formatted phone number.
      * 
* * string phone_number = 2; + * * @param value The phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumber( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhoneNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } phoneNumber_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The transit agency's locale-specific formatted phone number.
      * 
* * string phone_number = 2; + * * @return This builder for chaining. */ public Builder clearPhoneNumber() { @@ -730,17 +795,21 @@ public Builder clearPhoneNumber() { return this; } /** + * + * *
      * The transit agency's locale-specific formatted phone number.
      * 
* * string phone_number = 2; + * * @param value The bytes for phoneNumber to set. * @return This builder for chaining. */ - public Builder setPhoneNumberBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhoneNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); phoneNumber_ = value; bitField0_ |= 0x00000002; @@ -750,18 +819,20 @@ public Builder setPhoneNumberBytes( private java.lang.Object uri_ = ""; /** + * + * *
      * The transit agency's URI.
      * 
* * string uri = 3; + * * @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; @@ -770,20 +841,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * The transit agency's URI.
      * 
* * string uri = 3; + * * @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 { @@ -791,28 +863,35 @@ public java.lang.String getUri() { } } /** + * + * *
      * The transit agency's URI.
      * 
* * string uri = 3; + * * @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_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The transit agency's URI.
      * 
* * string uri = 3; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -822,26 +901,30 @@ public Builder clearUri() { return this; } /** + * + * *
      * The transit agency's URI.
      * 
* * string uri = 3; + * * @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_ |= 0x00000004; 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); } @@ -851,12 +934,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.TransitAgency) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.TransitAgency) private static final com.google.maps.routing.v2.TransitAgency DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.TransitAgency(); } @@ -865,27 +948,27 @@ public static com.google.maps.routing.v2.TransitAgency getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransitAgency 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 TransitAgency 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; @@ -900,6 +983,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.TransitAgency getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgencyOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgencyOrBuilder.java similarity index 59% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgencyOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgencyOrBuilder.java index f144688a61d1..4a5bfbcb5788 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgencyOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitAgencyOrBuilder.java @@ -1,69 +1,100 @@ +/* + * 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/maps/routing/v2/transit.proto package com.google.maps.routing.v2; -public interface TransitAgencyOrBuilder extends +public interface TransitAgencyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.TransitAgency) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of this transit agency.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of this transit agency.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The transit agency's locale-specific formatted phone number.
    * 
* * string phone_number = 2; + * * @return The phoneNumber. */ java.lang.String getPhoneNumber(); /** + * + * *
    * The transit agency's locale-specific formatted phone number.
    * 
* * string phone_number = 2; + * * @return The bytes for phoneNumber. */ - com.google.protobuf.ByteString - getPhoneNumberBytes(); + com.google.protobuf.ByteString getPhoneNumberBytes(); /** + * + * *
    * The transit agency's URI.
    * 
* * string uri = 3; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * The transit agency's URI.
    * 
* * string uri = 3; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLine.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLine.java similarity index 73% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLine.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLine.java index 5473f6678ef5..3760d6edf720 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLine.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLine.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/maps/routing/v2/transit.proto package com.google.maps.routing.v2; /** + * + * *
  * Contains information about the transit line used in this step.
  * 
* * Protobuf type {@code google.maps.routing.v2.TransitLine} */ -public final class TransitLine extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TransitLine extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.TransitLine) TransitLineOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TransitLine.newBuilder() to construct. private TransitLine(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TransitLine() { agencies_ = java.util.Collections.emptyList(); name_ = ""; @@ -31,28 +49,32 @@ private TransitLine() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransitLine(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitLine_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitLine_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitLine_fieldAccessorTable + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitLine_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.TransitLine.class, com.google.maps.routing.v2.TransitLine.Builder.class); + com.google.maps.routing.v2.TransitLine.class, + com.google.maps.routing.v2.TransitLine.Builder.class); } public static final int AGENCIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List agencies_; /** + * + * *
    * The transit agency (or agencies) that operates this transit line.
    * 
@@ -64,6 +86,8 @@ public java.util.List getAgenciesList( return agencies_; } /** + * + * *
    * The transit agency (or agencies) that operates this transit line.
    * 
@@ -71,11 +95,13 @@ public java.util.List getAgenciesList( * repeated .google.maps.routing.v2.TransitAgency agencies = 1; */ @java.lang.Override - public java.util.List + public java.util.List getAgenciesOrBuilderList() { return agencies_; } /** + * + * *
    * The transit agency (or agencies) that operates this transit line.
    * 
@@ -87,6 +113,8 @@ public int getAgenciesCount() { return agencies_.size(); } /** + * + * *
    * The transit agency (or agencies) that operates this transit line.
    * 
@@ -98,6 +126,8 @@ public com.google.maps.routing.v2.TransitAgency getAgencies(int index) { return agencies_.get(index); } /** + * + * *
    * The transit agency (or agencies) that operates this transit line.
    * 
@@ -105,20 +135,23 @@ public com.google.maps.routing.v2.TransitAgency getAgencies(int index) { * repeated .google.maps.routing.v2.TransitAgency agencies = 1; */ @java.lang.Override - public com.google.maps.routing.v2.TransitAgencyOrBuilder getAgenciesOrBuilder( - int index) { + public com.google.maps.routing.v2.TransitAgencyOrBuilder getAgenciesOrBuilder(int index) { return agencies_.get(index); } public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The full name of this transit line, For example, "8 Avenue Local".
    * 
* * string name = 2; + * * @return The name. */ @java.lang.Override @@ -127,29 +160,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; } } /** + * + * *
    * The full name of this transit line, For example, "8 Avenue Local".
    * 
* * string name = 2; + * * @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 { @@ -158,14 +191,18 @@ public java.lang.String getName() { } public static final int URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** + * + * *
    * the URI for this transit line as provided by the transit agency.
    * 
* * string uri = 3; + * * @return The uri. */ @java.lang.Override @@ -174,29 +211,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; } } /** + * + * *
    * the URI for this transit line as provided by the transit agency.
    * 
* * string uri = 3; + * * @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 { @@ -205,15 +242,19 @@ public java.lang.String getUri() { } public static final int COLOR_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object color_ = ""; /** + * + * *
    * The color commonly used in signage for this line. Represented in
    * hexadecimal.
    * 
* * string color = 4; + * * @return The color. */ @java.lang.Override @@ -222,30 +263,30 @@ public java.lang.String getColor() { 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(); color_ = s; return s; } } /** + * + * *
    * The color commonly used in signage for this line. Represented in
    * hexadecimal.
    * 
* * string color = 4; + * * @return The bytes for color. */ @java.lang.Override - public com.google.protobuf.ByteString - getColorBytes() { + public com.google.protobuf.ByteString getColorBytes() { java.lang.Object ref = color_; 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); color_ = b; return b; } else { @@ -254,14 +295,18 @@ public java.lang.String getColor() { } public static final int ICON_URI_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object iconUri_ = ""; /** + * + * *
    * The URI for the icon associated with this line.
    * 
* * string icon_uri = 5; + * * @return The iconUri. */ @java.lang.Override @@ -270,29 +315,29 @@ public java.lang.String getIconUri() { 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(); iconUri_ = s; return s; } } /** + * + * *
    * The URI for the icon associated with this line.
    * 
* * string icon_uri = 5; + * * @return The bytes for iconUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getIconUriBytes() { + public com.google.protobuf.ByteString getIconUriBytes() { java.lang.Object ref = iconUri_; 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); iconUri_ = b; return b; } else { @@ -301,15 +346,19 @@ public java.lang.String getIconUri() { } public static final int NAME_SHORT_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object nameShort_ = ""; /** + * + * *
    * The short name of this transit line. This name will normally be a line
    * number, such as "M7" or "355".
    * 
* * string name_short = 6; + * * @return The nameShort. */ @java.lang.Override @@ -318,30 +367,30 @@ public java.lang.String getNameShort() { 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(); nameShort_ = s; return s; } } /** + * + * *
    * The short name of this transit line. This name will normally be a line
    * number, such as "M7" or "355".
    * 
* * string name_short = 6; + * * @return The bytes for nameShort. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameShortBytes() { + public com.google.protobuf.ByteString getNameShortBytes() { java.lang.Object ref = nameShort_; 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); nameShort_ = b; return b; } else { @@ -350,15 +399,19 @@ public java.lang.String getNameShort() { } public static final int TEXT_COLOR_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object textColor_ = ""; /** + * + * *
    * The color commonly used in text on signage for this line. Represented in
    * hexadecimal.
    * 
* * string text_color = 7; + * * @return The textColor. */ @java.lang.Override @@ -367,30 +420,30 @@ public java.lang.String getTextColor() { 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(); textColor_ = s; return s; } } /** + * + * *
    * The color commonly used in text on signage for this line. Represented in
    * hexadecimal.
    * 
* * string text_color = 7; + * * @return The bytes for textColor. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextColorBytes() { + public com.google.protobuf.ByteString getTextColorBytes() { java.lang.Object ref = textColor_; 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); textColor_ = b; return b; } else { @@ -401,11 +454,14 @@ public java.lang.String getTextColor() { public static final int VEHICLE_FIELD_NUMBER = 8; private com.google.maps.routing.v2.TransitVehicle vehicle_; /** + * + * *
    * The type of vehicle that operates on this transit line.
    * 
* * .google.maps.routing.v2.TransitVehicle vehicle = 8; + * * @return Whether the vehicle field is set. */ @java.lang.Override @@ -413,18 +469,25 @@ public boolean hasVehicle() { return vehicle_ != null; } /** + * + * *
    * The type of vehicle that operates on this transit line.
    * 
* * .google.maps.routing.v2.TransitVehicle vehicle = 8; + * * @return The vehicle. */ @java.lang.Override public com.google.maps.routing.v2.TransitVehicle getVehicle() { - return vehicle_ == null ? com.google.maps.routing.v2.TransitVehicle.getDefaultInstance() : vehicle_; + return vehicle_ == null + ? com.google.maps.routing.v2.TransitVehicle.getDefaultInstance() + : vehicle_; } /** + * + * *
    * The type of vehicle that operates on this transit line.
    * 
@@ -433,10 +496,13 @@ public com.google.maps.routing.v2.TransitVehicle getVehicle() { */ @java.lang.Override public com.google.maps.routing.v2.TransitVehicleOrBuilder getVehicleOrBuilder() { - return vehicle_ == null ? com.google.maps.routing.v2.TransitVehicle.getDefaultInstance() : vehicle_; + return vehicle_ == null + ? com.google.maps.routing.v2.TransitVehicle.getDefaultInstance() + : vehicle_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -448,8 +514,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 < agencies_.size(); i++) { output.writeMessage(1, agencies_.get(i)); } @@ -484,8 +549,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < agencies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, agencies_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, agencies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); @@ -506,8 +570,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, textColor_); } if (vehicle_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getVehicle()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getVehicle()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -517,31 +580,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.maps.routing.v2.TransitLine)) { return super.equals(obj); } com.google.maps.routing.v2.TransitLine other = (com.google.maps.routing.v2.TransitLine) obj; - if (!getAgenciesList() - .equals(other.getAgenciesList())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getUri() - .equals(other.getUri())) return false; - if (!getColor() - .equals(other.getColor())) return false; - if (!getIconUri() - .equals(other.getIconUri())) return false; - if (!getNameShort() - .equals(other.getNameShort())) return false; - if (!getTextColor() - .equals(other.getTextColor())) return false; + if (!getAgenciesList().equals(other.getAgenciesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getColor().equals(other.getColor())) return false; + if (!getIconUri().equals(other.getIconUri())) return false; + if (!getNameShort().equals(other.getNameShort())) return false; + if (!getTextColor().equals(other.getTextColor())) return false; if (hasVehicle() != other.hasVehicle()) return false; if (hasVehicle()) { - if (!getVehicle() - .equals(other.getVehicle())) return false; + if (!getVehicle().equals(other.getVehicle())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -579,132 +634,136 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.TransitLine parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.TransitLine parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.TransitLine 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.maps.routing.v2.TransitLine parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.TransitLine 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.maps.routing.v2.TransitLine parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.TransitLine 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.maps.routing.v2.TransitLine 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.maps.routing.v2.TransitLine 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.maps.routing.v2.TransitLine parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.TransitLine 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.maps.routing.v2.TransitLine 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.maps.routing.v2.TransitLine 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.maps.routing.v2.TransitLine 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; } /** + * + * *
    * Contains information about the transit line used in this step.
    * 
* * Protobuf type {@code google.maps.routing.v2.TransitLine} */ - 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.maps.routing.v2.TransitLine) com.google.maps.routing.v2.TransitLineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitLine_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitLine_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitLine_fieldAccessorTable + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitLine_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.TransitLine.class, com.google.maps.routing.v2.TransitLine.Builder.class); + com.google.maps.routing.v2.TransitLine.class, + com.google.maps.routing.v2.TransitLine.Builder.class); } // Construct using com.google.maps.routing.v2.TransitLine.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(); @@ -731,9 +790,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitLine_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitLine_descriptor; } @java.lang.Override @@ -752,9 +811,12 @@ public com.google.maps.routing.v2.TransitLine build() { @java.lang.Override public com.google.maps.routing.v2.TransitLine buildPartial() { - com.google.maps.routing.v2.TransitLine result = new com.google.maps.routing.v2.TransitLine(this); + com.google.maps.routing.v2.TransitLine result = + new com.google.maps.routing.v2.TransitLine(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -792,9 +854,7 @@ private void buildPartial0(com.google.maps.routing.v2.TransitLine result) { result.textColor_ = textColor_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.vehicle_ = vehicleBuilder_ == null - ? vehicle_ - : vehicleBuilder_.build(); + result.vehicle_ = vehicleBuilder_ == null ? vehicle_ : vehicleBuilder_.build(); } } @@ -802,38 +862,39 @@ private void buildPartial0(com.google.maps.routing.v2.TransitLine 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.maps.routing.v2.TransitLine) { - return mergeFrom((com.google.maps.routing.v2.TransitLine)other); + return mergeFrom((com.google.maps.routing.v2.TransitLine) other); } else { super.mergeFrom(other); return this; @@ -860,9 +921,10 @@ public Builder mergeFrom(com.google.maps.routing.v2.TransitLine other) { agenciesBuilder_ = null; agencies_ = other.agencies_; bitField0_ = (bitField0_ & ~0x00000001); - agenciesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAgenciesFieldBuilder() : null; + agenciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAgenciesFieldBuilder() + : null; } else { agenciesBuilder_.addAllMessages(other.agencies_); } @@ -927,62 +989,68 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.maps.routing.v2.TransitAgency m = - input.readMessage( - com.google.maps.routing.v2.TransitAgency.parser(), - extensionRegistry); - if (agenciesBuilder_ == null) { - ensureAgenciesIsMutable(); - agencies_.add(m); - } else { - agenciesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - color_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - iconUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - nameShort_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - textColor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - input.readMessage( - getVehicleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.maps.routing.v2.TransitAgency m = + input.readMessage( + com.google.maps.routing.v2.TransitAgency.parser(), extensionRegistry); + if (agenciesBuilder_ == null) { + ensureAgenciesIsMutable(); + agencies_.add(m); + } else { + agenciesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + color_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + iconUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + nameShort_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + textColor_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage(getVehicleFieldBuilder().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) { @@ -992,21 +1060,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List agencies_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAgenciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { agencies_ = new java.util.ArrayList(agencies_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.TransitAgency, com.google.maps.routing.v2.TransitAgency.Builder, com.google.maps.routing.v2.TransitAgencyOrBuilder> agenciesBuilder_; + com.google.maps.routing.v2.TransitAgency, + com.google.maps.routing.v2.TransitAgency.Builder, + com.google.maps.routing.v2.TransitAgencyOrBuilder> + agenciesBuilder_; /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
@@ -1021,6 +1096,8 @@ public java.util.List getAgenciesList( } } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
@@ -1035,6 +1112,8 @@ public int getAgenciesCount() { } } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
@@ -1049,14 +1128,15 @@ public com.google.maps.routing.v2.TransitAgency getAgencies(int index) { } } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
* * repeated .google.maps.routing.v2.TransitAgency agencies = 1; */ - public Builder setAgencies( - int index, com.google.maps.routing.v2.TransitAgency value) { + public Builder setAgencies(int index, com.google.maps.routing.v2.TransitAgency value) { if (agenciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1070,6 +1150,8 @@ public Builder setAgencies( return this; } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
@@ -1088,6 +1170,8 @@ public Builder setAgencies( return this; } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
@@ -1108,14 +1192,15 @@ public Builder addAgencies(com.google.maps.routing.v2.TransitAgency value) { return this; } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
* * repeated .google.maps.routing.v2.TransitAgency agencies = 1; */ - public Builder addAgencies( - int index, com.google.maps.routing.v2.TransitAgency value) { + public Builder addAgencies(int index, com.google.maps.routing.v2.TransitAgency value) { if (agenciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1129,14 +1214,15 @@ public Builder addAgencies( return this; } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
* * repeated .google.maps.routing.v2.TransitAgency agencies = 1; */ - public Builder addAgencies( - com.google.maps.routing.v2.TransitAgency.Builder builderForValue) { + public Builder addAgencies(com.google.maps.routing.v2.TransitAgency.Builder builderForValue) { if (agenciesBuilder_ == null) { ensureAgenciesIsMutable(); agencies_.add(builderForValue.build()); @@ -1147,6 +1233,8 @@ public Builder addAgencies( return this; } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
@@ -1165,6 +1253,8 @@ public Builder addAgencies( return this; } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
@@ -1175,8 +1265,7 @@ public Builder addAllAgencies( java.lang.Iterable values) { if (agenciesBuilder_ == null) { ensureAgenciesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, agencies_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, agencies_); onChanged(); } else { agenciesBuilder_.addAllMessages(values); @@ -1184,6 +1273,8 @@ public Builder addAllAgencies( return this; } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
@@ -1201,6 +1292,8 @@ public Builder clearAgencies() { return this; } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
@@ -1218,39 +1311,44 @@ public Builder removeAgencies(int index) { return this; } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
* * repeated .google.maps.routing.v2.TransitAgency agencies = 1; */ - public com.google.maps.routing.v2.TransitAgency.Builder getAgenciesBuilder( - int index) { + public com.google.maps.routing.v2.TransitAgency.Builder getAgenciesBuilder(int index) { return getAgenciesFieldBuilder().getBuilder(index); } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
* * repeated .google.maps.routing.v2.TransitAgency agencies = 1; */ - public com.google.maps.routing.v2.TransitAgencyOrBuilder getAgenciesOrBuilder( - int index) { + public com.google.maps.routing.v2.TransitAgencyOrBuilder getAgenciesOrBuilder(int index) { if (agenciesBuilder_ == null) { - return agencies_.get(index); } else { + return agencies_.get(index); + } else { return agenciesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
* * repeated .google.maps.routing.v2.TransitAgency agencies = 1; */ - public java.util.List - getAgenciesOrBuilderList() { + public java.util.List + getAgenciesOrBuilderList() { if (agenciesBuilder_ != null) { return agenciesBuilder_.getMessageOrBuilderList(); } else { @@ -1258,6 +1356,8 @@ public com.google.maps.routing.v2.TransitAgencyOrBuilder getAgenciesOrBuilder( } } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
@@ -1265,42 +1365,48 @@ public com.google.maps.routing.v2.TransitAgencyOrBuilder getAgenciesOrBuilder( * repeated .google.maps.routing.v2.TransitAgency agencies = 1; */ public com.google.maps.routing.v2.TransitAgency.Builder addAgenciesBuilder() { - return getAgenciesFieldBuilder().addBuilder( - com.google.maps.routing.v2.TransitAgency.getDefaultInstance()); + return getAgenciesFieldBuilder() + .addBuilder(com.google.maps.routing.v2.TransitAgency.getDefaultInstance()); } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
* * repeated .google.maps.routing.v2.TransitAgency agencies = 1; */ - public com.google.maps.routing.v2.TransitAgency.Builder addAgenciesBuilder( - int index) { - return getAgenciesFieldBuilder().addBuilder( - index, com.google.maps.routing.v2.TransitAgency.getDefaultInstance()); + public com.google.maps.routing.v2.TransitAgency.Builder addAgenciesBuilder(int index) { + return getAgenciesFieldBuilder() + .addBuilder(index, com.google.maps.routing.v2.TransitAgency.getDefaultInstance()); } /** + * + * *
      * The transit agency (or agencies) that operates this transit line.
      * 
* * repeated .google.maps.routing.v2.TransitAgency agencies = 1; */ - public java.util.List - getAgenciesBuilderList() { + public java.util.List + getAgenciesBuilderList() { return getAgenciesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.TransitAgency, com.google.maps.routing.v2.TransitAgency.Builder, com.google.maps.routing.v2.TransitAgencyOrBuilder> + com.google.maps.routing.v2.TransitAgency, + com.google.maps.routing.v2.TransitAgency.Builder, + com.google.maps.routing.v2.TransitAgencyOrBuilder> getAgenciesFieldBuilder() { if (agenciesBuilder_ == null) { - agenciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.maps.routing.v2.TransitAgency, com.google.maps.routing.v2.TransitAgency.Builder, com.google.maps.routing.v2.TransitAgencyOrBuilder>( - agencies_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + agenciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.maps.routing.v2.TransitAgency, + com.google.maps.routing.v2.TransitAgency.Builder, + com.google.maps.routing.v2.TransitAgencyOrBuilder>( + agencies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); agencies_ = null; } return agenciesBuilder_; @@ -1308,18 +1414,20 @@ public com.google.maps.routing.v2.TransitAgency.Builder addAgenciesBuilder( private java.lang.Object name_ = ""; /** + * + * *
      * The full name of this transit line, For example, "8 Avenue Local".
      * 
* * string name = 2; + * * @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; @@ -1328,20 +1436,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The full name of this transit line, For example, "8 Avenue Local".
      * 
* * string name = 2; + * * @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 { @@ -1349,28 +1458,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The full name of this transit line, For example, "8 Avenue Local".
      * 
* * string name = 2; + * * @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_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The full name of this transit line, For example, "8 Avenue Local".
      * 
* * string name = 2; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1380,17 +1496,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The full name of this transit line, For example, "8 Avenue Local".
      * 
* * string name = 2; + * * @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_ |= 0x00000002; @@ -1400,18 +1520,20 @@ public Builder setNameBytes( private java.lang.Object uri_ = ""; /** + * + * *
      * the URI for this transit line as provided by the transit agency.
      * 
* * string uri = 3; + * * @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; @@ -1420,20 +1542,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * the URI for this transit line as provided by the transit agency.
      * 
* * string uri = 3; + * * @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 { @@ -1441,28 +1564,35 @@ public java.lang.String getUri() { } } /** + * + * *
      * the URI for this transit line as provided by the transit agency.
      * 
* * string uri = 3; + * * @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_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * the URI for this transit line as provided by the transit agency.
      * 
* * string uri = 3; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -1472,17 +1602,21 @@ public Builder clearUri() { return this; } /** + * + * *
      * the URI for this transit line as provided by the transit agency.
      * 
* * string uri = 3; + * * @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_ |= 0x00000004; @@ -1492,19 +1626,21 @@ public Builder setUriBytes( private java.lang.Object color_ = ""; /** + * + * *
      * The color commonly used in signage for this line. Represented in
      * hexadecimal.
      * 
* * string color = 4; + * * @return The color. */ public java.lang.String getColor() { java.lang.Object ref = color_; 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(); color_ = s; return s; @@ -1513,21 +1649,22 @@ public java.lang.String getColor() { } } /** + * + * *
      * The color commonly used in signage for this line. Represented in
      * hexadecimal.
      * 
* * string color = 4; + * * @return The bytes for color. */ - public com.google.protobuf.ByteString - getColorBytes() { + public com.google.protobuf.ByteString getColorBytes() { java.lang.Object ref = color_; 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); color_ = b; return b; } else { @@ -1535,30 +1672,37 @@ public java.lang.String getColor() { } } /** + * + * *
      * The color commonly used in signage for this line. Represented in
      * hexadecimal.
      * 
* * string color = 4; + * * @param value The color to set. * @return This builder for chaining. */ - public Builder setColor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setColor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } color_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The color commonly used in signage for this line. Represented in
      * hexadecimal.
      * 
* * string color = 4; + * * @return This builder for chaining. */ public Builder clearColor() { @@ -1568,18 +1712,22 @@ public Builder clearColor() { return this; } /** + * + * *
      * The color commonly used in signage for this line. Represented in
      * hexadecimal.
      * 
* * string color = 4; + * * @param value The bytes for color to set. * @return This builder for chaining. */ - public Builder setColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setColorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); color_ = value; bitField0_ |= 0x00000008; @@ -1589,18 +1737,20 @@ public Builder setColorBytes( private java.lang.Object iconUri_ = ""; /** + * + * *
      * The URI for the icon associated with this line.
      * 
* * string icon_uri = 5; + * * @return The iconUri. */ public java.lang.String getIconUri() { java.lang.Object ref = iconUri_; 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(); iconUri_ = s; return s; @@ -1609,20 +1759,21 @@ public java.lang.String getIconUri() { } } /** + * + * *
      * The URI for the icon associated with this line.
      * 
* * string icon_uri = 5; + * * @return The bytes for iconUri. */ - public com.google.protobuf.ByteString - getIconUriBytes() { + public com.google.protobuf.ByteString getIconUriBytes() { java.lang.Object ref = iconUri_; 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); iconUri_ = b; return b; } else { @@ -1630,28 +1781,35 @@ public java.lang.String getIconUri() { } } /** + * + * *
      * The URI for the icon associated with this line.
      * 
* * string icon_uri = 5; + * * @param value The iconUri to set. * @return This builder for chaining. */ - public Builder setIconUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIconUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } iconUri_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * The URI for the icon associated with this line.
      * 
* * string icon_uri = 5; + * * @return This builder for chaining. */ public Builder clearIconUri() { @@ -1661,17 +1819,21 @@ public Builder clearIconUri() { return this; } /** + * + * *
      * The URI for the icon associated with this line.
      * 
* * string icon_uri = 5; + * * @param value The bytes for iconUri to set. * @return This builder for chaining. */ - public Builder setIconUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIconUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); iconUri_ = value; bitField0_ |= 0x00000010; @@ -1681,19 +1843,21 @@ public Builder setIconUriBytes( private java.lang.Object nameShort_ = ""; /** + * + * *
      * The short name of this transit line. This name will normally be a line
      * number, such as "M7" or "355".
      * 
* * string name_short = 6; + * * @return The nameShort. */ public java.lang.String getNameShort() { java.lang.Object ref = nameShort_; 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(); nameShort_ = s; return s; @@ -1702,21 +1866,22 @@ public java.lang.String getNameShort() { } } /** + * + * *
      * The short name of this transit line. This name will normally be a line
      * number, such as "M7" or "355".
      * 
* * string name_short = 6; + * * @return The bytes for nameShort. */ - public com.google.protobuf.ByteString - getNameShortBytes() { + public com.google.protobuf.ByteString getNameShortBytes() { java.lang.Object ref = nameShort_; 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); nameShort_ = b; return b; } else { @@ -1724,30 +1889,37 @@ public java.lang.String getNameShort() { } } /** + * + * *
      * The short name of this transit line. This name will normally be a line
      * number, such as "M7" or "355".
      * 
* * string name_short = 6; + * * @param value The nameShort to set. * @return This builder for chaining. */ - public Builder setNameShort( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameShort(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nameShort_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The short name of this transit line. This name will normally be a line
      * number, such as "M7" or "355".
      * 
* * string name_short = 6; + * * @return This builder for chaining. */ public Builder clearNameShort() { @@ -1757,18 +1929,22 @@ public Builder clearNameShort() { return this; } /** + * + * *
      * The short name of this transit line. This name will normally be a line
      * number, such as "M7" or "355".
      * 
* * string name_short = 6; + * * @param value The bytes for nameShort to set. * @return This builder for chaining. */ - public Builder setNameShortBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameShortBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nameShort_ = value; bitField0_ |= 0x00000020; @@ -1778,19 +1954,21 @@ public Builder setNameShortBytes( private java.lang.Object textColor_ = ""; /** + * + * *
      * The color commonly used in text on signage for this line. Represented in
      * hexadecimal.
      * 
* * string text_color = 7; + * * @return The textColor. */ public java.lang.String getTextColor() { java.lang.Object ref = textColor_; 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(); textColor_ = s; return s; @@ -1799,21 +1977,22 @@ public java.lang.String getTextColor() { } } /** + * + * *
      * The color commonly used in text on signage for this line. Represented in
      * hexadecimal.
      * 
* * string text_color = 7; + * * @return The bytes for textColor. */ - public com.google.protobuf.ByteString - getTextColorBytes() { + public com.google.protobuf.ByteString getTextColorBytes() { java.lang.Object ref = textColor_; 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); textColor_ = b; return b; } else { @@ -1821,30 +2000,37 @@ public java.lang.String getTextColor() { } } /** + * + * *
      * The color commonly used in text on signage for this line. Represented in
      * hexadecimal.
      * 
* * string text_color = 7; + * * @param value The textColor to set. * @return This builder for chaining. */ - public Builder setTextColor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTextColor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } textColor_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * The color commonly used in text on signage for this line. Represented in
      * hexadecimal.
      * 
* * string text_color = 7; + * * @return This builder for chaining. */ public Builder clearTextColor() { @@ -1854,18 +2040,22 @@ public Builder clearTextColor() { return this; } /** + * + * *
      * The color commonly used in text on signage for this line. Represented in
      * hexadecimal.
      * 
* * string text_color = 7; + * * @param value The bytes for textColor to set. * @return This builder for chaining. */ - public Builder setTextColorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTextColorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); textColor_ = value; bitField0_ |= 0x00000040; @@ -1875,34 +2065,47 @@ public Builder setTextColorBytes( private com.google.maps.routing.v2.TransitVehicle vehicle_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitVehicle, com.google.maps.routing.v2.TransitVehicle.Builder, com.google.maps.routing.v2.TransitVehicleOrBuilder> vehicleBuilder_; + com.google.maps.routing.v2.TransitVehicle, + com.google.maps.routing.v2.TransitVehicle.Builder, + com.google.maps.routing.v2.TransitVehicleOrBuilder> + vehicleBuilder_; /** + * + * *
      * The type of vehicle that operates on this transit line.
      * 
* * .google.maps.routing.v2.TransitVehicle vehicle = 8; + * * @return Whether the vehicle field is set. */ public boolean hasVehicle() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * The type of vehicle that operates on this transit line.
      * 
* * .google.maps.routing.v2.TransitVehicle vehicle = 8; + * * @return The vehicle. */ public com.google.maps.routing.v2.TransitVehicle getVehicle() { if (vehicleBuilder_ == null) { - return vehicle_ == null ? com.google.maps.routing.v2.TransitVehicle.getDefaultInstance() : vehicle_; + return vehicle_ == null + ? com.google.maps.routing.v2.TransitVehicle.getDefaultInstance() + : vehicle_; } else { return vehicleBuilder_.getMessage(); } } /** + * + * *
      * The type of vehicle that operates on this transit line.
      * 
@@ -1923,14 +2126,15 @@ public Builder setVehicle(com.google.maps.routing.v2.TransitVehicle value) { return this; } /** + * + * *
      * The type of vehicle that operates on this transit line.
      * 
* * .google.maps.routing.v2.TransitVehicle vehicle = 8; */ - public Builder setVehicle( - com.google.maps.routing.v2.TransitVehicle.Builder builderForValue) { + public Builder setVehicle(com.google.maps.routing.v2.TransitVehicle.Builder builderForValue) { if (vehicleBuilder_ == null) { vehicle_ = builderForValue.build(); } else { @@ -1941,6 +2145,8 @@ public Builder setVehicle( return this; } /** + * + * *
      * The type of vehicle that operates on this transit line.
      * 
@@ -1949,9 +2155,9 @@ public Builder setVehicle( */ public Builder mergeVehicle(com.google.maps.routing.v2.TransitVehicle value) { if (vehicleBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - vehicle_ != null && - vehicle_ != com.google.maps.routing.v2.TransitVehicle.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && vehicle_ != null + && vehicle_ != com.google.maps.routing.v2.TransitVehicle.getDefaultInstance()) { getVehicleBuilder().mergeFrom(value); } else { vehicle_ = value; @@ -1964,6 +2170,8 @@ public Builder mergeVehicle(com.google.maps.routing.v2.TransitVehicle value) { return this; } /** + * + * *
      * The type of vehicle that operates on this transit line.
      * 
@@ -1981,6 +2189,8 @@ public Builder clearVehicle() { return this; } /** + * + * *
      * The type of vehicle that operates on this transit line.
      * 
@@ -1993,6 +2203,8 @@ public com.google.maps.routing.v2.TransitVehicle.Builder getVehicleBuilder() { return getVehicleFieldBuilder().getBuilder(); } /** + * + * *
      * The type of vehicle that operates on this transit line.
      * 
@@ -2003,11 +2215,14 @@ public com.google.maps.routing.v2.TransitVehicleOrBuilder getVehicleOrBuilder() if (vehicleBuilder_ != null) { return vehicleBuilder_.getMessageOrBuilder(); } else { - return vehicle_ == null ? - com.google.maps.routing.v2.TransitVehicle.getDefaultInstance() : vehicle_; + return vehicle_ == null + ? com.google.maps.routing.v2.TransitVehicle.getDefaultInstance() + : vehicle_; } } /** + * + * *
      * The type of vehicle that operates on this transit line.
      * 
@@ -2015,21 +2230,24 @@ public com.google.maps.routing.v2.TransitVehicleOrBuilder getVehicleOrBuilder() * .google.maps.routing.v2.TransitVehicle vehicle = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitVehicle, com.google.maps.routing.v2.TransitVehicle.Builder, com.google.maps.routing.v2.TransitVehicleOrBuilder> + com.google.maps.routing.v2.TransitVehicle, + com.google.maps.routing.v2.TransitVehicle.Builder, + com.google.maps.routing.v2.TransitVehicleOrBuilder> getVehicleFieldBuilder() { if (vehicleBuilder_ == null) { - vehicleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.TransitVehicle, com.google.maps.routing.v2.TransitVehicle.Builder, com.google.maps.routing.v2.TransitVehicleOrBuilder>( - getVehicle(), - getParentForChildren(), - isClean()); + vehicleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.TransitVehicle, + com.google.maps.routing.v2.TransitVehicle.Builder, + com.google.maps.routing.v2.TransitVehicleOrBuilder>( + getVehicle(), getParentForChildren(), isClean()); vehicle_ = null; } return vehicleBuilder_; } + @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); } @@ -2039,12 +2257,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.TransitLine) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.TransitLine) private static final com.google.maps.routing.v2.TransitLine DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.TransitLine(); } @@ -2053,27 +2271,27 @@ public static com.google.maps.routing.v2.TransitLine getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransitLine 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 TransitLine 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; @@ -2088,6 +2306,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.TransitLine getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLineOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLineOrBuilder.java similarity index 77% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLineOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLineOrBuilder.java index 2c7ba5bf266b..89d2e399fa97 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLineOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitLineOrBuilder.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/maps/routing/v2/transit.proto package com.google.maps.routing.v2; -public interface TransitLineOrBuilder extends +public interface TransitLineOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.TransitLine) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The transit agency (or agencies) that operates this transit line.
    * 
* * repeated .google.maps.routing.v2.TransitAgency agencies = 1; */ - java.util.List - getAgenciesList(); + java.util.List getAgenciesList(); /** + * + * *
    * The transit agency (or agencies) that operates this transit line.
    * 
@@ -25,6 +44,8 @@ public interface TransitLineOrBuilder extends */ com.google.maps.routing.v2.TransitAgency getAgencies(int index); /** + * + * *
    * The transit agency (or agencies) that operates this transit line.
    * 
@@ -33,169 +54,210 @@ public interface TransitLineOrBuilder extends */ int getAgenciesCount(); /** + * + * *
    * The transit agency (or agencies) that operates this transit line.
    * 
* * repeated .google.maps.routing.v2.TransitAgency agencies = 1; */ - java.util.List + java.util.List getAgenciesOrBuilderList(); /** + * + * *
    * The transit agency (or agencies) that operates this transit line.
    * 
* * repeated .google.maps.routing.v2.TransitAgency agencies = 1; */ - com.google.maps.routing.v2.TransitAgencyOrBuilder getAgenciesOrBuilder( - int index); + com.google.maps.routing.v2.TransitAgencyOrBuilder getAgenciesOrBuilder(int index); /** + * + * *
    * The full name of this transit line, For example, "8 Avenue Local".
    * 
* * string name = 2; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The full name of this transit line, For example, "8 Avenue Local".
    * 
* * string name = 2; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * the URI for this transit line as provided by the transit agency.
    * 
* * string uri = 3; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * the URI for this transit line as provided by the transit agency.
    * 
* * string uri = 3; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * The color commonly used in signage for this line. Represented in
    * hexadecimal.
    * 
* * string color = 4; + * * @return The color. */ java.lang.String getColor(); /** + * + * *
    * The color commonly used in signage for this line. Represented in
    * hexadecimal.
    * 
* * string color = 4; + * * @return The bytes for color. */ - com.google.protobuf.ByteString - getColorBytes(); + com.google.protobuf.ByteString getColorBytes(); /** + * + * *
    * The URI for the icon associated with this line.
    * 
* * string icon_uri = 5; + * * @return The iconUri. */ java.lang.String getIconUri(); /** + * + * *
    * The URI for the icon associated with this line.
    * 
* * string icon_uri = 5; + * * @return The bytes for iconUri. */ - com.google.protobuf.ByteString - getIconUriBytes(); + com.google.protobuf.ByteString getIconUriBytes(); /** + * + * *
    * The short name of this transit line. This name will normally be a line
    * number, such as "M7" or "355".
    * 
* * string name_short = 6; + * * @return The nameShort. */ java.lang.String getNameShort(); /** + * + * *
    * The short name of this transit line. This name will normally be a line
    * number, such as "M7" or "355".
    * 
* * string name_short = 6; + * * @return The bytes for nameShort. */ - com.google.protobuf.ByteString - getNameShortBytes(); + com.google.protobuf.ByteString getNameShortBytes(); /** + * + * *
    * The color commonly used in text on signage for this line. Represented in
    * hexadecimal.
    * 
* * string text_color = 7; + * * @return The textColor. */ java.lang.String getTextColor(); /** + * + * *
    * The color commonly used in text on signage for this line. Represented in
    * hexadecimal.
    * 
* * string text_color = 7; + * * @return The bytes for textColor. */ - com.google.protobuf.ByteString - getTextColorBytes(); + com.google.protobuf.ByteString getTextColorBytes(); /** + * + * *
    * The type of vehicle that operates on this transit line.
    * 
* * .google.maps.routing.v2.TransitVehicle vehicle = 8; + * * @return Whether the vehicle field is set. */ boolean hasVehicle(); /** + * + * *
    * The type of vehicle that operates on this transit line.
    * 
* * .google.maps.routing.v2.TransitVehicle vehicle = 8; + * * @return The vehicle. */ com.google.maps.routing.v2.TransitVehicle getVehicle(); /** + * + * *
    * The type of vehicle that operates on this transit line.
    * 
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferences.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferences.java similarity index 66% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferences.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferences.java index f1014868ba38..23024d25095f 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferences.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferences.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/maps/routing/v2/transit_preferences.proto package com.google.maps.routing.v2; /** + * + * *
  * Preferences for `TRANSIT` based routes that influence the route that is
  * returned.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.maps.routing.v2.TransitPreferences}
  */
-public final class TransitPreferences extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TransitPreferences extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.maps.routing.v2.TransitPreferences)
     TransitPreferencesOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TransitPreferences.newBuilder() to construct.
   private TransitPreferences(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TransitPreferences() {
     allowedTravelModes_ = java.util.Collections.emptyList();
     routingPreference_ = 0;
@@ -27,34 +45,38 @@ private TransitPreferences() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TransitPreferences();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.maps.routing.v2.TransitPreferencesProto.internal_static_google_maps_routing_v2_TransitPreferences_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.maps.routing.v2.TransitPreferencesProto
+        .internal_static_google_maps_routing_v2_TransitPreferences_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.TransitPreferencesProto.internal_static_google_maps_routing_v2_TransitPreferences_fieldAccessorTable
+    return com.google.maps.routing.v2.TransitPreferencesProto
+        .internal_static_google_maps_routing_v2_TransitPreferences_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.TransitPreferences.class, com.google.maps.routing.v2.TransitPreferences.Builder.class);
+            com.google.maps.routing.v2.TransitPreferences.class,
+            com.google.maps.routing.v2.TransitPreferences.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * A set of values used to specify the mode of transit.
    * 
* * Protobuf enum {@code google.maps.routing.v2.TransitPreferences.TransitTravelMode} */ - public enum TransitTravelMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum TransitTravelMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No transit travel mode specified.
      * 
@@ -63,6 +85,8 @@ public enum TransitTravelMode */ TRANSIT_TRAVEL_MODE_UNSPECIFIED(0), /** + * + * *
      * Travel by bus.
      * 
@@ -71,6 +95,8 @@ public enum TransitTravelMode */ BUS(1), /** + * + * *
      * Travel by subway.
      * 
@@ -79,6 +105,8 @@ public enum TransitTravelMode */ SUBWAY(2), /** + * + * *
      * Travel by train.
      * 
@@ -87,6 +115,8 @@ public enum TransitTravelMode */ TRAIN(3), /** + * + * *
      * Travel by light rail or tram.
      * 
@@ -95,6 +125,8 @@ public enum TransitTravelMode */ LIGHT_RAIL(4), /** + * + * *
      * Travel by rail. This is equivalent to a combination of `SUBWAY`, `TRAIN`,
      * and `LIGHT_RAIL`.
@@ -107,6 +139,8 @@ public enum TransitTravelMode
     ;
 
     /**
+     *
+     *
      * 
      * No transit travel mode specified.
      * 
@@ -115,6 +149,8 @@ public enum TransitTravelMode */ public static final int TRANSIT_TRAVEL_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Travel by bus.
      * 
@@ -123,6 +159,8 @@ public enum TransitTravelMode */ public static final int BUS_VALUE = 1; /** + * + * *
      * Travel by subway.
      * 
@@ -131,6 +169,8 @@ public enum TransitTravelMode */ public static final int SUBWAY_VALUE = 2; /** + * + * *
      * Travel by train.
      * 
@@ -139,6 +179,8 @@ public enum TransitTravelMode */ public static final int TRAIN_VALUE = 3; /** + * + * *
      * Travel by light rail or tram.
      * 
@@ -147,6 +189,8 @@ public enum TransitTravelMode */ public static final int LIGHT_RAIL_VALUE = 4; /** + * + * *
      * Travel by rail. This is equivalent to a combination of `SUBWAY`, `TRAIN`,
      * and `LIGHT_RAIL`.
@@ -156,7 +200,6 @@ public enum TransitTravelMode
      */
     public static final int RAIL_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -181,13 +224,20 @@ public static TransitTravelMode valueOf(int value) {
      */
     public static TransitTravelMode forNumber(int value) {
       switch (value) {
-        case 0: return TRANSIT_TRAVEL_MODE_UNSPECIFIED;
-        case 1: return BUS;
-        case 2: return SUBWAY;
-        case 3: return TRAIN;
-        case 4: return LIGHT_RAIL;
-        case 5: return RAIL;
-        default: return null;
+        case 0:
+          return TRANSIT_TRAVEL_MODE_UNSPECIFIED;
+        case 1:
+          return BUS;
+        case 2:
+          return SUBWAY;
+        case 3:
+          return TRAIN;
+        case 4:
+          return LIGHT_RAIL;
+        case 5:
+          return RAIL;
+        default:
+          return null;
       }
     }
 
@@ -195,28 +245,28 @@ public static TransitTravelMode forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        TransitTravelMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public TransitTravelMode findValueByNumber(int number) {
-              return TransitTravelMode.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 TransitTravelMode findValueByNumber(int number) {
+                return TransitTravelMode.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.maps.routing.v2.TransitPreferences.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -225,8 +275,7 @@ public TransitTravelMode findValueByNumber(int number) {
     public static TransitTravelMode 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;
@@ -244,15 +293,18 @@ private TransitTravelMode(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Specifies routing preferences for transit routes.
    * 
* * Protobuf enum {@code google.maps.routing.v2.TransitPreferences.TransitRoutingPreference} */ - public enum TransitRoutingPreference - implements com.google.protobuf.ProtocolMessageEnum { + public enum TransitRoutingPreference implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No preference specified.
      * 
@@ -261,6 +313,8 @@ public enum TransitRoutingPreference */ TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED(0), /** + * + * *
      * Indicates that the calculated route should prefer limited amounts of
      * walking.
@@ -270,6 +324,8 @@ public enum TransitRoutingPreference
      */
     LESS_WALKING(1),
     /**
+     *
+     *
      * 
      * Indicates that the calculated route should prefer a limited number of
      * transfers.
@@ -282,6 +338,8 @@ public enum TransitRoutingPreference
     ;
 
     /**
+     *
+     *
      * 
      * No preference specified.
      * 
@@ -290,6 +348,8 @@ public enum TransitRoutingPreference */ public static final int TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Indicates that the calculated route should prefer limited amounts of
      * walking.
@@ -299,6 +359,8 @@ public enum TransitRoutingPreference
      */
     public static final int LESS_WALKING_VALUE = 1;
     /**
+     *
+     *
      * 
      * Indicates that the calculated route should prefer a limited number of
      * transfers.
@@ -308,7 +370,6 @@ public enum TransitRoutingPreference
      */
     public static final int FEWER_TRANSFERS_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -333,10 +394,14 @@ public static TransitRoutingPreference valueOf(int value) {
      */
     public static TransitRoutingPreference forNumber(int value) {
       switch (value) {
-        case 0: return TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED;
-        case 1: return LESS_WALKING;
-        case 2: return FEWER_TRANSFERS;
-        default: return null;
+        case 0:
+          return TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED;
+        case 1:
+          return LESS_WALKING;
+        case 2:
+          return FEWER_TRANSFERS;
+        default:
+          return null;
       }
     }
 
@@ -344,28 +409,28 @@ public static TransitRoutingPreference forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        TransitRoutingPreference> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public TransitRoutingPreference findValueByNumber(int number) {
-              return TransitRoutingPreference.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 TransitRoutingPreference findValueByNumber(int number) {
+                return TransitRoutingPreference.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.maps.routing.v2.TransitPreferences.getDescriptor().getEnumTypes().get(1);
     }
 
@@ -374,8 +439,7 @@ public TransitRoutingPreference findValueByNumber(int number) {
     public static TransitRoutingPreference 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;
@@ -393,38 +457,58 @@ private TransitRoutingPreference(int value) {
   }
 
   public static final int ALLOWED_TRAVEL_MODES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List allowedTravelModes_;
+
   private static final com.google.protobuf.Internal.ListAdapter.Converter<
-      java.lang.Integer, com.google.maps.routing.v2.TransitPreferences.TransitTravelMode> allowedTravelModes_converter_ =
+          java.lang.Integer, com.google.maps.routing.v2.TransitPreferences.TransitTravelMode>
+      allowedTravelModes_converter_ =
           new com.google.protobuf.Internal.ListAdapter.Converter<
-              java.lang.Integer, com.google.maps.routing.v2.TransitPreferences.TransitTravelMode>() {
-            public com.google.maps.routing.v2.TransitPreferences.TransitTravelMode convert(java.lang.Integer from) {
-              com.google.maps.routing.v2.TransitPreferences.TransitTravelMode result = com.google.maps.routing.v2.TransitPreferences.TransitTravelMode.forNumber(from);
-              return result == null ? com.google.maps.routing.v2.TransitPreferences.TransitTravelMode.UNRECOGNIZED : result;
+              java.lang.Integer,
+              com.google.maps.routing.v2.TransitPreferences.TransitTravelMode>() {
+            public com.google.maps.routing.v2.TransitPreferences.TransitTravelMode convert(
+                java.lang.Integer from) {
+              com.google.maps.routing.v2.TransitPreferences.TransitTravelMode result =
+                  com.google.maps.routing.v2.TransitPreferences.TransitTravelMode.forNumber(from);
+              return result == null
+                  ? com.google.maps.routing.v2.TransitPreferences.TransitTravelMode.UNRECOGNIZED
+                  : result;
             }
           };
   /**
+   *
+   *
    * 
    * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
    * all supported modes of travel.
    * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @return A list containing the allowedTravelModes. */ @java.lang.Override - public java.util.List getAllowedTravelModesList() { + public java.util.List + getAllowedTravelModesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.TransitPreferences.TransitTravelMode>(allowedTravelModes_, allowedTravelModes_converter_); + java.lang.Integer, com.google.maps.routing.v2.TransitPreferences.TransitTravelMode>( + allowedTravelModes_, allowedTravelModes_converter_); } /** + * + * *
    * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
    * all supported modes of travel.
    * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @return The count of allowedTravelModes. */ @java.lang.Override @@ -432,40 +516,55 @@ public int getAllowedTravelModesCount() { return allowedTravelModes_.size(); } /** + * + * *
    * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
    * all supported modes of travel.
    * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @param index The index of the element to return. * @return The allowedTravelModes at the given index. */ @java.lang.Override - public com.google.maps.routing.v2.TransitPreferences.TransitTravelMode getAllowedTravelModes(int index) { + public com.google.maps.routing.v2.TransitPreferences.TransitTravelMode getAllowedTravelModes( + int index) { return allowedTravelModes_converter_.convert(allowedTravelModes_.get(index)); } /** + * + * *
    * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
    * all supported modes of travel.
    * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @return A list containing the enum numeric values on the wire for allowedTravelModes. */ @java.lang.Override - public java.util.List - getAllowedTravelModesValueList() { + public java.util.List getAllowedTravelModesValueList() { return allowedTravelModes_; } /** + * + * *
    * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
    * all supported modes of travel.
    * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of allowedTravelModes at the given index. */ @@ -473,37 +572,56 @@ public com.google.maps.routing.v2.TransitPreferences.TransitTravelMode getAllowe public int getAllowedTravelModesValue(int index) { return allowedTravelModes_.get(index); } + private int allowedTravelModesMemoizedSerializedSize; public static final int ROUTING_PREFERENCE_FIELD_NUMBER = 2; private int routingPreference_ = 0; /** + * + * *
    * A routing preference that, when specified, influences the `TRANSIT` route
    * returned.
    * 
* - * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * * @return The enum numeric value on the wire for routingPreference. */ - @java.lang.Override public int getRoutingPreferenceValue() { + @java.lang.Override + public int getRoutingPreferenceValue() { return routingPreference_; } /** + * + * *
    * A routing preference that, when specified, influences the `TRANSIT` route
    * returned.
    * 
* - * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * * @return The routingPreference. */ - @java.lang.Override public com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference getRoutingPreference() { - com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference result = com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.forNumber(routingPreference_); - return result == null ? com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.UNRECOGNIZED : result; + @java.lang.Override + public com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference + getRoutingPreference() { + com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference result = + com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.forNumber( + routingPreference_); + return result == null + ? com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -515,8 +633,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(); if (getAllowedTravelModesList().size() > 0) { output.writeUInt32NoTag(10); @@ -525,7 +642,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < allowedTravelModes_.size(); i++) { output.writeEnumNoTag(allowedTravelModes_.get(i)); } - if (routingPreference_ != com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED.getNumber()) { + if (routingPreference_ + != com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference + .TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, routingPreference_); } getUnknownFields().writeTo(output); @@ -540,18 +660,21 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < allowedTravelModes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(allowedTravelModes_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(allowedTravelModes_.get(i)); } size += dataSize; - if (!getAllowedTravelModesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }allowedTravelModesMemoizedSerializedSize = dataSize; + if (!getAllowedTravelModesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + allowedTravelModesMemoizedSerializedSize = dataSize; } - if (routingPreference_ != com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, routingPreference_); + if (routingPreference_ + != com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference + .TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, routingPreference_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -561,12 +684,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.maps.routing.v2.TransitPreferences)) { return super.equals(obj); } - com.google.maps.routing.v2.TransitPreferences other = (com.google.maps.routing.v2.TransitPreferences) obj; + com.google.maps.routing.v2.TransitPreferences other = + (com.google.maps.routing.v2.TransitPreferences) obj; if (!allowedTravelModes_.equals(other.allowedTravelModes_)) return false; if (routingPreference_ != other.routingPreference_) return false; @@ -592,99 +716,104 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.TransitPreferences parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.TransitPreferences parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.TransitPreferences 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.maps.routing.v2.TransitPreferences parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.TransitPreferences 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.maps.routing.v2.TransitPreferences parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.TransitPreferences 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.maps.routing.v2.TransitPreferences 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.maps.routing.v2.TransitPreferences 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.maps.routing.v2.TransitPreferences parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.TransitPreferences parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.TransitPreferences 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.maps.routing.v2.TransitPreferences 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.maps.routing.v2.TransitPreferences 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.maps.routing.v2.TransitPreferences 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; } /** + * + * *
    * Preferences for `TRANSIT` based routes that influence the route that is
    * returned.
@@ -692,33 +821,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.maps.routing.v2.TransitPreferences}
    */
-  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.maps.routing.v2.TransitPreferences)
       com.google.maps.routing.v2.TransitPreferencesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.maps.routing.v2.TransitPreferencesProto.internal_static_google_maps_routing_v2_TransitPreferences_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.maps.routing.v2.TransitPreferencesProto
+          .internal_static_google_maps_routing_v2_TransitPreferences_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.TransitPreferencesProto.internal_static_google_maps_routing_v2_TransitPreferences_fieldAccessorTable
+      return com.google.maps.routing.v2.TransitPreferencesProto
+          .internal_static_google_maps_routing_v2_TransitPreferences_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.TransitPreferences.class, com.google.maps.routing.v2.TransitPreferences.Builder.class);
+              com.google.maps.routing.v2.TransitPreferences.class,
+              com.google.maps.routing.v2.TransitPreferences.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.TransitPreferences.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();
@@ -730,9 +858,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.maps.routing.v2.TransitPreferencesProto.internal_static_google_maps_routing_v2_TransitPreferences_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.maps.routing.v2.TransitPreferencesProto
+          .internal_static_google_maps_routing_v2_TransitPreferences_descriptor;
     }
 
     @java.lang.Override
@@ -751,9 +879,12 @@ public com.google.maps.routing.v2.TransitPreferences build() {
 
     @java.lang.Override
     public com.google.maps.routing.v2.TransitPreferences buildPartial() {
-      com.google.maps.routing.v2.TransitPreferences result = new com.google.maps.routing.v2.TransitPreferences(this);
+      com.google.maps.routing.v2.TransitPreferences result =
+          new com.google.maps.routing.v2.TransitPreferences(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -777,38 +908,39 @@ private void buildPartial0(com.google.maps.routing.v2.TransitPreferences 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.maps.routing.v2.TransitPreferences) {
-        return mergeFrom((com.google.maps.routing.v2.TransitPreferences)other);
+        return mergeFrom((com.google.maps.routing.v2.TransitPreferences) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -856,34 +988,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              int tmpRaw = input.readEnum();
-              ensureAllowedTravelModesIsMutable();
-              allowedTravelModes_.add(tmpRaw);
-              break;
-            } // case 8
-            case 10: {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while(input.getBytesUntilLimit() > 0) {
+            case 8:
+              {
                 int tmpRaw = input.readEnum();
                 ensureAllowedTravelModesIsMutable();
                 allowedTravelModes_.add(tmpRaw);
-              }
-              input.popLimit(oldLimit);
-              break;
-            } // case 10
-            case 16: {
-              routingPreference_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 8
+            case 10:
+              {
+                int length = input.readRawVarint32();
+                int oldLimit = input.pushLimit(length);
+                while (input.getBytesUntilLimit() > 0) {
+                  int tmpRaw = input.readEnum();
+                  ensureAllowedTravelModesIsMutable();
+                  allowedTravelModes_.add(tmpRaw);
+                }
+                input.popLimit(oldLimit);
+                break;
+              } // case 10
+            case 16:
+              {
+                routingPreference_ = 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) {
@@ -893,10 +1029,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List allowedTravelModes_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureAllowedTravelModesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         allowedTravelModes_ = new java.util.ArrayList(allowedTravelModes_);
@@ -904,50 +1042,73 @@ private void ensureAllowedTravelModesIsMutable() {
       }
     }
     /**
+     *
+     *
      * 
      * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
      * all supported modes of travel.
      * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @return A list containing the allowedTravelModes. */ - public java.util.List getAllowedTravelModesList() { + public java.util.List + getAllowedTravelModesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.maps.routing.v2.TransitPreferences.TransitTravelMode>(allowedTravelModes_, allowedTravelModes_converter_); + java.lang.Integer, com.google.maps.routing.v2.TransitPreferences.TransitTravelMode>( + allowedTravelModes_, allowedTravelModes_converter_); } /** + * + * *
      * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
      * all supported modes of travel.
      * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @return The count of allowedTravelModes. */ public int getAllowedTravelModesCount() { return allowedTravelModes_.size(); } /** + * + * *
      * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
      * all supported modes of travel.
      * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @param index The index of the element to return. * @return The allowedTravelModes at the given index. */ - public com.google.maps.routing.v2.TransitPreferences.TransitTravelMode getAllowedTravelModes(int index) { + public com.google.maps.routing.v2.TransitPreferences.TransitTravelMode getAllowedTravelModes( + int index) { return allowedTravelModes_converter_.convert(allowedTravelModes_.get(index)); } /** + * + * *
      * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
      * all supported modes of travel.
      * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @param index The index to set the value at. * @param value The allowedTravelModes to set. * @return This builder for chaining. @@ -963,16 +1124,22 @@ public Builder setAllowedTravelModes( return this; } /** + * + * *
      * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
      * all supported modes of travel.
      * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @param value The allowedTravelModes to add. * @return This builder for chaining. */ - public Builder addAllowedTravelModes(com.google.maps.routing.v2.TransitPreferences.TransitTravelMode value) { + public Builder addAllowedTravelModes( + com.google.maps.routing.v2.TransitPreferences.TransitTravelMode value) { if (value == null) { throw new NullPointerException(); } @@ -982,17 +1149,24 @@ public Builder addAllowedTravelModes(com.google.maps.routing.v2.TransitPreferenc return this; } /** + * + * *
      * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
      * all supported modes of travel.
      * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @param values The allowedTravelModes to add. * @return This builder for chaining. */ public Builder addAllAllowedTravelModes( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.maps.routing.v2.TransitPreferences.TransitTravelMode> + values) { ensureAllowedTravelModesIsMutable(); for (com.google.maps.routing.v2.TransitPreferences.TransitTravelMode value : values) { allowedTravelModes_.add(value.getNumber()); @@ -1001,12 +1175,17 @@ public Builder addAllAllowedTravelModes( return this; } /** + * + * *
      * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
      * all supported modes of travel.
      * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @return This builder for chaining. */ public Builder clearAllowedTravelModes() { @@ -1016,25 +1195,34 @@ public Builder clearAllowedTravelModes() { return this; } /** + * + * *
      * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
      * all supported modes of travel.
      * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @return A list containing the enum numeric values on the wire for allowedTravelModes. */ - public java.util.List - getAllowedTravelModesValueList() { + public java.util.List getAllowedTravelModesValueList() { return java.util.Collections.unmodifiableList(allowedTravelModes_); } /** + * + * *
      * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
      * all supported modes of travel.
      * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of allowedTravelModes at the given index. */ @@ -1042,30 +1230,39 @@ public int getAllowedTravelModesValue(int index) { return allowedTravelModes_.get(index); } /** + * + * *
      * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
      * all supported modes of travel.
      * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for allowedTravelModes to set. * @return This builder for chaining. */ - public Builder setAllowedTravelModesValue( - int index, int value) { + public Builder setAllowedTravelModesValue(int index, int value) { ensureAllowedTravelModesIsMutable(); allowedTravelModes_.set(index, value); onChanged(); return this; } /** + * + * *
      * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
      * all supported modes of travel.
      * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @param value The enum numeric value on the wire for allowedTravelModes to add. * @return This builder for chaining. */ @@ -1076,17 +1273,21 @@ public Builder addAllowedTravelModesValue(int value) { return this; } /** + * + * *
      * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
      * all supported modes of travel.
      * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @param values The enum numeric values on the wire for allowedTravelModes to add. * @return This builder for chaining. */ - public Builder addAllAllowedTravelModesValue( - java.lang.Iterable values) { + public Builder addAllAllowedTravelModesValue(java.lang.Iterable values) { ensureAllowedTravelModesIsMutable(); for (int value : values) { allowedTravelModes_.add(value); @@ -1097,24 +1298,35 @@ public Builder addAllAllowedTravelModesValue( private int routingPreference_ = 0; /** + * + * *
      * A routing preference that, when specified, influences the `TRANSIT` route
      * returned.
      * 
* - * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * * @return The enum numeric value on the wire for routingPreference. */ - @java.lang.Override public int getRoutingPreferenceValue() { + @java.lang.Override + public int getRoutingPreferenceValue() { return routingPreference_; } /** + * + * *
      * A routing preference that, when specified, influences the `TRANSIT` route
      * returned.
      * 
* - * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * * @param value The enum numeric value on the wire for routingPreference to set. * @return This builder for chaining. */ @@ -1125,30 +1337,46 @@ public Builder setRoutingPreferenceValue(int value) { return this; } /** + * + * *
      * A routing preference that, when specified, influences the `TRANSIT` route
      * returned.
      * 
* - * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * * @return The routingPreference. */ @java.lang.Override - public com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference getRoutingPreference() { - com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference result = com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.forNumber(routingPreference_); - return result == null ? com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.UNRECOGNIZED : result; + public com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference + getRoutingPreference() { + com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference result = + com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.forNumber( + routingPreference_); + return result == null + ? com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference.UNRECOGNIZED + : result; } /** + * + * *
      * A routing preference that, when specified, influences the `TRANSIT` route
      * returned.
      * 
* - * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * * @param value The routingPreference to set. * @return This builder for chaining. */ - public Builder setRoutingPreference(com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference value) { + public Builder setRoutingPreference( + com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference value) { if (value == null) { throw new NullPointerException(); } @@ -1158,12 +1386,17 @@ public Builder setRoutingPreference(com.google.maps.routing.v2.TransitPreference return this; } /** + * + * *
      * A routing preference that, when specified, influences the `TRANSIT` route
      * returned.
      * 
* - * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * * @return This builder for chaining. */ public Builder clearRoutingPreference() { @@ -1172,9 +1405,9 @@ public Builder clearRoutingPreference() { 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); } @@ -1184,12 +1417,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.TransitPreferences) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.TransitPreferences) private static final com.google.maps.routing.v2.TransitPreferences DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.TransitPreferences(); } @@ -1198,27 +1431,27 @@ public static com.google.maps.routing.v2.TransitPreferences getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransitPreferences 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 TransitPreferences 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; @@ -1233,6 +1466,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.TransitPreferences getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesOrBuilder.java similarity index 56% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesOrBuilder.java index bc8f6d700182..847bd8ed3a4f 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesOrBuilder.java @@ -1,83 +1,134 @@ +/* + * 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/maps/routing/v2/transit_preferences.proto package com.google.maps.routing.v2; -public interface TransitPreferencesOrBuilder extends +public interface TransitPreferencesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.TransitPreferences) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
    * all supported modes of travel.
    * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @return A list containing the allowedTravelModes. */ - java.util.List getAllowedTravelModesList(); + java.util.List + getAllowedTravelModesList(); /** + * + * *
    * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
    * all supported modes of travel.
    * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @return The count of allowedTravelModes. */ int getAllowedTravelModesCount(); /** + * + * *
    * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
    * all supported modes of travel.
    * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @param index The index of the element to return. * @return The allowedTravelModes at the given index. */ com.google.maps.routing.v2.TransitPreferences.TransitTravelMode getAllowedTravelModes(int index); /** + * + * *
    * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
    * all supported modes of travel.
    * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @return A list containing the enum numeric values on the wire for allowedTravelModes. */ - java.util.List - getAllowedTravelModesValueList(); + java.util.List getAllowedTravelModesValueList(); /** + * + * *
    * A set of travel modes to use when getting a `TRANSIT` route. Defaults to
    * all supported modes of travel.
    * 
* - * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * repeated .google.maps.routing.v2.TransitPreferences.TransitTravelMode allowed_travel_modes = 1; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of allowedTravelModes at the given index. */ int getAllowedTravelModesValue(int index); /** + * + * *
    * A routing preference that, when specified, influences the `TRANSIT` route
    * returned.
    * 
* - * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * * @return The enum numeric value on the wire for routingPreference. */ int getRoutingPreferenceValue(); /** + * + * *
    * A routing preference that, when specified, influences the `TRANSIT` route
    * returned.
    * 
* - * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * .google.maps.routing.v2.TransitPreferences.TransitRoutingPreference routing_preference = 2; + * + * * @return The routingPreference. */ com.google.maps.routing.v2.TransitPreferences.TransitRoutingPreference getRoutingPreference(); diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java new file mode 100644 index 000000000000..929293efff25 --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java @@ -0,0 +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/maps/routing/v2/transit_preferences.proto + +package com.google.maps.routing.v2; + +public final class TransitPreferencesProto { + private TransitPreferencesProto() {} + + 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_maps_routing_v2_TransitPreferences_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_TransitPreferences_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/maps/routing/v2/transit_prefere" + + "nces.proto\022\026google.maps.routing.v2\"\264\003\n\022T" + + "ransitPreferences\022Z\n\024allowed_travel_mode" + + "s\030\001 \003(\0162<.google.maps.routing.v2.Transit" + + "Preferences.TransitTravelMode\022_\n\022routing" + + "_preference\030\002 \001(\0162C.google.maps.routing." + + "v2.TransitPreferences.TransitRoutingPref" + + "erence\"r\n\021TransitTravelMode\022#\n\037TRANSIT_T" + + "RAVEL_MODE_UNSPECIFIED\020\000\022\007\n\003BUS\020\001\022\n\n\006SUB" + + "WAY\020\002\022\t\n\005TRAIN\020\003\022\016\n\nLIGHT_RAIL\020\004\022\010\n\004RAIL" + + "\020\005\"m\n\030TransitRoutingPreference\022*\n&TRANSI" + + "T_ROUTING_PREFERENCE_UNSPECIFIED\020\000\022\020\n\014LE" + + "SS_WALKING\020\001\022\023\n\017FEWER_TRANSFERS\020\002B\314\001\n\032co" + + "m.google.maps.routing.v2B\027TransitPrefere" + + "ncesProtoP\001Z:cloud.google.com/go/maps/ro" + + "uting/apiv2/routingpb;routingpb\370\001\001\242\002\005GMR" + + "V2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Map" + + "s\\Routing\\V2\352\002\031Google::Maps::Routing::V2" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_maps_routing_v2_TransitPreferences_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_TransitPreferences_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_TransitPreferences_descriptor, + new java.lang.String[] { + "AllowedTravelModes", "RoutingPreference", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java new file mode 100644 index 000000000000..9b3310adbcb9 --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java @@ -0,0 +1,131 @@ +/* + * 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/maps/routing/v2/transit.proto + +package com.google.maps.routing.v2; + +public final class TransitProto { + private TransitProto() {} + + 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_maps_routing_v2_TransitAgency_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_TransitAgency_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_TransitLine_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_TransitLine_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_TransitStop_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_TransitStop_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_maps_routing_v2_TransitVehicle_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_TransitVehicle_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/maps/routing/v2/transit.proto\022\026" + + "google.maps.routing.v2\032%google/maps/rout" + + "ing/v2/location.proto\032 google/type/local" + + "ized_text.proto\"@\n\rTransitAgency\022\014\n\004name" + + "\030\001 \001(\t\022\024\n\014phone_number\030\002 \001(\t\022\013\n\003uri\030\003 \001(" + + "\t\"\343\001\n\013TransitLine\0227\n\010agencies\030\001 \003(\0132%.go" + + "ogle.maps.routing.v2.TransitAgency\022\014\n\004na" + + "me\030\002 \001(\t\022\013\n\003uri\030\003 \001(\t\022\r\n\005color\030\004 \001(\t\022\020\n\010" + + "icon_uri\030\005 \001(\t\022\022\n\nname_short\030\006 \001(\t\022\022\n\nte" + + "xt_color\030\007 \001(\t\0227\n\007vehicle\030\010 \001(\0132&.google" + + ".maps.routing.v2.TransitVehicle\"O\n\013Trans" + + "itStop\022\014\n\004name\030\001 \001(\t\0222\n\010location\030\002 \001(\0132 " + + ".google.maps.routing.v2.Location\"\375\003\n\016Tra" + + "nsitVehicle\022(\n\004name\030\001 \001(\0132\032.google.type." + + "LocalizedText\022G\n\004type\030\002 \001(\01629.google.map" + + "s.routing.v2.TransitVehicle.TransitVehic" + + "leType\022\020\n\010icon_uri\030\003 \001(\t\022\026\n\016local_icon_u" + + "ri\030\004 \001(\t\"\315\002\n\022TransitVehicleType\022$\n TRANS" + + "IT_VEHICLE_TYPE_UNSPECIFIED\020\000\022\007\n\003BUS\020\001\022\r" + + "\n\tCABLE_CAR\020\002\022\022\n\016COMMUTER_TRAIN\020\003\022\t\n\005FER" + + "RY\020\004\022\r\n\tFUNICULAR\020\005\022\020\n\014GONDOLA_LIFT\020\006\022\016\n" + + "\nHEAVY_RAIL\020\007\022\024\n\020HIGH_SPEED_TRAIN\020\010\022\021\n\rI" + + "NTERCITY_BUS\020\t\022\027\n\023LONG_DISTANCE_TRAIN\020\n\022" + + "\016\n\nMETRO_RAIL\020\013\022\014\n\010MONORAIL\020\014\022\t\n\005OTHER\020\r" + + "\022\010\n\004RAIL\020\016\022\016\n\nSHARE_TAXI\020\017\022\n\n\006SUBWAY\020\020\022\010" + + "\n\004TRAM\020\021\022\016\n\nTROLLEYBUS\020\022B\301\001\n\032com.google." + + "maps.routing.v2B\014TransitProtoP\001Z:cloud.g" + + "oogle.com/go/maps/routing/apiv2/routingp" + + "b;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Rou" + + "ting.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Googl" + + "e::Maps::Routing::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.maps.routing.v2.LocationProto.getDescriptor(), + com.google.type.LocalizedTextProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_TransitAgency_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_TransitAgency_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_TransitAgency_descriptor, + new java.lang.String[] { + "Name", "PhoneNumber", "Uri", + }); + internal_static_google_maps_routing_v2_TransitLine_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_maps_routing_v2_TransitLine_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_TransitLine_descriptor, + new java.lang.String[] { + "Agencies", "Name", "Uri", "Color", "IconUri", "NameShort", "TextColor", "Vehicle", + }); + internal_static_google_maps_routing_v2_TransitStop_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_maps_routing_v2_TransitStop_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_TransitStop_descriptor, + new java.lang.String[] { + "Name", "Location", + }); + internal_static_google_maps_routing_v2_TransitVehicle_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_maps_routing_v2_TransitVehicle_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_TransitVehicle_descriptor, + new java.lang.String[] { + "Name", "Type", "IconUri", "LocalIconUri", + }); + com.google.maps.routing.v2.LocationProto.getDescriptor(); + com.google.type.LocalizedTextProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStop.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStop.java similarity index 68% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStop.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStop.java index af4251deb50e..09783bae4f23 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStop.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStop.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/maps/routing/v2/transit.proto package com.google.maps.routing.v2; /** + * + * *
  * Information about a transit stop.
  * 
* * Protobuf type {@code google.maps.routing.v2.TransitStop} */ -public final class TransitStop extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TransitStop extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.TransitStop) TransitStopOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TransitStop.newBuilder() to construct. private TransitStop(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TransitStop() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransitStop(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitStop_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitStop_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitStop_fieldAccessorTable + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitStop_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.TransitStop.class, com.google.maps.routing.v2.TransitStop.Builder.class); + com.google.maps.routing.v2.TransitStop.class, + com.google.maps.routing.v2.TransitStop.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The name of the transit stop.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -60,29 +83,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; } } /** + * + * *
    * The name of the transit stop.
    * 
* * 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 { @@ -93,11 +116,14 @@ public java.lang.String getName() { public static final int LOCATION_FIELD_NUMBER = 2; private com.google.maps.routing.v2.Location location_; /** + * + * *
    * The location of the stop expressed in latitude/longitude coordinates.
    * 
* * .google.maps.routing.v2.Location location = 2; + * * @return Whether the location field is set. */ @java.lang.Override @@ -105,11 +131,14 @@ public boolean hasLocation() { return location_ != null; } /** + * + * *
    * The location of the stop expressed in latitude/longitude coordinates.
    * 
* * .google.maps.routing.v2.Location location = 2; + * * @return The location. */ @java.lang.Override @@ -117,6 +146,8 @@ public com.google.maps.routing.v2.Location getLocation() { return location_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : location_; } /** + * + * *
    * The location of the stop expressed in latitude/longitude coordinates.
    * 
@@ -129,6 +160,7 @@ public com.google.maps.routing.v2.LocationOrBuilder getLocationOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +172,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -161,8 +192,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (location_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLocation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLocation()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -172,19 +202,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.maps.routing.v2.TransitStop)) { return super.equals(obj); } com.google.maps.routing.v2.TransitStop other = (com.google.maps.routing.v2.TransitStop) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getLocation().equals(other.getLocation())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -208,132 +236,136 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.TransitStop parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.TransitStop parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.TransitStop 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.maps.routing.v2.TransitStop parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.TransitStop 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.maps.routing.v2.TransitStop parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.TransitStop 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.maps.routing.v2.TransitStop 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.maps.routing.v2.TransitStop 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.maps.routing.v2.TransitStop parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.TransitStop 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.maps.routing.v2.TransitStop 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.maps.routing.v2.TransitStop 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.maps.routing.v2.TransitStop 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; } /** + * + * *
    * Information about a transit stop.
    * 
* * Protobuf type {@code google.maps.routing.v2.TransitStop} */ - 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.maps.routing.v2.TransitStop) com.google.maps.routing.v2.TransitStopOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitStop_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitStop_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitStop_fieldAccessorTable + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitStop_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.TransitStop.class, com.google.maps.routing.v2.TransitStop.Builder.class); + com.google.maps.routing.v2.TransitStop.class, + com.google.maps.routing.v2.TransitStop.Builder.class); } // Construct using com.google.maps.routing.v2.TransitStop.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(); @@ -348,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitStop_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitStop_descriptor; } @java.lang.Override @@ -369,8 +401,11 @@ public com.google.maps.routing.v2.TransitStop build() { @java.lang.Override public com.google.maps.routing.v2.TransitStop buildPartial() { - com.google.maps.routing.v2.TransitStop result = new com.google.maps.routing.v2.TransitStop(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.maps.routing.v2.TransitStop result = + new com.google.maps.routing.v2.TransitStop(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,9 +416,7 @@ private void buildPartial0(com.google.maps.routing.v2.TransitStop result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.location_ = locationBuilder_ == null - ? location_ - : locationBuilder_.build(); + result.location_ = locationBuilder_ == null ? location_ : locationBuilder_.build(); } } @@ -391,38 +424,39 @@ private void buildPartial0(com.google.maps.routing.v2.TransitStop 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.maps.routing.v2.TransitStop) { - return mergeFrom((com.google.maps.routing.v2.TransitStop)other); + return mergeFrom((com.google.maps.routing.v2.TransitStop) other); } else { super.mergeFrom(other); return this; @@ -465,24 +499,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getLocationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - 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 18: + { + input.readMessage(getLocationFieldBuilder().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) { @@ -492,22 +527,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The name of the transit stop.
      * 
* * 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; @@ -516,20 +554,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the transit stop.
      * 
* * 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 { @@ -537,28 +576,35 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the transit stop.
      * 
* * 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; } /** + * + * *
      * The name of the transit stop.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -568,17 +614,21 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of the transit stop.
      * 
* * 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; @@ -588,34 +638,47 @@ public Builder setNameBytes( private com.google.maps.routing.v2.Location location_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> locationBuilder_; + com.google.maps.routing.v2.Location, + com.google.maps.routing.v2.Location.Builder, + com.google.maps.routing.v2.LocationOrBuilder> + locationBuilder_; /** + * + * *
      * The location of the stop expressed in latitude/longitude coordinates.
      * 
* * .google.maps.routing.v2.Location location = 2; + * * @return Whether the location field is set. */ public boolean hasLocation() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The location of the stop expressed in latitude/longitude coordinates.
      * 
* * .google.maps.routing.v2.Location location = 2; + * * @return The location. */ public com.google.maps.routing.v2.Location getLocation() { if (locationBuilder_ == null) { - return location_ == null ? com.google.maps.routing.v2.Location.getDefaultInstance() : location_; + return location_ == null + ? com.google.maps.routing.v2.Location.getDefaultInstance() + : location_; } else { return locationBuilder_.getMessage(); } } /** + * + * *
      * The location of the stop expressed in latitude/longitude coordinates.
      * 
@@ -636,14 +699,15 @@ public Builder setLocation(com.google.maps.routing.v2.Location value) { return this; } /** + * + * *
      * The location of the stop expressed in latitude/longitude coordinates.
      * 
* * .google.maps.routing.v2.Location location = 2; */ - public Builder setLocation( - com.google.maps.routing.v2.Location.Builder builderForValue) { + public Builder setLocation(com.google.maps.routing.v2.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); } else { @@ -654,6 +718,8 @@ public Builder setLocation( return this; } /** + * + * *
      * The location of the stop expressed in latitude/longitude coordinates.
      * 
@@ -662,9 +728,9 @@ public Builder setLocation( */ public Builder mergeLocation(com.google.maps.routing.v2.Location value) { if (locationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - location_ != null && - location_ != com.google.maps.routing.v2.Location.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && location_ != null + && location_ != com.google.maps.routing.v2.Location.getDefaultInstance()) { getLocationBuilder().mergeFrom(value); } else { location_ = value; @@ -677,6 +743,8 @@ public Builder mergeLocation(com.google.maps.routing.v2.Location value) { return this; } /** + * + * *
      * The location of the stop expressed in latitude/longitude coordinates.
      * 
@@ -694,6 +762,8 @@ public Builder clearLocation() { return this; } /** + * + * *
      * The location of the stop expressed in latitude/longitude coordinates.
      * 
@@ -706,6 +776,8 @@ public com.google.maps.routing.v2.Location.Builder getLocationBuilder() { return getLocationFieldBuilder().getBuilder(); } /** + * + * *
      * The location of the stop expressed in latitude/longitude coordinates.
      * 
@@ -716,11 +788,14 @@ public com.google.maps.routing.v2.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { - return location_ == null ? - com.google.maps.routing.v2.Location.getDefaultInstance() : location_; + return location_ == null + ? com.google.maps.routing.v2.Location.getDefaultInstance() + : location_; } } /** + * + * *
      * The location of the stop expressed in latitude/longitude coordinates.
      * 
@@ -728,21 +803,24 @@ public com.google.maps.routing.v2.LocationOrBuilder getLocationOrBuilder() { * .google.maps.routing.v2.Location location = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> + com.google.maps.routing.v2.Location, + com.google.maps.routing.v2.Location.Builder, + com.google.maps.routing.v2.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { - locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder>( - getLocation(), - getParentForChildren(), - isClean()); + locationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.maps.routing.v2.Location, + com.google.maps.routing.v2.Location.Builder, + com.google.maps.routing.v2.LocationOrBuilder>( + getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } + @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); } @@ -752,12 +830,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.TransitStop) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.TransitStop) private static final com.google.maps.routing.v2.TransitStop DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.TransitStop(); } @@ -766,27 +844,27 @@ public static com.google.maps.routing.v2.TransitStop getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransitStop 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 TransitStop 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; @@ -801,6 +879,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.TransitStop getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStopOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStopOrBuilder.java similarity index 63% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStopOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStopOrBuilder.java index 77db31e06a6b..30586b632560 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStopOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitStopOrBuilder.java @@ -1,51 +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/maps/routing/v2/transit.proto package com.google.maps.routing.v2; -public interface TransitStopOrBuilder extends +public interface TransitStopOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.TransitStop) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the transit stop.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the transit stop.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The location of the stop expressed in latitude/longitude coordinates.
    * 
* * .google.maps.routing.v2.Location location = 2; + * * @return Whether the location field is set. */ boolean hasLocation(); /** + * + * *
    * The location of the stop expressed in latitude/longitude coordinates.
    * 
* * .google.maps.routing.v2.Location location = 2; + * * @return The location. */ com.google.maps.routing.v2.Location getLocation(); /** + * + * *
    * The location of the stop expressed in latitude/longitude coordinates.
    * 
diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicle.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicle.java similarity index 72% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicle.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicle.java index ba5deaa69d49..14da6d53e229 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicle.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicle.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/maps/routing/v2/transit.proto package com.google.maps.routing.v2; /** + * + * *
  * Information about a vehicle used in transit routes.
  * 
* * Protobuf type {@code google.maps.routing.v2.TransitVehicle} */ -public final class TransitVehicle extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TransitVehicle extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.TransitVehicle) TransitVehicleOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TransitVehicle.newBuilder() to construct. private TransitVehicle(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TransitVehicle() { type_ = 0; iconUri_ = ""; @@ -27,34 +45,38 @@ private TransitVehicle() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransitVehicle(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitVehicle_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitVehicle_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitVehicle_fieldAccessorTable + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitVehicle_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.TransitVehicle.class, com.google.maps.routing.v2.TransitVehicle.Builder.class); + com.google.maps.routing.v2.TransitVehicle.class, + com.google.maps.routing.v2.TransitVehicle.Builder.class); } /** + * + * *
    * The type of vehicles for transit routes.
    * 
* * Protobuf enum {@code google.maps.routing.v2.TransitVehicle.TransitVehicleType} */ - public enum TransitVehicleType - implements com.google.protobuf.ProtocolMessageEnum { + public enum TransitVehicleType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unused.
      * 
@@ -63,6 +85,8 @@ public enum TransitVehicleType */ TRANSIT_VEHICLE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Bus.
      * 
@@ -71,6 +95,8 @@ public enum TransitVehicleType */ BUS(1), /** + * + * *
      * A vehicle that operates on a cable, usually on the ground. Aerial cable
      * cars may be of the type `GONDOLA_LIFT`.
@@ -80,6 +106,8 @@ public enum TransitVehicleType
      */
     CABLE_CAR(2),
     /**
+     *
+     *
      * 
      * Commuter rail.
      * 
@@ -88,6 +116,8 @@ public enum TransitVehicleType */ COMMUTER_TRAIN(3), /** + * + * *
      * Ferry.
      * 
@@ -96,6 +126,8 @@ public enum TransitVehicleType */ FERRY(4), /** + * + * *
      * A vehicle that is pulled up a steep incline by a cable. A Funicular
      * typically consists of two cars, with each car acting as a counterweight
@@ -106,6 +138,8 @@ public enum TransitVehicleType
      */
     FUNICULAR(5),
     /**
+     *
+     *
      * 
      * An aerial cable car.
      * 
@@ -114,6 +148,8 @@ public enum TransitVehicleType */ GONDOLA_LIFT(6), /** + * + * *
      * Heavy rail.
      * 
@@ -122,6 +158,8 @@ public enum TransitVehicleType */ HEAVY_RAIL(7), /** + * + * *
      * High speed train.
      * 
@@ -130,6 +168,8 @@ public enum TransitVehicleType */ HIGH_SPEED_TRAIN(8), /** + * + * *
      * Intercity bus.
      * 
@@ -138,6 +178,8 @@ public enum TransitVehicleType */ INTERCITY_BUS(9), /** + * + * *
      * Long distance train.
      * 
@@ -146,6 +188,8 @@ public enum TransitVehicleType */ LONG_DISTANCE_TRAIN(10), /** + * + * *
      * Light rail transit.
      * 
@@ -154,6 +198,8 @@ public enum TransitVehicleType */ METRO_RAIL(11), /** + * + * *
      * Monorail.
      * 
@@ -162,6 +208,8 @@ public enum TransitVehicleType */ MONORAIL(12), /** + * + * *
      * All other vehicles.
      * 
@@ -170,6 +218,8 @@ public enum TransitVehicleType */ OTHER(13), /** + * + * *
      * Rail.
      * 
@@ -178,6 +228,8 @@ public enum TransitVehicleType */ RAIL(14), /** + * + * *
      * Share taxi is a kind of bus with the ability to drop off and pick up
      * passengers anywhere on its route.
@@ -187,6 +239,8 @@ public enum TransitVehicleType
      */
     SHARE_TAXI(15),
     /**
+     *
+     *
      * 
      * Underground light rail.
      * 
@@ -195,6 +249,8 @@ public enum TransitVehicleType */ SUBWAY(16), /** + * + * *
      * Above ground light rail.
      * 
@@ -203,6 +259,8 @@ public enum TransitVehicleType */ TRAM(17), /** + * + * *
      * Trolleybus.
      * 
@@ -214,6 +272,8 @@ public enum TransitVehicleType ; /** + * + * *
      * Unused.
      * 
@@ -222,6 +282,8 @@ public enum TransitVehicleType */ public static final int TRANSIT_VEHICLE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Bus.
      * 
@@ -230,6 +292,8 @@ public enum TransitVehicleType */ public static final int BUS_VALUE = 1; /** + * + * *
      * A vehicle that operates on a cable, usually on the ground. Aerial cable
      * cars may be of the type `GONDOLA_LIFT`.
@@ -239,6 +303,8 @@ public enum TransitVehicleType
      */
     public static final int CABLE_CAR_VALUE = 2;
     /**
+     *
+     *
      * 
      * Commuter rail.
      * 
@@ -247,6 +313,8 @@ public enum TransitVehicleType */ public static final int COMMUTER_TRAIN_VALUE = 3; /** + * + * *
      * Ferry.
      * 
@@ -255,6 +323,8 @@ public enum TransitVehicleType */ public static final int FERRY_VALUE = 4; /** + * + * *
      * A vehicle that is pulled up a steep incline by a cable. A Funicular
      * typically consists of two cars, with each car acting as a counterweight
@@ -265,6 +335,8 @@ public enum TransitVehicleType
      */
     public static final int FUNICULAR_VALUE = 5;
     /**
+     *
+     *
      * 
      * An aerial cable car.
      * 
@@ -273,6 +345,8 @@ public enum TransitVehicleType */ public static final int GONDOLA_LIFT_VALUE = 6; /** + * + * *
      * Heavy rail.
      * 
@@ -281,6 +355,8 @@ public enum TransitVehicleType */ public static final int HEAVY_RAIL_VALUE = 7; /** + * + * *
      * High speed train.
      * 
@@ -289,6 +365,8 @@ public enum TransitVehicleType */ public static final int HIGH_SPEED_TRAIN_VALUE = 8; /** + * + * *
      * Intercity bus.
      * 
@@ -297,6 +375,8 @@ public enum TransitVehicleType */ public static final int INTERCITY_BUS_VALUE = 9; /** + * + * *
      * Long distance train.
      * 
@@ -305,6 +385,8 @@ public enum TransitVehicleType */ public static final int LONG_DISTANCE_TRAIN_VALUE = 10; /** + * + * *
      * Light rail transit.
      * 
@@ -313,6 +395,8 @@ public enum TransitVehicleType */ public static final int METRO_RAIL_VALUE = 11; /** + * + * *
      * Monorail.
      * 
@@ -321,6 +405,8 @@ public enum TransitVehicleType */ public static final int MONORAIL_VALUE = 12; /** + * + * *
      * All other vehicles.
      * 
@@ -329,6 +415,8 @@ public enum TransitVehicleType */ public static final int OTHER_VALUE = 13; /** + * + * *
      * Rail.
      * 
@@ -337,6 +425,8 @@ public enum TransitVehicleType */ public static final int RAIL_VALUE = 14; /** + * + * *
      * Share taxi is a kind of bus with the ability to drop off and pick up
      * passengers anywhere on its route.
@@ -346,6 +436,8 @@ public enum TransitVehicleType
      */
     public static final int SHARE_TAXI_VALUE = 15;
     /**
+     *
+     *
      * 
      * Underground light rail.
      * 
@@ -354,6 +446,8 @@ public enum TransitVehicleType */ public static final int SUBWAY_VALUE = 16; /** + * + * *
      * Above ground light rail.
      * 
@@ -362,6 +456,8 @@ public enum TransitVehicleType */ public static final int TRAM_VALUE = 17; /** + * + * *
      * Trolleybus.
      * 
@@ -370,7 +466,6 @@ public enum TransitVehicleType */ public static final int TROLLEYBUS_VALUE = 18; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -395,26 +490,46 @@ public static TransitVehicleType valueOf(int value) { */ public static TransitVehicleType forNumber(int value) { switch (value) { - case 0: return TRANSIT_VEHICLE_TYPE_UNSPECIFIED; - case 1: return BUS; - case 2: return CABLE_CAR; - case 3: return COMMUTER_TRAIN; - case 4: return FERRY; - case 5: return FUNICULAR; - case 6: return GONDOLA_LIFT; - case 7: return HEAVY_RAIL; - case 8: return HIGH_SPEED_TRAIN; - case 9: return INTERCITY_BUS; - case 10: return LONG_DISTANCE_TRAIN; - case 11: return METRO_RAIL; - case 12: return MONORAIL; - case 13: return OTHER; - case 14: return RAIL; - case 15: return SHARE_TAXI; - case 16: return SUBWAY; - case 17: return TRAM; - case 18: return TROLLEYBUS; - default: return null; + case 0: + return TRANSIT_VEHICLE_TYPE_UNSPECIFIED; + case 1: + return BUS; + case 2: + return CABLE_CAR; + case 3: + return COMMUTER_TRAIN; + case 4: + return FERRY; + case 5: + return FUNICULAR; + case 6: + return GONDOLA_LIFT; + case 7: + return HEAVY_RAIL; + case 8: + return HIGH_SPEED_TRAIN; + case 9: + return INTERCITY_BUS; + case 10: + return LONG_DISTANCE_TRAIN; + case 11: + return METRO_RAIL; + case 12: + return MONORAIL; + case 13: + return OTHER; + case 14: + return RAIL; + case 15: + return SHARE_TAXI; + case 16: + return SUBWAY; + case 17: + return TRAM; + case 18: + return TROLLEYBUS; + default: + return null; } } @@ -422,28 +537,28 @@ public static TransitVehicleType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - TransitVehicleType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TransitVehicleType findValueByNumber(int number) { - return TransitVehicleType.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 TransitVehicleType findValueByNumber(int number) { + return TransitVehicleType.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.maps.routing.v2.TransitVehicle.getDescriptor().getEnumTypes().get(0); } @@ -452,8 +567,7 @@ public TransitVehicleType findValueByNumber(int number) { public static TransitVehicleType 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; @@ -473,11 +587,14 @@ private TransitVehicleType(int value) { public static final int NAME_FIELD_NUMBER = 1; private com.google.type.LocalizedText name_; /** + * + * *
    * The name of this vehicle, capitalized.
    * 
* * .google.type.LocalizedText name = 1; + * * @return Whether the name field is set. */ @java.lang.Override @@ -485,11 +602,14 @@ public boolean hasName() { return name_ != null; } /** + * + * *
    * The name of this vehicle, capitalized.
    * 
* * .google.type.LocalizedText name = 1; + * * @return The name. */ @java.lang.Override @@ -497,6 +617,8 @@ public com.google.type.LocalizedText getName() { return name_ == null ? com.google.type.LocalizedText.getDefaultInstance() : name_; } /** + * + * *
    * The name of this vehicle, capitalized.
    * 
@@ -511,38 +633,53 @@ public com.google.type.LocalizedTextOrBuilder getNameOrBuilder() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** + * + * *
    * The type of vehicle used.
    * 
* * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * The type of vehicle used.
    * 
* * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * * @return The type. */ - @java.lang.Override public com.google.maps.routing.v2.TransitVehicle.TransitVehicleType getType() { - com.google.maps.routing.v2.TransitVehicle.TransitVehicleType result = com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.forNumber(type_); - return result == null ? com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.maps.routing.v2.TransitVehicle.TransitVehicleType getType() { + com.google.maps.routing.v2.TransitVehicle.TransitVehicleType result = + com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.forNumber(type_); + return result == null + ? com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.UNRECOGNIZED + : result; } public static final int ICON_URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object iconUri_ = ""; /** + * + * *
    * The URI for an icon associated with this vehicle type.
    * 
* * string icon_uri = 3; + * * @return The iconUri. */ @java.lang.Override @@ -551,29 +688,29 @@ public java.lang.String getIconUri() { 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(); iconUri_ = s; return s; } } /** + * + * *
    * The URI for an icon associated with this vehicle type.
    * 
* * string icon_uri = 3; + * * @return The bytes for iconUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getIconUriBytes() { + public com.google.protobuf.ByteString getIconUriBytes() { java.lang.Object ref = iconUri_; 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); iconUri_ = b; return b; } else { @@ -582,15 +719,19 @@ public java.lang.String getIconUri() { } public static final int LOCAL_ICON_URI_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object localIconUri_ = ""; /** + * + * *
    * The URI for the icon associated with this vehicle type, based on the local
    * transport signage.
    * 
* * string local_icon_uri = 4; + * * @return The localIconUri. */ @java.lang.Override @@ -599,30 +740,30 @@ public java.lang.String getLocalIconUri() { 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(); localIconUri_ = s; return s; } } /** + * + * *
    * The URI for the icon associated with this vehicle type, based on the local
    * transport signage.
    * 
* * string local_icon_uri = 4; + * * @return The bytes for localIconUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocalIconUriBytes() { + public com.google.protobuf.ByteString getLocalIconUriBytes() { java.lang.Object ref = localIconUri_; 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); localIconUri_ = b; return b; } else { @@ -631,6 +772,7 @@ public java.lang.String getLocalIconUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -642,12 +784,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 (name_ != null) { output.writeMessage(1, getName()); } - if (type_ != com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.TRANSIT_VEHICLE_TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.maps.routing.v2.TransitVehicle.TransitVehicleType + .TRANSIT_VEHICLE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconUri_)) { @@ -666,12 +810,13 @@ public int getSerializedSize() { size = 0; if (name_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getName()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getName()); } - if (type_ != com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.TRANSIT_VEHICLE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + if (type_ + != com.google.maps.routing.v2.TransitVehicle.TransitVehicleType + .TRANSIT_VEHICLE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, iconUri_); @@ -687,23 +832,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.maps.routing.v2.TransitVehicle)) { return super.equals(obj); } - com.google.maps.routing.v2.TransitVehicle other = (com.google.maps.routing.v2.TransitVehicle) obj; + com.google.maps.routing.v2.TransitVehicle other = + (com.google.maps.routing.v2.TransitVehicle) obj; if (hasName() != other.hasName()) return false; if (hasName()) { - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; } if (type_ != other.type_) return false; - if (!getIconUri() - .equals(other.getIconUri())) return false; - if (!getLocalIconUri() - .equals(other.getLocalIconUri())) return false; + if (!getIconUri().equals(other.getIconUri())) return false; + if (!getLocalIconUri().equals(other.getLocalIconUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -730,132 +873,136 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.TransitVehicle parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.TransitVehicle parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.TransitVehicle 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.maps.routing.v2.TransitVehicle parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.TransitVehicle 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.maps.routing.v2.TransitVehicle parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.TransitVehicle 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.maps.routing.v2.TransitVehicle 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.maps.routing.v2.TransitVehicle 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.maps.routing.v2.TransitVehicle parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.maps.routing.v2.TransitVehicle parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.TransitVehicle 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.maps.routing.v2.TransitVehicle 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.maps.routing.v2.TransitVehicle 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.maps.routing.v2.TransitVehicle 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; } /** + * + * *
    * Information about a vehicle used in transit routes.
    * 
* * Protobuf type {@code google.maps.routing.v2.TransitVehicle} */ - 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.maps.routing.v2.TransitVehicle) com.google.maps.routing.v2.TransitVehicleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitVehicle_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitVehicle_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitVehicle_fieldAccessorTable + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitVehicle_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.TransitVehicle.class, com.google.maps.routing.v2.TransitVehicle.Builder.class); + com.google.maps.routing.v2.TransitVehicle.class, + com.google.maps.routing.v2.TransitVehicle.Builder.class); } // Construct using com.google.maps.routing.v2.TransitVehicle.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(); @@ -872,9 +1019,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.TransitProto.internal_static_google_maps_routing_v2_TransitVehicle_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.TransitProto + .internal_static_google_maps_routing_v2_TransitVehicle_descriptor; } @java.lang.Override @@ -893,8 +1040,11 @@ public com.google.maps.routing.v2.TransitVehicle build() { @java.lang.Override public com.google.maps.routing.v2.TransitVehicle buildPartial() { - com.google.maps.routing.v2.TransitVehicle result = new com.google.maps.routing.v2.TransitVehicle(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.maps.routing.v2.TransitVehicle result = + new com.google.maps.routing.v2.TransitVehicle(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -902,9 +1052,7 @@ public com.google.maps.routing.v2.TransitVehicle buildPartial() { private void buildPartial0(com.google.maps.routing.v2.TransitVehicle result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = nameBuilder_ == null - ? name_ - : nameBuilder_.build(); + result.name_ = nameBuilder_ == null ? name_ : nameBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.type_ = type_; @@ -921,38 +1069,39 @@ private void buildPartial0(com.google.maps.routing.v2.TransitVehicle 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.maps.routing.v2.TransitVehicle) { - return mergeFrom((com.google.maps.routing.v2.TransitVehicle)other); + return mergeFrom((com.google.maps.routing.v2.TransitVehicle) other); } else { super.mergeFrom(other); return this; @@ -1003,34 +1152,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getNameFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - iconUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - localIconUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getNameFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + iconUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + localIconUri_ = input.readStringRequireUtf8(); + 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) { @@ -1040,28 +1192,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.type.LocalizedText name_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> nameBuilder_; + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> + nameBuilder_; /** + * + * *
      * The name of this vehicle, capitalized.
      * 
* * .google.type.LocalizedText name = 1; + * * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The name of this vehicle, capitalized.
      * 
* * .google.type.LocalizedText name = 1; + * * @return The name. */ public com.google.type.LocalizedText getName() { @@ -1072,6 +1234,8 @@ public com.google.type.LocalizedText getName() { } } /** + * + * *
      * The name of this vehicle, capitalized.
      * 
@@ -1092,14 +1256,15 @@ public Builder setName(com.google.type.LocalizedText value) { return this; } /** + * + * *
      * The name of this vehicle, capitalized.
      * 
* * .google.type.LocalizedText name = 1; */ - public Builder setName( - com.google.type.LocalizedText.Builder builderForValue) { + public Builder setName(com.google.type.LocalizedText.Builder builderForValue) { if (nameBuilder_ == null) { name_ = builderForValue.build(); } else { @@ -1110,6 +1275,8 @@ public Builder setName( return this; } /** + * + * *
      * The name of this vehicle, capitalized.
      * 
@@ -1118,9 +1285,9 @@ public Builder setName( */ public Builder mergeName(com.google.type.LocalizedText value) { if (nameBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - name_ != null && - name_ != com.google.type.LocalizedText.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && name_ != null + && name_ != com.google.type.LocalizedText.getDefaultInstance()) { getNameBuilder().mergeFrom(value); } else { name_ = value; @@ -1133,6 +1300,8 @@ public Builder mergeName(com.google.type.LocalizedText value) { return this; } /** + * + * *
      * The name of this vehicle, capitalized.
      * 
@@ -1150,6 +1319,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The name of this vehicle, capitalized.
      * 
@@ -1162,6 +1333,8 @@ public com.google.type.LocalizedText.Builder getNameBuilder() { return getNameFieldBuilder().getBuilder(); } /** + * + * *
      * The name of this vehicle, capitalized.
      * 
@@ -1172,11 +1345,12 @@ public com.google.type.LocalizedTextOrBuilder getNameOrBuilder() { if (nameBuilder_ != null) { return nameBuilder_.getMessageOrBuilder(); } else { - return name_ == null ? - com.google.type.LocalizedText.getDefaultInstance() : name_; + return name_ == null ? com.google.type.LocalizedText.getDefaultInstance() : name_; } } /** + * + * *
      * The name of this vehicle, capitalized.
      * 
@@ -1184,14 +1358,17 @@ public com.google.type.LocalizedTextOrBuilder getNameOrBuilder() { * .google.type.LocalizedText name = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder> + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder> getNameFieldBuilder() { if (nameBuilder_ == null) { - nameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.LocalizedText, com.google.type.LocalizedText.Builder, com.google.type.LocalizedTextOrBuilder>( - getName(), - getParentForChildren(), - isClean()); + nameBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.LocalizedText, + com.google.type.LocalizedText.Builder, + com.google.type.LocalizedTextOrBuilder>( + getName(), getParentForChildren(), isClean()); name_ = null; } return nameBuilder_; @@ -1199,22 +1376,29 @@ public com.google.type.LocalizedTextOrBuilder getNameOrBuilder() { private int type_ = 0; /** + * + * *
      * The type of vehicle used.
      * 
* * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The type of vehicle used.
      * 
* * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -1225,24 +1409,33 @@ public Builder setTypeValue(int value) { return this; } /** + * + * *
      * The type of vehicle used.
      * 
* * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * * @return The type. */ @java.lang.Override public com.google.maps.routing.v2.TransitVehicle.TransitVehicleType getType() { - com.google.maps.routing.v2.TransitVehicle.TransitVehicleType result = com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.forNumber(type_); - return result == null ? com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.UNRECOGNIZED : result; + com.google.maps.routing.v2.TransitVehicle.TransitVehicleType result = + com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.forNumber(type_); + return result == null + ? com.google.maps.routing.v2.TransitVehicle.TransitVehicleType.UNRECOGNIZED + : result; } /** + * + * *
      * The type of vehicle used.
      * 
* * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1256,11 +1449,14 @@ public Builder setType(com.google.maps.routing.v2.TransitVehicle.TransitVehicleT return this; } /** + * + * *
      * The type of vehicle used.
      * 
* * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * * @return This builder for chaining. */ public Builder clearType() { @@ -1272,18 +1468,20 @@ public Builder clearType() { private java.lang.Object iconUri_ = ""; /** + * + * *
      * The URI for an icon associated with this vehicle type.
      * 
* * string icon_uri = 3; + * * @return The iconUri. */ public java.lang.String getIconUri() { java.lang.Object ref = iconUri_; 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(); iconUri_ = s; return s; @@ -1292,20 +1490,21 @@ public java.lang.String getIconUri() { } } /** + * + * *
      * The URI for an icon associated with this vehicle type.
      * 
* * string icon_uri = 3; + * * @return The bytes for iconUri. */ - public com.google.protobuf.ByteString - getIconUriBytes() { + public com.google.protobuf.ByteString getIconUriBytes() { java.lang.Object ref = iconUri_; 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); iconUri_ = b; return b; } else { @@ -1313,28 +1512,35 @@ public java.lang.String getIconUri() { } } /** + * + * *
      * The URI for an icon associated with this vehicle type.
      * 
* * string icon_uri = 3; + * * @param value The iconUri to set. * @return This builder for chaining. */ - public Builder setIconUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIconUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } iconUri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The URI for an icon associated with this vehicle type.
      * 
* * string icon_uri = 3; + * * @return This builder for chaining. */ public Builder clearIconUri() { @@ -1344,17 +1550,21 @@ public Builder clearIconUri() { return this; } /** + * + * *
      * The URI for an icon associated with this vehicle type.
      * 
* * string icon_uri = 3; + * * @param value The bytes for iconUri to set. * @return This builder for chaining. */ - public Builder setIconUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIconUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); iconUri_ = value; bitField0_ |= 0x00000004; @@ -1364,19 +1574,21 @@ public Builder setIconUriBytes( private java.lang.Object localIconUri_ = ""; /** + * + * *
      * The URI for the icon associated with this vehicle type, based on the local
      * transport signage.
      * 
* * string local_icon_uri = 4; + * * @return The localIconUri. */ public java.lang.String getLocalIconUri() { java.lang.Object ref = localIconUri_; 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(); localIconUri_ = s; return s; @@ -1385,21 +1597,22 @@ public java.lang.String getLocalIconUri() { } } /** + * + * *
      * The URI for the icon associated with this vehicle type, based on the local
      * transport signage.
      * 
* * string local_icon_uri = 4; + * * @return The bytes for localIconUri. */ - public com.google.protobuf.ByteString - getLocalIconUriBytes() { + public com.google.protobuf.ByteString getLocalIconUriBytes() { java.lang.Object ref = localIconUri_; 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); localIconUri_ = b; return b; } else { @@ -1407,30 +1620,37 @@ public java.lang.String getLocalIconUri() { } } /** + * + * *
      * The URI for the icon associated with this vehicle type, based on the local
      * transport signage.
      * 
* * string local_icon_uri = 4; + * * @param value The localIconUri to set. * @return This builder for chaining. */ - public Builder setLocalIconUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocalIconUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } localIconUri_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The URI for the icon associated with this vehicle type, based on the local
      * transport signage.
      * 
* * string local_icon_uri = 4; + * * @return This builder for chaining. */ public Builder clearLocalIconUri() { @@ -1440,27 +1660,31 @@ public Builder clearLocalIconUri() { return this; } /** + * + * *
      * The URI for the icon associated with this vehicle type, based on the local
      * transport signage.
      * 
* * string local_icon_uri = 4; + * * @param value The bytes for localIconUri to set. * @return This builder for chaining. */ - public Builder setLocalIconUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocalIconUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); localIconUri_ = value; bitField0_ |= 0x00000008; 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); } @@ -1470,12 +1694,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.TransitVehicle) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.TransitVehicle) private static final com.google.maps.routing.v2.TransitVehicle DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.TransitVehicle(); } @@ -1484,27 +1708,27 @@ public static com.google.maps.routing.v2.TransitVehicle getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TransitVehicle 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 TransitVehicle 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; @@ -1519,6 +1743,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.TransitVehicle getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicleOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicleOrBuilder.java similarity index 71% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicleOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicleOrBuilder.java index 284d15f6a496..94afa5b24c53 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicleOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitVehicleOrBuilder.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/maps/routing/v2/transit.proto package com.google.maps.routing.v2; -public interface TransitVehicleOrBuilder extends +public interface TransitVehicleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.TransitVehicle) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of this vehicle, capitalized.
    * 
* * .google.type.LocalizedText name = 1; + * * @return Whether the name field is set. */ boolean hasName(); /** + * + * *
    * The name of this vehicle, capitalized.
    * 
* * .google.type.LocalizedText name = 1; + * * @return The name. */ com.google.type.LocalizedText getName(); /** + * + * *
    * The name of this vehicle, capitalized.
    * 
@@ -35,63 +59,79 @@ public interface TransitVehicleOrBuilder extends com.google.type.LocalizedTextOrBuilder getNameOrBuilder(); /** + * + * *
    * The type of vehicle used.
    * 
* * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * The type of vehicle used.
    * 
* * .google.maps.routing.v2.TransitVehicle.TransitVehicleType type = 2; + * * @return The type. */ com.google.maps.routing.v2.TransitVehicle.TransitVehicleType getType(); /** + * + * *
    * The URI for an icon associated with this vehicle type.
    * 
* * string icon_uri = 3; + * * @return The iconUri. */ java.lang.String getIconUri(); /** + * + * *
    * The URI for an icon associated with this vehicle type.
    * 
* * string icon_uri = 3; + * * @return The bytes for iconUri. */ - com.google.protobuf.ByteString - getIconUriBytes(); + com.google.protobuf.ByteString getIconUriBytes(); /** + * + * *
    * The URI for the icon associated with this vehicle type, based on the local
    * transport signage.
    * 
* * string local_icon_uri = 4; + * * @return The localIconUri. */ java.lang.String getLocalIconUri(); /** + * + * *
    * The URI for the icon associated with this vehicle type, based on the local
    * transport signage.
    * 
* * string local_icon_uri = 4; + * * @return The bytes for localIconUri. */ - com.google.protobuf.ByteString - getLocalIconUriBytes(); + com.google.protobuf.ByteString getLocalIconUriBytes(); } diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Units.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Units.java similarity index 66% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Units.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Units.java index cdb7fcb40100..7544adf16e6c 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Units.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Units.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/maps/routing/v2/units.proto package com.google.maps.routing.v2; /** + * + * *
  * A set of values that specify the unit of measure used in the display.
  * 
* * Protobuf enum {@code google.maps.routing.v2.Units} */ -public enum Units - implements com.google.protobuf.ProtocolMessageEnum { +public enum Units implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Units of measure not specified. Defaults to the unit of measure inferred
    * from the request.
@@ -22,6 +40,8 @@ public enum Units
    */
   UNITS_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * Metric units of measure.
    * 
@@ -30,6 +50,8 @@ public enum Units */ METRIC(1), /** + * + * *
    * Imperial (English) units of measure.
    * 
@@ -41,6 +63,8 @@ public enum Units ; /** + * + * *
    * Units of measure not specified. Defaults to the unit of measure inferred
    * from the request.
@@ -50,6 +74,8 @@ public enum Units
    */
   public static final int UNITS_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * Metric units of measure.
    * 
@@ -58,6 +84,8 @@ public enum Units */ public static final int METRIC_VALUE = 1; /** + * + * *
    * Imperial (English) units of measure.
    * 
@@ -66,7 +94,6 @@ public enum Units */ public static final int IMPERIAL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -91,49 +118,49 @@ public static Units valueOf(int value) { */ public static Units forNumber(int value) { switch (value) { - case 0: return UNITS_UNSPECIFIED; - case 1: return METRIC; - case 2: return IMPERIAL; - default: return null; + case 0: + return UNITS_UNSPECIFIED; + case 1: + return METRIC; + case 2: + return IMPERIAL; + 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< - Units> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Units findValueByNumber(int number) { - return Units.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 Units findValueByNumber(int number) { + return Units.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.maps.routing.v2.UnitsProto.getDescriptor().getEnumTypes().get(0); } private static final Units[] VALUES = values(); - public static Units valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Units 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; @@ -149,4 +176,3 @@ private Units(int value) { // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.Units) } - diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java new file mode 100644 index 000000000000..ffc970453a97 --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java @@ -0,0 +1,53 @@ +/* + * 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/maps/routing/v2/units.proto + +package com.google.maps.routing.v2; + +public final class UnitsProto { + private UnitsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + 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/maps/routing/v2/units.proto\022\026go" + + "ogle.maps.routing.v2*8\n\005Units\022\025\n\021UNITS_U" + + "NSPECIFIED\020\000\022\n\n\006METRIC\020\001\022\014\n\010IMPERIAL\020\002B\277" + + "\001\n\032com.google.maps.routing.v2B\nUnitsProt" + + "oP\001Z:cloud.google.com/go/maps/routing/ap" + + "iv2/routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Goo" + + "gle.Maps.Routing.V2\312\002\026Google\\Maps\\Routin" + + "g\\V2\352\002\031Google::Maps::Routing::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionType.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionType.java similarity index 70% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionType.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionType.java index 7395efab3070..59988552ebbf 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionType.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionType.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/maps/routing/v2/vehicle_emission_type.proto package com.google.maps.routing.v2; /** + * + * *
  * A set of values describing the vehicle's emission type.
  * Applies only to the `DRIVE`
@@ -12,9 +29,10 @@
  *
  * Protobuf enum {@code google.maps.routing.v2.VehicleEmissionType}
  */
-public enum VehicleEmissionType
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum VehicleEmissionType implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * No emission type specified. Default to `GASOLINE`.
    * 
@@ -23,6 +41,8 @@ public enum VehicleEmissionType */ VEHICLE_EMISSION_TYPE_UNSPECIFIED(0), /** + * + * *
    * Gasoline/petrol fueled vehicle.
    * 
@@ -31,6 +51,8 @@ public enum VehicleEmissionType */ GASOLINE(1), /** + * + * *
    * Electricity powered vehicle.
    * 
@@ -39,6 +61,8 @@ public enum VehicleEmissionType */ ELECTRIC(2), /** + * + * *
    * Hybrid fuel (such as gasoline + electric) vehicle.
    * 
@@ -47,6 +71,8 @@ public enum VehicleEmissionType */ HYBRID(3), /** + * + * *
    * Diesel fueled vehicle.
    * 
@@ -58,6 +84,8 @@ public enum VehicleEmissionType ; /** + * + * *
    * No emission type specified. Default to `GASOLINE`.
    * 
@@ -66,6 +94,8 @@ public enum VehicleEmissionType */ public static final int VEHICLE_EMISSION_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Gasoline/petrol fueled vehicle.
    * 
@@ -74,6 +104,8 @@ public enum VehicleEmissionType */ public static final int GASOLINE_VALUE = 1; /** + * + * *
    * Electricity powered vehicle.
    * 
@@ -82,6 +114,8 @@ public enum VehicleEmissionType */ public static final int ELECTRIC_VALUE = 2; /** + * + * *
    * Hybrid fuel (such as gasoline + electric) vehicle.
    * 
@@ -90,6 +124,8 @@ public enum VehicleEmissionType */ public static final int HYBRID_VALUE = 3; /** + * + * *
    * Diesel fueled vehicle.
    * 
@@ -98,7 +134,6 @@ public enum VehicleEmissionType */ public static final int DIESEL_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -123,12 +158,18 @@ public static VehicleEmissionType valueOf(int value) { */ public static VehicleEmissionType forNumber(int value) { switch (value) { - case 0: return VEHICLE_EMISSION_TYPE_UNSPECIFIED; - case 1: return GASOLINE; - case 2: return ELECTRIC; - case 3: return HYBRID; - case 4: return DIESEL; - default: return null; + case 0: + return VEHICLE_EMISSION_TYPE_UNSPECIFIED; + case 1: + return GASOLINE; + case 2: + return ELECTRIC; + case 3: + return HYBRID; + case 4: + return DIESEL; + default: + return null; } } @@ -136,29 +177,31 @@ public static VehicleEmissionType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - VehicleEmissionType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public VehicleEmissionType findValueByNumber(int number) { - return VehicleEmissionType.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 VehicleEmissionType findValueByNumber(int number) { + return VehicleEmissionType.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.maps.routing.v2.VehicleEmissionTypeProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.maps.routing.v2.VehicleEmissionTypeProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final VehicleEmissionType[] VALUES = values(); @@ -166,8 +209,7 @@ public VehicleEmissionType findValueByNumber(int number) { public static VehicleEmissionType 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; @@ -183,4 +225,3 @@ private VehicleEmissionType(int value) { // @@protoc_insertion_point(enum_scope:google.maps.routing.v2.VehicleEmissionType) } - diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java new file mode 100644 index 000000000000..620583071a68 --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java @@ -0,0 +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/maps/routing/v2/vehicle_emission_type.proto + +package com.google.maps.routing.v2; + +public final class VehicleEmissionTypeProto { + private VehicleEmissionTypeProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/maps/routing/v2/vehicle_emissio" + + "n_type.proto\022\026google.maps.routing.v2*p\n\023" + + "VehicleEmissionType\022%\n!VEHICLE_EMISSION_" + + "TYPE_UNSPECIFIED\020\000\022\014\n\010GASOLINE\020\001\022\014\n\010ELEC" + + "TRIC\020\002\022\n\n\006HYBRID\020\003\022\n\n\006DIESEL\020\004B\315\001\n\032com.g" + + "oogle.maps.routing.v2B\030VehicleEmissionTy" + + "peProtoP\001Z:cloud.google.com/go/maps/rout" + + "ing/apiv2/routingpb;routingpb\370\001\001\242\002\005GMRV2" + + "\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Maps\\" + + "Routing\\V2\352\002\031Google::Maps::Routing::V2b\006" + + "proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfo.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfo.java similarity index 66% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfo.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfo.java index bb61cafdbac0..25da2c07a847 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfo.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfo.java @@ -1,51 +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/maps/routing/v2/vehicle_info.proto package com.google.maps.routing.v2; /** + * + * *
  * Contains the vehicle information, such as the vehicle emission type.
  * 
* * Protobuf type {@code google.maps.routing.v2.VehicleInfo} */ -public final class VehicleInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VehicleInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.maps.routing.v2.VehicleInfo) VehicleInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VehicleInfo.newBuilder() to construct. private VehicleInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VehicleInfo() { emissionType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VehicleInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.VehicleInfoProto.internal_static_google_maps_routing_v2_VehicleInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.VehicleInfoProto + .internal_static_google_maps_routing_v2_VehicleInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.VehicleInfoProto.internal_static_google_maps_routing_v2_VehicleInfo_fieldAccessorTable + return com.google.maps.routing.v2.VehicleInfoProto + .internal_static_google_maps_routing_v2_VehicleInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.VehicleInfo.class, com.google.maps.routing.v2.VehicleInfo.Builder.class); + com.google.maps.routing.v2.VehicleInfo.class, + com.google.maps.routing.v2.VehicleInfo.Builder.class); } public static final int EMISSION_TYPE_FIELD_NUMBER = 2; private int emissionType_ = 0; /** + * + * *
    * Describes the vehicle's emission type.
    * Applies only to the `DRIVE`
@@ -53,12 +74,16 @@ protected java.lang.Object newInstance(
    * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; + * * @return The enum numeric value on the wire for emissionType. */ - @java.lang.Override public int getEmissionTypeValue() { + @java.lang.Override + public int getEmissionTypeValue() { return emissionType_; } /** + * + * *
    * Describes the vehicle's emission type.
    * Applies only to the `DRIVE`
@@ -66,14 +91,18 @@ protected java.lang.Object newInstance(
    * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; + * * @return The emissionType. */ - @java.lang.Override public com.google.maps.routing.v2.VehicleEmissionType getEmissionType() { - com.google.maps.routing.v2.VehicleEmissionType result = com.google.maps.routing.v2.VehicleEmissionType.forNumber(emissionType_); + @java.lang.Override + public com.google.maps.routing.v2.VehicleEmissionType getEmissionType() { + com.google.maps.routing.v2.VehicleEmissionType result = + com.google.maps.routing.v2.VehicleEmissionType.forNumber(emissionType_); return result == null ? com.google.maps.routing.v2.VehicleEmissionType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -85,9 +114,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (emissionType_ != com.google.maps.routing.v2.VehicleEmissionType.VEHICLE_EMISSION_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (emissionType_ + != com.google.maps.routing.v2.VehicleEmissionType.VEHICLE_EMISSION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, emissionType_); } getUnknownFields().writeTo(output); @@ -99,9 +129,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (emissionType_ != com.google.maps.routing.v2.VehicleEmissionType.VEHICLE_EMISSION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, emissionType_); + if (emissionType_ + != com.google.maps.routing.v2.VehicleEmissionType.VEHICLE_EMISSION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, emissionType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -111,7 +142,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.maps.routing.v2.VehicleInfo)) { return super.equals(obj); @@ -137,132 +168,136 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.VehicleInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.VehicleInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo 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; } /** + * + * *
    * Contains the vehicle information, such as the vehicle emission type.
    * 
* * Protobuf type {@code google.maps.routing.v2.VehicleInfo} */ - 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.maps.routing.v2.VehicleInfo) com.google.maps.routing.v2.VehicleInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.maps.routing.v2.VehicleInfoProto.internal_static_google_maps_routing_v2_VehicleInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.maps.routing.v2.VehicleInfoProto + .internal_static_google_maps_routing_v2_VehicleInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.maps.routing.v2.VehicleInfoProto.internal_static_google_maps_routing_v2_VehicleInfo_fieldAccessorTable + return com.google.maps.routing.v2.VehicleInfoProto + .internal_static_google_maps_routing_v2_VehicleInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.maps.routing.v2.VehicleInfo.class, com.google.maps.routing.v2.VehicleInfo.Builder.class); + com.google.maps.routing.v2.VehicleInfo.class, + com.google.maps.routing.v2.VehicleInfo.Builder.class); } // Construct using com.google.maps.routing.v2.VehicleInfo.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(); @@ -272,9 +307,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.maps.routing.v2.VehicleInfoProto.internal_static_google_maps_routing_v2_VehicleInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.maps.routing.v2.VehicleInfoProto + .internal_static_google_maps_routing_v2_VehicleInfo_descriptor; } @java.lang.Override @@ -293,8 +328,11 @@ public com.google.maps.routing.v2.VehicleInfo build() { @java.lang.Override public com.google.maps.routing.v2.VehicleInfo buildPartial() { - com.google.maps.routing.v2.VehicleInfo result = new com.google.maps.routing.v2.VehicleInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.maps.routing.v2.VehicleInfo result = + new com.google.maps.routing.v2.VehicleInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -310,38 +348,39 @@ private void buildPartial0(com.google.maps.routing.v2.VehicleInfo 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.maps.routing.v2.VehicleInfo) { - return mergeFrom((com.google.maps.routing.v2.VehicleInfo)other); + return mergeFrom((com.google.maps.routing.v2.VehicleInfo) other); } else { super.mergeFrom(other); return this; @@ -379,17 +418,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 16: { - emissionType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 16: + { + emissionType_ = input.readEnum(); + 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) { @@ -399,10 +440,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int emissionType_ = 0; /** + * + * *
      * Describes the vehicle's emission type.
      * Applies only to the `DRIVE`
@@ -410,12 +454,16 @@ public Builder mergeFrom(
      * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; + * * @return The enum numeric value on the wire for emissionType. */ - @java.lang.Override public int getEmissionTypeValue() { + @java.lang.Override + public int getEmissionTypeValue() { return emissionType_; } /** + * + * *
      * Describes the vehicle's emission type.
      * Applies only to the `DRIVE`
@@ -423,6 +471,7 @@ public Builder mergeFrom(
      * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; + * * @param value The enum numeric value on the wire for emissionType to set. * @return This builder for chaining. */ @@ -433,6 +482,8 @@ public Builder setEmissionTypeValue(int value) { return this; } /** + * + * *
      * Describes the vehicle's emission type.
      * Applies only to the `DRIVE`
@@ -440,14 +491,18 @@ public Builder setEmissionTypeValue(int value) {
      * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; + * * @return The emissionType. */ @java.lang.Override public com.google.maps.routing.v2.VehicleEmissionType getEmissionType() { - com.google.maps.routing.v2.VehicleEmissionType result = com.google.maps.routing.v2.VehicleEmissionType.forNumber(emissionType_); + com.google.maps.routing.v2.VehicleEmissionType result = + com.google.maps.routing.v2.VehicleEmissionType.forNumber(emissionType_); return result == null ? com.google.maps.routing.v2.VehicleEmissionType.UNRECOGNIZED : result; } /** + * + * *
      * Describes the vehicle's emission type.
      * Applies only to the `DRIVE`
@@ -455,6 +510,7 @@ public com.google.maps.routing.v2.VehicleEmissionType getEmissionType() {
      * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; + * * @param value The emissionType to set. * @return This builder for chaining. */ @@ -468,6 +524,8 @@ public Builder setEmissionType(com.google.maps.routing.v2.VehicleEmissionType va return this; } /** + * + * *
      * Describes the vehicle's emission type.
      * Applies only to the `DRIVE`
@@ -475,6 +533,7 @@ public Builder setEmissionType(com.google.maps.routing.v2.VehicleEmissionType va
      * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; + * * @return This builder for chaining. */ public Builder clearEmissionType() { @@ -483,9 +542,9 @@ public Builder clearEmissionType() { 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); } @@ -495,12 +554,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.VehicleInfo) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.VehicleInfo) private static final com.google.maps.routing.v2.VehicleInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.VehicleInfo(); } @@ -509,27 +568,27 @@ public static com.google.maps.routing.v2.VehicleInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VehicleInfo 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 VehicleInfo 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; @@ -544,6 +603,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.VehicleInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoOrBuilder.java similarity index 59% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoOrBuilder.java index 38da0b8f59af..0d246d7527d1 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoOrBuilder.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/maps/routing/v2/vehicle_info.proto package com.google.maps.routing.v2; -public interface VehicleInfoOrBuilder extends +public interface VehicleInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.VehicleInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Describes the vehicle's emission type.
    * Applies only to the `DRIVE`
@@ -15,10 +33,13 @@ public interface VehicleInfoOrBuilder extends
    * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; + * * @return The enum numeric value on the wire for emissionType. */ int getEmissionTypeValue(); /** + * + * *
    * Describes the vehicle's emission type.
    * Applies only to the `DRIVE`
@@ -26,6 +47,7 @@ public interface VehicleInfoOrBuilder extends
    * 
* * .google.maps.routing.v2.VehicleEmissionType emission_type = 2; + * * @return The emissionType. */ com.google.maps.routing.v2.VehicleEmissionType getEmissionType(); diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java new file mode 100644 index 000000000000..5295208b48ec --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java @@ -0,0 +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/maps/routing/v2/vehicle_info.proto + +package com.google.maps.routing.v2; + +public final class VehicleInfoProto { + private VehicleInfoProto() {} + + 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_maps_routing_v2_VehicleInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_VehicleInfo_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/maps/routing/v2/vehicle_info.pr" + + "oto\022\026google.maps.routing.v2\0322google/maps" + + "/routing/v2/vehicle_emission_type.proto\"" + + "Q\n\013VehicleInfo\022B\n\remission_type\030\002 \001(\0162+." + + "google.maps.routing.v2.VehicleEmissionTy" + + "peB\305\001\n\032com.google.maps.routing.v2B\020Vehic" + + "leInfoProtoP\001Z:cloud.google.com/go/maps/" + + "routing/apiv2/routingpb;routingpb\370\001\001\242\002\005G" + + "MRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\M" + + "aps\\Routing\\V2\352\002\031Google::Maps::Routing::" + + "V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.maps.routing.v2.VehicleEmissionTypeProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_VehicleInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_VehicleInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_VehicleInfo_descriptor, + new java.lang.String[] { + "EmissionType", + }); + com.google.maps.routing.v2.VehicleEmissionTypeProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Waypoint.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Waypoint.java similarity index 75% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Waypoint.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Waypoint.java index 748a2014b220..30dfbd715cc8 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/Waypoint.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/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/maps/routing/v2/waypoint.proto package com.google.maps.routing.v2; /** + * + * *
  * Encapsulates a waypoint. Waypoints mark both the beginning and end of a
  * route, and include intermediate stops along the route.
@@ -11,49 +28,54 @@
  *
  * Protobuf type {@code google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.WaypointProto.internal_static_google_maps_routing_v2_Waypoint_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.maps.routing.v2.WaypointProto
+        .internal_static_google_maps_routing_v2_Waypoint_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.maps.routing.v2.WaypointProto.internal_static_google_maps_routing_v2_Waypoint_fieldAccessorTable
+    return com.google.maps.routing.v2.WaypointProto
+        .internal_static_google_maps_routing_v2_Waypoint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.maps.routing.v2.Waypoint.class, com.google.maps.routing.v2.Waypoint.Builder.class);
+            com.google.maps.routing.v2.Waypoint.class,
+            com.google.maps.routing.v2.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),
     ADDRESS(7),
     LOCATIONTYPE_NOT_SET(0);
     private final int value;
+
     private LocationTypeCase(int value) {
       this.value = value;
     }
@@ -69,32 +91,39 @@ public static LocationTypeCase valueOf(int value) {
 
     public static LocationTypeCase forNumber(int value) {
       switch (value) {
-        case 1: return LOCATION;
-        case 2: return PLACE_ID;
-        case 7: return ADDRESS;
-        case 0: return LOCATIONTYPE_NOT_SET;
-        default: return null;
+        case 1:
+          return LOCATION;
+        case 2:
+          return PLACE_ID;
+        case 7:
+          return ADDRESS;
+        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.maps.routing.v2.Location location = 1; + * * @return Whether the location field is set. */ @java.lang.Override @@ -102,22 +131,27 @@ public boolean hasLocation() { return locationTypeCase_ == 1; } /** + * + * *
    * A point specified using geographic coordinates, including an optional
    * heading.
    * 
* * .google.maps.routing.v2.Location location = 1; + * * @return The location. */ @java.lang.Override public com.google.maps.routing.v2.Location getLocation() { if (locationTypeCase_ == 1) { - return (com.google.maps.routing.v2.Location) locationType_; + return (com.google.maps.routing.v2.Location) locationType_; } return com.google.maps.routing.v2.Location.getDefaultInstance(); } /** + * + * *
    * A point specified using geographic coordinates, including an optional
    * heading.
@@ -128,29 +162,35 @@ public com.google.maps.routing.v2.Location getLocation() {
   @java.lang.Override
   public com.google.maps.routing.v2.LocationOrBuilder getLocationOrBuilder() {
     if (locationTypeCase_ == 1) {
-       return (com.google.maps.routing.v2.Location) locationType_;
+      return (com.google.maps.routing.v2.Location) locationType_;
     }
     return com.google.maps.routing.v2.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() { @@ -161,8 +201,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; @@ -171,23 +210,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; } @@ -199,24 +239,30 @@ public java.lang.String getPlaceId() { public static final int ADDRESS_FIELD_NUMBER = 7; /** + * + * *
    * Human readable address or a plus code.
    * See https://plus.codes for details.
    * 
* * string address = 7; + * * @return Whether the address field is set. */ public boolean hasAddress() { return locationTypeCase_ == 7; } /** + * + * *
    * Human readable address or a plus code.
    * See https://plus.codes for details.
    * 
* * string address = 7; + * * @return The address. */ public java.lang.String getAddress() { @@ -227,8 +273,7 @@ public java.lang.String getAddress() { 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_ == 7) { locationType_ = s; @@ -237,24 +282,25 @@ public java.lang.String getAddress() { } } /** + * + * *
    * Human readable address or a plus code.
    * See https://plus.codes for details.
    * 
* * string address = 7; + * * @return The bytes for address. */ - public com.google.protobuf.ByteString - getAddressBytes() { + public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = ""; if (locationTypeCase_ == 7) { 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_ == 7) { locationType_ = b; } @@ -267,6 +313,8 @@ public java.lang.String getAddress() { public static final int VIA_FIELD_NUMBER = 3; private boolean via_ = false; /** + * + * *
    * Marks this waypoint as a milestone rather a stopping point. For
    * each non-via waypoint in the request, the response appends an entry to the
@@ -282,6 +330,7 @@ public java.lang.String getAddress() {
    * 
* * bool via = 3; + * * @return The via. */ @java.lang.Override @@ -292,6 +341,8 @@ public boolean getVia() { public static final int VEHICLE_STOPOVER_FIELD_NUMBER = 4; private boolean vehicleStopover_ = false; /** + * + * *
    * Indicates that the waypoint is meant for vehicles to stop at, where the
    * intention is to either pickup or drop-off. When you set this value, the
@@ -302,6 +353,7 @@ public boolean getVia() {
    * 
* * bool vehicle_stopover = 4; + * * @return The vehicleStopover. */ @java.lang.Override @@ -312,6 +364,8 @@ public boolean getVehicleStopover() { public static final int SIDE_OF_ROAD_FIELD_NUMBER = 5; 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
@@ -322,6 +376,7 @@ public boolean getVehicleStopover() {
    * 
* * bool side_of_road = 5; + * * @return The sideOfRoad. */ @java.lang.Override @@ -330,6 +385,7 @@ public boolean getSideOfRoad() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,8 +397,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.maps.routing.v2.Location) locationType_); } @@ -371,23 +426,21 @@ public int getSerializedSize() { size = 0; if (locationTypeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.maps.routing.v2.Location) locationType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.maps.routing.v2.Location) locationType_); } if (locationTypeCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, locationType_); } if (via_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, via_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, via_); } if (vehicleStopover_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, vehicleStopover_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, vehicleStopover_); } if (sideOfRoad_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, sideOfRoad_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, sideOfRoad_); } if (locationTypeCase_ == 7) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, locationType_); @@ -400,32 +453,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.maps.routing.v2.Waypoint)) { return super.equals(obj); } com.google.maps.routing.v2.Waypoint other = (com.google.maps.routing.v2.Waypoint) obj; - if (getVia() - != other.getVia()) return false; - if (getVehicleStopover() - != other.getVehicleStopover()) return false; - if (getSideOfRoad() - != other.getSideOfRoad()) return false; + if (getVia() != other.getVia()) return false; + if (getVehicleStopover() != other.getVehicleStopover()) 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 7: - if (!getAddress() - .equals(other.getAddress())) return false; + if (!getAddress().equals(other.getAddress())) return false; break; case 0: default: @@ -442,14 +489,11 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VIA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVia()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVia()); hash = (37 * hash) + VEHICLE_STOPOVER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVehicleStopover()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVehicleStopover()); 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; @@ -471,99 +515,103 @@ public int hashCode() { return hash; } - public static com.google.maps.routing.v2.Waypoint parseFrom( - java.nio.ByteBuffer data) + public static com.google.maps.routing.v2.Waypoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.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.maps.routing.v2.Waypoint parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.maps.routing.v2.Waypoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.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.maps.routing.v2.Waypoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.Waypoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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.maps.routing.v2.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 both the beginning and end of a
    * route, and include intermediate stops along the route.
@@ -571,33 +619,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.maps.routing.v2.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.maps.routing.v2.Waypoint)
       com.google.maps.routing.v2.WaypointOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.maps.routing.v2.WaypointProto.internal_static_google_maps_routing_v2_Waypoint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.maps.routing.v2.WaypointProto
+          .internal_static_google_maps_routing_v2_Waypoint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.maps.routing.v2.WaypointProto.internal_static_google_maps_routing_v2_Waypoint_fieldAccessorTable
+      return com.google.maps.routing.v2.WaypointProto
+          .internal_static_google_maps_routing_v2_Waypoint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.maps.routing.v2.Waypoint.class, com.google.maps.routing.v2.Waypoint.Builder.class);
+              com.google.maps.routing.v2.Waypoint.class,
+              com.google.maps.routing.v2.Waypoint.Builder.class);
     }
 
     // Construct using com.google.maps.routing.v2.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();
@@ -614,9 +661,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.maps.routing.v2.WaypointProto.internal_static_google_maps_routing_v2_Waypoint_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.maps.routing.v2.WaypointProto
+          .internal_static_google_maps_routing_v2_Waypoint_descriptor;
     }
 
     @java.lang.Override
@@ -636,7 +683,9 @@ public com.google.maps.routing.v2.Waypoint build() {
     @java.lang.Override
     public com.google.maps.routing.v2.Waypoint buildPartial() {
       com.google.maps.routing.v2.Waypoint result = new com.google.maps.routing.v2.Waypoint(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -658,8 +707,7 @@ private void buildPartial0(com.google.maps.routing.v2.Waypoint result) {
     private void buildPartialOneofs(com.google.maps.routing.v2.Waypoint result) {
       result.locationTypeCase_ = locationTypeCase_;
       result.locationType_ = this.locationType_;
-      if (locationTypeCase_ == 1 &&
-          locationBuilder_ != null) {
+      if (locationTypeCase_ == 1 && locationBuilder_ != null) {
         result.locationType_ = locationBuilder_.build();
       }
     }
@@ -668,38 +716,39 @@ private void buildPartialOneofs(com.google.maps.routing.v2.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.maps.routing.v2.Waypoint) {
-        return mergeFrom((com.google.maps.routing.v2.Waypoint)other);
+        return mergeFrom((com.google.maps.routing.v2.Waypoint) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -718,25 +767,29 @@ public Builder mergeFrom(com.google.maps.routing.v2.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 ADDRESS: {
-          locationTypeCase_ = 7;
-          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 ADDRESS:
+          {
+            locationTypeCase_ = 7;
+            locationType_ = other.locationType_;
+            onChanged();
+            break;
+          }
+        case LOCATIONTYPE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -764,46 +817,51 @@ 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: {
-              via_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 24
-            case 32: {
-              vehicleStopover_ = input.readBool();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 32
-            case 40: {
-              sideOfRoad_ = input.readBool();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 40
-            case 58: {
-              java.lang.String s = input.readStringRequireUtf8();
-              locationTypeCase_ = 7;
-              locationType_ = s;
-              break;
-            } // case 58
-            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:
+              {
+                via_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 24
+            case 32:
+              {
+                vehicleStopover_ = input.readBool();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 32
+            case 40:
+              {
+                sideOfRoad_ = input.readBool();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 40
+            case 58:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                locationTypeCase_ = 7;
+                locationType_ = s;
+                break;
+              } // case 58
+            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) {
@@ -813,12 +871,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() {
@@ -831,14 +889,20 @@ public Builder clearLocationType() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> locationBuilder_;
+            com.google.maps.routing.v2.Location,
+            com.google.maps.routing.v2.Location.Builder,
+            com.google.maps.routing.v2.LocationOrBuilder>
+        locationBuilder_;
     /**
+     *
+     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
      * 
* * .google.maps.routing.v2.Location location = 1; + * * @return Whether the location field is set. */ @java.lang.Override @@ -846,12 +910,15 @@ public boolean hasLocation() { return locationTypeCase_ == 1; } /** + * + * *
      * A point specified using geographic coordinates, including an optional
      * heading.
      * 
* * .google.maps.routing.v2.Location location = 1; + * * @return The location. */ @java.lang.Override @@ -869,6 +936,8 @@ public com.google.maps.routing.v2.Location getLocation() { } } /** + * + * *
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -890,6 +959,8 @@ public Builder setLocation(com.google.maps.routing.v2.Location value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -897,8 +968,7 @@ public Builder setLocation(com.google.maps.routing.v2.Location value) {
      *
      * .google.maps.routing.v2.Location location = 1;
      */
-    public Builder setLocation(
-        com.google.maps.routing.v2.Location.Builder builderForValue) {
+    public Builder setLocation(com.google.maps.routing.v2.Location.Builder builderForValue) {
       if (locationBuilder_ == null) {
         locationType_ = builderForValue.build();
         onChanged();
@@ -909,6 +979,8 @@ public Builder setLocation(
       return this;
     }
     /**
+     *
+     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -918,10 +990,13 @@ public Builder setLocation(
      */
     public Builder mergeLocation(com.google.maps.routing.v2.Location value) {
       if (locationBuilder_ == null) {
-        if (locationTypeCase_ == 1 &&
-            locationType_ != com.google.maps.routing.v2.Location.getDefaultInstance()) {
-          locationType_ = com.google.maps.routing.v2.Location.newBuilder((com.google.maps.routing.v2.Location) locationType_)
-              .mergeFrom(value).buildPartial();
+        if (locationTypeCase_ == 1
+            && locationType_ != com.google.maps.routing.v2.Location.getDefaultInstance()) {
+          locationType_ =
+              com.google.maps.routing.v2.Location.newBuilder(
+                      (com.google.maps.routing.v2.Location) locationType_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           locationType_ = value;
         }
@@ -937,6 +1012,8 @@ public Builder mergeLocation(com.google.maps.routing.v2.Location value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -961,6 +1038,8 @@ public Builder clearLocation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -972,6 +1051,8 @@ public com.google.maps.routing.v2.Location.Builder getLocationBuilder() {
       return getLocationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -991,6 +1072,8 @@ public com.google.maps.routing.v2.LocationOrBuilder getLocationOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * A point specified using geographic coordinates, including an optional
      * heading.
@@ -999,14 +1082,19 @@ public com.google.maps.routing.v2.LocationOrBuilder getLocationOrBuilder() {
      * .google.maps.routing.v2.Location location = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder> 
+            com.google.maps.routing.v2.Location,
+            com.google.maps.routing.v2.Location.Builder,
+            com.google.maps.routing.v2.LocationOrBuilder>
         getLocationFieldBuilder() {
       if (locationBuilder_ == null) {
         if (!(locationTypeCase_ == 1)) {
           locationType_ = com.google.maps.routing.v2.Location.getDefaultInstance();
         }
-        locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.maps.routing.v2.Location, com.google.maps.routing.v2.Location.Builder, com.google.maps.routing.v2.LocationOrBuilder>(
+        locationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.maps.routing.v2.Location,
+                com.google.maps.routing.v2.Location.Builder,
+                com.google.maps.routing.v2.LocationOrBuilder>(
                 (com.google.maps.routing.v2.Location) locationType_,
                 getParentForChildren(),
                 isClean());
@@ -1018,11 +1106,14 @@ public com.google.maps.routing.v2.LocationOrBuilder getLocationOrBuilder() {
     }
 
     /**
+     *
+     *
      * 
      * The POI Place ID associated with the waypoint.
      * 
* * string place_id = 2; + * * @return Whether the placeId field is set. */ @java.lang.Override @@ -1030,11 +1121,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 @@ -1044,8 +1138,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; @@ -1056,24 +1149,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; } @@ -1083,28 +1177,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() { @@ -1116,17 +1217,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; @@ -1135,12 +1240,15 @@ public Builder setPlaceIdBytes( } /** + * + * *
      * Human readable address or a plus code.
      * See https://plus.codes for details.
      * 
* * string address = 7; + * * @return Whether the address field is set. */ @java.lang.Override @@ -1148,12 +1256,15 @@ public boolean hasAddress() { return locationTypeCase_ == 7; } /** + * + * *
      * Human readable address or a plus code.
      * See https://plus.codes for details.
      * 
* * string address = 7; + * * @return The address. */ @java.lang.Override @@ -1163,8 +1274,7 @@ public java.lang.String getAddress() { 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_ == 7) { locationType_ = s; @@ -1175,25 +1285,26 @@ public java.lang.String getAddress() { } } /** + * + * *
      * Human readable address or a plus code.
      * See https://plus.codes for details.
      * 
* * string address = 7; + * * @return The bytes for address. */ @java.lang.Override - public com.google.protobuf.ByteString - getAddressBytes() { + public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = ""; if (locationTypeCase_ == 7) { 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_ == 7) { locationType_ = b; } @@ -1203,30 +1314,37 @@ public java.lang.String getAddress() { } } /** + * + * *
      * Human readable address or a plus code.
      * See https://plus.codes for details.
      * 
* * string address = 7; + * * @param value The address to set. * @return This builder for chaining. */ - public Builder setAddress( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } locationTypeCase_ = 7; locationType_ = value; onChanged(); return this; } /** + * + * *
      * Human readable address or a plus code.
      * See https://plus.codes for details.
      * 
* * string address = 7; + * * @return This builder for chaining. */ public Builder clearAddress() { @@ -1238,18 +1356,22 @@ public Builder clearAddress() { return this; } /** + * + * *
      * Human readable address or a plus code.
      * See https://plus.codes for details.
      * 
* * string address = 7; + * * @param value The bytes for address to set. * @return This builder for chaining. */ - public Builder setAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); locationTypeCase_ = 7; locationType_ = value; @@ -1257,8 +1379,10 @@ public Builder setAddressBytes( return this; } - private boolean via_ ; + private boolean via_; /** + * + * *
      * Marks this waypoint as a milestone rather a stopping point. For
      * each non-via waypoint in the request, the response appends an entry to the
@@ -1274,6 +1398,7 @@ public Builder setAddressBytes(
      * 
* * bool via = 3; + * * @return The via. */ @java.lang.Override @@ -1281,6 +1406,8 @@ public boolean getVia() { return via_; } /** + * + * *
      * Marks this waypoint as a milestone rather a stopping point. For
      * each non-via waypoint in the request, the response appends an entry to the
@@ -1296,6 +1423,7 @@ public boolean getVia() {
      * 
* * bool via = 3; + * * @param value The via to set. * @return This builder for chaining. */ @@ -1307,6 +1435,8 @@ public Builder setVia(boolean value) { return this; } /** + * + * *
      * Marks this waypoint as a milestone rather a stopping point. For
      * each non-via waypoint in the request, the response appends an entry to the
@@ -1322,6 +1452,7 @@ public Builder setVia(boolean value) {
      * 
* * bool via = 3; + * * @return This builder for chaining. */ public Builder clearVia() { @@ -1331,8 +1462,10 @@ public Builder clearVia() { return this; } - private boolean vehicleStopover_ ; + private boolean vehicleStopover_; /** + * + * *
      * Indicates that the waypoint is meant for vehicles to stop at, where the
      * intention is to either pickup or drop-off. When you set this value, the
@@ -1343,6 +1476,7 @@ public Builder clearVia() {
      * 
* * bool vehicle_stopover = 4; + * * @return The vehicleStopover. */ @java.lang.Override @@ -1350,6 +1484,8 @@ public boolean getVehicleStopover() { return vehicleStopover_; } /** + * + * *
      * Indicates that the waypoint is meant for vehicles to stop at, where the
      * intention is to either pickup or drop-off. When you set this value, the
@@ -1360,6 +1496,7 @@ public boolean getVehicleStopover() {
      * 
* * bool vehicle_stopover = 4; + * * @param value The vehicleStopover to set. * @return This builder for chaining. */ @@ -1371,6 +1508,8 @@ public Builder setVehicleStopover(boolean value) { return this; } /** + * + * *
      * Indicates that the waypoint is meant for vehicles to stop at, where the
      * intention is to either pickup or drop-off. When you set this value, the
@@ -1381,6 +1520,7 @@ public Builder setVehicleStopover(boolean value) {
      * 
* * bool vehicle_stopover = 4; + * * @return This builder for chaining. */ public Builder clearVehicleStopover() { @@ -1390,8 +1530,10 @@ public Builder clearVehicleStopover() { 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
@@ -1402,6 +1544,7 @@ public Builder clearVehicleStopover() {
      * 
* * bool side_of_road = 5; + * * @return The sideOfRoad. */ @java.lang.Override @@ -1409,6 +1552,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
@@ -1419,6 +1564,7 @@ public boolean getSideOfRoad() {
      * 
* * bool side_of_road = 5; + * * @param value The sideOfRoad to set. * @return This builder for chaining. */ @@ -1430,6 +1576,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
@@ -1440,6 +1588,7 @@ public Builder setSideOfRoad(boolean value) {
      * 
* * bool side_of_road = 5; + * * @return This builder for chaining. */ public Builder clearSideOfRoad() { @@ -1448,9 +1597,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); } @@ -1460,12 +1609,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.maps.routing.v2.Waypoint) } // @@protoc_insertion_point(class_scope:google.maps.routing.v2.Waypoint) private static final com.google.maps.routing.v2.Waypoint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.maps.routing.v2.Waypoint(); } @@ -1474,27 +1623,27 @@ public static com.google.maps.routing.v2.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; @@ -1509,6 +1658,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.maps.routing.v2.Waypoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointOrBuilder.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointOrBuilder.java similarity index 82% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointOrBuilder.java rename to java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointOrBuilder.java index dfe3af571e73..a8dd3c06db50 100644 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointOrBuilder.java +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/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/maps/routing/v2/waypoint.proto package com.google.maps.routing.v2; -public interface WaypointOrBuilder extends +public interface WaypointOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.maps.routing.v2.Waypoint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A point specified using geographic coordinates, including an optional
    * heading.
    * 
* * .google.maps.routing.v2.Location location = 1; + * * @return Whether the location field is set. */ boolean hasLocation(); /** + * + * *
    * A point specified using geographic coordinates, including an optional
    * heading.
    * 
* * .google.maps.routing.v2.Location location = 1; + * * @return The location. */ com.google.maps.routing.v2.Location getLocation(); /** + * + * *
    * A point specified using geographic coordinates, including an optional
    * heading.
@@ -38,67 +62,85 @@ public interface WaypointOrBuilder extends
   com.google.maps.routing.v2.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(); /** + * + * *
    * Human readable address or a plus code.
    * See https://plus.codes for details.
    * 
* * string address = 7; + * * @return Whether the address field is set. */ boolean hasAddress(); /** + * + * *
    * Human readable address or a plus code.
    * See https://plus.codes for details.
    * 
* * string address = 7; + * * @return The address. */ java.lang.String getAddress(); /** + * + * *
    * Human readable address or a plus code.
    * See https://plus.codes for details.
    * 
* * string address = 7; + * * @return The bytes for address. */ - com.google.protobuf.ByteString - getAddressBytes(); + com.google.protobuf.ByteString getAddressBytes(); /** + * + * *
    * Marks this waypoint as a milestone rather a stopping point. For
    * each non-via waypoint in the request, the response appends an entry to the
@@ -114,11 +156,14 @@ public interface WaypointOrBuilder extends
    * 
* * bool via = 3; + * * @return The via. */ boolean getVia(); /** + * + * *
    * Indicates that the waypoint is meant for vehicles to stop at, where the
    * intention is to either pickup or drop-off. When you set this value, the
@@ -129,11 +174,14 @@ public interface WaypointOrBuilder extends
    * 
* * bool vehicle_stopover = 4; + * * @return The vehicleStopover. */ boolean getVehicleStopover(); /** + * + * *
    * 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
@@ -144,6 +192,7 @@ public interface WaypointOrBuilder extends
    * 
* * bool side_of_road = 5; + * * @return The sideOfRoad. */ boolean getSideOfRoad(); diff --git a/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java new file mode 100644 index 000000000000..a8ffe241b24b --- /dev/null +++ b/java-maps-routing/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java @@ -0,0 +1,81 @@ +/* + * 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/maps/routing/v2/waypoint.proto + +package com.google.maps.routing.v2; + +public final class WaypointProto { + private WaypointProto() {} + + 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_maps_routing_v2_Waypoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_maps_routing_v2_Waypoint_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/maps/routing/v2/waypoint.proto\022" + + "\026google.maps.routing.v2\032%google/maps/rou" + + "ting/v2/location.proto\"\265\001\n\010Waypoint\0224\n\010l" + + "ocation\030\001 \001(\0132 .google.maps.routing.v2.L" + + "ocationH\000\022\022\n\010place_id\030\002 \001(\tH\000\022\021\n\007address" + + "\030\007 \001(\tH\000\022\013\n\003via\030\003 \001(\010\022\030\n\020vehicle_stopove" + + "r\030\004 \001(\010\022\024\n\014side_of_road\030\005 \001(\010B\017\n\rlocatio" + + "n_typeB\302\001\n\032com.google.maps.routing.v2B\rW" + + "aypointProtoP\001Z:cloud.google.com/go/maps" + + "/routing/apiv2/routingpb;routingpb\370\001\001\242\002\005" + + "GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\" + + "Maps\\Routing\\V2\352\002\031Google::Maps::Routing:" + + ":V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.maps.routing.v2.LocationProto.getDescriptor(), + }); + internal_static_google_maps_routing_v2_Waypoint_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_maps_routing_v2_Waypoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_maps_routing_v2_Waypoint_descriptor, + new java.lang.String[] { + "Location", + "PlaceId", + "Address", + "Via", + "VehicleStopover", + "SideOfRoad", + "LocationType", + }); + com.google.maps.routing.v2.LocationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/fallback_info.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/fallback_info.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/fallback_info.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/fallback_info.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/geocoding_results.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/geocoding_results.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/geocoding_results.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/geocoding_results.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/localized_time.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/localized_time.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/localized_time.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/localized_time.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/location.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/maneuver.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/navigation_instruction.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/navigation_instruction.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/navigation_instruction.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/navigation_instruction.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/polyline.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_label.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_label.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_label.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_label.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_modifiers.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/route_travel_mode.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routes_service.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routing_preference.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routing_preference.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routing_preference.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/routing_preference.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/speed_reading_interval.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/speed_reading_interval.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/speed_reading_interval.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/speed_reading_interval.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_info.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_info.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_info.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_info.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/toll_passes.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/traffic_model.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/traffic_model.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/traffic_model.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/traffic_model.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit_preferences.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit_preferences.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit_preferences.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/transit_preferences.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/units.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/units.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/units.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/units.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_emission_type.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_emission_type.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_emission_type.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_emission_type.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_info.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_info.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_info.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/vehicle_info.proto diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/waypoint.proto b/java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/waypoint.proto similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/waypoint.proto rename to java-maps-routing/proto-google-maps-routing-v2/src/main/proto/google/maps/routing/v2/waypoint.proto diff --git a/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutematrix/AsyncComputeRouteMatrix.java b/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutematrix/AsyncComputeRouteMatrix.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutematrix/AsyncComputeRouteMatrix.java rename to java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutematrix/AsyncComputeRouteMatrix.java diff --git a/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/AsyncComputeRoutes.java b/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/AsyncComputeRoutes.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/AsyncComputeRoutes.java rename to java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/AsyncComputeRoutes.java diff --git a/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/SyncComputeRoutes.java b/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/SyncComputeRoutes.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/SyncComputeRoutes.java rename to java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/computeroutes/SyncComputeRoutes.java diff --git a/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider.java b/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider.java rename to java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider1.java b/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider1.java rename to java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetEndpoint.java b/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetEndpoint.java rename to java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routes/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routessettings/computeroutes/SyncComputeRoutes.java b/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routessettings/computeroutes/SyncComputeRoutes.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/routessettings/computeroutes/SyncComputeRoutes.java rename to java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/routessettings/computeroutes/SyncComputeRoutes.java diff --git a/owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/stub/routesstubsettings/computeroutes/SyncComputeRoutes.java b/java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/stub/routesstubsettings/computeroutes/SyncComputeRoutes.java similarity index 100% rename from owl-bot-staging/java-maps-routing/v2/samples/snippets/generated/com/google/maps/routing/v2/stub/routesstubsettings/computeroutes/SyncComputeRoutes.java rename to java-maps-routing/samples/snippets/generated/com/google/maps/routing/v2/stub/routesstubsettings/computeroutes/SyncComputeRoutes.java diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java deleted file mode 100644 index fd839bbb281b..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/FallbackInfoProto.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/fallback_info.proto - -package com.google.maps.routing.v2; - -public final class FallbackInfoProto { - private FallbackInfoProto() {} - 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_maps_routing_v2_FallbackInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_FallbackInfo_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/maps/routing/v2/fallback_info.p" + - "roto\022\026google.maps.routing.v2\"\211\001\n\014Fallbac" + - "kInfo\022A\n\014routing_mode\030\001 \001(\0162+.google.map" + - "s.routing.v2.FallbackRoutingMode\0226\n\006reas" + - "on\030\002 \001(\0162&.google.maps.routing.v2.Fallba" + - "ckReason*Y\n\016FallbackReason\022\037\n\033FALLBACK_R" + - "EASON_UNSPECIFIED\020\000\022\020\n\014SERVER_ERROR\020\001\022\024\n" + - "\020LATENCY_EXCEEDED\020\002*v\n\023FallbackRoutingMo" + - "de\022%\n!FALLBACK_ROUTING_MODE_UNSPECIFIED\020" + - "\000\022\034\n\030FALLBACK_TRAFFIC_UNAWARE\020\001\022\032\n\026FALLB" + - "ACK_TRAFFIC_AWARE\020\002B\306\001\n\032com.google.maps." + - "routing.v2B\021FallbackInfoProtoP\001Z:cloud.g" + - "oogle.com/go/maps/routing/apiv2/routingp" + - "b;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Rou" + - "ting.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Googl" + - "e::Maps::Routing::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_maps_routing_v2_FallbackInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_FallbackInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_FallbackInfo_descriptor, - new java.lang.String[] { "RoutingMode", "Reason", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java deleted file mode 100644 index b7ea98259052..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/GeocodingResultsProto.java +++ /dev/null @@ -1,77 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/geocoding_results.proto - -package com.google.maps.routing.v2; - -public final class GeocodingResultsProto { - private GeocodingResultsProto() {} - 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_maps_routing_v2_GeocodingResults_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_GeocodedWaypoint_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/maps/routing/v2/geocoding_resul" + - "ts.proto\022\026google.maps.routing.v2\032\027google" + - "/rpc/status.proto\"\314\001\n\020GeocodingResults\0228" + - "\n\006origin\030\001 \001(\0132(.google.maps.routing.v2." + - "GeocodedWaypoint\022=\n\013destination\030\002 \001(\0132(." + - "google.maps.routing.v2.GeocodedWaypoint\022" + - "?\n\rintermediates\030\003 \003(\0132(.google.maps.rou" + - "ting.v2.GeocodedWaypoint\"\320\001\n\020GeocodedWay" + - "point\022+\n\017geocoder_status\030\001 \001(\0132\022.google." + - "rpc.Status\0220\n#intermediate_waypoint_requ" + - "est_index\030\002 \001(\005H\000\210\001\001\022\014\n\004type\030\003 \003(\t\022\025\n\rpa" + - "rtial_match\030\004 \001(\010\022\020\n\010place_id\030\005 \001(\tB&\n$_" + - "intermediate_waypoint_request_indexB\312\001\n\032" + - "com.google.maps.routing.v2B\025GeocodingRes" + - "ultsProtoP\001Z:cloud.google.com/go/maps/ro" + - "uting/apiv2/routingpb;routingpb\370\001\001\242\002\005GMR" + - "V2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Map" + - "s\\Routing\\V2\352\002\031Google::Maps::Routing::V2" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_GeocodingResults_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_GeocodingResults_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_GeocodingResults_descriptor, - new java.lang.String[] { "Origin", "Destination", "Intermediates", }); - internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_maps_routing_v2_GeocodedWaypoint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_GeocodedWaypoint_descriptor, - new java.lang.String[] { "GeocoderStatus", "IntermediateWaypointRequestIndex", "Type", "PartialMatch", "PlaceId", "IntermediateWaypointRequestIndex", }); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java deleted file mode 100644 index 19e156eb5391..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocalizedTimeProto.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/localized_time.proto - -package com.google.maps.routing.v2; - -public final class LocalizedTimeProto { - private LocalizedTimeProto() {} - 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_maps_routing_v2_LocalizedTime_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_LocalizedTime_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/maps/routing/v2/localized_time." + - "proto\022\026google.maps.routing.v2\032 google/ty" + - "pe/localized_text.proto\"L\n\rLocalizedTime" + - "\022(\n\004time\030\001 \001(\0132\032.google.type.LocalizedTe" + - "xt\022\021\n\ttime_zone\030\002 \001(\tB\307\001\n\032com.google.map" + - "s.routing.v2B\022LocalizedTimeProtoP\001Z:clou" + - "d.google.com/go/maps/routing/apiv2/routi" + - "ngpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps." + - "Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Go" + - "ogle::Maps::Routing::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.type.LocalizedTextProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_LocalizedTime_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_LocalizedTime_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_LocalizedTime_descriptor, - new java.lang.String[] { "Time", "TimeZone", }); - com.google.type.LocalizedTextProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java deleted file mode 100644 index 13c127c5f89f..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/LocationProto.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/location.proto - -package com.google.maps.routing.v2; - -public final class LocationProto { - private LocationProto() {} - 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_maps_routing_v2_Location_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_Location_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/maps/routing/v2/location.proto\022" + - "\026google.maps.routing.v2\032\036google/protobuf" + - "/wrappers.proto\032\030google/type/latlng.prot" + - "o\"^\n\010Location\022$\n\007lat_lng\030\001 \001(\0132\023.google." + - "type.LatLng\022,\n\007heading\030\002 \001(\0132\033.google.pr" + - "otobuf.Int32ValueB\302\001\n\032com.google.maps.ro" + - "uting.v2B\rLocationProtoP\001Z:cloud.google." + - "com/go/maps/routing/apiv2/routingpb;rout" + - "ingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Routing.V" + - "2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Google::Map" + - "s::Routing::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.type.LatLngProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_Location_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_Location_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_Location_descriptor, - new java.lang.String[] { "LatLng", "Heading", }); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.type.LatLngProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java deleted file mode 100644 index 3361ac89603f..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/ManeuverProto.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/maneuver.proto - -package com.google.maps.routing.v2; - -public final class ManeuverProto { - private ManeuverProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - 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/maps/routing/v2/maneuver.proto\022" + - "\026google.maps.routing.v2*\367\002\n\010Maneuver\022\030\n\024" + - "MANEUVER_UNSPECIFIED\020\000\022\024\n\020TURN_SLIGHT_LE" + - "FT\020\001\022\023\n\017TURN_SHARP_LEFT\020\002\022\016\n\nUTURN_LEFT\020" + - "\003\022\r\n\tTURN_LEFT\020\004\022\025\n\021TURN_SLIGHT_RIGHT\020\005\022" + - "\024\n\020TURN_SHARP_RIGHT\020\006\022\017\n\013UTURN_RIGHT\020\007\022\016" + - "\n\nTURN_RIGHT\020\010\022\014\n\010STRAIGHT\020\t\022\r\n\tRAMP_LEF" + - "T\020\n\022\016\n\nRAMP_RIGHT\020\013\022\t\n\005MERGE\020\014\022\r\n\tFORK_L" + - "EFT\020\r\022\016\n\nFORK_RIGHT\020\016\022\t\n\005FERRY\020\017\022\017\n\013FERR" + - "Y_TRAIN\020\020\022\023\n\017ROUNDABOUT_LEFT\020\021\022\024\n\020ROUNDA" + - "BOUT_RIGHT\020\022\022\n\n\006DEPART\020\023\022\017\n\013NAME_CHANGE\020" + - "\024B\302\001\n\032com.google.maps.routing.v2B\rManeuv" + - "erProtoP\001Z:cloud.google.com/go/maps/rout" + - "ing/apiv2/routingpb;routingpb\370\001\001\242\002\005GMRV2" + - "\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Maps\\" + - "Routing\\V2\352\002\031Google::Maps::Routing::V2b\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java deleted file mode 100644 index 5006ba348e2a..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/NavigationInstructionProto.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/navigation_instruction.proto - -package com.google.maps.routing.v2; - -public final class NavigationInstructionProto { - private NavigationInstructionProto() {} - 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_maps_routing_v2_NavigationInstruction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/maps/routing/v2/navigation_inst" + - "ruction.proto\022\026google.maps.routing.v2\032%g" + - "oogle/maps/routing/v2/maneuver.proto\"a\n\025" + - "NavigationInstruction\0222\n\010maneuver\030\001 \001(\0162" + - " .google.maps.routing.v2.Maneuver\022\024\n\014ins" + - "tructions\030\002 \001(\tB\317\001\n\032com.google.maps.rout" + - "ing.v2B\032NavigationInstructionProtoP\001Z:cl" + - "oud.google.com/go/maps/routing/apiv2/rou" + - "tingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Map" + - "s.Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031" + - "Google::Maps::Routing::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.maps.routing.v2.ManeuverProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_NavigationInstruction_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_NavigationInstruction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_NavigationInstruction_descriptor, - new java.lang.String[] { "Maneuver", "Instructions", }); - com.google.maps.routing.v2.ManeuverProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java deleted file mode 100644 index 184fede313bc..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/PolylineProto.java +++ /dev/null @@ -1,62 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/polyline.proto - -package com.google.maps.routing.v2; - -public final class PolylineProto { - private PolylineProto() {} - 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_maps_routing_v2_Polyline_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_Polyline_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/maps/routing/v2/polyline.proto\022" + - "\026google.maps.routing.v2\032\034google/protobuf" + - "/struct.proto\"o\n\010Polyline\022\032\n\020encoded_pol" + - "yline\030\001 \001(\tH\000\0226\n\023geo_json_linestring\030\002 \001" + - "(\0132\027.google.protobuf.StructH\000B\017\n\rpolylin" + - "e_type*S\n\017PolylineQuality\022 \n\034POLYLINE_QU" + - "ALITY_UNSPECIFIED\020\000\022\020\n\014HIGH_QUALITY\020\001\022\014\n" + - "\010OVERVIEW\020\002*d\n\020PolylineEncoding\022!\n\035POLYL" + - "INE_ENCODING_UNSPECIFIED\020\000\022\024\n\020ENCODED_PO" + - "LYLINE\020\001\022\027\n\023GEO_JSON_LINESTRING\020\002B\302\001\n\032co" + - "m.google.maps.routing.v2B\rPolylineProtoP" + - "\001Z:cloud.google.com/go/maps/routing/apiv" + - "2/routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Googl" + - "e.Maps.Routing.V2\312\002\026Google\\Maps\\Routing\\" + - "V2\352\002\031Google::Maps::Routing::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.StructProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_Polyline_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_Polyline_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_Polyline_descriptor, - new java.lang.String[] { "EncodedPolyline", "GeoJsonLinestring", "PolylineType", }); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java deleted file mode 100644 index 97c4a2c34b4c..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteLabelProto.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/route_label.proto - -package com.google.maps.routing.v2; - -public final class RouteLabelProto { - private RouteLabelProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - 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/maps/routing/v2/route_label.pro" + - "to\022\026google.maps.routing.v2*m\n\nRouteLabel" + - "\022\033\n\027ROUTE_LABEL_UNSPECIFIED\020\000\022\021\n\rDEFAULT" + - "_ROUTE\020\001\022\033\n\027DEFAULT_ROUTE_ALTERNATE\020\002\022\022\n" + - "\016FUEL_EFFICIENT\020\003B\304\001\n\032com.google.maps.ro" + - "uting.v2B\017RouteLabelProtoP\001Z:cloud.googl" + - "e.com/go/maps/routing/apiv2/routingpb;ro" + - "utingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Routing" + - ".V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Google::M" + - "aps::Routing::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java deleted file mode 100644 index c6236eb6a25f..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteModifiersProto.java +++ /dev/null @@ -1,64 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/route_modifiers.proto - -package com.google.maps.routing.v2; - -public final class RouteModifiersProto { - private RouteModifiersProto() {} - 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_maps_routing_v2_RouteModifiers_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteModifiers_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/maps/routing/v2/route_modifiers" + - ".proto\022\026google.maps.routing.v2\032(google/m" + - "aps/routing/v2/toll_passes.proto\032)google" + - "/maps/routing/v2/vehicle_info.proto\"\334\001\n\016" + - "RouteModifiers\022\023\n\013avoid_tolls\030\001 \001(\010\022\026\n\016a" + - "void_highways\030\002 \001(\010\022\025\n\ravoid_ferries\030\003 \001" + - "(\010\022\024\n\014avoid_indoor\030\004 \001(\010\0229\n\014vehicle_info" + - "\030\005 \001(\0132#.google.maps.routing.v2.VehicleI" + - "nfo\0225\n\013toll_passes\030\006 \003(\0162 .google.maps.r" + - "outing.v2.TollPassB\310\001\n\032com.google.maps.r" + - "outing.v2B\023RouteModifiersProtoP\001Z:cloud." + - "google.com/go/maps/routing/apiv2/routing" + - "pb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Ro" + - "uting.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Goog" + - "le::Maps::Routing::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.maps.routing.v2.TollPassesProto.getDescriptor(), - com.google.maps.routing.v2.VehicleInfoProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_RouteModifiers_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_RouteModifiers_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteModifiers_descriptor, - new java.lang.String[] { "AvoidTolls", "AvoidHighways", "AvoidFerries", "AvoidIndoor", "VehicleInfo", "TollPasses", }); - com.google.maps.routing.v2.TollPassesProto.getDescriptor(); - com.google.maps.routing.v2.VehicleInfoProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java deleted file mode 100644 index 96e1d846669d..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteProto.java +++ /dev/null @@ -1,339 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/route.proto - -package com.google.maps.routing.v2; - -public final class RouteProto { - private RouteProto() {} - 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_maps_routing_v2_Route_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_Route_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteLeg_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteLegStep_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteLegStep_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_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/maps/routing/v2/route.proto\022\026go" + - "ogle.maps.routing.v2\032\036google/geo/type/vi" + - "ewport.proto\032+google/maps/routing/v2/loc" + - "alized_time.proto\032%google/maps/routing/v" + - "2/location.proto\0323google/maps/routing/v2" + - "/navigation_instruction.proto\032%google/ma" + - "ps/routing/v2/polyline.proto\032(google/map" + - "s/routing/v2/route_label.proto\032.google/m" + - "aps/routing/v2/route_travel_mode.proto\0323" + - "google/maps/routing/v2/speed_reading_int" + - "erval.proto\032&google/maps/routing/v2/toll" + - "_info.proto\032$google/maps/routing/v2/tran" + - "sit.proto\032\036google/protobuf/duration.prot" + - "o\032\037google/protobuf/timestamp.proto\032 goog" + - "le/type/localized_text.proto\032\027google/typ" + - "e/money.proto\"\247\006\n\005Route\0228\n\014route_labels\030" + - "\r \003(\0162\".google.maps.routing.v2.RouteLabe" + - "l\022.\n\004legs\030\001 \003(\0132 .google.maps.routing.v2" + - ".RouteLeg\022\027\n\017distance_meters\030\002 \001(\005\022+\n\010du" + - "ration\030\003 \001(\0132\031.google.protobuf.Duration\022" + - "2\n\017static_duration\030\004 \001(\0132\031.google.protob" + - "uf.Duration\0222\n\010polyline\030\005 \001(\0132 .google.m" + - "aps.routing.v2.Polyline\022\023\n\013description\030\006" + - " \001(\t\022\020\n\010warnings\030\007 \003(\t\022+\n\010viewport\030\010 \001(\013" + - "2\031.google.geo.type.Viewport\022D\n\017travel_ad" + - "visory\030\t \001(\0132+.google.maps.routing.v2.Ro" + - "uteTravelAdvisory\022-\n%optimized_intermedi" + - "ate_waypoint_index\030\n \003(\005\022L\n\020localized_va" + - "lues\030\013 \001(\01322.google.maps.routing.v2.Rout" + - "e.RouteLocalizedValues\022\023\n\013route_token\030\014 " + - "\001(\t\032\331\001\n\024RouteLocalizedValues\022,\n\010distance" + - "\030\001 \001(\0132\032.google.type.LocalizedText\022,\n\010du" + - "ration\030\002 \001(\0132\032.google.type.LocalizedText" + - "\0223\n\017static_duration\030\003 \001(\0132\032.google.type." + - "LocalizedText\0220\n\014transit_fare\030\004 \001(\0132\032.go" + - "ogle.type.LocalizedText\"\227\002\n\023RouteTravelA" + - "dvisory\0223\n\ttoll_info\030\002 \001(\0132 .google.maps" + - ".routing.v2.TollInfo\022M\n\027speed_reading_in" + - "tervals\030\003 \003(\0132,.google.maps.routing.v2.S" + - "peedReadingInterval\022$\n\034fuel_consumption_" + - "microliters\030\005 \001(\003\022,\n$route_restrictions_" + - "partially_ignored\030\006 \001(\010\022(\n\014transit_fare\030" + - "\007 \001(\0132\022.google.type.Money\"\234\001\n\026RouteLegTr" + - "avelAdvisory\0223\n\ttoll_info\030\001 \001(\0132 .google" + - ".maps.routing.v2.TollInfo\022M\n\027speed_readi" + - "ng_intervals\030\002 \003(\0132,.google.maps.routing" + - ".v2.SpeedReadingInterval\"k\n\032RouteLegStep" + - "TravelAdvisory\022M\n\027speed_reading_interval" + - "s\030\001 \003(\0132,.google.maps.routing.v2.SpeedRe" + - "adingInterval\"\352\010\n\010RouteLeg\022\027\n\017distance_m" + - "eters\030\001 \001(\005\022+\n\010duration\030\002 \001(\0132\031.google.p" + - "rotobuf.Duration\0222\n\017static_duration\030\003 \001(" + - "\0132\031.google.protobuf.Duration\0222\n\010polyline" + - "\030\004 \001(\0132 .google.maps.routing.v2.Polyline" + - "\0228\n\016start_location\030\005 \001(\0132 .google.maps.r" + - "outing.v2.Location\0226\n\014end_location\030\006 \001(\013" + - "2 .google.maps.routing.v2.Location\0223\n\005st" + - "eps\030\007 \003(\0132$.google.maps.routing.v2.Route" + - "LegStep\022G\n\017travel_advisory\030\010 \001(\0132..googl" + - "e.maps.routing.v2.RouteLegTravelAdvisory" + - "\022R\n\020localized_values\030\t \001(\01328.google.maps" + - ".routing.v2.RouteLeg.RouteLegLocalizedVa" + - "lues\022F\n\016steps_overview\030\n \001(\0132..google.ma" + - "ps.routing.v2.RouteLeg.StepsOverview\032\252\001\n" + - "\027RouteLegLocalizedValues\022,\n\010distance\030\001 \001" + - "(\0132\032.google.type.LocalizedText\022,\n\010durati" + - "on\030\002 \001(\0132\032.google.type.LocalizedText\0223\n\017" + - "static_duration\030\003 \001(\0132\032.google.type.Loca" + - "lizedText\032\366\002\n\rStepsOverview\022^\n\024multi_mod" + - "al_segments\030\001 \003(\0132@.google.maps.routing." + - "v2.RouteLeg.StepsOverview.MultiModalSegm" + - "ent\032\204\002\n\021MultiModalSegment\022\035\n\020step_start_" + - "index\030\001 \001(\005H\000\210\001\001\022\033\n\016step_end_index\030\002 \001(\005" + - "H\001\210\001\001\022M\n\026navigation_instruction\030\003 \001(\0132-." + - "google.maps.routing.v2.NavigationInstruc" + - "tion\022<\n\013travel_mode\030\004 \001(\0162\'.google.maps." + - "routing.v2.RouteTravelModeB\023\n\021_step_star" + - "t_indexB\021\n\017_step_end_index\"\207\006\n\014RouteLegS" + - "tep\022\027\n\017distance_meters\030\001 \001(\005\0222\n\017static_d" + - "uration\030\002 \001(\0132\031.google.protobuf.Duration" + - "\0222\n\010polyline\030\003 \001(\0132 .google.maps.routing" + - ".v2.Polyline\0228\n\016start_location\030\004 \001(\0132 .g" + - "oogle.maps.routing.v2.Location\0226\n\014end_lo" + - "cation\030\005 \001(\0132 .google.maps.routing.v2.Lo" + - "cation\022M\n\026navigation_instruction\030\006 \001(\0132-" + - ".google.maps.routing.v2.NavigationInstru" + - "ction\022K\n\017travel_advisory\030\007 \001(\01322.google." + - "maps.routing.v2.RouteLegStepTravelAdviso" + - "ry\022Z\n\020localized_values\030\010 \001(\0132@.google.ma" + - "ps.routing.v2.RouteLegStep.RouteLegStepL" + - "ocalizedValues\022K\n\017transit_details\030\t \001(\0132" + - "2.google.maps.routing.v2.RouteLegStepTra" + - "nsitDetails\022<\n\013travel_mode\030\n \001(\0162\'.googl" + - "e.maps.routing.v2.RouteTravelMode\032\200\001\n\033Ro" + - "uteLegStepLocalizedValues\022,\n\010distance\030\001 " + - "\001(\0132\032.google.type.LocalizedText\0223\n\017stati" + - "c_duration\030\003 \001(\0132\032.google.type.Localized" + - "Text\"\236\006\n\032RouteLegStepTransitDetails\022[\n\014s" + - "top_details\030\001 \001(\0132E.google.maps.routing." + - "v2.RouteLegStepTransitDetails.TransitSto" + - "pDetails\022j\n\020localized_values\030\002 \001(\0132P.goo" + - "gle.maps.routing.v2.RouteLegStepTransitD" + - "etails.TransitDetailsLocalizedValues\022\020\n\010" + - "headsign\030\003 \001(\t\022*\n\007headway\030\004 \001(\0132\031.google" + - ".protobuf.Duration\0229\n\014transit_line\030\005 \001(\013" + - "2#.google.maps.routing.v2.TransitLine\022\022\n" + - "\nstop_count\030\006 \001(\005\022\027\n\017trip_short_text\030\007 \001" + - "(\t\032\362\001\n\022TransitStopDetails\0229\n\014arrival_sto" + - "p\030\001 \001(\0132#.google.maps.routing.v2.Transit" + - "Stop\0220\n\014arrival_time\030\002 \001(\0132\032.google.prot" + - "obuf.Timestamp\022;\n\016departure_stop\030\003 \001(\0132#" + - ".google.maps.routing.v2.TransitStop\0222\n\016d" + - "eparture_time\030\004 \001(\0132\032.google.protobuf.Ti" + - "mestamp\032\233\001\n\035TransitDetailsLocalizedValue" + - "s\022;\n\014arrival_time\030\001 \001(\0132%.google.maps.ro" + - "uting.v2.LocalizedTime\022=\n\016departure_time" + - "\030\002 \001(\0132%.google.maps.routing.v2.Localize" + - "dTimeB\277\001\n\032com.google.maps.routing.v2B\nRo" + - "uteProtoP\001Z:cloud.google.com/go/maps/rou" + - "ting/apiv2/routingpb;routingpb\370\001\001\242\002\005GMRV" + - "2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Maps" + - "\\Routing\\V2\352\002\031Google::Maps::Routing::V2b" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.geo.type.ViewportProto.getDescriptor(), - com.google.maps.routing.v2.LocalizedTimeProto.getDescriptor(), - com.google.maps.routing.v2.LocationProto.getDescriptor(), - com.google.maps.routing.v2.NavigationInstructionProto.getDescriptor(), - com.google.maps.routing.v2.PolylineProto.getDescriptor(), - com.google.maps.routing.v2.RouteLabelProto.getDescriptor(), - com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(), - com.google.maps.routing.v2.SpeedReadingIntervalProto.getDescriptor(), - com.google.maps.routing.v2.TollInfoProto.getDescriptor(), - com.google.maps.routing.v2.TransitProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.LocalizedTextProto.getDescriptor(), - com.google.type.MoneyProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_Route_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_Route_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_Route_descriptor, - new java.lang.String[] { "RouteLabels", "Legs", "DistanceMeters", "Duration", "StaticDuration", "Polyline", "Description", "Warnings", "Viewport", "TravelAdvisory", "OptimizedIntermediateWaypointIndex", "LocalizedValues", "RouteToken", }); - internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor = - internal_static_google_maps_routing_v2_Route_descriptor.getNestedTypes().get(0); - internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_Route_RouteLocalizedValues_descriptor, - new java.lang.String[] { "Distance", "Duration", "StaticDuration", "TransitFare", }); - internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_maps_routing_v2_RouteTravelAdvisory_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteTravelAdvisory_descriptor, - new java.lang.String[] { "TollInfo", "SpeedReadingIntervals", "FuelConsumptionMicroliters", "RouteRestrictionsPartiallyIgnored", "TransitFare", }); - internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteLegTravelAdvisory_descriptor, - new java.lang.String[] { "TollInfo", "SpeedReadingIntervals", }); - internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteLegStepTravelAdvisory_descriptor, - new java.lang.String[] { "SpeedReadingIntervals", }); - internal_static_google_maps_routing_v2_RouteLeg_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_maps_routing_v2_RouteLeg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteLeg_descriptor, - new java.lang.String[] { "DistanceMeters", "Duration", "StaticDuration", "Polyline", "StartLocation", "EndLocation", "Steps", "TravelAdvisory", "LocalizedValues", "StepsOverview", }); - internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor = - internal_static_google_maps_routing_v2_RouteLeg_descriptor.getNestedTypes().get(0); - internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteLeg_RouteLegLocalizedValues_descriptor, - new java.lang.String[] { "Distance", "Duration", "StaticDuration", }); - internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor = - internal_static_google_maps_routing_v2_RouteLeg_descriptor.getNestedTypes().get(1); - internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor, - new java.lang.String[] { "MultiModalSegments", }); - internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor = - internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_descriptor.getNestedTypes().get(0); - internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteLeg_StepsOverview_MultiModalSegment_descriptor, - new java.lang.String[] { "StepStartIndex", "StepEndIndex", "NavigationInstruction", "TravelMode", "StepStartIndex", "StepEndIndex", }); - internal_static_google_maps_routing_v2_RouteLegStep_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_maps_routing_v2_RouteLegStep_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteLegStep_descriptor, - new java.lang.String[] { "DistanceMeters", "StaticDuration", "Polyline", "StartLocation", "EndLocation", "NavigationInstruction", "TravelAdvisory", "LocalizedValues", "TransitDetails", "TravelMode", }); - internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor = - internal_static_google_maps_routing_v2_RouteLegStep_descriptor.getNestedTypes().get(0); - internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteLegStep_RouteLegStepLocalizedValues_descriptor, - new java.lang.String[] { "Distance", "StaticDuration", }); - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor, - new java.lang.String[] { "StopDetails", "LocalizedValues", "Headsign", "Headway", "TransitLine", "StopCount", "TripShortText", }); - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor = - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor.getNestedTypes().get(0); - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitStopDetails_descriptor, - new java.lang.String[] { "ArrivalStop", "ArrivalTime", "DepartureStop", "DepartureTime", }); - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor = - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_descriptor.getNestedTypes().get(1); - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteLegStepTransitDetails_TransitDetailsLocalizedValues_descriptor, - new java.lang.String[] { "ArrivalTime", "DepartureTime", }); - com.google.geo.type.ViewportProto.getDescriptor(); - com.google.maps.routing.v2.LocalizedTimeProto.getDescriptor(); - com.google.maps.routing.v2.LocationProto.getDescriptor(); - com.google.maps.routing.v2.NavigationInstructionProto.getDescriptor(); - com.google.maps.routing.v2.PolylineProto.getDescriptor(); - com.google.maps.routing.v2.RouteLabelProto.getDescriptor(); - com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(); - com.google.maps.routing.v2.SpeedReadingIntervalProto.getDescriptor(); - com.google.maps.routing.v2.TollInfoProto.getDescriptor(); - com.google.maps.routing.v2.TransitProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.LocalizedTextProto.getDescriptor(); - com.google.type.MoneyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java deleted file mode 100644 index 3aa5c316cc9c..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RouteTravelModeProto.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/route_travel_mode.proto - -package com.google.maps.routing.v2; - -public final class RouteTravelModeProto { - private RouteTravelModeProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - 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/maps/routing/v2/route_travel_mo" + - "de.proto\022\026google.maps.routing.v2*n\n\017Rout" + - "eTravelMode\022\033\n\027TRAVEL_MODE_UNSPECIFIED\020\000" + - "\022\t\n\005DRIVE\020\001\022\013\n\007BICYCLE\020\002\022\010\n\004WALK\020\003\022\017\n\013TW" + - "O_WHEELER\020\004\022\013\n\007TRANSIT\020\007B\311\001\n\032com.google." + - "maps.routing.v2B\024RouteTravelModeProtoP\001Z" + - ":cloud.google.com/go/maps/routing/apiv2/" + - "routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google." + - "Maps.Routing.V2\312\002\026Google\\Maps\\Routing\\V2" + - "\352\002\031Google::Maps::Routing::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java deleted file mode 100644 index 6311e27467a8..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutesServiceProto.java +++ /dev/null @@ -1,277 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/routes_service.proto - -package com.google.maps.routing.v2; - -public final class RoutesServiceProto { - private RoutesServiceProto() {} - 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_maps_routing_v2_ComputeRoutesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteMatrixElement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_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/maps/routing/v2/routes_service." + - "proto\022\026google.maps.routing.v2\032\034google/ap" + - "i/annotations.proto\032\027google/api/client.p" + - "roto\032\037google/api/field_behavior.proto\032*g" + - "oogle/maps/routing/v2/fallback_info.prot" + - "o\032.google/maps/routing/v2/geocoding_resu" + - "lts.proto\032%google/maps/routing/v2/polyli" + - "ne.proto\032\"google/maps/routing/v2/route.p" + - "roto\032,google/maps/routing/v2/route_modif" + - "iers.proto\032.google/maps/routing/v2/route" + - "_travel_mode.proto\032/google/maps/routing/" + - "v2/routing_preference.proto\032*google/maps" + - "/routing/v2/traffic_model.proto\0320google/" + - "maps/routing/v2/transit_preferences.prot" + - "o\032\"google/maps/routing/v2/units.proto\032%g" + - "oogle/maps/routing/v2/waypoint.proto\032\036go" + - "ogle/protobuf/duration.proto\032\037google/pro" + - "tobuf/timestamp.proto\032\027google/rpc/status" + - ".proto\032 google/type/localized_text.proto" + - "\"\244\013\n\024ComputeRoutesRequest\0226\n\006origin\030\001 \001(" + - "\0132 .google.maps.routing.v2.WaypointB\004\342A\001" + - "\002\022;\n\013destination\030\002 \001(\0132 .google.maps.rou" + - "ting.v2.WaypointB\004\342A\001\002\022=\n\rintermediates\030" + - "\003 \003(\0132 .google.maps.routing.v2.WaypointB" + - "\004\342A\001\001\022B\n\013travel_mode\030\004 \001(\0162\'.google.maps" + - ".routing.v2.RouteTravelModeB\004\342A\001\001\022K\n\022rou" + - "ting_preference\030\005 \001(\0162).google.maps.rout" + - "ing.v2.RoutingPreferenceB\004\342A\001\001\022G\n\020polyli" + - "ne_quality\030\006 \001(\0162\'.google.maps.routing.v" + - "2.PolylineQualityB\004\342A\001\001\022I\n\021polyline_enco" + - "ding\030\014 \001(\0162(.google.maps.routing.v2.Poly" + - "lineEncodingB\004\342A\001\001\0228\n\016departure_time\030\007 \001" + - "(\0132\032.google.protobuf.TimestampB\004\342A\001\001\0226\n\014" + - "arrival_time\030\023 \001(\0132\032.google.protobuf.Tim" + - "estampB\004\342A\001\001\022(\n\032compute_alternative_rout" + - "es\030\010 \001(\010B\004\342A\001\001\022E\n\017route_modifiers\030\t \001(\0132" + - "&.google.maps.routing.v2.RouteModifiersB" + - "\004\342A\001\001\022\033\n\rlanguage_code\030\n \001(\tB\004\342A\001\001\022\031\n\013re" + - "gion_code\030\020 \001(\tB\004\342A\001\001\0222\n\005units\030\013 \001(\0162\035.g" + - "oogle.maps.routing.v2.UnitsB\004\342A\001\001\022%\n\027opt" + - "imize_waypoint_order\030\r \001(\010B\004\342A\001\001\022e\n\032requ" + - "ested_reference_routes\030\016 \003(\0162;.google.ma" + - "ps.routing.v2.ComputeRoutesRequest.Refer" + - "enceRouteB\004\342A\001\001\022_\n\022extra_computations\030\017 " + - "\003(\0162=.google.maps.routing.v2.ComputeRout" + - "esRequest.ExtraComputationB\004\342A\001\001\022A\n\rtraf" + - "fic_model\030\022 \001(\0162$.google.maps.routing.v2" + - ".TrafficModelB\004\342A\001\001\022M\n\023transit_preferenc" + - "es\030\024 \001(\0132*.google.maps.routing.v2.Transi" + - "tPreferencesB\004\342A\001\001\"E\n\016ReferenceRoute\022\037\n\033" + - "REFERENCE_ROUTE_UNSPECIFIED\020\000\022\022\n\016FUEL_EF" + - "FICIENT\020\001\"\233\001\n\020ExtraComputation\022!\n\035EXTRA_" + - "COMPUTATION_UNSPECIFIED\020\000\022\t\n\005TOLLS\020\001\022\024\n\020" + - "FUEL_CONSUMPTION\020\002\022\027\n\023TRAFFIC_ON_POLYLIN" + - "E\020\003\022*\n&HTML_FORMATTED_NAVIGATION_INSTRUC" + - "TIONS\020\004\"\310\001\n\025ComputeRoutesResponse\022-\n\006rou" + - "tes\030\001 \003(\0132\035.google.maps.routing.v2.Route" + - "\022;\n\rfallback_info\030\002 \001(\0132$.google.maps.ro" + - "uting.v2.FallbackInfo\022C\n\021geocoding_resul" + - "ts\030\003 \001(\0132(.google.maps.routing.v2.Geocod" + - "ingResults\"\236\006\n\031ComputeRouteMatrixRequest" + - "\022@\n\007origins\030\001 \003(\0132).google.maps.routing." + - "v2.RouteMatrixOriginB\004\342A\001\002\022J\n\014destinatio" + - "ns\030\002 \003(\0132..google.maps.routing.v2.RouteM" + - "atrixDestinationB\004\342A\001\002\022B\n\013travel_mode\030\003 " + - "\001(\0162\'.google.maps.routing.v2.RouteTravel" + - "ModeB\004\342A\001\001\022K\n\022routing_preference\030\004 \001(\0162)" + - ".google.maps.routing.v2.RoutingPreferenc" + - "eB\004\342A\001\001\0228\n\016departure_time\030\005 \001(\0132\032.google" + - ".protobuf.TimestampB\004\342A\001\001\0226\n\014arrival_tim" + - "e\030\013 \001(\0132\032.google.protobuf.TimestampB\004\342A\001" + - "\001\022\033\n\rlanguage_code\030\006 \001(\tB\004\342A\001\001\022\031\n\013region" + - "_code\030\t \001(\tB\004\342A\001\001\022d\n\022extra_computations\030" + - "\010 \003(\0162B.google.maps.routing.v2.ComputeRo" + - "uteMatrixRequest.ExtraComputationB\004\342A\001\001\022" + - "A\n\rtraffic_model\030\n \001(\0162$.google.maps.rou" + - "ting.v2.TrafficModelB\004\342A\001\001\022M\n\023transit_pr" + - "eferences\030\014 \001(\0132*.google.maps.routing.v2" + - ".TransitPreferencesB\004\342A\001\001\"@\n\020ExtraComput" + - "ation\022!\n\035EXTRA_COMPUTATION_UNSPECIFIED\020\000" + - "\022\t\n\005TOLLS\020\001\"\224\001\n\021RouteMatrixOrigin\0228\n\010way" + - "point\030\001 \001(\0132 .google.maps.routing.v2.Way" + - "pointB\004\342A\001\002\022E\n\017route_modifiers\030\002 \001(\0132&.g" + - "oogle.maps.routing.v2.RouteModifiersB\004\342A" + - "\001\001\"R\n\026RouteMatrixDestination\0228\n\010waypoint" + - "\030\001 \001(\0132 .google.maps.routing.v2.Waypoint" + - "B\004\342A\001\002\"\214\006\n\022RouteMatrixElement\022\031\n\014origin_" + - "index\030\001 \001(\005H\000\210\001\001\022\036\n\021destination_index\030\002 " + - "\001(\005H\001\210\001\001\022\"\n\006status\030\003 \001(\0132\022.google.rpc.St" + - "atus\022F\n\tcondition\030\t \001(\01623.google.maps.ro" + - "uting.v2.RouteMatrixElementCondition\022\027\n\017" + - "distance_meters\030\004 \001(\005\022+\n\010duration\030\005 \001(\0132" + - "\031.google.protobuf.Duration\0222\n\017static_dur" + - "ation\030\006 \001(\0132\031.google.protobuf.Duration\022D" + - "\n\017travel_advisory\030\007 \001(\0132+.google.maps.ro" + - "uting.v2.RouteTravelAdvisory\022;\n\rfallback" + - "_info\030\010 \001(\0132$.google.maps.routing.v2.Fal" + - "lbackInfo\022T\n\020localized_values\030\n \001(\0132:.go" + - "ogle.maps.routing.v2.RouteMatrixElement." + - "LocalizedValues\032\324\001\n\017LocalizedValues\022,\n\010d" + - "istance\030\001 \001(\0132\032.google.type.LocalizedTex" + - "t\022,\n\010duration\030\002 \001(\0132\032.google.type.Locali" + - "zedText\0223\n\017static_duration\030\003 \001(\0132\032.googl" + - "e.type.LocalizedText\0220\n\014transit_fare\030\004 \001" + - "(\0132\032.google.type.LocalizedTextB\017\n\r_origi" + - "n_indexB\024\n\022_destination_index*t\n\033RouteMa" + - "trixElementCondition\022.\n*ROUTE_MATRIX_ELE" + - "MENT_CONDITION_UNSPECIFIED\020\000\022\020\n\014ROUTE_EX" + - "ISTS\020\001\022\023\n\017ROUTE_NOT_FOUND\020\0022\344\002\n\006Routes\022\225" + - "\001\n\rComputeRoutes\022,.google.maps.routing.v" + - "2.ComputeRoutesRequest\032-.google.maps.rou" + - "ting.v2.ComputeRoutesResponse\"\'\202\323\344\223\002!\"\034/" + - "directions/v2:computeRoutes:\001*\022\247\001\n\022Compu" + - "teRouteMatrix\0221.google.maps.routing.v2.C" + - "omputeRouteMatrixRequest\032*.google.maps.r" + - "outing.v2.RouteMatrixElement\"0\202\323\344\223\002*\"%/d" + - "istanceMatrix/v2:computeRouteMatrix:\001*0\001" + - "\032\030\312A\025routes.googleapis.comB\307\001\n\032com.googl" + - "e.maps.routing.v2B\022RoutesServiceProtoP\001Z" + - ":cloud.google.com/go/maps/routing/apiv2/" + - "routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google." + - "Maps.Routing.V2\312\002\026Google\\Maps\\Routing\\V2" + - "\352\002\031Google::Maps::Routing::V2b\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.maps.routing.v2.FallbackInfoProto.getDescriptor(), - com.google.maps.routing.v2.GeocodingResultsProto.getDescriptor(), - com.google.maps.routing.v2.PolylineProto.getDescriptor(), - com.google.maps.routing.v2.RouteProto.getDescriptor(), - com.google.maps.routing.v2.RouteModifiersProto.getDescriptor(), - com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(), - com.google.maps.routing.v2.RoutingPreferenceProto.getDescriptor(), - com.google.maps.routing.v2.TrafficModelProto.getDescriptor(), - com.google.maps.routing.v2.TransitPreferencesProto.getDescriptor(), - com.google.maps.routing.v2.UnitsProto.getDescriptor(), - com.google.maps.routing.v2.WaypointProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.type.LocalizedTextProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_ComputeRoutesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_ComputeRoutesRequest_descriptor, - new java.lang.String[] { "Origin", "Destination", "Intermediates", "TravelMode", "RoutingPreference", "PolylineQuality", "PolylineEncoding", "DepartureTime", "ArrivalTime", "ComputeAlternativeRoutes", "RouteModifiers", "LanguageCode", "RegionCode", "Units", "OptimizeWaypointOrder", "RequestedReferenceRoutes", "ExtraComputations", "TrafficModel", "TransitPreferences", }); - internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_maps_routing_v2_ComputeRoutesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_ComputeRoutesResponse_descriptor, - new java.lang.String[] { "Routes", "FallbackInfo", "GeocodingResults", }); - internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_ComputeRouteMatrixRequest_descriptor, - new java.lang.String[] { "Origins", "Destinations", "TravelMode", "RoutingPreference", "DepartureTime", "ArrivalTime", "LanguageCode", "RegionCode", "ExtraComputations", "TrafficModel", "TransitPreferences", }); - internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_maps_routing_v2_RouteMatrixOrigin_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteMatrixOrigin_descriptor, - new java.lang.String[] { "Waypoint", "RouteModifiers", }); - internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_maps_routing_v2_RouteMatrixDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteMatrixDestination_descriptor, - new java.lang.String[] { "Waypoint", }); - internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_maps_routing_v2_RouteMatrixElement_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor, - new java.lang.String[] { "OriginIndex", "DestinationIndex", "Status", "Condition", "DistanceMeters", "Duration", "StaticDuration", "TravelAdvisory", "FallbackInfo", "LocalizedValues", "OriginIndex", "DestinationIndex", }); - internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor = - internal_static_google_maps_routing_v2_RouteMatrixElement_descriptor.getNestedTypes().get(0); - internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_RouteMatrixElement_LocalizedValues_descriptor, - new java.lang.String[] { "Distance", "Duration", "StaticDuration", "TransitFare", }); - 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); - 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.maps.routing.v2.FallbackInfoProto.getDescriptor(); - com.google.maps.routing.v2.GeocodingResultsProto.getDescriptor(); - com.google.maps.routing.v2.PolylineProto.getDescriptor(); - com.google.maps.routing.v2.RouteProto.getDescriptor(); - com.google.maps.routing.v2.RouteModifiersProto.getDescriptor(); - com.google.maps.routing.v2.RouteTravelModeProto.getDescriptor(); - com.google.maps.routing.v2.RoutingPreferenceProto.getDescriptor(); - com.google.maps.routing.v2.TrafficModelProto.getDescriptor(); - com.google.maps.routing.v2.TransitPreferencesProto.getDescriptor(); - com.google.maps.routing.v2.UnitsProto.getDescriptor(); - com.google.maps.routing.v2.WaypointProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.type.LocalizedTextProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java deleted file mode 100644 index 9d317ece1133..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/RoutingPreferenceProto.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/routing_preference.proto - -package com.google.maps.routing.v2; - -public final class RoutingPreferenceProto { - private RoutingPreferenceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - 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/maps/routing/v2/routing_prefere" + - "nce.proto\022\026google.maps.routing.v2*z\n\021Rou" + - "tingPreference\022\"\n\036ROUTING_PREFERENCE_UNS" + - "PECIFIED\020\000\022\023\n\017TRAFFIC_UNAWARE\020\001\022\021\n\rTRAFF" + - "IC_AWARE\020\002\022\031\n\025TRAFFIC_AWARE_OPTIMAL\020\003B\313\001" + - "\n\032com.google.maps.routing.v2B\026RoutingPre" + - "ferenceProtoP\001Z:cloud.google.com/go/maps" + - "/routing/apiv2/routingpb;routingpb\370\001\001\242\002\005" + - "GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\" + - "Maps\\Routing\\V2\352\002\031Google::Maps::Routing:" + - ":V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java deleted file mode 100644 index 3159dc6ed44a..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/SpeedReadingIntervalProto.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/speed_reading_interval.proto - -package com.google.maps.routing.v2; - -public final class SpeedReadingIntervalProto { - private SpeedReadingIntervalProto() {} - 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_maps_routing_v2_SpeedReadingInterval_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/maps/routing/v2/speed_reading_i" + - "nterval.proto\022\026google.maps.routing.v2\"\274\002" + - "\n\024SpeedReadingInterval\022\'\n\032start_polyline" + - "_point_index\030\001 \001(\005H\001\210\001\001\022%\n\030end_polyline_" + - "point_index\030\002 \001(\005H\002\210\001\001\022C\n\005speed\030\003 \001(\01622." + - "google.maps.routing.v2.SpeedReadingInter" + - "val.SpeedH\000\"E\n\005Speed\022\025\n\021SPEED_UNSPECIFIE" + - "D\020\000\022\n\n\006NORMAL\020\001\022\010\n\004SLOW\020\002\022\017\n\013TRAFFIC_JAM" + - "\020\003B\014\n\nspeed_typeB\035\n\033_start_polyline_poin" + - "t_indexB\033\n\031_end_polyline_point_indexB\316\001\n" + - "\032com.google.maps.routing.v2B\031SpeedReadin" + - "gIntervalProtoP\001Z:cloud.google.com/go/ma" + - "ps/routing/apiv2/routingpb;routingpb\370\001\001\242" + - "\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Googl" + - "e\\Maps\\Routing\\V2\352\002\031Google::Maps::Routin" + - "g::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_SpeedReadingInterval_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_SpeedReadingInterval_descriptor, - new java.lang.String[] { "StartPolylinePointIndex", "EndPolylinePointIndex", "Speed", "SpeedType", "StartPolylinePointIndex", "EndPolylinePointIndex", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java deleted file mode 100644 index 92cf1e019bd9..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollInfoProto.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/toll_info.proto - -package com.google.maps.routing.v2; - -public final class TollInfoProto { - private TollInfoProto() {} - 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_maps_routing_v2_TollInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_TollInfo_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/maps/routing/v2/toll_info.proto" + - "\022\026google.maps.routing.v2\032\027google/type/mo" + - "ney.proto\"7\n\010TollInfo\022+\n\017estimated_price" + - "\030\001 \003(\0132\022.google.type.MoneyB\302\001\n\032com.googl" + - "e.maps.routing.v2B\rTollInfoProtoP\001Z:clou" + - "d.google.com/go/maps/routing/apiv2/routi" + - "ngpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps." + - "Routing.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Go" + - "ogle::Maps::Routing::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.type.MoneyProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_TollInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_TollInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_TollInfo_descriptor, - new java.lang.String[] { "EstimatedPrice", }); - com.google.type.MoneyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java deleted file mode 100644 index 408e8b3e4e3a..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TollPassesProto.java +++ /dev/null @@ -1,98 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/toll_passes.proto - -package com.google.maps.routing.v2; - -public final class TollPassesProto { - private TollPassesProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - 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/maps/routing/v2/toll_passes.pro" + - "to\022\026google.maps.routing.v2*\321\021\n\010TollPass\022" + - "\031\n\025TOLL_PASS_UNSPECIFIED\020\000\022\020\n\014AU_ETOLL_T" + - "AG\020R\022\017\n\013AU_EWAY_TAG\020S\022\014\n\010AU_LINKT\020\002\022\017\n\013A" + - "R_TELEPASE\020\003\022\023\n\017BR_AUTO_EXPRESO\020Q\022\020\n\014BR_" + - "CONECTCAR\020\007\022\020\n\014BR_MOVE_MAIS\020\010\022\023\n\017BR_PASS" + - "A_RAPIDO\020X\022\020\n\014BR_SEM_PARAR\020\t\022\014\n\010BR_TAGGY" + - "\020\n\022\014\n\010BR_VELOE\020\013\022)\n%CA_US_AKWASASNE_SEAW" + - "AY_CORPORATE_CARD\020T\022\'\n#CA_US_AKWASASNE_S" + - "EAWAY_TRANSIT_CARD\020U\022\036\n\032CA_US_BLUE_WATER" + - "_EDGE_PASS\020\022\022\023\n\017CA_US_CONNEXION\020\023\022\024\n\020CA_" + - "US_NEXUS_CARD\020\024\022\r\n\tID_E_TOLL\020\020\022\r\n\tIN_FAS" + - "TAG\020N\022\034\n\030IN_LOCAL_HP_PLATE_EXEMPT\020O\022\013\n\007M" + - "X_IAVE\020Z\022\013\n\007MX_PASE\020[\022\020\n\014MX_QUICKPASS\020]\022" + - "\"\n\036MX_SISTEMA_TELEPEAJE_CHIHUAHUA\020Y\022\017\n\013M" + - "X_TAG_IAVE\020\014\022\022\n\016MX_TAG_TELEVIA\020\r\022\016\n\nMX_T" + - "ELEVIA\020\\\022\016\n\nMX_VIAPASS\020\016\022\026\n\022US_AL_FREEDO" + - "M_PASS\020\025\0222\n.US_AK_ANTON_ANDERSON_TUNNEL_" + - "BOOK_OF_10_TICKETS\020\026\022\021\n\rUS_CA_FASTRAK\020\004\022" + - "\035\n\031US_CA_FASTRAK_CAV_STICKER\020V\022\025\n\021US_CO_" + - "EXPRESSTOLL\020\027\022\021\n\rUS_CO_GO_PASS\020\030\022\022\n\016US_D" + - "E_EZPASSDE\020\031\022$\n US_FL_BOB_SIKES_TOLL_BRI" + - "DGE_PASS\020A\022:\n6US_FL_DUNES_COMMUNITY_DEVE" + - "LOPMENT_DISTRICT_EXPRESSCARD\020B\022\017\n\013US_FL_" + - "EPASS\020C\022\030\n\024US_FL_GIBA_TOLL_PASS\020D\022\020\n\014US_" + - "FL_LEEWAY\020E\022\021\n\rUS_FL_SUNPASS\020F\022\025\n\021US_FL_" + - "SUNPASS_PRO\020G\022\022\n\016US_IL_EZPASSIL\020I\022\017\n\013US_" + - "IL_IPASS\020H\022\022\n\016US_IN_EZPASSIN\020\032\022\032\n\026US_KS_" + - "BESTPASS_HORIZON\020\033\022\016\n\nUS_KS_KTAG\020\034\022\026\n\022US" + - "_KS_NATIONALPASS\020\035\022\033\n\027US_KS_PREPASS_ELIT" + - "EPASS\020\036\022\023\n\017US_KY_RIVERLINK\020\037\022\023\n\017US_LA_GE" + - "AUXPASS\020 \022\022\n\016US_LA_TOLL_TAG\020!\022\022\n\016US_MA_E" + - "ZPASSMA\020\006\022\022\n\016US_MD_EZPASSMD\020\"\022\022\n\016US_ME_E" + - "ZPASSME\020#\0221\n-US_MI_AMBASSADOR_BRIDGE_PRE" + - "MIER_COMMUTER_CARD\020$\022\020\n\014US_MI_BCPASS\020^\022)" + - "\n%US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG\020" + - "%\022\032\n\022US_MI_IQ_PROX_CARD\020&\032\002\010\001\022\020\n\014US_MI_I" + - "Q_TAG\020_\022\"\n\036US_MI_MACKINAC_BRIDGE_MAC_PAS" + - "S\020\'\022\027\n\023US_MI_NEXPRESS_TOLL\020(\022\022\n\016US_MN_EZ" + - "PASSMN\020)\022\022\n\016US_NC_EZPASSNC\020*\022\024\n\020US_NC_PE" + - "ACH_PASS\020W\022\024\n\020US_NC_QUICK_PASS\020+\022\022\n\016US_N" + - "H_EZPASSNH\020P\022 \n\034US_NJ_DOWNBEACH_EXPRESS_" + - "PASS\020K\022\022\n\016US_NJ_EZPASSNJ\020J\022\025\n\021US_NY_EXPR" + - "ESSPASS\020L\022\022\n\016US_NY_EZPASSNY\020M\022\022\n\016US_OH_E" + - "ZPASSOH\020,\022\022\n\016US_PA_EZPASSPA\020-\022\022\n\016US_RI_E" + - "ZPASSRI\020.\022\021\n\rUS_SC_PALPASS\020/\022\021\n\rUS_TX_AV" + - "I_TAG\020a\022\022\n\016US_TX_BANCPASS\0200\022\026\n\022US_TX_DEL" + - "_RIO_PASS\0201\022\024\n\020US_TX_EFAST_PASS\0202\022!\n\035US_" + - "TX_EAGLE_PASS_EXPRESS_CARD\0203\022\020\n\014US_TX_EP" + - "TOLL\0204\022\022\n\016US_TX_EZ_CROSS\0205\022\017\n\013US_TX_EZTA" + - "G\0206\022\023\n\017US_TX_FUEGO_TAG\020`\022\032\n\026US_TX_LAREDO" + - "_TRADE_TAG\0207\022\022\n\016US_TX_PLUSPASS\0208\022\021\n\rUS_T" + - "X_TOLLTAG\0209\022\017\n\013US_TX_TXTAG\020:\022\025\n\021US_TX_XP" + - "RESS_CARD\020;\022\'\n#US_UT_ADAMS_AVE_PARKWAY_E" + - "XPRESSCARD\020<\022\022\n\016US_VA_EZPASSVA\020=\022\022\n\016US_W" + - "A_BREEZEBY\020\021\022\024\n\020US_WA_GOOD_TO_GO\020\001\022\022\n\016US" + - "_WV_EZPASSWV\020>\022!\n\035US_WV_MEMORIAL_BRIDGE_" + - "TICKETS\020?\022#\n\037US_WV_NEWELL_TOLL_BRIDGE_TI" + - "CKET\020@B\304\001\n\032com.google.maps.routing.v2B\017T" + - "ollPassesProtoP\001Z:cloud.google.com/go/ma" + - "ps/routing/apiv2/routingpb;routingpb\370\001\001\242" + - "\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Googl" + - "e\\Maps\\Routing\\V2\352\002\031Google::Maps::Routin" + - "g::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java deleted file mode 100644 index 71eb174f7ea9..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TrafficModelProto.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/traffic_model.proto - -package com.google.maps.routing.v2; - -public final class TrafficModelProto { - private TrafficModelProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - 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/maps/routing/v2/traffic_model.p" + - "roto\022\026google.maps.routing.v2*^\n\014TrafficM" + - "odel\022\035\n\031TRAFFIC_MODEL_UNSPECIFIED\020\000\022\016\n\nB" + - "EST_GUESS\020\001\022\017\n\013PESSIMISTIC\020\002\022\016\n\nOPTIMIST" + - "IC\020\003B\306\001\n\032com.google.maps.routing.v2B\021Tra" + - "fficModelProtoP\001Z:cloud.google.com/go/ma" + - "ps/routing/apiv2/routingpb;routingpb\370\001\001\242" + - "\002\005GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Googl" + - "e\\Maps\\Routing\\V2\352\002\031Google::Maps::Routin" + - "g::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java deleted file mode 100644 index c11566fa1f8b..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitPreferencesProto.java +++ /dev/null @@ -1,64 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/transit_preferences.proto - -package com.google.maps.routing.v2; - -public final class TransitPreferencesProto { - private TransitPreferencesProto() {} - 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_maps_routing_v2_TransitPreferences_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_TransitPreferences_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/maps/routing/v2/transit_prefere" + - "nces.proto\022\026google.maps.routing.v2\"\264\003\n\022T" + - "ransitPreferences\022Z\n\024allowed_travel_mode" + - "s\030\001 \003(\0162<.google.maps.routing.v2.Transit" + - "Preferences.TransitTravelMode\022_\n\022routing" + - "_preference\030\002 \001(\0162C.google.maps.routing." + - "v2.TransitPreferences.TransitRoutingPref" + - "erence\"r\n\021TransitTravelMode\022#\n\037TRANSIT_T" + - "RAVEL_MODE_UNSPECIFIED\020\000\022\007\n\003BUS\020\001\022\n\n\006SUB" + - "WAY\020\002\022\t\n\005TRAIN\020\003\022\016\n\nLIGHT_RAIL\020\004\022\010\n\004RAIL" + - "\020\005\"m\n\030TransitRoutingPreference\022*\n&TRANSI" + - "T_ROUTING_PREFERENCE_UNSPECIFIED\020\000\022\020\n\014LE" + - "SS_WALKING\020\001\022\023\n\017FEWER_TRANSFERS\020\002B\314\001\n\032co" + - "m.google.maps.routing.v2B\027TransitPrefere" + - "ncesProtoP\001Z:cloud.google.com/go/maps/ro" + - "uting/apiv2/routingpb;routingpb\370\001\001\242\002\005GMR" + - "V2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Map" + - "s\\Routing\\V2\352\002\031Google::Maps::Routing::V2" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_maps_routing_v2_TransitPreferences_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_TransitPreferences_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_TransitPreferences_descriptor, - new java.lang.String[] { "AllowedTravelModes", "RoutingPreference", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java deleted file mode 100644 index 70dda95e97f3..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/TransitProto.java +++ /dev/null @@ -1,113 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/transit.proto - -package com.google.maps.routing.v2; - -public final class TransitProto { - private TransitProto() {} - 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_maps_routing_v2_TransitAgency_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_TransitAgency_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_TransitLine_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_TransitLine_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_TransitStop_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_TransitStop_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_maps_routing_v2_TransitVehicle_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_TransitVehicle_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/maps/routing/v2/transit.proto\022\026" + - "google.maps.routing.v2\032%google/maps/rout" + - "ing/v2/location.proto\032 google/type/local" + - "ized_text.proto\"@\n\rTransitAgency\022\014\n\004name" + - "\030\001 \001(\t\022\024\n\014phone_number\030\002 \001(\t\022\013\n\003uri\030\003 \001(" + - "\t\"\343\001\n\013TransitLine\0227\n\010agencies\030\001 \003(\0132%.go" + - "ogle.maps.routing.v2.TransitAgency\022\014\n\004na" + - "me\030\002 \001(\t\022\013\n\003uri\030\003 \001(\t\022\r\n\005color\030\004 \001(\t\022\020\n\010" + - "icon_uri\030\005 \001(\t\022\022\n\nname_short\030\006 \001(\t\022\022\n\nte" + - "xt_color\030\007 \001(\t\0227\n\007vehicle\030\010 \001(\0132&.google" + - ".maps.routing.v2.TransitVehicle\"O\n\013Trans" + - "itStop\022\014\n\004name\030\001 \001(\t\0222\n\010location\030\002 \001(\0132 " + - ".google.maps.routing.v2.Location\"\375\003\n\016Tra" + - "nsitVehicle\022(\n\004name\030\001 \001(\0132\032.google.type." + - "LocalizedText\022G\n\004type\030\002 \001(\01629.google.map" + - "s.routing.v2.TransitVehicle.TransitVehic" + - "leType\022\020\n\010icon_uri\030\003 \001(\t\022\026\n\016local_icon_u" + - "ri\030\004 \001(\t\"\315\002\n\022TransitVehicleType\022$\n TRANS" + - "IT_VEHICLE_TYPE_UNSPECIFIED\020\000\022\007\n\003BUS\020\001\022\r" + - "\n\tCABLE_CAR\020\002\022\022\n\016COMMUTER_TRAIN\020\003\022\t\n\005FER" + - "RY\020\004\022\r\n\tFUNICULAR\020\005\022\020\n\014GONDOLA_LIFT\020\006\022\016\n" + - "\nHEAVY_RAIL\020\007\022\024\n\020HIGH_SPEED_TRAIN\020\010\022\021\n\rI" + - "NTERCITY_BUS\020\t\022\027\n\023LONG_DISTANCE_TRAIN\020\n\022" + - "\016\n\nMETRO_RAIL\020\013\022\014\n\010MONORAIL\020\014\022\t\n\005OTHER\020\r" + - "\022\010\n\004RAIL\020\016\022\016\n\nSHARE_TAXI\020\017\022\n\n\006SUBWAY\020\020\022\010" + - "\n\004TRAM\020\021\022\016\n\nTROLLEYBUS\020\022B\301\001\n\032com.google." + - "maps.routing.v2B\014TransitProtoP\001Z:cloud.g" + - "oogle.com/go/maps/routing/apiv2/routingp" + - "b;routingpb\370\001\001\242\002\005GMRV2\252\002\026Google.Maps.Rou" + - "ting.V2\312\002\026Google\\Maps\\Routing\\V2\352\002\031Googl" + - "e::Maps::Routing::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.maps.routing.v2.LocationProto.getDescriptor(), - com.google.type.LocalizedTextProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_TransitAgency_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_TransitAgency_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_TransitAgency_descriptor, - new java.lang.String[] { "Name", "PhoneNumber", "Uri", }); - internal_static_google_maps_routing_v2_TransitLine_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_maps_routing_v2_TransitLine_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_TransitLine_descriptor, - new java.lang.String[] { "Agencies", "Name", "Uri", "Color", "IconUri", "NameShort", "TextColor", "Vehicle", }); - internal_static_google_maps_routing_v2_TransitStop_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_maps_routing_v2_TransitStop_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_TransitStop_descriptor, - new java.lang.String[] { "Name", "Location", }); - internal_static_google_maps_routing_v2_TransitVehicle_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_maps_routing_v2_TransitVehicle_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_TransitVehicle_descriptor, - new java.lang.String[] { "Name", "Type", "IconUri", "LocalIconUri", }); - com.google.maps.routing.v2.LocationProto.getDescriptor(); - com.google.type.LocalizedTextProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java deleted file mode 100644 index ecc013cce1e0..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/UnitsProto.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/units.proto - -package com.google.maps.routing.v2; - -public final class UnitsProto { - private UnitsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - 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/maps/routing/v2/units.proto\022\026go" + - "ogle.maps.routing.v2*8\n\005Units\022\025\n\021UNITS_U" + - "NSPECIFIED\020\000\022\n\n\006METRIC\020\001\022\014\n\010IMPERIAL\020\002B\277" + - "\001\n\032com.google.maps.routing.v2B\nUnitsProt" + - "oP\001Z:cloud.google.com/go/maps/routing/ap" + - "iv2/routingpb;routingpb\370\001\001\242\002\005GMRV2\252\002\026Goo" + - "gle.Maps.Routing.V2\312\002\026Google\\Maps\\Routin" + - "g\\V2\352\002\031Google::Maps::Routing::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java deleted file mode 100644 index 038f14f02931..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleEmissionTypeProto.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/vehicle_emission_type.proto - -package com.google.maps.routing.v2; - -public final class VehicleEmissionTypeProto { - private VehicleEmissionTypeProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/maps/routing/v2/vehicle_emissio" + - "n_type.proto\022\026google.maps.routing.v2*p\n\023" + - "VehicleEmissionType\022%\n!VEHICLE_EMISSION_" + - "TYPE_UNSPECIFIED\020\000\022\014\n\010GASOLINE\020\001\022\014\n\010ELEC" + - "TRIC\020\002\022\n\n\006HYBRID\020\003\022\n\n\006DIESEL\020\004B\315\001\n\032com.g" + - "oogle.maps.routing.v2B\030VehicleEmissionTy" + - "peProtoP\001Z:cloud.google.com/go/maps/rout" + - "ing/apiv2/routingpb;routingpb\370\001\001\242\002\005GMRV2" + - "\252\002\026Google.Maps.Routing.V2\312\002\026Google\\Maps\\" + - "Routing\\V2\352\002\031Google::Maps::Routing::V2b\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java deleted file mode 100644 index 1737fd5d3796..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/VehicleInfoProto.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/vehicle_info.proto - -package com.google.maps.routing.v2; - -public final class VehicleInfoProto { - private VehicleInfoProto() {} - 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_maps_routing_v2_VehicleInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_VehicleInfo_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/maps/routing/v2/vehicle_info.pr" + - "oto\022\026google.maps.routing.v2\0322google/maps" + - "/routing/v2/vehicle_emission_type.proto\"" + - "Q\n\013VehicleInfo\022B\n\remission_type\030\002 \001(\0162+." + - "google.maps.routing.v2.VehicleEmissionTy" + - "peB\305\001\n\032com.google.maps.routing.v2B\020Vehic" + - "leInfoProtoP\001Z:cloud.google.com/go/maps/" + - "routing/apiv2/routingpb;routingpb\370\001\001\242\002\005G" + - "MRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\M" + - "aps\\Routing\\V2\352\002\031Google::Maps::Routing::" + - "V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.maps.routing.v2.VehicleEmissionTypeProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_VehicleInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_VehicleInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_VehicleInfo_descriptor, - new java.lang.String[] { "EmissionType", }); - com.google.maps.routing.v2.VehicleEmissionTypeProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java b/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java deleted file mode 100644 index 77e55dec69b4..000000000000 --- a/owl-bot-staging/java-maps-routing/v2/proto-google-maps-routing-v2/src/main/java/com/google/maps/routing/v2/WaypointProto.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/maps/routing/v2/waypoint.proto - -package com.google.maps.routing.v2; - -public final class WaypointProto { - private WaypointProto() {} - 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_maps_routing_v2_Waypoint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_maps_routing_v2_Waypoint_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/maps/routing/v2/waypoint.proto\022" + - "\026google.maps.routing.v2\032%google/maps/rou" + - "ting/v2/location.proto\"\265\001\n\010Waypoint\0224\n\010l" + - "ocation\030\001 \001(\0132 .google.maps.routing.v2.L" + - "ocationH\000\022\022\n\010place_id\030\002 \001(\tH\000\022\021\n\007address" + - "\030\007 \001(\tH\000\022\013\n\003via\030\003 \001(\010\022\030\n\020vehicle_stopove" + - "r\030\004 \001(\010\022\024\n\014side_of_road\030\005 \001(\010B\017\n\rlocatio" + - "n_typeB\302\001\n\032com.google.maps.routing.v2B\rW" + - "aypointProtoP\001Z:cloud.google.com/go/maps" + - "/routing/apiv2/routingpb;routingpb\370\001\001\242\002\005" + - "GMRV2\252\002\026Google.Maps.Routing.V2\312\002\026Google\\" + - "Maps\\Routing\\V2\352\002\031Google::Maps::Routing:" + - ":V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.maps.routing.v2.LocationProto.getDescriptor(), - }); - internal_static_google_maps_routing_v2_Waypoint_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_maps_routing_v2_Waypoint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_maps_routing_v2_Waypoint_descriptor, - new java.lang.String[] { "Location", "PlaceId", "Address", "Via", "VehicleStopover", "SideOfRoad", "LocationType", }); - com.google.maps.routing.v2.LocationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}