From 43bfb4b2cd449f056c1bc3e2b0635043385b3d85 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Fri, 1 Dec 2023 00:04:16 +0000
Subject: [PATCH] fix(deps): [Many APIs] Update the Java code generator
(gapic-generator-java) to 2.30.0 (#10098)
- [ ] Regenerate this pull request now.
PiperOrigin-RevId: 586734351
Source-Link: https://togithub.com/googleapis/googleapis/commit/5fa9214bb886e75f7bb80624dc3897cfcc013659
Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/3d5069b1de6cb9106b55ce4521b9b749a0e6a395
Copy-Tag: eyJwIjoiamF2YS1pYW0tYWRtaW4vLk93bEJvdC55YW1sIiwiaCI6IjNkNTA2OWIxZGU2Y2I5MTA2YjU1Y2U0NTIxYjliNzQ5YTBlNmEzOTUifQ==
Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6IjNkNTA2OWIxZGU2Y2I5MTA2YjU1Y2U0NTIxYjliNzQ5YTBlNmEzOTUifQ==
Copy-Tag: eyJwIjoiamF2YS1pYW1jcmVkZW50aWFscy8uT3dsQm90LnlhbWwiLCJoIjoiM2Q1MDY5YjFkZTZjYjkxMDZiNTVjZTQ1MjFiOWI3NDlhMGU2YTM5NSJ9
Copy-Tag: eyJwIjoiamF2YS1pZHMvLk93bEJvdC55YW1sIiwiaCI6IjNkNTA2OWIxZGU2Y2I5MTA2YjU1Y2U0NTIxYjliNzQ5YTBlNmEzOTUifQ==
Copy-Tag: eyJwIjoiamF2YS1pbmZyYS1tYW5hZ2VyLy5Pd2xCb3QueWFtbCIsImgiOiIzZDUwNjliMWRlNmNiOTEwNmI1NWNlNDUyMWI5Yjc0OWEwZTZhMzk1In0=
Copy-Tag: eyJwIjoiamF2YS1pb3QvLk93bEJvdC55YW1sIiwiaCI6IjNkNTA2OWIxZGU2Y2I5MTA2YjU1Y2U0NTIxYjliNzQ5YTBlNmEzOTUifQ==
Copy-Tag: eyJwIjoiamF2YS1rbXMvLk93bEJvdC55YW1sIiwiaCI6IjNkNTA2OWIxZGU2Y2I5MTA2YjU1Y2U0NTIxYjliNzQ5YTBlNmEzOTUifQ==
Copy-Tag: eyJwIjoiamF2YS1rbXNpbnZlbnRvcnkvLk93bEJvdC55YW1sIiwiaCI6IjNkNTA2OWIxZGU2Y2I5MTA2YjU1Y2U0NTIxYjliNzQ5YTBlNmEzOTUifQ==
Copy-Tag: eyJwIjoiamF2YS1sYW5ndWFnZS8uT3dsQm90LnlhbWwiLCJoIjoiM2Q1MDY5YjFkZTZjYjkxMDZiNTVjZTQ1MjFiOWI3NDlhMGU2YTM5NSJ9
Copy-Tag: eyJwIjoiamF2YS1saWZlLXNjaWVuY2VzLy5Pd2xCb3QueWFtbCIsImgiOiIzZDUwNjliMWRlNmNiOTEwNmI1NWNlNDUyMWI5Yjc0OWEwZTZhMzk1In0=
Copy-Tag: eyJwIjoiamF2YS1tYW5hZ2VkLWlkZW50aXRpZXMvLk93bEJvdC55YW1sIiwiaCI6IjNkNTA2OWIxZGU2Y2I5MTA2YjU1Y2U0NTIxYjliNzQ5YTBlNmEzOTUifQ==
Copy-Tag: eyJwIjoiamF2YS1tYXBzLWFkZHJlc3N2YWxpZGF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiIzZDUwNjliMWRlNmNiOTEwNmI1NWNlNDUyMWI5Yjc0OWEwZTZhMzk1In0=
Copy-Tag: eyJwIjoiamF2YS1tYXBzLW1hcHNwbGF0Zm9ybWRhdGFzZXRzLy5Pd2xCb3QueWFtbCIsImgiOiIzZDUwNjliMWRlNmNiOTEwNmI1NWNlNDUyMWI5Yjc0OWEwZTZhMzk1In0=
Copy-Tag: eyJwIjoiamF2YS1tYXBzLXBsYWNlcy8uT3dsQm90LnlhbWwiLCJoIjoiM2Q1MDY5YjFkZTZjYjkxMDZiNTVjZTQ1MjFiOWI3NDlhMGU2YTM5NSJ9
Copy-Tag: eyJwIjoiamF2YS1tYXBzLXJvdXRpbmcvLk93bEJvdC55YW1sIiwiaCI6IjNkNTA2OWIxZGU2Y2I5MTA2YjU1Y2U0NTIxYjliNzQ5YTBlNmEzOTUifQ==
Copy-Tag: eyJwIjoiamF2YS1tZWRpYXRyYW5zbGF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiIzZDUwNjliMWRlNmNiOTEwNmI1NWNlNDUyMWI5Yjc0OWEwZTZhMzk1In0=
Copy-Tag: eyJwIjoiamF2YS1tZW1jYWNoZS8uT3dsQm90LnlhbWwiLCJoIjoiM2Q1MDY5YjFkZTZjYjkxMDZiNTVjZTQ1MjFiOWI3NDlhMGU2YTM5NSJ9
Copy-Tag: eyJwIjoiamF2YS1taWdyYXRpb25jZW50ZXIvLk93bEJvdC55YW1sIiwiaCI6IjNkNTA2OWIxZGU2Y2I5MTA2YjU1Y2U0NTIxYjliNzQ5YTBlNmEzOTUifQ==
Copy-Tag: eyJwIjoiamF2YS1tb25pdG9yaW5nLWRhc2hib2FyZHMvLk93bEJvdC55YW1sIiwiaCI6IjNkNTA2OWIxZGU2Y2I5MTA2YjU1Y2U0NTIxYjliNzQ5YTBlNmEzOTUifQ==
Copy-Tag: eyJwIjoiamF2YS1tb25pdG9yaW5nLW1ldHJpY3NzY29wZS8uT3dsQm90LnlhbWwiLCJoIjoiM2Q1MDY5YjFkZTZjYjkxMDZiNTVjZTQ1MjFiOWI3NDlhMGU2YTM5NSJ9
BEGIN_NESTED_COMMIT
fix(deps): [Many APIs] Update the Java code generator (gapic-generator-java) to 2.30.0
PiperOrigin-RevId: 586674624
Source-Link: https://togithub.com/googleapis/googleapis/commit/53ff6ca415214bad38df2bae80a3840468065e8a
Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/07fedaca77917547e1d29bbe7ebfdcb6ebe562b0
Copy-Tag: eyJwIjoiamF2YS1pYW0tYWRtaW4vLk93bEJvdC55YW1sIiwiaCI6IjA3ZmVkYWNhNzc5MTc1NDdlMWQyOWJiZTdlYmZkY2I2ZWJlNTYyYjAifQ==
Copy-Tag: eyJwIjoiamF2YS1pYW0vLk93bEJvdC55YW1sIiwiaCI6IjA3ZmVkYWNhNzc5MTc1NDdlMWQyOWJiZTdlYmZkY2I2ZWJlNTYyYjAifQ==
Copy-Tag: eyJwIjoiamF2YS1pYW1jcmVkZW50aWFscy8uT3dsQm90LnlhbWwiLCJoIjoiMDdmZWRhY2E3NzkxNzU0N2UxZDI5YmJlN2ViZmRjYjZlYmU1NjJiMCJ9
Copy-Tag: eyJwIjoiamF2YS1pZHMvLk93bEJvdC55YW1sIiwiaCI6IjA3ZmVkYWNhNzc5MTc1NDdlMWQyOWJiZTdlYmZkY2I2ZWJlNTYyYjAifQ==
Copy-Tag: eyJwIjoiamF2YS1pbmZyYS1tYW5hZ2VyLy5Pd2xCb3QueWFtbCIsImgiOiIwN2ZlZGFjYTc3OTE3NTQ3ZTFkMjliYmU3ZWJmZGNiNmViZTU2MmIwIn0=
Copy-Tag: eyJwIjoiamF2YS1pb3QvLk93bEJvdC55YW1sIiwiaCI6IjA3ZmVkYWNhNzc5MTc1NDdlMWQyOWJiZTdlYmZkY2I2ZWJlNTYyYjAifQ==
Copy-Tag: eyJwIjoiamF2YS1rbXMvLk93bEJvdC55YW1sIiwiaCI6IjA3ZmVkYWNhNzc5MTc1NDdlMWQyOWJiZTdlYmZkY2I2ZWJlNTYyYjAifQ==
Copy-Tag: eyJwIjoiamF2YS1rbXNpbnZlbnRvcnkvLk93bEJvdC55YW1sIiwiaCI6IjA3ZmVkYWNhNzc5MTc1NDdlMWQyOWJiZTdlYmZkY2I2ZWJlNTYyYjAifQ==
Copy-Tag: eyJwIjoiamF2YS1sYW5ndWFnZS8uT3dsQm90LnlhbWwiLCJoIjoiMDdmZWRhY2E3NzkxNzU0N2UxZDI5YmJlN2ViZmRjYjZlYmU1NjJiMCJ9
Copy-Tag: eyJwIjoiamF2YS1saWZlLXNjaWVuY2VzLy5Pd2xCb3QueWFtbCIsImgiOiIwN2ZlZGFjYTc3OTE3NTQ3ZTFkMjliYmU3ZWJmZGNiNmViZTU2MmIwIn0=
Copy-Tag: eyJwIjoiamF2YS1tYW5hZ2VkLWlkZW50aXRpZXMvLk93bEJvdC55YW1sIiwiaCI6IjA3ZmVkYWNhNzc5MTc1NDdlMWQyOWJiZTdlYmZkY2I2ZWJlNTYyYjAifQ==
Copy-Tag: eyJwIjoiamF2YS1tYXBzLWFkZHJlc3N2YWxpZGF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiIwN2ZlZGFjYTc3OTE3NTQ3ZTFkMjliYmU3ZWJmZGNiNmViZTU2MmIwIn0=
Copy-Tag: eyJwIjoiamF2YS1tYXBzLW1hcHNwbGF0Zm9ybWRhdGFzZXRzLy5Pd2xCb3QueWFtbCIsImgiOiIwN2ZlZGFjYTc3OTE3NTQ3ZTFkMjliYmU3ZWJmZGNiNmViZTU2MmIwIn0=
Copy-Tag: eyJwIjoiamF2YS1tYXBzLXBsYWNlcy8uT3dsQm90LnlhbWwiLCJoIjoiMDdmZWRhY2E3NzkxNzU0N2UxZDI5YmJlN2ViZmRjYjZlYmU1NjJiMCJ9
Copy-Tag: eyJwIjoiamF2YS1tYXBzLXJvdXRpbmcvLk93bEJvdC55YW1sIiwiaCI6IjA3ZmVkYWNhNzc5MTc1NDdlMWQyOWJiZTdlYmZkY2I2ZWJlNTYyYjAifQ==
Copy-Tag: eyJwIjoiamF2YS1tZWRpYXRyYW5zbGF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiIwN2ZlZGFjYTc3OTE3NTQ3ZTFkMjliYmU3ZWJmZGNiNmViZTU2MmIwIn0=
Copy-Tag: eyJwIjoiamF2YS1tZW1jYWNoZS8uT3dsQm90LnlhbWwiLCJoIjoiMDdmZWRhY2E3NzkxNzU0N2UxZDI5YmJlN2ViZmRjYjZlYmU1NjJiMCJ9
Copy-Tag: eyJwIjoiamF2YS1taWdyYXRpb25jZW50ZXIvLk93bEJvdC55YW1sIiwiaCI6IjA3ZmVkYWNhNzc5MTc1NDdlMWQyOWJiZTdlYmZkY2I2ZWJlNTYyYjAifQ==
Copy-Tag: eyJwIjoiamF2YS1tb25pdG9yaW5nLWRhc2hib2FyZHMvLk93bEJvdC55YW1sIiwiaCI6IjA3ZmVkYWNhNzc5MTc1NDdlMWQyOWJiZTdlYmZkY2I2ZWJlNTYyYjAifQ==
Copy-Tag: eyJwIjoiamF2YS1tb25pdG9yaW5nLW1ldHJpY3NzY29wZS8uT3dsQm90LnlhbWwiLCJoIjoiMDdmZWRhY2E3NzkxNzU0N2UxZDI5YmJlN2ViZmRjYjZlYmU1NjJiMCJ9
END_NESTED_COMMIT
---
java-iam-admin/README.md | 4 +-
java-iam/README.md | 4 +-
java-iamcredentials/README.md | 4 +-
java-ids/README.md | 4 +-
java-infra-manager/README.md | 4 +-
java-iot/README.md | 4 +-
java-kms/README.md | 4 +-
java-kmsinventory/README.md | 4 +-
java-language/README.md | 4 +-
java-life-sciences/README.md | 4 +-
java-managed-identities/README.md | 4 +-
java-maps-addressvalidation/README.md | 10 +-
java-maps-places/README.md | 8 +-
.../google/maps/places/v1/PlacesClient.java | 330 +-
.../google/maps/places/v1/PlacesSettings.java | 37 +-
.../google/maps/places/v1/gapic_metadata.json | 9 +
.../google/maps/places/v1/package-info.java | 26 +-
.../maps/places/v1/stub/GrpcPlacesStub.java | 86 +
.../places/v1/stub/HttpJsonPlacesStub.java | 176 +-
.../maps/places/v1/stub/PlacesStub.java | 18 +
.../places/v1/stub/PlacesStubSettings.java | 80 +-
.../reflect-config.json | 1703 +
.../google/maps/places/v1/MockPlacesImpl.java | 62 +
.../places/v1/PlacesClientHttpJsonTest.java | 359 +-
.../maps/places/v1/PlacesClientTest.java | 341 +-
.../com/google/maps/places/v1/PlacesGrpc.java | 366 +-
.../maps/places/v1/AttributionProto.java | 77 +
.../maps/places/v1/AuthorAttribution.java | 1019 +
.../places/v1/AuthorAttributionOrBuilder.java | 108 +
.../com/google/maps/places/v1/Circle.java | 81 +-
.../maps/places/v1/CircleOrBuilder.java | 19 +-
.../maps/places/v1/EVChargeOptions.java | 2623 ++
.../places/v1/EVChargeOptionsOrBuilder.java | 110 +
.../maps/places/v1/EVConnectorType.java | 345 +
.../maps/places/v1/EvChargingProto.java | 108 +
.../google/maps/places/v1/FuelOptions.java | 2669 ++
.../maps/places/v1/FuelOptionsOrBuilder.java | 82 +
.../maps/places/v1/FuelOptionsProto.java | 97 +
.../google/maps/places/v1/GeometryProto.java | 14 +-
.../maps/places/v1/GetPhotoMediaRequest.java | 1022 +
.../v1/GetPhotoMediaRequestOrBuilder.java | 120 +
.../maps/places/v1/GetPlaceRequest.java | 1092 +
.../places/v1/GetPlaceRequestOrBuilder.java | 130 +
.../java/com/google/maps/places/v1/Photo.java | 1369 +
.../v1/{Int32Range.java => PhotoMedia.java} | 466 +-
.../google/maps/places/v1/PhotoMediaName.java | 193 +
...rBuilder.java => PhotoMediaOrBuilder.java} | 38 +-
.../google/maps/places/v1/PhotoOrBuilder.java | 142 +
.../com/google/maps/places/v1/PhotoProto.java | 87 +
.../java/com/google/maps/places/v1/Place.java | 33446 +++++++++-------
.../com/google/maps/places/v1/PlaceName.java | 168 +
.../google/maps/places/v1/PlaceOrBuilder.java | 1381 +-
.../com/google/maps/places/v1/PlaceProto.java | 435 +-
.../maps/places/v1/PlacesServiceProto.java | 223 +-
.../com/google/maps/places/v1/PriceLevel.java | 70 +-
.../com/google/maps/places/v1/Review.java | 2076 +
.../maps/places/v1/ReviewOrBuilder.java | 258 +
.../google/maps/places/v1/ReviewProto.java | 103 +
.../maps/places/v1/SearchNearbyRequest.java | 4219 ++
.../v1/SearchNearbyRequestOrBuilder.java | 584 +
.../maps/places/v1/SearchNearbyResponse.java | 952 +
.../v1/SearchNearbyResponseOrBuilder.java | 81 +
.../maps/places/v1/SearchTextRequest.java | 2282 +-
.../places/v1/SearchTextRequestOrBuilder.java | 131 +-
.../maps/places/v1/SearchTextResponse.java | 5 -
.../google/maps/places/v1/attribution.proto | 46 +
.../google/maps/places/v1/ev_charging.proto | 111 +
.../google/maps/places/v1/fuel_options.proto | 109 +
.../google/maps/places/v1/geometry.proto | 10 +-
.../proto/google/maps/places/v1/photo.proto | 55 +
.../proto/google/maps/places/v1/place.proto | 595 +-
.../maps/places/v1/places_service.proto | 295 +-
.../proto/google/maps/places/v1/review.proto | 72 +
.../getphotomedia/AsyncGetPhotoMedia.java | 52 +
.../getphotomedia/SyncGetPhotoMedia.java | 49 +
.../SyncGetPhotoMediaPhotomedianame.java | 42 +
.../SyncGetPhotoMediaString.java | 42 +
.../v1/places/getplace/AsyncGetPlace.java | 51 +
.../v1/places/getplace/SyncGetPlace.java | 48 +
.../getplace/SyncGetPlacePlacename.java | 42 +
.../places/getplace/SyncGetPlaceString.java | 42 +
.../searchnearby/AsyncSearchNearby.java | 57 +
.../places/searchnearby/SyncSearchNearby.java | 53 +
.../v1/places/searchtext/AsyncSearchText.java | 3 -
.../v1/places/searchtext/SyncSearchText.java | 3 -
.../SyncSearchNearby.java} | 14 +-
.../SyncSearchNearby.java} | 14 +-
java-maps-routing/README.md | 10 +-
java-mediatranslation/README.md | 4 +-
java-memcache/README.md | 4 +-
java-migrationcenter/README.md | 4 +-
java-monitoring-dashboards/README.md | 4 +-
java-monitoring-metricsscope/README.md | 4 +-
93 files changed, 46524 insertions(+), 17391 deletions(-)
create mode 100644 java-maps-places/google-maps-places/src/main/resources/META-INF/native-image/com.google.maps.places.v1/reflect-config.json
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AttributionProto.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AuthorAttribution.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/AuthorAttributionOrBuilder.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/EVChargeOptions.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/EVChargeOptionsOrBuilder.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/EVConnectorType.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/EvChargingProto.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/FuelOptions.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/FuelOptionsOrBuilder.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/FuelOptionsProto.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/GetPhotoMediaRequest.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/GetPhotoMediaRequestOrBuilder.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/GetPlaceRequest.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/GetPlaceRequestOrBuilder.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Photo.java
rename java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/{Int32Range.java => PhotoMedia.java} (51%)
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PhotoMediaName.java
rename java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/{Int32RangeOrBuilder.java => PhotoMediaOrBuilder.java} (54%)
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PhotoOrBuilder.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PhotoProto.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/PlaceName.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Review.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewOrBuilder.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/ReviewProto.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/SearchNearbyRequest.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/SearchNearbyRequestOrBuilder.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/SearchNearbyResponse.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/SearchNearbyResponseOrBuilder.java
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/attribution.proto
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/ev_charging.proto
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/fuel_options.proto
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/photo.proto
create mode 100644 java-maps-places/proto-google-maps-places-v1/src/main/proto/google/maps/places/v1/review.proto
create mode 100644 java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/getphotomedia/AsyncGetPhotoMedia.java
create mode 100644 java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/getphotomedia/SyncGetPhotoMedia.java
create mode 100644 java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/getphotomedia/SyncGetPhotoMediaPhotomedianame.java
create mode 100644 java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/getphotomedia/SyncGetPhotoMediaString.java
create mode 100644 java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/getplace/AsyncGetPlace.java
create mode 100644 java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/getplace/SyncGetPlace.java
create mode 100644 java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/getplace/SyncGetPlacePlacename.java
create mode 100644 java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/getplace/SyncGetPlaceString.java
create mode 100644 java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/searchnearby/AsyncSearchNearby.java
create mode 100644 java-maps-places/samples/snippets/generated/com/google/maps/places/v1/places/searchnearby/SyncSearchNearby.java
rename java-maps-places/samples/snippets/generated/com/google/maps/places/v1/placessettings/{searchtext/SyncSearchText.java => searchnearby/SyncSearchNearby.java} (83%)
rename java-maps-places/samples/snippets/generated/com/google/maps/places/v1/stub/placesstubsettings/{searchtext/SyncSearchText.java => searchnearby/SyncSearchNearby.java} (83%)
diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md
index f741f89f4cbd..a4d12827ed2b 100644
--- a/java-iam-admin/README.md
+++ b/java-iam-admin/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods. Sample code to get started:
@@ -38,23 +41,18 @@
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (PlacesClient placesClient = PlacesClient.create()) {
- * SearchTextRequest request =
- * SearchTextRequest.newBuilder()
- * .setTextQuery("textQuery-1050470501")
+ * SearchNearbyRequest request =
+ * SearchNearbyRequest.newBuilder()
* .setLanguageCode("languageCode-2092349083")
* .setRegionCode("regionCode-1991004415")
- * .setLocation(SearchTextRequest.Location.newBuilder().build())
- * .setIncludedType("includedType-45971946")
- * .setOpenNow(true)
- * .setPriceRange(Int32Range.newBuilder().build())
- * .setMinRating(-543315926)
+ * .addAllIncludedTypes(new ArrayList Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
* build() is called, the tree of builders is called to create the complete settings object.
*
- * For example, to set the total timeout of searchText to 30 seconds:
+ * For example, to set the total timeout of searchNearby to 30 seconds:
*
* ======================= PlacesClient =======================
*
- * Service Description: Service definition for the Places API.
+ * Service Description: Service definition for the Places API. Note: every request actually
+ * requires a field mask set outside of the request proto (all/'*' is not assumed). That can be
+ * set via either a side channel (SystemParameterContext) over RPC, or a header (X-Goog-FieldMask)
+ * over HTTP. See: https://cloud.google.com/apis/docs/system-parameters
*
* Sample for PlacesClient:
*
@@ -32,23 +35,18 @@
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (PlacesClient placesClient = PlacesClient.create()) {
- * SearchTextRequest request =
- * SearchTextRequest.newBuilder()
- * .setTextQuery("textQuery-1050470501")
+ * SearchNearbyRequest request =
+ * SearchNearbyRequest.newBuilder()
* .setLanguageCode("languageCode-2092349083")
* .setRegionCode("regionCode-1991004415")
- * .setLocation(SearchTextRequest.Location.newBuilder().build())
- * .setIncludedType("includedType-45971946")
- * .setOpenNow(true)
- * .setPriceRange(Int32Range.newBuilder().build())
- * .setMinRating(-543315926)
+ * .addAllIncludedTypes(new ArrayList The builder of this class is recursive, so contained classes are themselves builders. When
* build() is called, the tree of builders is called to create the complete settings object.
*
- * For example, to set the total timeout of searchText to 30 seconds:
+ * For example, to set the total timeout of searchNearby to 30 seconds:
*
* {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlacesClient placesClient = PlacesClient.create()) {
+ * SearchNearbyRequest request =
+ * SearchNearbyRequest.newBuilder()
+ * .setLanguageCode("languageCode-2092349083")
+ * .setRegionCode("regionCode-1991004415")
+ * .addAllIncludedTypes(new ArrayList
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchNearbyResponse searchNearby(SearchNearbyRequest request) {
+ return searchNearbyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Search for places near locations.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlacesClient placesClient = PlacesClient.create()) {
+ * SearchNearbyRequest request =
+ * SearchNearbyRequest.newBuilder()
+ * .setLanguageCode("languageCode-2092349083")
+ * .setRegionCode("regionCode-1991004415")
+ * .addAllIncludedTypes(new ArrayList
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlacesClient placesClient = PlacesClient.create()) {
+ * PhotoMediaName name = PhotoMediaName.of("[PLACE_ID]", "[PHOTO_REFERENCE]");
+ * PhotoMedia response = placesClient.getPhotoMedia(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of a photo. It is returned in Place's photos.name
+ * field. Format: places/<place_id>/photos/<photo_reference>/media.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PhotoMedia getPhotoMedia(PhotoMediaName name) {
+ GetPhotoMediaRequest request =
+ GetPhotoMediaRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getPhotoMedia(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a photo media with a photo reference string.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlacesClient placesClient = PlacesClient.create()) {
+ * String name = PhotoMediaName.of("[PLACE_ID]", "[PHOTO_REFERENCE]").toString();
+ * PhotoMedia response = placesClient.getPhotoMedia(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of a photo. It is returned in Place's photos.name
+ * field. Format: places/<place_id>/photos/<photo_reference>/media.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PhotoMedia getPhotoMedia(String name) {
+ GetPhotoMediaRequest request = GetPhotoMediaRequest.newBuilder().setName(name).build();
+ return getPhotoMedia(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a photo media with a photo reference string.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlacesClient placesClient = PlacesClient.create()) {
+ * GetPhotoMediaRequest request =
+ * GetPhotoMediaRequest.newBuilder()
+ * .setName(PhotoMediaName.of("[PLACE_ID]", "[PHOTO_REFERENCE]").toString())
+ * .setMaxWidthPx(-428899428)
+ * .setMaxHeightPx(-1974259963)
+ * .setSkipHttpRedirect(true)
+ * .build();
+ * PhotoMedia response = placesClient.getPhotoMedia(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PhotoMedia getPhotoMedia(GetPhotoMediaRequest request) {
+ return getPhotoMediaCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a photo media with a photo reference string.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlacesClient placesClient = PlacesClient.create()) {
+ * GetPhotoMediaRequest request =
+ * GetPhotoMediaRequest.newBuilder()
+ * .setName(PhotoMediaName.of("[PLACE_ID]", "[PHOTO_REFERENCE]").toString())
+ * .setMaxWidthPx(-428899428)
+ * .setMaxHeightPx(-1974259963)
+ * .setSkipHttpRedirect(true)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlacesClient placesClient = PlacesClient.create()) {
+ * PlaceName name = PlaceName.of("[PLACE_ID]");
+ * Place response = placesClient.getPlace(name);
+ * }
+ * }
+ *
+ * @param name Required. A place_id returned in a Place (with "places/" prefix), or equivalently
+ * the name in the same Place. Format: places/<place_id>.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Place getPlace(PlaceName name) {
+ GetPlaceRequest request =
+ GetPlaceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getPlace(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a Place with a place id (in a name) string.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlacesClient placesClient = PlacesClient.create()) {
+ * String name = PlaceName.of("[PLACE_ID]").toString();
+ * Place response = placesClient.getPlace(name);
+ * }
+ * }
+ *
+ * @param name Required. A place_id returned in a Place (with "places/" prefix), or equivalently
+ * the name in the same Place. Format: places/<place_id>.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Place getPlace(String name) {
+ GetPlaceRequest request = GetPlaceRequest.newBuilder().setName(name).build();
+ return getPlace(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a Place with a place id (in a name) string.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlacesClient placesClient = PlacesClient.create()) {
+ * GetPlaceRequest request =
+ * GetPlaceRequest.newBuilder()
+ * .setName(PlaceName.of("[PLACE_ID]").toString())
+ * .setLanguageCode("languageCode-2092349083")
+ * .setRegionCode("regionCode-1991004415")
+ * .build();
+ * Place response = placesClient.getPlace(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Place getPlace(GetPlaceRequest request) {
+ return getPlaceCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get a Place with a place id (in a name) string.
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (PlacesClient placesClient = PlacesClient.create()) {
+ * GetPlaceRequest request =
+ * GetPlaceRequest.newBuilder()
+ * .setName(PlaceName.of("[PLACE_ID]").toString())
+ * .setLanguageCode("languageCode-2092349083")
+ * .setRegionCode("regionCode-1991004415")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -57,10 +57,10 @@
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* PlacesSettings.Builder placesSettingsBuilder = PlacesSettings.newBuilder();
* placesSettingsBuilder
- * .searchTextSettings()
+ * .searchNearbySettings()
* .setRetrySettings(
* placesSettingsBuilder
- * .searchTextSettings()
+ * .searchNearbySettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
@@ -71,11 +71,26 @@
@Generated("by gapic-generator-java")
public class PlacesSettings extends ClientSettings
*/
diff --git a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/GrpcPlacesStub.java b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/GrpcPlacesStub.java
index d41d9ea50c63..4fe09d9c7ec5 100644
--- a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/GrpcPlacesStub.java
+++ b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/GrpcPlacesStub.java
@@ -21,8 +21,15 @@
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.longrunning.stub.GrpcOperationsStub;
+import com.google.maps.places.v1.GetPhotoMediaRequest;
+import com.google.maps.places.v1.GetPlaceRequest;
+import com.google.maps.places.v1.PhotoMedia;
+import com.google.maps.places.v1.Place;
+import com.google.maps.places.v1.SearchNearbyRequest;
+import com.google.maps.places.v1.SearchNearbyResponse;
import com.google.maps.places.v1.SearchTextRequest;
import com.google.maps.places.v1.SearchTextResponse;
import io.grpc.MethodDescriptor;
@@ -39,6 +46,16 @@
*/
@Generated("by gapic-generator-java")
public class GrpcPlacesStub extends PlacesStub {
+ private static final MethodDescriptor{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -69,10 +75,10 @@
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* PlacesStubSettings.Builder placesSettingsBuilder = PlacesStubSettings.newBuilder();
* placesSettingsBuilder
- * .searchTextSettings()
+ * .searchNearbySettings()
* .setRetrySettings(
* placesSettingsBuilder
- * .searchTextSettings()
+ * .searchNearbySettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
@@ -86,13 +92,31 @@ public class PlacesStubSettings extends StubSettings
* Service definition for the Places API.
+ * Note: every request actually requires a field mask set outside of the request
+ * proto (all/'*' is not assumed). That can be set via either a side channel
+ * (SystemParameterContext) over RPC, or a header (X-Goog-FieldMask) over HTTP.
+ * See: https://cloud.google.com/apis/docs/system-parameters
*
*/
@javax.annotation.Generated(
@@ -32,9 +36,53 @@ public final class PlacesGrpc {
private PlacesGrpc() {}
- public static final String SERVICE_NAME = "google.maps.places.v1.Places";
+ public static final java.lang.String SERVICE_NAME = "google.maps.places.v1.Places";
// Static method descriptors that strictly reflect the proto.
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.maps.places.v1.SearchNearbyRequest,
+ com.google.maps.places.v1.SearchNearbyResponse>
+ getSearchNearbyMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "SearchNearby",
+ requestType = com.google.maps.places.v1.SearchNearbyRequest.class,
+ responseType = com.google.maps.places.v1.SearchNearbyResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.maps.places.v1.SearchNearbyRequest,
+ com.google.maps.places.v1.SearchNearbyResponse>
+ getSearchNearbyMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.maps.places.v1.SearchNearbyRequest,
+ com.google.maps.places.v1.SearchNearbyResponse>
+ getSearchNearbyMethod;
+ if ((getSearchNearbyMethod = PlacesGrpc.getSearchNearbyMethod) == null) {
+ synchronized (PlacesGrpc.class) {
+ if ((getSearchNearbyMethod = PlacesGrpc.getSearchNearbyMethod) == null) {
+ PlacesGrpc.getSearchNearbyMethod =
+ getSearchNearbyMethod =
+ io.grpc.MethodDescriptor
+ .
* Service definition for the Places API.
+ * Note: every request actually requires a field mask set outside of the request
+ * proto (all/'*' is not assumed). That can be set via either a side channel
+ * (SystemParameterContext) over RPC, or a header (X-Goog-FieldMask) over HTTP.
+ * See: https://cloud.google.com/apis/docs/system-parameters
*
*/
public interface AsyncService {
+ /**
+ *
+ *
+ *
+ * Search for places near locations.
+ *
+ */
+ default void searchNearby(
+ com.google.maps.places.v1.SearchNearbyRequest request,
+ io.grpc.stub.StreamObserver
+ * Get a photo media with a photo reference string.
+ *
+ */
+ default void getPhotoMedia(
+ com.google.maps.places.v1.GetPhotoMediaRequest request,
+ io.grpc.stub.StreamObserver
+ * Get a Place with a place id (in a name) string.
+ *
+ */
+ default void getPlace(
+ com.google.maps.places.v1.GetPlaceRequest request,
+ io.grpc.stub.StreamObserver
* Service definition for the Places API.
+ * Note: every request actually requires a field mask set outside of the request
+ * proto (all/'*' is not assumed). That can be set via either a side channel
+ * (SystemParameterContext) over RPC, or a header (X-Goog-FieldMask) over HTTP.
+ * See: https://cloud.google.com/apis/docs/system-parameters
*
*/
public abstract static class PlacesImplBase implements io.grpc.BindableService, AsyncService {
@@ -161,6 +340,10 @@ public final io.grpc.ServerServiceDefinition bindService() {
*
*
* Service definition for the Places API.
+ * Note: every request actually requires a field mask set outside of the request
+ * proto (all/'*' is not assumed). That can be set via either a side channel
+ * (SystemParameterContext) over RPC, or a header (X-Goog-FieldMask) over HTTP.
+ * See: https://cloud.google.com/apis/docs/system-parameters
*
*/
public static final class PlacesStub extends io.grpc.stub.AbstractAsyncStub
+ * Search for places near locations.
+ *
+ */
+ public void searchNearby(
+ com.google.maps.places.v1.SearchNearbyRequest request,
+ io.grpc.stub.StreamObserver
+ * Get a photo media with a photo reference string.
+ *
+ */
+ public void getPhotoMedia(
+ com.google.maps.places.v1.GetPhotoMediaRequest request,
+ io.grpc.stub.StreamObserver
+ * Get a Place with a place id (in a name) string.
+ *
+ */
+ public void getPlace(
+ com.google.maps.places.v1.GetPlaceRequest request,
+ io.grpc.stub.StreamObserver
* Service definition for the Places API.
+ * Note: every request actually requires a field mask set outside of the request
+ * proto (all/'*' is not assumed). That can be set via either a side channel
+ * (SystemParameterContext) over RPC, or a header (X-Goog-FieldMask) over HTTP.
+ * See: https://cloud.google.com/apis/docs/system-parameters
*
*/
public static final class PlacesBlockingStub
@@ -207,6 +441,19 @@ protected PlacesBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions
return new PlacesBlockingStub(channel, callOptions);
}
+ /**
+ *
+ *
+ *
+ * Search for places near locations.
+ *
+ */
+ public com.google.maps.places.v1.SearchNearbyResponse searchNearby(
+ com.google.maps.places.v1.SearchNearbyRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getSearchNearbyMethod(), getCallOptions(), request);
+ }
+
/**
*
*
@@ -219,6 +466,32 @@ public com.google.maps.places.v1.SearchTextResponse searchText(
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSearchTextMethod(), getCallOptions(), request);
}
+
+ /**
+ *
+ *
+ *
+ * Get a photo media with a photo reference string.
+ *
+ */
+ public com.google.maps.places.v1.PhotoMedia getPhotoMedia(
+ com.google.maps.places.v1.GetPhotoMediaRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetPhotoMediaMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Get a Place with a place id (in a name) string.
+ *
+ */
+ public com.google.maps.places.v1.Place getPlace(
+ com.google.maps.places.v1.GetPlaceRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetPlaceMethod(), getCallOptions(), request);
+ }
}
/**
@@ -226,6 +499,10 @@ public com.google.maps.places.v1.SearchTextResponse searchText(
*
*
* Service definition for the Places API.
+ * Note: every request actually requires a field mask set outside of the request
+ * proto (all/'*' is not assumed). That can be set via either a side channel
+ * (SystemParameterContext) over RPC, or a header (X-Goog-FieldMask) over HTTP.
+ * See: https://cloud.google.com/apis/docs/system-parameters
*
*/
public static final class PlacesFutureStub
@@ -239,6 +516,20 @@ protected PlacesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
return new PlacesFutureStub(channel, callOptions);
}
+ /**
+ *
+ *
+ *
+ * Search for places near locations.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.maps.places.v1.SearchNearbyResponse>
+ searchNearby(com.google.maps.places.v1.SearchNearbyRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getSearchNearbyMethod(), getCallOptions()), request);
+ }
+
/**
*
*
@@ -252,9 +543,38 @@ protected PlacesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSearchTextMethod(), getCallOptions()), request);
}
+
+ /**
+ *
+ *
+ *
+ * Get a photo media with a photo reference string.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ * Get a Place with a place id (in a name) string.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ * Information about the author of the UGC data. Used in
+ * [Photo][google.maps.places.v1.Photo], and
+ * [Review][google.maps.places.v1.Review].
+ *
+ *
+ * Protobuf type {@code google.maps.places.v1.AuthorAttribution}
+ */
+public final class AuthorAttribution extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.maps.places.v1.AuthorAttribution)
+ AuthorAttributionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use AuthorAttribution.newBuilder() to construct.
+ private AuthorAttribution(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private AuthorAttribution() {
+ displayName_ = "";
+ uri_ = "";
+ photoUri_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new AuthorAttribution();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.maps.places.v1.AttributionProto
+ .internal_static_google_maps_places_v1_AuthorAttribution_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.maps.places.v1.AttributionProto
+ .internal_static_google_maps_places_v1_AuthorAttribution_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.maps.places.v1.AuthorAttribution.class,
+ com.google.maps.places.v1.AuthorAttribution.Builder.class);
+ }
+
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. Name of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The displayName.
+ */
+ @java.lang.Override
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ 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();
+ displayName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Name of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for displayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int URI_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. URI of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. URI of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @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 PHOTO_URI_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object photoUri_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. Profile photo URI of the author of the
+ * [Photo][google.maps.places.v1.Photo] or
+ * [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string photo_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The photoUri.
+ */
+ @java.lang.Override
+ public java.lang.String getPhotoUri() {
+ java.lang.Object ref = photoUri_;
+ 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();
+ photoUri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Profile photo URI of the author of the
+ * [Photo][google.maps.places.v1.Photo] or
+ * [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string photo_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for photoUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPhotoUriBytes() {
+ java.lang.Object ref = photoUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ photoUri_ = 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(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(photoUri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, photoUri_);
+ }
+ 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(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(photoUri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, photoUri_);
+ }
+ 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.places.v1.AuthorAttribution)) {
+ return super.equals(obj);
+ }
+ com.google.maps.places.v1.AuthorAttribution other =
+ (com.google.maps.places.v1.AuthorAttribution) obj;
+
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getPhotoUri().equals(other.getPhotoUri())) 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) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ hash = (37 * hash) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (37 * hash) + PHOTO_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getPhotoUri().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.maps.places.v1.AuthorAttribution parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.AuthorAttribution 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.places.v1.AuthorAttribution parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.AuthorAttribution 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.places.v1.AuthorAttribution parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.AuthorAttribution parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.maps.places.v1.AuthorAttribution parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.AuthorAttribution 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.places.v1.AuthorAttribution parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.AuthorAttribution 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.places.v1.AuthorAttribution parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.AuthorAttribution 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.places.v1.AuthorAttribution 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 the author of the UGC data. Used in
+ * [Photo][google.maps.places.v1.Photo], and
+ * [Review][google.maps.places.v1.Review].
+ *
+ *
+ * Protobuf type {@code google.maps.places.v1.AuthorAttribution}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Output only. Name of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The displayName.
+ */
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Name of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for displayName.
+ */
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Name of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ displayName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Name of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Name of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ displayName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. URI of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. URI of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. URI of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @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_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. URI of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. URI of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @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_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object photoUri_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. Profile photo URI of the author of the
+ * [Photo][google.maps.places.v1.Photo] or
+ * [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string photo_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The photoUri.
+ */
+ public java.lang.String getPhotoUri() {
+ java.lang.Object ref = photoUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ photoUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Profile photo URI of the author of the
+ * [Photo][google.maps.places.v1.Photo] or
+ * [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string photo_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for photoUri.
+ */
+ public com.google.protobuf.ByteString getPhotoUriBytes() {
+ java.lang.Object ref = photoUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ photoUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Profile photo URI of the author of the
+ * [Photo][google.maps.places.v1.Photo] or
+ * [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string photo_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The photoUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPhotoUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ photoUri_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Profile photo URI of the author of the
+ * [Photo][google.maps.places.v1.Photo] or
+ * [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string photo_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPhotoUri() {
+ photoUri_ = getDefaultInstance().getPhotoUri();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Profile photo URI of the author of the
+ * [Photo][google.maps.places.v1.Photo] or
+ * [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string photo_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for photoUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPhotoUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ photoUri_ = 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.places.v1.AuthorAttribution)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.maps.places.v1.AuthorAttribution)
+ private static final com.google.maps.places.v1.AuthorAttribution DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.maps.places.v1.AuthorAttribution();
+ }
+
+ public static com.google.maps.places.v1.AuthorAttribution getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. Name of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+ /**
+ *
+ *
+ *
+ * Output only. Name of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. URI of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ *
+ * Output only. URI of the author of the [Photo][google.maps.places.v1.Photo]
+ * or [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. Profile photo URI of the author of the
+ * [Photo][google.maps.places.v1.Photo] or
+ * [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string photo_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The photoUri.
+ */
+ java.lang.String getPhotoUri();
+ /**
+ *
+ *
+ *
+ * Output only. Profile photo URI of the author of the
+ * [Photo][google.maps.places.v1.Photo] or
+ * [Review][google.maps.places.v1.Review].
+ *
+ *
+ * string photo_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for photoUri.
+ */
+ com.google.protobuf.ByteString getPhotoUriBytes();
+}
diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Circle.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Circle.java
index 4d2a618e8bfa..36cfd845702d 100644
--- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Circle.java
+++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/Circle.java
@@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Circle();
}
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.maps.places.v1.GeometryProto
.internal_static_google_maps_places_v1_Circle_descriptor;
@@ -71,8 +66,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. Center latitude and longitude.
- * The range of latitude must be within `[-90.0, 90.0]`. The range of the
- * longitude must be within `[-180.0, 180.0]`.
+ *
+ * The range of latitude must be within [-90.0, 90.0]. The range of the
+ * longitude must be within [-180.0, 180.0].
*
*
* .google.type.LatLng center = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -88,8 +84,9 @@ public boolean hasCenter() {
*
*
* Required. Center latitude and longitude.
- * The range of latitude must be within `[-90.0, 90.0]`. The range of the
- * longitude must be within `[-180.0, 180.0]`.
+ *
+ * The range of latitude must be within [-90.0, 90.0]. The range of the
+ * longitude must be within [-180.0, 180.0].
*
*
* .google.type.LatLng center = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -105,8 +102,9 @@ public com.google.type.LatLng getCenter() {
*
*
* Required. Center latitude and longitude.
- * The range of latitude must be within `[-90.0, 90.0]`. The range of the
- * longitude must be within `[-180.0, 180.0]`.
+ *
+ * The range of latitude must be within [-90.0, 90.0]. The range of the
+ * longitude must be within [-180.0, 180.0].
*
*
* .google.type.LatLng center = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -122,8 +120,8 @@ public com.google.type.LatLngOrBuilder getCenterOrBuilder() {
*
*
*
- * Required. Radius measured in meters. The radius must be within `[0.0,
- * 50000.0]`.
+ * Required. Radius measured in meters. The radius must be within [0.0,
+ * 50000.0].
*
*
* double radius = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -514,8 +512,9 @@ public Builder mergeFrom(
*
*
* Required. Center latitude and longitude.
- * The range of latitude must be within `[-90.0, 90.0]`. The range of the
- * longitude must be within `[-180.0, 180.0]`.
+ *
+ * The range of latitude must be within [-90.0, 90.0]. The range of the
+ * longitude must be within [-180.0, 180.0].
*
*
* .google.type.LatLng center = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -530,8 +529,9 @@ public boolean hasCenter() {
*
*
* Required. Center latitude and longitude.
- * The range of latitude must be within `[-90.0, 90.0]`. The range of the
- * longitude must be within `[-180.0, 180.0]`.
+ *
+ * The range of latitude must be within [-90.0, 90.0]. The range of the
+ * longitude must be within [-180.0, 180.0].
*
*
* .google.type.LatLng center = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -550,8 +550,9 @@ public com.google.type.LatLng getCenter() {
*
*
* Required. Center latitude and longitude.
- * The range of latitude must be within `[-90.0, 90.0]`. The range of the
- * longitude must be within `[-180.0, 180.0]`.
+ *
+ * The range of latitude must be within [-90.0, 90.0]. The range of the
+ * longitude must be within [-180.0, 180.0].
*
*
* .google.type.LatLng center = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -574,8 +575,9 @@ public Builder setCenter(com.google.type.LatLng value) {
*
*
* Required. Center latitude and longitude.
- * The range of latitude must be within `[-90.0, 90.0]`. The range of the
- * longitude must be within `[-180.0, 180.0]`.
+ *
+ * The range of latitude must be within [-90.0, 90.0]. The range of the
+ * longitude must be within [-180.0, 180.0].
*
*
* .google.type.LatLng center = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -595,8 +597,9 @@ public Builder setCenter(com.google.type.LatLng.Builder builderForValue) {
*
*
* Required. Center latitude and longitude.
- * The range of latitude must be within `[-90.0, 90.0]`. The range of the
- * longitude must be within `[-180.0, 180.0]`.
+ *
+ * The range of latitude must be within [-90.0, 90.0]. The range of the
+ * longitude must be within [-180.0, 180.0].
*
*
* .google.type.LatLng center = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -622,8 +625,9 @@ public Builder mergeCenter(com.google.type.LatLng value) {
*
*
* Required. Center latitude and longitude.
- * The range of latitude must be within `[-90.0, 90.0]`. The range of the
- * longitude must be within `[-180.0, 180.0]`.
+ *
+ * The range of latitude must be within [-90.0, 90.0]. The range of the
+ * longitude must be within [-180.0, 180.0].
*
*
* .google.type.LatLng center = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -643,8 +647,9 @@ public Builder clearCenter() {
*
*
* Required. Center latitude and longitude.
- * The range of latitude must be within `[-90.0, 90.0]`. The range of the
- * longitude must be within `[-180.0, 180.0]`.
+ *
+ * The range of latitude must be within [-90.0, 90.0]. The range of the
+ * longitude must be within [-180.0, 180.0].
*
*
* .google.type.LatLng center = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -659,8 +664,9 @@ public com.google.type.LatLng.Builder getCenterBuilder() {
*
*
* Required. Center latitude and longitude.
- * The range of latitude must be within `[-90.0, 90.0]`. The range of the
- * longitude must be within `[-180.0, 180.0]`.
+ *
+ * The range of latitude must be within [-90.0, 90.0]. The range of the
+ * longitude must be within [-180.0, 180.0].
*
*
* .google.type.LatLng center = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -677,8 +683,9 @@ public com.google.type.LatLngOrBuilder getCenterOrBuilder() {
*
*
* Required. Center latitude and longitude.
- * The range of latitude must be within `[-90.0, 90.0]`. The range of the
- * longitude must be within `[-180.0, 180.0]`.
+ *
+ * The range of latitude must be within [-90.0, 90.0]. The range of the
+ * longitude must be within [-180.0, 180.0].
*
*
* .google.type.LatLng center = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -702,8 +709,8 @@ public com.google.type.LatLngOrBuilder getCenterOrBuilder() {
*
*
*
- * Required. Radius measured in meters. The radius must be within `[0.0,
- * 50000.0]`.
+ * Required. Radius measured in meters. The radius must be within [0.0,
+ * 50000.0].
*
*
* double radius = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -718,8 +725,8 @@ public double getRadius() {
*
*
*
- * Required. Radius measured in meters. The radius must be within `[0.0,
- * 50000.0]`.
+ * Required. Radius measured in meters. The radius must be within [0.0,
+ * 50000.0].
*
*
* double radius = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -738,8 +745,8 @@ public Builder setRadius(double value) {
*
*
*
- * Required. Radius measured in meters. The radius must be within `[0.0,
- * 50000.0]`.
+ * Required. Radius measured in meters. The radius must be within [0.0,
+ * 50000.0].
*
*
* double radius = 2 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/CircleOrBuilder.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/CircleOrBuilder.java
index 20d1e1d6c098..2452200c821f 100644
--- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/CircleOrBuilder.java
+++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/CircleOrBuilder.java
@@ -28,8 +28,9 @@ public interface CircleOrBuilder
*
*
* Required. Center latitude and longitude.
- * The range of latitude must be within `[-90.0, 90.0]`. The range of the
- * longitude must be within `[-180.0, 180.0]`.
+ *
+ * The range of latitude must be within [-90.0, 90.0]. The range of the
+ * longitude must be within [-180.0, 180.0].
*
*
* .google.type.LatLng center = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -42,8 +43,9 @@ public interface CircleOrBuilder
*
*
* Required. Center latitude and longitude.
- * The range of latitude must be within `[-90.0, 90.0]`. The range of the
- * longitude must be within `[-180.0, 180.0]`.
+ *
+ * The range of latitude must be within [-90.0, 90.0]. The range of the
+ * longitude must be within [-180.0, 180.0].
*
*
* .google.type.LatLng center = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -56,8 +58,9 @@ public interface CircleOrBuilder
*
*
* Required. Center latitude and longitude.
- * The range of latitude must be within `[-90.0, 90.0]`. The range of the
- * longitude must be within `[-180.0, 180.0]`.
+ *
+ * The range of latitude must be within [-90.0, 90.0]. The range of the
+ * longitude must be within [-180.0, 180.0].
*
*
* .google.type.LatLng center = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -68,8 +71,8 @@ public interface CircleOrBuilder
*
*
*
- * Required. Radius measured in meters. The radius must be within `[0.0,
- * 50000.0]`.
+ * Required. Radius measured in meters. The radius must be within [0.0,
+ * 50000.0].
*
*
* double radius = 2 [(.google.api.field_behavior) = REQUIRED];
diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/EVChargeOptions.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/EVChargeOptions.java
new file mode 100644
index 000000000000..d37f7d945053
--- /dev/null
+++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/EVChargeOptions.java
@@ -0,0 +1,2623 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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/places/v1/ev_charging.proto
+
+package com.google.maps.places.v1;
+
+/**
+ *
+ *
+ *
+ * Information about the EV Charge Station hosted in Place.
+ * Terminology follows
+ * https://afdc.energy.gov/fuels/electricity_infrastructure.html One port
+ * could charge one car at a time. One port has one or more connectors. One
+ * station has one or more ports.
+ *
+ *
+ * Protobuf type {@code google.maps.places.v1.EVChargeOptions}
+ */
+public final class EVChargeOptions extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.maps.places.v1.EVChargeOptions)
+ EVChargeOptionsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use EVChargeOptions.newBuilder() to construct.
+ private EVChargeOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private EVChargeOptions() {
+ connectorAggregation_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new EVChargeOptions();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.maps.places.v1.EvChargingProto
+ .internal_static_google_maps_places_v1_EVChargeOptions_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.maps.places.v1.EvChargingProto
+ .internal_static_google_maps_places_v1_EVChargeOptions_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.maps.places.v1.EVChargeOptions.class,
+ com.google.maps.places.v1.EVChargeOptions.Builder.class);
+ }
+
+ public interface ConnectorAggregationOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.maps.places.v1.EVChargeOptions.ConnectorAggregation)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The connector type of this aggregation.
+ *
+ *
+ * .google.maps.places.v1.EVConnectorType type = 1;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ int getTypeValue();
+ /**
+ *
+ *
+ *
+ * The connector type of this aggregation.
+ *
+ *
+ * .google.maps.places.v1.EVConnectorType type = 1;
+ *
+ * @return The type.
+ */
+ com.google.maps.places.v1.EVConnectorType getType();
+
+ /**
+ *
+ *
+ *
+ * The static max charging rate in kw of each connector in the aggregation.
+ *
+ *
+ * double max_charge_rate_kw = 2;
+ *
+ * @return The maxChargeRateKw.
+ */
+ double getMaxChargeRateKw();
+
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation.
+ *
+ *
+ * int32 count = 3;
+ *
+ * @return The count.
+ */
+ int getCount();
+
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently available.
+ *
+ *
+ * optional int32 available_count = 4;
+ *
+ * @return Whether the availableCount field is set.
+ */
+ boolean hasAvailableCount();
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently available.
+ *
+ *
+ * optional int32 available_count = 4;
+ *
+ * @return The availableCount.
+ */
+ int getAvailableCount();
+
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently out of
+ * service.
+ *
+ *
+ * optional int32 out_of_service_count = 5;
+ *
+ * @return Whether the outOfServiceCount field is set.
+ */
+ boolean hasOutOfServiceCount();
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently out of
+ * service.
+ *
+ *
+ * optional int32 out_of_service_count = 5;
+ *
+ * @return The outOfServiceCount.
+ */
+ int getOutOfServiceCount();
+
+ /**
+ *
+ *
+ *
+ * The timestamp when the connector availability information in this
+ * aggregation was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp availability_last_update_time = 6;
+ *
+ * @return Whether the availabilityLastUpdateTime field is set.
+ */
+ boolean hasAvailabilityLastUpdateTime();
+ /**
+ *
+ *
+ *
+ * The timestamp when the connector availability information in this
+ * aggregation was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp availability_last_update_time = 6;
+ *
+ * @return The availabilityLastUpdateTime.
+ */
+ com.google.protobuf.Timestamp getAvailabilityLastUpdateTime();
+ /**
+ *
+ *
+ *
+ * The timestamp when the connector availability information in this
+ * aggregation was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp availability_last_update_time = 6;
+ */
+ com.google.protobuf.TimestampOrBuilder getAvailabilityLastUpdateTimeOrBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * EV charging information grouped by [type, max_charge_rate_kw].
+ * Shows EV charge aggregation of connectors that have the same type and max
+ * charge rate in kw.
+ *
+ *
+ * Protobuf type {@code google.maps.places.v1.EVChargeOptions.ConnectorAggregation}
+ */
+ public static final class ConnectorAggregation extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.maps.places.v1.EVChargeOptions.ConnectorAggregation)
+ ConnectorAggregationOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ConnectorAggregation.newBuilder() to construct.
+ private ConnectorAggregation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ConnectorAggregation() {
+ type_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ConnectorAggregation();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.maps.places.v1.EvChargingProto
+ .internal_static_google_maps_places_v1_EVChargeOptions_ConnectorAggregation_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.maps.places.v1.EvChargingProto
+ .internal_static_google_maps_places_v1_EVChargeOptions_ConnectorAggregation_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation.class,
+ com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int TYPE_FIELD_NUMBER = 1;
+ private int type_ = 0;
+ /**
+ *
+ *
+ *
+ * The connector type of this aggregation.
+ *
+ *
+ * .google.maps.places.v1.EVConnectorType type = 1;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ *
+ * The connector type of this aggregation.
+ *
+ *
+ * .google.maps.places.v1.EVConnectorType type = 1;
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.maps.places.v1.EVConnectorType getType() {
+ com.google.maps.places.v1.EVConnectorType result =
+ com.google.maps.places.v1.EVConnectorType.forNumber(type_);
+ return result == null ? com.google.maps.places.v1.EVConnectorType.UNRECOGNIZED : result;
+ }
+
+ public static final int MAX_CHARGE_RATE_KW_FIELD_NUMBER = 2;
+ private double maxChargeRateKw_ = 0D;
+ /**
+ *
+ *
+ *
+ * The static max charging rate in kw of each connector in the aggregation.
+ *
+ *
+ * double max_charge_rate_kw = 2;
+ *
+ * @return The maxChargeRateKw.
+ */
+ @java.lang.Override
+ public double getMaxChargeRateKw() {
+ return maxChargeRateKw_;
+ }
+
+ public static final int COUNT_FIELD_NUMBER = 3;
+ private int count_ = 0;
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation.
+ *
+ *
+ * int32 count = 3;
+ *
+ * @return The count.
+ */
+ @java.lang.Override
+ public int getCount() {
+ return count_;
+ }
+
+ public static final int AVAILABLE_COUNT_FIELD_NUMBER = 4;
+ private int availableCount_ = 0;
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently available.
+ *
+ *
+ * optional int32 available_count = 4;
+ *
+ * @return Whether the availableCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasAvailableCount() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently available.
+ *
+ *
+ * optional int32 available_count = 4;
+ *
+ * @return The availableCount.
+ */
+ @java.lang.Override
+ public int getAvailableCount() {
+ return availableCount_;
+ }
+
+ public static final int OUT_OF_SERVICE_COUNT_FIELD_NUMBER = 5;
+ private int outOfServiceCount_ = 0;
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently out of
+ * service.
+ *
+ *
+ * optional int32 out_of_service_count = 5;
+ *
+ * @return Whether the outOfServiceCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasOutOfServiceCount() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently out of
+ * service.
+ *
+ *
+ * optional int32 out_of_service_count = 5;
+ *
+ * @return The outOfServiceCount.
+ */
+ @java.lang.Override
+ public int getOutOfServiceCount() {
+ return outOfServiceCount_;
+ }
+
+ public static final int AVAILABILITY_LAST_UPDATE_TIME_FIELD_NUMBER = 6;
+ private com.google.protobuf.Timestamp availabilityLastUpdateTime_;
+ /**
+ *
+ *
+ *
+ * The timestamp when the connector availability information in this
+ * aggregation was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp availability_last_update_time = 6;
+ *
+ * @return Whether the availabilityLastUpdateTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasAvailabilityLastUpdateTime() {
+ return availabilityLastUpdateTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The timestamp when the connector availability information in this
+ * aggregation was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp availability_last_update_time = 6;
+ *
+ * @return The availabilityLastUpdateTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getAvailabilityLastUpdateTime() {
+ return availabilityLastUpdateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : availabilityLastUpdateTime_;
+ }
+ /**
+ *
+ *
+ *
+ * The timestamp when the connector availability information in this
+ * aggregation was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp availability_last_update_time = 6;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getAvailabilityLastUpdateTimeOrBuilder() {
+ return availabilityLastUpdateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : availabilityLastUpdateTime_;
+ }
+
+ 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 (type_
+ != com.google.maps.places.v1.EVConnectorType.EV_CONNECTOR_TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(1, type_);
+ }
+ if (java.lang.Double.doubleToRawLongBits(maxChargeRateKw_) != 0) {
+ output.writeDouble(2, maxChargeRateKw_);
+ }
+ if (count_ != 0) {
+ output.writeInt32(3, count_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeInt32(4, availableCount_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt32(5, outOfServiceCount_);
+ }
+ if (availabilityLastUpdateTime_ != null) {
+ output.writeMessage(6, getAvailabilityLastUpdateTime());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (type_
+ != com.google.maps.places.v1.EVConnectorType.EV_CONNECTOR_TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
+ }
+ if (java.lang.Double.doubleToRawLongBits(maxChargeRateKw_) != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, maxChargeRateKw_);
+ }
+ if (count_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, count_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, availableCount_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, outOfServiceCount_);
+ }
+ if (availabilityLastUpdateTime_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 6, getAvailabilityLastUpdateTime());
+ }
+ 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.places.v1.EVChargeOptions.ConnectorAggregation)) {
+ return super.equals(obj);
+ }
+ com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation other =
+ (com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation) obj;
+
+ if (type_ != other.type_) return false;
+ if (java.lang.Double.doubleToLongBits(getMaxChargeRateKw())
+ != java.lang.Double.doubleToLongBits(other.getMaxChargeRateKw())) return false;
+ if (getCount() != other.getCount()) return false;
+ if (hasAvailableCount() != other.hasAvailableCount()) return false;
+ if (hasAvailableCount()) {
+ if (getAvailableCount() != other.getAvailableCount()) return false;
+ }
+ if (hasOutOfServiceCount() != other.hasOutOfServiceCount()) return false;
+ if (hasOutOfServiceCount()) {
+ if (getOutOfServiceCount() != other.getOutOfServiceCount()) return false;
+ }
+ if (hasAvailabilityLastUpdateTime() != other.hasAvailabilityLastUpdateTime()) return false;
+ if (hasAvailabilityLastUpdateTime()) {
+ if (!getAvailabilityLastUpdateTime().equals(other.getAvailabilityLastUpdateTime()))
+ 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) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ hash = (37 * hash) + MAX_CHARGE_RATE_KW_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getMaxChargeRateKw()));
+ hash = (37 * hash) + COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getCount();
+ if (hasAvailableCount()) {
+ hash = (37 * hash) + AVAILABLE_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getAvailableCount();
+ }
+ if (hasOutOfServiceCount()) {
+ hash = (37 * hash) + OUT_OF_SERVICE_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getOutOfServiceCount();
+ }
+ if (hasAvailabilityLastUpdateTime()) {
+ hash = (37 * hash) + AVAILABILITY_LAST_UPDATE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getAvailabilityLastUpdateTime().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation 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.places.v1.EVChargeOptions.ConnectorAggregation parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation 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.places.v1.EVChargeOptions.ConnectorAggregation parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation 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.places.v1.EVChargeOptions.ConnectorAggregation parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation 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.places.v1.EVChargeOptions.ConnectorAggregation parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation 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.places.v1.EVChargeOptions.ConnectorAggregation 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;
+ }
+ /**
+ *
+ *
+ *
+ * EV charging information grouped by [type, max_charge_rate_kw].
+ * Shows EV charge aggregation of connectors that have the same type and max
+ * charge rate in kw.
+ *
+ *
+ * Protobuf type {@code google.maps.places.v1.EVChargeOptions.ConnectorAggregation}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The connector type of this aggregation.
+ *
+ *
+ * .google.maps.places.v1.EVConnectorType type = 1;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ *
+ * The connector type of this aggregation.
+ *
+ *
+ * .google.maps.places.v1.EVConnectorType type = 1;
+ *
+ * @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_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The connector type of this aggregation.
+ *
+ *
+ * .google.maps.places.v1.EVConnectorType type = 1;
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.maps.places.v1.EVConnectorType getType() {
+ com.google.maps.places.v1.EVConnectorType result =
+ com.google.maps.places.v1.EVConnectorType.forNumber(type_);
+ return result == null ? com.google.maps.places.v1.EVConnectorType.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ *
+ * The connector type of this aggregation.
+ *
+ *
+ * .google.maps.places.v1.EVConnectorType type = 1;
+ *
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(com.google.maps.places.v1.EVConnectorType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ type_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The connector type of this aggregation.
+ *
+ *
+ * .google.maps.places.v1.EVConnectorType type = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ type_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private double maxChargeRateKw_;
+ /**
+ *
+ *
+ *
+ * The static max charging rate in kw of each connector in the aggregation.
+ *
+ *
+ * double max_charge_rate_kw = 2;
+ *
+ * @return The maxChargeRateKw.
+ */
+ @java.lang.Override
+ public double getMaxChargeRateKw() {
+ return maxChargeRateKw_;
+ }
+ /**
+ *
+ *
+ *
+ * The static max charging rate in kw of each connector in the aggregation.
+ *
+ *
+ * double max_charge_rate_kw = 2;
+ *
+ * @param value The maxChargeRateKw to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxChargeRateKw(double value) {
+
+ maxChargeRateKw_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The static max charging rate in kw of each connector in the aggregation.
+ *
+ *
+ * double max_charge_rate_kw = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxChargeRateKw() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ maxChargeRateKw_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private int count_;
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation.
+ *
+ *
+ * int32 count = 3;
+ *
+ * @return The count.
+ */
+ @java.lang.Override
+ public int getCount() {
+ return count_;
+ }
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation.
+ *
+ *
+ * int32 count = 3;
+ *
+ * @param value The count to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCount(int value) {
+
+ count_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation.
+ *
+ *
+ * int32 count = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCount() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ count_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int availableCount_;
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently available.
+ *
+ *
+ * optional int32 available_count = 4;
+ *
+ * @return Whether the availableCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasAvailableCount() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently available.
+ *
+ *
+ * optional int32 available_count = 4;
+ *
+ * @return The availableCount.
+ */
+ @java.lang.Override
+ public int getAvailableCount() {
+ return availableCount_;
+ }
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently available.
+ *
+ *
+ * optional int32 available_count = 4;
+ *
+ * @param value The availableCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAvailableCount(int value) {
+
+ availableCount_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently available.
+ *
+ *
+ * optional int32 available_count = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAvailableCount() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ availableCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int outOfServiceCount_;
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently out of
+ * service.
+ *
+ *
+ * optional int32 out_of_service_count = 5;
+ *
+ * @return Whether the outOfServiceCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasOutOfServiceCount() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently out of
+ * service.
+ *
+ *
+ * optional int32 out_of_service_count = 5;
+ *
+ * @return The outOfServiceCount.
+ */
+ @java.lang.Override
+ public int getOutOfServiceCount() {
+ return outOfServiceCount_;
+ }
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently out of
+ * service.
+ *
+ *
+ * optional int32 out_of_service_count = 5;
+ *
+ * @param value The outOfServiceCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOutOfServiceCount(int value) {
+
+ outOfServiceCount_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Number of connectors in this aggregation that are currently out of
+ * service.
+ *
+ *
+ * optional int32 out_of_service_count = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOutOfServiceCount() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ outOfServiceCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp availabilityLastUpdateTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ availabilityLastUpdateTimeBuilder_;
+ /**
+ *
+ *
+ *
+ * The timestamp when the connector availability information in this
+ * aggregation was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp availability_last_update_time = 6;
+ *
+ * @return Whether the availabilityLastUpdateTime field is set.
+ */
+ public boolean hasAvailabilityLastUpdateTime() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * The timestamp when the connector availability information in this
+ * aggregation was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp availability_last_update_time = 6;
+ *
+ * @return The availabilityLastUpdateTime.
+ */
+ public com.google.protobuf.Timestamp getAvailabilityLastUpdateTime() {
+ if (availabilityLastUpdateTimeBuilder_ == null) {
+ return availabilityLastUpdateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : availabilityLastUpdateTime_;
+ } else {
+ return availabilityLastUpdateTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The timestamp when the connector availability information in this
+ * aggregation was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp availability_last_update_time = 6;
+ */
+ public Builder setAvailabilityLastUpdateTime(com.google.protobuf.Timestamp value) {
+ if (availabilityLastUpdateTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ availabilityLastUpdateTime_ = value;
+ } else {
+ availabilityLastUpdateTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The timestamp when the connector availability information in this
+ * aggregation was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp availability_last_update_time = 6;
+ */
+ public Builder setAvailabilityLastUpdateTime(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (availabilityLastUpdateTimeBuilder_ == null) {
+ availabilityLastUpdateTime_ = builderForValue.build();
+ } else {
+ availabilityLastUpdateTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The timestamp when the connector availability information in this
+ * aggregation was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp availability_last_update_time = 6;
+ */
+ public Builder mergeAvailabilityLastUpdateTime(com.google.protobuf.Timestamp value) {
+ if (availabilityLastUpdateTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && availabilityLastUpdateTime_ != null
+ && availabilityLastUpdateTime_
+ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getAvailabilityLastUpdateTimeBuilder().mergeFrom(value);
+ } else {
+ availabilityLastUpdateTime_ = value;
+ }
+ } else {
+ availabilityLastUpdateTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The timestamp when the connector availability information in this
+ * aggregation was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp availability_last_update_time = 6;
+ */
+ public Builder clearAvailabilityLastUpdateTime() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ availabilityLastUpdateTime_ = null;
+ if (availabilityLastUpdateTimeBuilder_ != null) {
+ availabilityLastUpdateTimeBuilder_.dispose();
+ availabilityLastUpdateTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The timestamp when the connector availability information in this
+ * aggregation was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp availability_last_update_time = 6;
+ */
+ public com.google.protobuf.Timestamp.Builder getAvailabilityLastUpdateTimeBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getAvailabilityLastUpdateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The timestamp when the connector availability information in this
+ * aggregation was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp availability_last_update_time = 6;
+ */
+ public com.google.protobuf.TimestampOrBuilder getAvailabilityLastUpdateTimeOrBuilder() {
+ if (availabilityLastUpdateTimeBuilder_ != null) {
+ return availabilityLastUpdateTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return availabilityLastUpdateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : availabilityLastUpdateTime_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The timestamp when the connector availability information in this
+ * aggregation was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp availability_last_update_time = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getAvailabilityLastUpdateTimeFieldBuilder() {
+ if (availabilityLastUpdateTimeBuilder_ == null) {
+ availabilityLastUpdateTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getAvailabilityLastUpdateTime(), getParentForChildren(), isClean());
+ availabilityLastUpdateTime_ = null;
+ }
+ return availabilityLastUpdateTimeBuilder_;
+ }
+
+ @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.places.v1.EVChargeOptions.ConnectorAggregation)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.maps.places.v1.EVChargeOptions.ConnectorAggregation)
+ private static final com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation();
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Number of connectors at this station. However, because some ports can have
+ * multiple connectors but only be able to charge one car at a time (e.g.) the
+ * number of connectors may be greater than the total number of cars which can
+ * charge simultaneously.
+ *
+ *
+ * int32 connector_count = 1;
+ *
+ * @return The connectorCount.
+ */
+ @java.lang.Override
+ public int getConnectorCount() {
+ return connectorCount_;
+ }
+
+ public static final int CONNECTOR_AGGREGATION_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.maps.places.v1.EVChargeOptions.ConnectorAggregationOrBuilder>
+ getConnectorAggregationOrBuilderList() {
+ return connectorAggregation_;
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ @java.lang.Override
+ public int getConnectorAggregationCount() {
+ return connectorAggregation_.size();
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation getConnectorAggregation(
+ int index) {
+ return connectorAggregation_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.maps.places.v1.EVChargeOptions.ConnectorAggregationOrBuilder
+ getConnectorAggregationOrBuilder(int index) {
+ return connectorAggregation_.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 {
+ if (connectorCount_ != 0) {
+ output.writeInt32(1, connectorCount_);
+ }
+ for (int i = 0; i < connectorAggregation_.size(); i++) {
+ output.writeMessage(2, connectorAggregation_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (connectorCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, connectorCount_);
+ }
+ for (int i = 0; i < connectorAggregation_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(2, connectorAggregation_.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.places.v1.EVChargeOptions)) {
+ return super.equals(obj);
+ }
+ com.google.maps.places.v1.EVChargeOptions other =
+ (com.google.maps.places.v1.EVChargeOptions) obj;
+
+ if (getConnectorCount() != other.getConnectorCount()) return false;
+ if (!getConnectorAggregationList().equals(other.getConnectorAggregationList())) 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) + CONNECTOR_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getConnectorCount();
+ if (getConnectorAggregationCount() > 0) {
+ hash = (37 * hash) + CONNECTOR_AGGREGATION_FIELD_NUMBER;
+ hash = (53 * hash) + getConnectorAggregationList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions 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.places.v1.EVChargeOptions parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions 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.places.v1.EVChargeOptions parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions 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.places.v1.EVChargeOptions parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions 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.places.v1.EVChargeOptions parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.EVChargeOptions 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.places.v1.EVChargeOptions 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 the EV Charge Station hosted in Place.
+ * Terminology follows
+ * https://afdc.energy.gov/fuels/electricity_infrastructure.html One port
+ * could charge one car at a time. One port has one or more connectors. One
+ * station has one or more ports.
+ *
+ *
+ * Protobuf type {@code google.maps.places.v1.EVChargeOptions}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Number of connectors at this station. However, because some ports can have
+ * multiple connectors but only be able to charge one car at a time (e.g.) the
+ * number of connectors may be greater than the total number of cars which can
+ * charge simultaneously.
+ *
+ *
+ * int32 connector_count = 1;
+ *
+ * @return The connectorCount.
+ */
+ @java.lang.Override
+ public int getConnectorCount() {
+ return connectorCount_;
+ }
+ /**
+ *
+ *
+ *
+ * Number of connectors at this station. However, because some ports can have
+ * multiple connectors but only be able to charge one car at a time (e.g.) the
+ * number of connectors may be greater than the total number of cars which can
+ * charge simultaneously.
+ *
+ *
+ * int32 connector_count = 1;
+ *
+ * @param value The connectorCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConnectorCount(int value) {
+
+ connectorCount_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Number of connectors at this station. However, because some ports can have
+ * multiple connectors but only be able to charge one car at a time (e.g.) the
+ * number of connectors may be greater than the total number of cars which can
+ * charge simultaneously.
+ *
+ *
+ * int32 connector_count = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearConnectorCount() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ connectorCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public java.util.List
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public int getConnectorAggregationCount() {
+ if (connectorAggregationBuilder_ == null) {
+ return connectorAggregation_.size();
+ } else {
+ return connectorAggregationBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation getConnectorAggregation(
+ int index) {
+ if (connectorAggregationBuilder_ == null) {
+ return connectorAggregation_.get(index);
+ } else {
+ return connectorAggregationBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public Builder setConnectorAggregation(
+ int index, com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation value) {
+ if (connectorAggregationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureConnectorAggregationIsMutable();
+ connectorAggregation_.set(index, value);
+ onChanged();
+ } else {
+ connectorAggregationBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public Builder setConnectorAggregation(
+ int index,
+ com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation.Builder builderForValue) {
+ if (connectorAggregationBuilder_ == null) {
+ ensureConnectorAggregationIsMutable();
+ connectorAggregation_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ connectorAggregationBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public Builder addConnectorAggregation(
+ com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation value) {
+ if (connectorAggregationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureConnectorAggregationIsMutable();
+ connectorAggregation_.add(value);
+ onChanged();
+ } else {
+ connectorAggregationBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public Builder addConnectorAggregation(
+ int index, com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation value) {
+ if (connectorAggregationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureConnectorAggregationIsMutable();
+ connectorAggregation_.add(index, value);
+ onChanged();
+ } else {
+ connectorAggregationBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public Builder addConnectorAggregation(
+ com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation.Builder builderForValue) {
+ if (connectorAggregationBuilder_ == null) {
+ ensureConnectorAggregationIsMutable();
+ connectorAggregation_.add(builderForValue.build());
+ onChanged();
+ } else {
+ connectorAggregationBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public Builder addConnectorAggregation(
+ int index,
+ com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation.Builder builderForValue) {
+ if (connectorAggregationBuilder_ == null) {
+ ensureConnectorAggregationIsMutable();
+ connectorAggregation_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ connectorAggregationBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public Builder addAllConnectorAggregation(
+ java.lang.Iterable extends com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation>
+ values) {
+ if (connectorAggregationBuilder_ == null) {
+ ensureConnectorAggregationIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectorAggregation_);
+ onChanged();
+ } else {
+ connectorAggregationBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public Builder clearConnectorAggregation() {
+ if (connectorAggregationBuilder_ == null) {
+ connectorAggregation_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ connectorAggregationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public Builder removeConnectorAggregation(int index) {
+ if (connectorAggregationBuilder_ == null) {
+ ensureConnectorAggregationIsMutable();
+ connectorAggregation_.remove(index);
+ onChanged();
+ } else {
+ connectorAggregationBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation.Builder
+ getConnectorAggregationBuilder(int index) {
+ return getConnectorAggregationFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public com.google.maps.places.v1.EVChargeOptions.ConnectorAggregationOrBuilder
+ getConnectorAggregationOrBuilder(int index) {
+ if (connectorAggregationBuilder_ == null) {
+ return connectorAggregation_.get(index);
+ } else {
+ return connectorAggregationBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.maps.places.v1.EVChargeOptions.ConnectorAggregationOrBuilder>
+ getConnectorAggregationOrBuilderList() {
+ if (connectorAggregationBuilder_ != null) {
+ return connectorAggregationBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(connectorAggregation_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation.Builder
+ addConnectorAggregationBuilder() {
+ return getConnectorAggregationFieldBuilder()
+ .addBuilder(
+ com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation.Builder
+ addConnectorAggregationBuilder(int index) {
+ return getConnectorAggregationFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ public java.util.List
+ * Number of connectors at this station. However, because some ports can have
+ * multiple connectors but only be able to charge one car at a time (e.g.) the
+ * number of connectors may be greater than the total number of cars which can
+ * charge simultaneously.
+ *
+ *
+ * int32 connector_count = 1;
+ *
+ * @return The connectorCount.
+ */
+ int getConnectorCount();
+
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ java.util.List
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ com.google.maps.places.v1.EVChargeOptions.ConnectorAggregation getConnectorAggregation(int index);
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ int getConnectorAggregationCount();
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ java.util.List extends com.google.maps.places.v1.EVChargeOptions.ConnectorAggregationOrBuilder>
+ getConnectorAggregationOrBuilderList();
+ /**
+ *
+ *
+ *
+ * A list of EV charging connector aggregations that contain connectors of the
+ * same type and same charge rate.
+ *
+ *
+ *
+ * repeated .google.maps.places.v1.EVChargeOptions.ConnectorAggregation connector_aggregation = 2;
+ *
+ */
+ com.google.maps.places.v1.EVChargeOptions.ConnectorAggregationOrBuilder
+ getConnectorAggregationOrBuilder(int index);
+}
diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/EVConnectorType.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/EVConnectorType.java
new file mode 100644
index 000000000000..645e4179b524
--- /dev/null
+++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/EVConnectorType.java
@@ -0,0 +1,345 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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/places/v1/ev_charging.proto
+
+package com.google.maps.places.v1;
+
+/**
+ *
+ *
+ *
+ * See http://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=6872107 for
+ * additional information/context on EV charging connector types.
+ *
+ *
+ * Protobuf enum {@code google.maps.places.v1.EVConnectorType}
+ */
+public enum EVConnectorType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Unspecified connector.
+ *
+ *
+ * EV_CONNECTOR_TYPE_UNSPECIFIED = 0;
+ */
+ EV_CONNECTOR_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Other connector types.
+ *
+ *
+ * EV_CONNECTOR_TYPE_OTHER = 1;
+ */
+ EV_CONNECTOR_TYPE_OTHER(1),
+ /**
+ *
+ *
+ *
+ * J1772 type 1 connector.
+ *
+ *
+ * EV_CONNECTOR_TYPE_J1772 = 2;
+ */
+ EV_CONNECTOR_TYPE_J1772(2),
+ /**
+ *
+ *
+ *
+ * IEC 62196 type 2 connector. Often referred to as MENNEKES.
+ *
+ *
+ * EV_CONNECTOR_TYPE_TYPE_2 = 3;
+ */
+ EV_CONNECTOR_TYPE_TYPE_2(3),
+ /**
+ *
+ *
+ *
+ * CHAdeMO type connector.
+ *
+ *
+ * EV_CONNECTOR_TYPE_CHADEMO = 4;
+ */
+ EV_CONNECTOR_TYPE_CHADEMO(4),
+ /**
+ *
+ *
+ *
+ * Combined Charging System (AC and DC). Based on SAE.
+ * Type-1 J-1772 connector
+ *
+ *
+ * EV_CONNECTOR_TYPE_CCS_COMBO_1 = 5;
+ */
+ EV_CONNECTOR_TYPE_CCS_COMBO_1(5),
+ /**
+ *
+ *
+ *
+ * Combined Charging System (AC and DC). Based on Type-2
+ * Mennekes connector
+ *
+ *
+ * EV_CONNECTOR_TYPE_CCS_COMBO_2 = 6;
+ */
+ EV_CONNECTOR_TYPE_CCS_COMBO_2(6),
+ /**
+ *
+ *
+ *
+ * The generic TESLA connector. This is NACS in the North America but can be
+ * non-NACS in other parts of the world (e.g. CCS Combo 2 (CCS2) or GB/T).
+ * This value is less representative of an actual connector type, and more
+ * represents the ability to charge a Tesla brand vehicle at a Tesla owned
+ * charging station.
+ *
+ *
+ * EV_CONNECTOR_TYPE_TESLA = 7;
+ */
+ EV_CONNECTOR_TYPE_TESLA(7),
+ /**
+ *
+ *
+ *
+ * GB/T type corresponds to the GB/T standard in China. This type covers all
+ * GB_T types.
+ *
+ *
+ * EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T = 8;
+ */
+ EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T(8),
+ /**
+ *
+ *
+ *
+ * Unspecified wall outlet.
+ *
+ *
+ * EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET = 9;
+ */
+ EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET(9),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Unspecified connector.
+ *
+ *
+ * EV_CONNECTOR_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int EV_CONNECTOR_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Other connector types.
+ *
+ *
+ * EV_CONNECTOR_TYPE_OTHER = 1;
+ */
+ public static final int EV_CONNECTOR_TYPE_OTHER_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * J1772 type 1 connector.
+ *
+ *
+ * EV_CONNECTOR_TYPE_J1772 = 2;
+ */
+ public static final int EV_CONNECTOR_TYPE_J1772_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * IEC 62196 type 2 connector. Often referred to as MENNEKES.
+ *
+ *
+ * EV_CONNECTOR_TYPE_TYPE_2 = 3;
+ */
+ public static final int EV_CONNECTOR_TYPE_TYPE_2_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * CHAdeMO type connector.
+ *
+ *
+ * EV_CONNECTOR_TYPE_CHADEMO = 4;
+ */
+ public static final int EV_CONNECTOR_TYPE_CHADEMO_VALUE = 4;
+ /**
+ *
+ *
+ *
+ * Combined Charging System (AC and DC). Based on SAE.
+ * Type-1 J-1772 connector
+ *
+ *
+ * EV_CONNECTOR_TYPE_CCS_COMBO_1 = 5;
+ */
+ public static final int EV_CONNECTOR_TYPE_CCS_COMBO_1_VALUE = 5;
+ /**
+ *
+ *
+ *
+ * Combined Charging System (AC and DC). Based on Type-2
+ * Mennekes connector
+ *
+ *
+ * EV_CONNECTOR_TYPE_CCS_COMBO_2 = 6;
+ */
+ public static final int EV_CONNECTOR_TYPE_CCS_COMBO_2_VALUE = 6;
+ /**
+ *
+ *
+ *
+ * The generic TESLA connector. This is NACS in the North America but can be
+ * non-NACS in other parts of the world (e.g. CCS Combo 2 (CCS2) or GB/T).
+ * This value is less representative of an actual connector type, and more
+ * represents the ability to charge a Tesla brand vehicle at a Tesla owned
+ * charging station.
+ *
+ *
+ * EV_CONNECTOR_TYPE_TESLA = 7;
+ */
+ public static final int EV_CONNECTOR_TYPE_TESLA_VALUE = 7;
+ /**
+ *
+ *
+ *
+ * GB/T type corresponds to the GB/T standard in China. This type covers all
+ * GB_T types.
+ *
+ *
+ * EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T = 8;
+ */
+ public static final int EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T_VALUE = 8;
+ /**
+ *
+ *
+ *
+ * Unspecified wall outlet.
+ *
+ *
+ * EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET = 9;
+ */
+ public static final int EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET_VALUE = 9;
+
+ 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 EVConnectorType 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 EVConnectorType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return EV_CONNECTOR_TYPE_UNSPECIFIED;
+ case 1:
+ return EV_CONNECTOR_TYPE_OTHER;
+ case 2:
+ return EV_CONNECTOR_TYPE_J1772;
+ case 3:
+ return EV_CONNECTOR_TYPE_TYPE_2;
+ case 4:
+ return EV_CONNECTOR_TYPE_CHADEMO;
+ case 5:
+ return EV_CONNECTOR_TYPE_CCS_COMBO_1;
+ case 6:
+ return EV_CONNECTOR_TYPE_CCS_COMBO_2;
+ case 7:
+ return EV_CONNECTOR_TYPE_TESLA;
+ case 8:
+ return EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T;
+ case 9:
+ return EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * The most recent information about fuel options in a gas station. This
+ * information is updated regularly.
+ *
+ *
+ * Protobuf type {@code google.maps.places.v1.FuelOptions}
+ */
+public final class FuelOptions extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.maps.places.v1.FuelOptions)
+ FuelOptionsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use FuelOptions.newBuilder() to construct.
+ private FuelOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private FuelOptions() {
+ fuelPrices_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new FuelOptions();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.maps.places.v1.FuelOptionsProto
+ .internal_static_google_maps_places_v1_FuelOptions_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.maps.places.v1.FuelOptionsProto
+ .internal_static_google_maps_places_v1_FuelOptions_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.maps.places.v1.FuelOptions.class,
+ com.google.maps.places.v1.FuelOptions.Builder.class);
+ }
+
+ public interface FuelPriceOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.maps.places.v1.FuelOptions.FuelPrice)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The type of fuel.
+ *
+ *
+ * .google.maps.places.v1.FuelOptions.FuelPrice.FuelType type = 1;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ int getTypeValue();
+ /**
+ *
+ *
+ *
+ * The type of fuel.
+ *
+ *
+ * .google.maps.places.v1.FuelOptions.FuelPrice.FuelType type = 1;
+ *
+ * @return The type.
+ */
+ com.google.maps.places.v1.FuelOptions.FuelPrice.FuelType getType();
+
+ /**
+ *
+ *
+ *
+ * The price of the fuel.
+ *
+ *
+ * .google.type.Money price = 2;
+ *
+ * @return Whether the price field is set.
+ */
+ boolean hasPrice();
+ /**
+ *
+ *
+ *
+ * The price of the fuel.
+ *
+ *
+ * .google.type.Money price = 2;
+ *
+ * @return The price.
+ */
+ com.google.type.Money getPrice();
+ /**
+ *
+ *
+ *
+ * The price of the fuel.
+ *
+ *
+ * .google.type.Money price = 2;
+ */
+ com.google.type.MoneyOrBuilder getPriceOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The time the fuel price was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3;
+ *
+ * @return Whether the updateTime field is set.
+ */
+ boolean hasUpdateTime();
+ /**
+ *
+ *
+ *
+ * The time the fuel price was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3;
+ *
+ * @return The updateTime.
+ */
+ com.google.protobuf.Timestamp getUpdateTime();
+ /**
+ *
+ *
+ *
+ * The time the fuel price was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3;
+ */
+ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Fuel price information for a given type.
+ *
+ *
+ * Protobuf type {@code google.maps.places.v1.FuelOptions.FuelPrice}
+ */
+ public static final class FuelPrice extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.maps.places.v1.FuelOptions.FuelPrice)
+ FuelPriceOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use FuelPrice.newBuilder() to construct.
+ private FuelPrice(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private FuelPrice() {
+ type_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new FuelPrice();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.maps.places.v1.FuelOptionsProto
+ .internal_static_google_maps_places_v1_FuelOptions_FuelPrice_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.maps.places.v1.FuelOptionsProto
+ .internal_static_google_maps_places_v1_FuelOptions_FuelPrice_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.maps.places.v1.FuelOptions.FuelPrice.class,
+ com.google.maps.places.v1.FuelOptions.FuelPrice.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * Types of fuel.
+ *
+ *
+ * Protobuf enum {@code google.maps.places.v1.FuelOptions.FuelPrice.FuelType}
+ */
+ public enum FuelType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Unspecified fuel type.
+ *
+ *
+ * FUEL_TYPE_UNSPECIFIED = 0;
+ */
+ FUEL_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Diesel fuel.
+ *
+ *
+ * DIESEL = 1;
+ */
+ DIESEL(1),
+ /**
+ *
+ *
+ *
+ * Regular unleaded.
+ *
+ *
+ * REGULAR_UNLEADED = 2;
+ */
+ REGULAR_UNLEADED(2),
+ /**
+ *
+ *
+ *
+ * Midgrade.
+ *
+ *
+ * MIDGRADE = 3;
+ */
+ MIDGRADE(3),
+ /**
+ *
+ *
+ *
+ * Premium.
+ *
+ *
+ * PREMIUM = 4;
+ */
+ PREMIUM(4),
+ /**
+ *
+ *
+ *
+ * SP 91.
+ *
+ *
+ * SP91 = 5;
+ */
+ SP91(5),
+ /**
+ *
+ *
+ *
+ * SP 91 E10.
+ *
+ *
+ * SP91_E10 = 6;
+ */
+ SP91_E10(6),
+ /**
+ *
+ *
+ *
+ * SP 92.
+ *
+ *
+ * SP92 = 7;
+ */
+ SP92(7),
+ /**
+ *
+ *
+ *
+ * SP 95.
+ *
+ *
+ * SP95 = 8;
+ */
+ SP95(8),
+ /**
+ *
+ *
+ *
+ * SP95 E10.
+ *
+ *
+ * SP95_E10 = 9;
+ */
+ SP95_E10(9),
+ /**
+ *
+ *
+ *
+ * SP 98.
+ *
+ *
+ * SP98 = 10;
+ */
+ SP98(10),
+ /**
+ *
+ *
+ *
+ * SP 99.
+ *
+ *
+ * SP99 = 11;
+ */
+ SP99(11),
+ /**
+ *
+ *
+ *
+ * SP 100.
+ *
+ *
+ * SP100 = 12;
+ */
+ SP100(12),
+ /**
+ *
+ *
+ *
+ * LPG.
+ *
+ *
+ * LPG = 13;
+ */
+ LPG(13),
+ /**
+ *
+ *
+ *
+ * E 80.
+ *
+ *
+ * E80 = 14;
+ */
+ E80(14),
+ /**
+ *
+ *
+ *
+ * E 85.
+ *
+ *
+ * E85 = 15;
+ */
+ E85(15),
+ /**
+ *
+ *
+ *
+ * Methane.
+ *
+ *
+ * METHANE = 16;
+ */
+ METHANE(16),
+ /**
+ *
+ *
+ *
+ * Bio-diesel.
+ *
+ *
+ * BIO_DIESEL = 17;
+ */
+ BIO_DIESEL(17),
+ /**
+ *
+ *
+ *
+ * Truck diesel.
+ *
+ *
+ * TRUCK_DIESEL = 18;
+ */
+ TRUCK_DIESEL(18),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Unspecified fuel type.
+ *
+ *
+ * FUEL_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int FUEL_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Diesel fuel.
+ *
+ *
+ * DIESEL = 1;
+ */
+ public static final int DIESEL_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Regular unleaded.
+ *
+ *
+ * REGULAR_UNLEADED = 2;
+ */
+ public static final int REGULAR_UNLEADED_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Midgrade.
+ *
+ *
+ * MIDGRADE = 3;
+ */
+ public static final int MIDGRADE_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * Premium.
+ *
+ *
+ * PREMIUM = 4;
+ */
+ public static final int PREMIUM_VALUE = 4;
+ /**
+ *
+ *
+ *
+ * SP 91.
+ *
+ *
+ * SP91 = 5;
+ */
+ public static final int SP91_VALUE = 5;
+ /**
+ *
+ *
+ *
+ * SP 91 E10.
+ *
+ *
+ * SP91_E10 = 6;
+ */
+ public static final int SP91_E10_VALUE = 6;
+ /**
+ *
+ *
+ *
+ * SP 92.
+ *
+ *
+ * SP92 = 7;
+ */
+ public static final int SP92_VALUE = 7;
+ /**
+ *
+ *
+ *
+ * SP 95.
+ *
+ *
+ * SP95 = 8;
+ */
+ public static final int SP95_VALUE = 8;
+ /**
+ *
+ *
+ *
+ * SP95 E10.
+ *
+ *
+ * SP95_E10 = 9;
+ */
+ public static final int SP95_E10_VALUE = 9;
+ /**
+ *
+ *
+ *
+ * SP 98.
+ *
+ *
+ * SP98 = 10;
+ */
+ public static final int SP98_VALUE = 10;
+ /**
+ *
+ *
+ *
+ * SP 99.
+ *
+ *
+ * SP99 = 11;
+ */
+ public static final int SP99_VALUE = 11;
+ /**
+ *
+ *
+ *
+ * SP 100.
+ *
+ *
+ * SP100 = 12;
+ */
+ public static final int SP100_VALUE = 12;
+ /**
+ *
+ *
+ *
+ * LPG.
+ *
+ *
+ * LPG = 13;
+ */
+ public static final int LPG_VALUE = 13;
+ /**
+ *
+ *
+ *
+ * E 80.
+ *
+ *
+ * E80 = 14;
+ */
+ public static final int E80_VALUE = 14;
+ /**
+ *
+ *
+ *
+ * E 85.
+ *
+ *
+ * E85 = 15;
+ */
+ public static final int E85_VALUE = 15;
+ /**
+ *
+ *
+ *
+ * Methane.
+ *
+ *
+ * METHANE = 16;
+ */
+ public static final int METHANE_VALUE = 16;
+ /**
+ *
+ *
+ *
+ * Bio-diesel.
+ *
+ *
+ * BIO_DIESEL = 17;
+ */
+ public static final int BIO_DIESEL_VALUE = 17;
+ /**
+ *
+ *
+ *
+ * Truck diesel.
+ *
+ *
+ * TRUCK_DIESEL = 18;
+ */
+ public static final int TRUCK_DIESEL_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 FuelType 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 FuelType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return FUEL_TYPE_UNSPECIFIED;
+ case 1:
+ return DIESEL;
+ case 2:
+ return REGULAR_UNLEADED;
+ case 3:
+ return MIDGRADE;
+ case 4:
+ return PREMIUM;
+ case 5:
+ return SP91;
+ case 6:
+ return SP91_E10;
+ case 7:
+ return SP92;
+ case 8:
+ return SP95;
+ case 9:
+ return SP95_E10;
+ case 10:
+ return SP98;
+ case 11:
+ return SP99;
+ case 12:
+ return SP100;
+ case 13:
+ return LPG;
+ case 14:
+ return E80;
+ case 15:
+ return E85;
+ case 16:
+ return METHANE;
+ case 17:
+ return BIO_DIESEL;
+ case 18:
+ return TRUCK_DIESEL;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * The type of fuel.
+ *
+ *
+ * .google.maps.places.v1.FuelOptions.FuelPrice.FuelType type = 1;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ *
+ * The type of fuel.
+ *
+ *
+ * .google.maps.places.v1.FuelOptions.FuelPrice.FuelType type = 1;
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.maps.places.v1.FuelOptions.FuelPrice.FuelType getType() {
+ com.google.maps.places.v1.FuelOptions.FuelPrice.FuelType result =
+ com.google.maps.places.v1.FuelOptions.FuelPrice.FuelType.forNumber(type_);
+ return result == null
+ ? com.google.maps.places.v1.FuelOptions.FuelPrice.FuelType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int PRICE_FIELD_NUMBER = 2;
+ private com.google.type.Money price_;
+ /**
+ *
+ *
+ *
+ * The price of the fuel.
+ *
+ *
+ * .google.type.Money price = 2;
+ *
+ * @return Whether the price field is set.
+ */
+ @java.lang.Override
+ public boolean hasPrice() {
+ return price_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The price of the fuel.
+ *
+ *
+ * .google.type.Money price = 2;
+ *
+ * @return The price.
+ */
+ @java.lang.Override
+ public com.google.type.Money getPrice() {
+ return price_ == null ? com.google.type.Money.getDefaultInstance() : price_;
+ }
+ /**
+ *
+ *
+ *
+ * The price of the fuel.
+ *
+ *
+ * .google.type.Money price = 2;
+ */
+ @java.lang.Override
+ public com.google.type.MoneyOrBuilder getPriceOrBuilder() {
+ return price_ == null ? com.google.type.Money.getDefaultInstance() : price_;
+ }
+
+ public static final int UPDATE_TIME_FIELD_NUMBER = 3;
+ private com.google.protobuf.Timestamp updateTime_;
+ /**
+ *
+ *
+ *
+ * The time the fuel price was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3;
+ *
+ * @return Whether the updateTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateTime() {
+ return updateTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The time the fuel price was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3;
+ *
+ * @return The updateTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+ }
+ /**
+ *
+ *
+ *
+ * The time the fuel price was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+ }
+
+ 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 (type_
+ != com.google.maps.places.v1.FuelOptions.FuelPrice.FuelType.FUEL_TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, type_);
+ }
+ if (price_ != null) {
+ output.writeMessage(2, getPrice());
+ }
+ if (updateTime_ != null) {
+ output.writeMessage(3, getUpdateTime());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (type_
+ != com.google.maps.places.v1.FuelOptions.FuelPrice.FuelType.FUEL_TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
+ }
+ if (price_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPrice());
+ }
+ if (updateTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
+ }
+ 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.places.v1.FuelOptions.FuelPrice)) {
+ return super.equals(obj);
+ }
+ com.google.maps.places.v1.FuelOptions.FuelPrice other =
+ (com.google.maps.places.v1.FuelOptions.FuelPrice) obj;
+
+ if (type_ != other.type_) return false;
+ if (hasPrice() != other.hasPrice()) return false;
+ if (hasPrice()) {
+ if (!getPrice().equals(other.getPrice())) return false;
+ }
+ if (hasUpdateTime() != other.hasUpdateTime()) return false;
+ if (hasUpdateTime()) {
+ if (!getUpdateTime().equals(other.getUpdateTime())) 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) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ if (hasPrice()) {
+ hash = (37 * hash) + PRICE_FIELD_NUMBER;
+ hash = (53 * hash) + getPrice().hashCode();
+ }
+ if (hasUpdateTime()) {
+ hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdateTime().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.maps.places.v1.FuelOptions.FuelPrice parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.FuelOptions.FuelPrice 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.places.v1.FuelOptions.FuelPrice parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.FuelOptions.FuelPrice 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.places.v1.FuelOptions.FuelPrice parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.FuelOptions.FuelPrice parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.maps.places.v1.FuelOptions.FuelPrice parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.FuelOptions.FuelPrice 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.places.v1.FuelOptions.FuelPrice parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.FuelOptions.FuelPrice 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.places.v1.FuelOptions.FuelPrice parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.FuelOptions.FuelPrice 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.places.v1.FuelOptions.FuelPrice 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;
+ }
+ /**
+ *
+ *
+ *
+ * Fuel price information for a given type.
+ *
+ *
+ * Protobuf type {@code google.maps.places.v1.FuelOptions.FuelPrice}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The type of fuel.
+ *
+ *
+ * .google.maps.places.v1.FuelOptions.FuelPrice.FuelType type = 1;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ *
+ * The type of fuel.
+ *
+ *
+ * .google.maps.places.v1.FuelOptions.FuelPrice.FuelType type = 1;
+ *
+ * @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_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The type of fuel.
+ *
+ *
+ * .google.maps.places.v1.FuelOptions.FuelPrice.FuelType type = 1;
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.maps.places.v1.FuelOptions.FuelPrice.FuelType getType() {
+ com.google.maps.places.v1.FuelOptions.FuelPrice.FuelType result =
+ com.google.maps.places.v1.FuelOptions.FuelPrice.FuelType.forNumber(type_);
+ return result == null
+ ? com.google.maps.places.v1.FuelOptions.FuelPrice.FuelType.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * The type of fuel.
+ *
+ *
+ * .google.maps.places.v1.FuelOptions.FuelPrice.FuelType type = 1;
+ *
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(com.google.maps.places.v1.FuelOptions.FuelPrice.FuelType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ type_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The type of fuel.
+ *
+ *
+ * .google.maps.places.v1.FuelOptions.FuelPrice.FuelType type = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ type_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.type.Money price_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
+ priceBuilder_;
+ /**
+ *
+ *
+ *
+ * The price of the fuel.
+ *
+ *
+ * .google.type.Money price = 2;
+ *
+ * @return Whether the price field is set.
+ */
+ public boolean hasPrice() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * The price of the fuel.
+ *
+ *
+ * .google.type.Money price = 2;
+ *
+ * @return The price.
+ */
+ public com.google.type.Money getPrice() {
+ if (priceBuilder_ == null) {
+ return price_ == null ? com.google.type.Money.getDefaultInstance() : price_;
+ } else {
+ return priceBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The price of the fuel.
+ *
+ *
+ * .google.type.Money price = 2;
+ */
+ public Builder setPrice(com.google.type.Money value) {
+ if (priceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ price_ = value;
+ } else {
+ priceBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The price of the fuel.
+ *
+ *
+ * .google.type.Money price = 2;
+ */
+ public Builder setPrice(com.google.type.Money.Builder builderForValue) {
+ if (priceBuilder_ == null) {
+ price_ = builderForValue.build();
+ } else {
+ priceBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The price of the fuel.
+ *
+ *
+ * .google.type.Money price = 2;
+ */
+ public Builder mergePrice(com.google.type.Money value) {
+ if (priceBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && price_ != null
+ && price_ != com.google.type.Money.getDefaultInstance()) {
+ getPriceBuilder().mergeFrom(value);
+ } else {
+ price_ = value;
+ }
+ } else {
+ priceBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The price of the fuel.
+ *
+ *
+ * .google.type.Money price = 2;
+ */
+ public Builder clearPrice() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ price_ = null;
+ if (priceBuilder_ != null) {
+ priceBuilder_.dispose();
+ priceBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The price of the fuel.
+ *
+ *
+ * .google.type.Money price = 2;
+ */
+ public com.google.type.Money.Builder getPriceBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getPriceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The price of the fuel.
+ *
+ *
+ * .google.type.Money price = 2;
+ */
+ public com.google.type.MoneyOrBuilder getPriceOrBuilder() {
+ if (priceBuilder_ != null) {
+ return priceBuilder_.getMessageOrBuilder();
+ } else {
+ return price_ == null ? com.google.type.Money.getDefaultInstance() : price_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The price of the fuel.
+ *
+ *
+ * .google.type.Money price = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
+ getPriceFieldBuilder() {
+ if (priceBuilder_ == null) {
+ priceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.type.Money,
+ com.google.type.Money.Builder,
+ com.google.type.MoneyOrBuilder>(getPrice(), getParentForChildren(), isClean());
+ price_ = null;
+ }
+ return priceBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp updateTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ updateTimeBuilder_;
+ /**
+ *
+ *
+ *
+ * The time the fuel price was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3;
+ *
+ * @return Whether the updateTime field is set.
+ */
+ public boolean hasUpdateTime() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * The time the fuel price was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3;
+ *
+ * @return The updateTime.
+ */
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ if (updateTimeBuilder_ == null) {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ } else {
+ return updateTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The time the fuel price was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3;
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ updateTime_ = value;
+ } else {
+ updateTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time the fuel price was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3;
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = builderForValue.build();
+ } else {
+ updateTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time the fuel price was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3;
+ */
+ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && updateTime_ != null
+ && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getUpdateTimeBuilder().mergeFrom(value);
+ } else {
+ updateTime_ = value;
+ }
+ } else {
+ updateTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time the fuel price was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3;
+ */
+ public Builder clearUpdateTime() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ updateTime_ = null;
+ if (updateTimeBuilder_ != null) {
+ updateTimeBuilder_.dispose();
+ updateTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The time the fuel price was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3;
+ */
+ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getUpdateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The time the fuel price was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3;
+ */
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ if (updateTimeBuilder_ != null) {
+ return updateTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The time the fuel price was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getUpdateTimeFieldBuilder() {
+ if (updateTimeBuilder_ == null) {
+ updateTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getUpdateTime(), getParentForChildren(), isClean());
+ updateTime_ = null;
+ }
+ return updateTimeBuilder_;
+ }
+
+ @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.places.v1.FuelOptions.FuelPrice)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.maps.places.v1.FuelOptions.FuelPrice)
+ private static final com.google.maps.places.v1.FuelOptions.FuelPrice DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.maps.places.v1.FuelOptions.FuelPrice();
+ }
+
+ public static com.google.maps.places.v1.FuelOptions.FuelPrice getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ @java.lang.Override
+ public java.util.List
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.maps.places.v1.FuelOptions.FuelPriceOrBuilder>
+ getFuelPricesOrBuilderList() {
+ return fuelPrices_;
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ @java.lang.Override
+ public int getFuelPricesCount() {
+ return fuelPrices_.size();
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ @java.lang.Override
+ public com.google.maps.places.v1.FuelOptions.FuelPrice getFuelPrices(int index) {
+ return fuelPrices_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ @java.lang.Override
+ public com.google.maps.places.v1.FuelOptions.FuelPriceOrBuilder getFuelPricesOrBuilder(
+ int index) {
+ return fuelPrices_.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 < fuelPrices_.size(); i++) {
+ output.writeMessage(1, fuelPrices_.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 < fuelPrices_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fuelPrices_.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.places.v1.FuelOptions)) {
+ return super.equals(obj);
+ }
+ com.google.maps.places.v1.FuelOptions other = (com.google.maps.places.v1.FuelOptions) obj;
+
+ if (!getFuelPricesList().equals(other.getFuelPricesList())) 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 (getFuelPricesCount() > 0) {
+ hash = (37 * hash) + FUEL_PRICES_FIELD_NUMBER;
+ hash = (53 * hash) + getFuelPricesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.maps.places.v1.FuelOptions parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.FuelOptions 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.places.v1.FuelOptions parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.FuelOptions 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.places.v1.FuelOptions parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.FuelOptions parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.maps.places.v1.FuelOptions parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.FuelOptions 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.places.v1.FuelOptions parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.FuelOptions 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.places.v1.FuelOptions parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.FuelOptions 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.places.v1.FuelOptions 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;
+ }
+ /**
+ *
+ *
+ *
+ * The most recent information about fuel options in a gas station. This
+ * information is updated regularly.
+ *
+ *
+ * Protobuf type {@code google.maps.places.v1.FuelOptions}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public java.util.List
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public int getFuelPricesCount() {
+ if (fuelPricesBuilder_ == null) {
+ return fuelPrices_.size();
+ } else {
+ return fuelPricesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public com.google.maps.places.v1.FuelOptions.FuelPrice getFuelPrices(int index) {
+ if (fuelPricesBuilder_ == null) {
+ return fuelPrices_.get(index);
+ } else {
+ return fuelPricesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public Builder setFuelPrices(int index, com.google.maps.places.v1.FuelOptions.FuelPrice value) {
+ if (fuelPricesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFuelPricesIsMutable();
+ fuelPrices_.set(index, value);
+ onChanged();
+ } else {
+ fuelPricesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public Builder setFuelPrices(
+ int index, com.google.maps.places.v1.FuelOptions.FuelPrice.Builder builderForValue) {
+ if (fuelPricesBuilder_ == null) {
+ ensureFuelPricesIsMutable();
+ fuelPrices_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ fuelPricesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public Builder addFuelPrices(com.google.maps.places.v1.FuelOptions.FuelPrice value) {
+ if (fuelPricesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFuelPricesIsMutable();
+ fuelPrices_.add(value);
+ onChanged();
+ } else {
+ fuelPricesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public Builder addFuelPrices(int index, com.google.maps.places.v1.FuelOptions.FuelPrice value) {
+ if (fuelPricesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFuelPricesIsMutable();
+ fuelPrices_.add(index, value);
+ onChanged();
+ } else {
+ fuelPricesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public Builder addFuelPrices(
+ com.google.maps.places.v1.FuelOptions.FuelPrice.Builder builderForValue) {
+ if (fuelPricesBuilder_ == null) {
+ ensureFuelPricesIsMutable();
+ fuelPrices_.add(builderForValue.build());
+ onChanged();
+ } else {
+ fuelPricesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public Builder addFuelPrices(
+ int index, com.google.maps.places.v1.FuelOptions.FuelPrice.Builder builderForValue) {
+ if (fuelPricesBuilder_ == null) {
+ ensureFuelPricesIsMutable();
+ fuelPrices_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ fuelPricesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public Builder addAllFuelPrices(
+ java.lang.Iterable extends com.google.maps.places.v1.FuelOptions.FuelPrice> values) {
+ if (fuelPricesBuilder_ == null) {
+ ensureFuelPricesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fuelPrices_);
+ onChanged();
+ } else {
+ fuelPricesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public Builder clearFuelPrices() {
+ if (fuelPricesBuilder_ == null) {
+ fuelPrices_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ fuelPricesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public Builder removeFuelPrices(int index) {
+ if (fuelPricesBuilder_ == null) {
+ ensureFuelPricesIsMutable();
+ fuelPrices_.remove(index);
+ onChanged();
+ } else {
+ fuelPricesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public com.google.maps.places.v1.FuelOptions.FuelPrice.Builder getFuelPricesBuilder(int index) {
+ return getFuelPricesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public com.google.maps.places.v1.FuelOptions.FuelPriceOrBuilder getFuelPricesOrBuilder(
+ int index) {
+ if (fuelPricesBuilder_ == null) {
+ return fuelPrices_.get(index);
+ } else {
+ return fuelPricesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public java.util.List extends com.google.maps.places.v1.FuelOptions.FuelPriceOrBuilder>
+ getFuelPricesOrBuilderList() {
+ if (fuelPricesBuilder_ != null) {
+ return fuelPricesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(fuelPrices_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public com.google.maps.places.v1.FuelOptions.FuelPrice.Builder addFuelPricesBuilder() {
+ return getFuelPricesFieldBuilder()
+ .addBuilder(com.google.maps.places.v1.FuelOptions.FuelPrice.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public com.google.maps.places.v1.FuelOptions.FuelPrice.Builder addFuelPricesBuilder(int index) {
+ return getFuelPricesFieldBuilder()
+ .addBuilder(index, com.google.maps.places.v1.FuelOptions.FuelPrice.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ public java.util.List
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ java.util.List
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ com.google.maps.places.v1.FuelOptions.FuelPrice getFuelPrices(int index);
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ int getFuelPricesCount();
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ java.util.List extends com.google.maps.places.v1.FuelOptions.FuelPriceOrBuilder>
+ getFuelPricesOrBuilderList();
+ /**
+ *
+ *
+ *
+ * The last known fuel price for each type of fuel this station has. There is
+ * one entry per fuel type this station has. Order is not important.
+ *
+ *
+ * repeated .google.maps.places.v1.FuelOptions.FuelPrice fuel_prices = 1;
+ */
+ com.google.maps.places.v1.FuelOptions.FuelPriceOrBuilder getFuelPricesOrBuilder(int index);
+}
diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/FuelOptionsProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/FuelOptionsProto.java
new file mode 100644
index 000000000000..a0d237782066
--- /dev/null
+++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/FuelOptionsProto.java
@@ -0,0 +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/places/v1/fuel_options.proto
+
+package com.google.maps.places.v1;
+
+public final class FuelOptionsProto {
+ private FuelOptionsProto() {}
+
+ 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_places_v1_FuelOptions_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_maps_places_v1_FuelOptions_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_maps_places_v1_FuelOptions_FuelPrice_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_maps_places_v1_FuelOptions_FuelPrice_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/places/v1/fuel_options.pro"
+ + "to\022\025google.maps.places.v1\032\037google/protob"
+ + "uf/timestamp.proto\032\027google/type/money.pr"
+ + "oto\"\377\003\n\013FuelOptions\022A\n\013fuel_prices\030\001 \003(\013"
+ + "2,.google.maps.places.v1.FuelOptions.Fue"
+ + "lPrice\032\254\003\n\tFuelPrice\022C\n\004type\030\001 \001(\01625.goo"
+ + "gle.maps.places.v1.FuelOptions.FuelPrice"
+ + ".FuelType\022!\n\005price\030\002 \001(\0132\022.google.type.M"
+ + "oney\022/\n\013update_time\030\003 \001(\0132\032.google.proto"
+ + "buf.Timestamp\"\205\002\n\010FuelType\022\031\n\025FUEL_TYPE_"
+ + "UNSPECIFIED\020\000\022\n\n\006DIESEL\020\001\022\024\n\020REGULAR_UNL"
+ + "EADED\020\002\022\014\n\010MIDGRADE\020\003\022\013\n\007PREMIUM\020\004\022\010\n\004SP"
+ + "91\020\005\022\014\n\010SP91_E10\020\006\022\010\n\004SP92\020\007\022\010\n\004SP95\020\010\022\014"
+ + "\n\010SP95_E10\020\t\022\010\n\004SP98\020\n\022\010\n\004SP99\020\013\022\t\n\005SP10"
+ + "0\020\014\022\007\n\003LPG\020\r\022\007\n\003E80\020\016\022\007\n\003E85\020\017\022\013\n\007METHAN"
+ + "E\020\020\022\016\n\nBIO_DIESEL\020\021\022\020\n\014TRUCK_DIESEL\020\022B\244\001"
+ + "\n\031com.google.maps.places.v1B\020FuelOptions"
+ + "ProtoP\001Z7cloud.google.com/go/maps/places"
+ + "/apiv1/placespb;placespb\370\001\001\242\002\006GMPSV1\252\002\025G"
+ + "oogle.Maps.Places.V1\312\002\025Google\\Maps\\Place"
+ + "s\\V1b\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ com.google.type.MoneyProto.getDescriptor(),
+ });
+ internal_static_google_maps_places_v1_FuelOptions_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_maps_places_v1_FuelOptions_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_maps_places_v1_FuelOptions_descriptor,
+ new java.lang.String[] {
+ "FuelPrices",
+ });
+ internal_static_google_maps_places_v1_FuelOptions_FuelPrice_descriptor =
+ internal_static_google_maps_places_v1_FuelOptions_descriptor.getNestedTypes().get(0);
+ internal_static_google_maps_places_v1_FuelOptions_FuelPrice_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_maps_places_v1_FuelOptions_FuelPrice_descriptor,
+ new java.lang.String[] {
+ "Type", "Price", "UpdateTime",
+ });
+ com.google.protobuf.TimestampProto.getDescriptor();
+ com.google.type.MoneyProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/GeometryProto.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/GeometryProto.java
index 9722949cf5da..bf308d41a8d5 100644
--- a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/GeometryProto.java
+++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/GeometryProto.java
@@ -43,13 +43,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n$google/maps/places/v1/geometry.proto\022\025"
+ "google.maps.places.v1\032\037google/api/field_"
+ "behavior.proto\032\030google/type/latlng.proto"
- + "\"G\n\006Circle\022(\n\006center\030\001 \001(\0132\023.google.type"
- + ".LatLngB\003\340A\002\022\023\n\006radius\030\002 \001(\001B\003\340A\002B\245\001\n\031co"
- + "m.google.maps.places.v1B\rGeometryProtoP\001"
- + "Z;google.golang.org/genproto/googleapis/"
- + "maps/places/v1;places\370\001\001\242\002\006GMPSV1\252\002\025Goog"
- + "le.Maps.Places.V1\312\002\025Google\\Maps\\Places\\V"
- + "1b\006proto3"
+ + "\"I\n\006Circle\022)\n\006center\030\001 \001(\0132\023.google.type"
+ + ".LatLngB\004\342A\001\002\022\024\n\006radius\030\002 \001(\001B\004\342A\001\002B\241\001\n\031"
+ + "com.google.maps.places.v1B\rGeometryProto"
+ + "P\001Z7cloud.google.com/go/maps/places/apiv"
+ + "1/placespb;placespb\370\001\001\242\002\006GMPSV1\252\002\025Google"
+ + ".Maps.Places.V1\312\002\025Google\\Maps\\Places\\V1b"
+ + "\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/GetPhotoMediaRequest.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/GetPhotoMediaRequest.java
new file mode 100644
index 000000000000..1b2ab7e5151d
--- /dev/null
+++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/GetPhotoMediaRequest.java
@@ -0,0 +1,1022 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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/places/v1/places_service.proto
+
+package com.google.maps.places.v1;
+
+/**
+ *
+ *
+ *
+ * Request for fetching a photo of a place using a photo resource name.
+ *
+ *
+ * Protobuf type {@code google.maps.places.v1.GetPhotoMediaRequest}
+ */
+public final class GetPhotoMediaRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.maps.places.v1.GetPhotoMediaRequest)
+ GetPhotoMediaRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GetPhotoMediaRequest.newBuilder() to construct.
+ private GetPhotoMediaRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GetPhotoMediaRequest() {
+ name_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GetPhotoMediaRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.maps.places.v1.PlacesServiceProto
+ .internal_static_google_maps_places_v1_GetPhotoMediaRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.maps.places.v1.PlacesServiceProto
+ .internal_static_google_maps_places_v1_GetPhotoMediaRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.maps.places.v1.GetPhotoMediaRequest.class,
+ com.google.maps.places.v1.GetPhotoMediaRequest.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The resource name of a photo. It is returned in Place's
+ * photos.name field. Format:
+ * places/<place_id>/photos/<photo_reference>/media.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of a photo. It is returned in Place's
+ * photos.name field. Format:
+ * places/<place_id>/photos/<photo_reference>/media.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @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 MAX_WIDTH_PX_FIELD_NUMBER = 2;
+ private int maxWidthPx_ = 0;
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the maximum desired width, in pixels, of the image. If
+ * the image is smaller than the values specified, the original image will be
+ * returned. If the image is larger in either dimension, it will be scaled to
+ * match the smaller of the two dimensions, restricted to its original aspect
+ * ratio. Both the max_height_px and max_width_px properties accept an integer
+ * between 1 and 4800, inclusively. If the value is not within the allowed
+ * range, an INVALID_ARGUMENT error will be returned.
+ *
+ * At least one of max_height_px or max_width_px needs to be specified. If
+ * neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT
+ * error will be returned.
+ *
+ *
+ * int32 max_width_px = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The maxWidthPx.
+ */
+ @java.lang.Override
+ public int getMaxWidthPx() {
+ return maxWidthPx_;
+ }
+
+ public static final int MAX_HEIGHT_PX_FIELD_NUMBER = 3;
+ private int maxHeightPx_ = 0;
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the maximum desired height, in pixels, of the image. If
+ * the image is smaller than the values specified, the original image will be
+ * returned. If the image is larger in either dimension, it will be scaled to
+ * match the smaller of the two dimensions, restricted to its original aspect
+ * ratio. Both the max_height_px and max_width_px properties accept an integer
+ * between 1 and 4800, inclusively. If the value is not within the allowed
+ * range, an INVALID_ARGUMENT error will be returned.
+ *
+ * At least one of max_height_px or max_width_px needs to be specified. If
+ * neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT
+ * error will be returned.
+ *
+ *
+ * int32 max_height_px = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The maxHeightPx.
+ */
+ @java.lang.Override
+ public int getMaxHeightPx() {
+ return maxHeightPx_;
+ }
+
+ public static final int SKIP_HTTP_REDIRECT_FIELD_NUMBER = 4;
+ private boolean skipHttpRedirect_ = false;
+ /**
+ *
+ *
+ *
+ * Optional. If set, skip the default HTTP redirect behavior and render a text
+ * format (for example, in JSON format for HTTP use case) response. If not
+ * set, an HTTP redirect will be issued to redirect the call to the image
+ * midea. This option is ignored for non-HTTP requests.
+ *
+ *
+ * bool skip_http_redirect = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The skipHttpRedirect.
+ */
+ @java.lang.Override
+ public boolean getSkipHttpRedirect() {
+ return skipHttpRedirect_;
+ }
+
+ 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 (maxWidthPx_ != 0) {
+ output.writeInt32(2, maxWidthPx_);
+ }
+ if (maxHeightPx_ != 0) {
+ output.writeInt32(3, maxHeightPx_);
+ }
+ if (skipHttpRedirect_ != false) {
+ output.writeBool(4, skipHttpRedirect_);
+ }
+ 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 (maxWidthPx_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxWidthPx_);
+ }
+ if (maxHeightPx_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxHeightPx_);
+ }
+ if (skipHttpRedirect_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, skipHttpRedirect_);
+ }
+ 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.places.v1.GetPhotoMediaRequest)) {
+ return super.equals(obj);
+ }
+ com.google.maps.places.v1.GetPhotoMediaRequest other =
+ (com.google.maps.places.v1.GetPhotoMediaRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (getMaxWidthPx() != other.getMaxWidthPx()) return false;
+ if (getMaxHeightPx() != other.getMaxHeightPx()) return false;
+ if (getSkipHttpRedirect() != other.getSkipHttpRedirect()) 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) + MAX_WIDTH_PX_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxWidthPx();
+ hash = (37 * hash) + MAX_HEIGHT_PX_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxHeightPx();
+ hash = (37 * hash) + SKIP_HTTP_REDIRECT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipHttpRedirect());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.maps.places.v1.GetPhotoMediaRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.GetPhotoMediaRequest 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.places.v1.GetPhotoMediaRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.GetPhotoMediaRequest 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.places.v1.GetPhotoMediaRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.GetPhotoMediaRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.maps.places.v1.GetPhotoMediaRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.GetPhotoMediaRequest 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.places.v1.GetPhotoMediaRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.GetPhotoMediaRequest 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.places.v1.GetPhotoMediaRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.GetPhotoMediaRequest 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.places.v1.GetPhotoMediaRequest 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;
+ }
+ /**
+ *
+ *
+ *
+ * Request for fetching a photo of a place using a photo resource name.
+ *
+ *
+ * Protobuf type {@code google.maps.places.v1.GetPhotoMediaRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The resource name of a photo. It is returned in Place's
+ * photos.name field. Format:
+ * places/<place_id>/photos/<photo_reference>/media.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of a photo. It is returned in Place's
+ * photos.name field. Format:
+ * places/<place_id>/photos/<photo_reference>/media.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of a photo. It is returned in Place's
+ * photos.name field. Format:
+ * places/<place_id>/photos/<photo_reference>/media.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @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;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of a photo. It is returned in Place's
+ * photos.name field. Format:
+ * places/<place_id>/photos/<photo_reference>/media.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The resource name of a photo. It is returned in Place's
+ * photos.name field. Format:
+ * places/<place_id>/photos/<photo_reference>/media.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @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 int maxWidthPx_;
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the maximum desired width, in pixels, of the image. If
+ * the image is smaller than the values specified, the original image will be
+ * returned. If the image is larger in either dimension, it will be scaled to
+ * match the smaller of the two dimensions, restricted to its original aspect
+ * ratio. Both the max_height_px and max_width_px properties accept an integer
+ * between 1 and 4800, inclusively. If the value is not within the allowed
+ * range, an INVALID_ARGUMENT error will be returned.
+ *
+ * At least one of max_height_px or max_width_px needs to be specified. If
+ * neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT
+ * error will be returned.
+ *
+ *
+ * int32 max_width_px = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The maxWidthPx.
+ */
+ @java.lang.Override
+ public int getMaxWidthPx() {
+ return maxWidthPx_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the maximum desired width, in pixels, of the image. If
+ * the image is smaller than the values specified, the original image will be
+ * returned. If the image is larger in either dimension, it will be scaled to
+ * match the smaller of the two dimensions, restricted to its original aspect
+ * ratio. Both the max_height_px and max_width_px properties accept an integer
+ * between 1 and 4800, inclusively. If the value is not within the allowed
+ * range, an INVALID_ARGUMENT error will be returned.
+ *
+ * At least one of max_height_px or max_width_px needs to be specified. If
+ * neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT
+ * error will be returned.
+ *
+ *
+ * int32 max_width_px = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The maxWidthPx to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxWidthPx(int value) {
+
+ maxWidthPx_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the maximum desired width, in pixels, of the image. If
+ * the image is smaller than the values specified, the original image will be
+ * returned. If the image is larger in either dimension, it will be scaled to
+ * match the smaller of the two dimensions, restricted to its original aspect
+ * ratio. Both the max_height_px and max_width_px properties accept an integer
+ * between 1 and 4800, inclusively. If the value is not within the allowed
+ * range, an INVALID_ARGUMENT error will be returned.
+ *
+ * At least one of max_height_px or max_width_px needs to be specified. If
+ * neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT
+ * error will be returned.
+ *
+ *
+ * int32 max_width_px = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxWidthPx() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ maxWidthPx_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int maxHeightPx_;
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the maximum desired height, in pixels, of the image. If
+ * the image is smaller than the values specified, the original image will be
+ * returned. If the image is larger in either dimension, it will be scaled to
+ * match the smaller of the two dimensions, restricted to its original aspect
+ * ratio. Both the max_height_px and max_width_px properties accept an integer
+ * between 1 and 4800, inclusively. If the value is not within the allowed
+ * range, an INVALID_ARGUMENT error will be returned.
+ *
+ * At least one of max_height_px or max_width_px needs to be specified. If
+ * neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT
+ * error will be returned.
+ *
+ *
+ * int32 max_height_px = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The maxHeightPx.
+ */
+ @java.lang.Override
+ public int getMaxHeightPx() {
+ return maxHeightPx_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the maximum desired height, in pixels, of the image. If
+ * the image is smaller than the values specified, the original image will be
+ * returned. If the image is larger in either dimension, it will be scaled to
+ * match the smaller of the two dimensions, restricted to its original aspect
+ * ratio. Both the max_height_px and max_width_px properties accept an integer
+ * between 1 and 4800, inclusively. If the value is not within the allowed
+ * range, an INVALID_ARGUMENT error will be returned.
+ *
+ * At least one of max_height_px or max_width_px needs to be specified. If
+ * neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT
+ * error will be returned.
+ *
+ *
+ * int32 max_height_px = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The maxHeightPx to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxHeightPx(int value) {
+
+ maxHeightPx_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the maximum desired height, in pixels, of the image. If
+ * the image is smaller than the values specified, the original image will be
+ * returned. If the image is larger in either dimension, it will be scaled to
+ * match the smaller of the two dimensions, restricted to its original aspect
+ * ratio. Both the max_height_px and max_width_px properties accept an integer
+ * between 1 and 4800, inclusively. If the value is not within the allowed
+ * range, an INVALID_ARGUMENT error will be returned.
+ *
+ * At least one of max_height_px or max_width_px needs to be specified. If
+ * neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT
+ * error will be returned.
+ *
+ *
+ * int32 max_height_px = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxHeightPx() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ maxHeightPx_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean skipHttpRedirect_;
+ /**
+ *
+ *
+ *
+ * Optional. If set, skip the default HTTP redirect behavior and render a text
+ * format (for example, in JSON format for HTTP use case) response. If not
+ * set, an HTTP redirect will be issued to redirect the call to the image
+ * midea. This option is ignored for non-HTTP requests.
+ *
+ *
+ * bool skip_http_redirect = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The skipHttpRedirect.
+ */
+ @java.lang.Override
+ public boolean getSkipHttpRedirect() {
+ return skipHttpRedirect_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If set, skip the default HTTP redirect behavior and render a text
+ * format (for example, in JSON format for HTTP use case) response. If not
+ * set, an HTTP redirect will be issued to redirect the call to the image
+ * midea. This option is ignored for non-HTTP requests.
+ *
+ *
+ * bool skip_http_redirect = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The skipHttpRedirect to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSkipHttpRedirect(boolean value) {
+
+ skipHttpRedirect_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. If set, skip the default HTTP redirect behavior and render a text
+ * format (for example, in JSON format for HTTP use case) response. If not
+ * set, an HTTP redirect will be issued to redirect the call to the image
+ * midea. This option is ignored for non-HTTP requests.
+ *
+ *
+ * bool skip_http_redirect = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSkipHttpRedirect() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ skipHttpRedirect_ = false;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.maps.places.v1.GetPhotoMediaRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.maps.places.v1.GetPhotoMediaRequest)
+ private static final com.google.maps.places.v1.GetPhotoMediaRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.maps.places.v1.GetPhotoMediaRequest();
+ }
+
+ public static com.google.maps.places.v1.GetPhotoMediaRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required. The resource name of a photo. It is returned in Place's
+ * photos.name field. Format:
+ * places/<place_id>/photos/<photo_reference>/media.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Required. The resource name of a photo. It is returned in Place's
+ * photos.name field. Format:
+ * places/<place_id>/photos/<photo_reference>/media.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the maximum desired width, in pixels, of the image. If
+ * the image is smaller than the values specified, the original image will be
+ * returned. If the image is larger in either dimension, it will be scaled to
+ * match the smaller of the two dimensions, restricted to its original aspect
+ * ratio. Both the max_height_px and max_width_px properties accept an integer
+ * between 1 and 4800, inclusively. If the value is not within the allowed
+ * range, an INVALID_ARGUMENT error will be returned.
+ *
+ * At least one of max_height_px or max_width_px needs to be specified. If
+ * neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT
+ * error will be returned.
+ *
+ *
+ * int32 max_width_px = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The maxWidthPx.
+ */
+ int getMaxWidthPx();
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the maximum desired height, in pixels, of the image. If
+ * the image is smaller than the values specified, the original image will be
+ * returned. If the image is larger in either dimension, it will be scaled to
+ * match the smaller of the two dimensions, restricted to its original aspect
+ * ratio. Both the max_height_px and max_width_px properties accept an integer
+ * between 1 and 4800, inclusively. If the value is not within the allowed
+ * range, an INVALID_ARGUMENT error will be returned.
+ *
+ * At least one of max_height_px or max_width_px needs to be specified. If
+ * neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT
+ * error will be returned.
+ *
+ *
+ * int32 max_height_px = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The maxHeightPx.
+ */
+ int getMaxHeightPx();
+
+ /**
+ *
+ *
+ *
+ * Optional. If set, skip the default HTTP redirect behavior and render a text
+ * format (for example, in JSON format for HTTP use case) response. If not
+ * set, an HTTP redirect will be issued to redirect the call to the image
+ * midea. This option is ignored for non-HTTP requests.
+ *
+ *
+ * bool skip_http_redirect = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The skipHttpRedirect.
+ */
+ boolean getSkipHttpRedirect();
+}
diff --git a/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/GetPlaceRequest.java b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/GetPlaceRequest.java
new file mode 100644
index 000000000000..469262a46100
--- /dev/null
+++ b/java-maps-places/proto-google-maps-places-v1/src/main/java/com/google/maps/places/v1/GetPlaceRequest.java
@@ -0,0 +1,1092 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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/places/v1/places_service.proto
+
+package com.google.maps.places.v1;
+
+/**
+ *
+ *
+ *
+ * Request for fetching a Place with a place id (in a name) string.
+ *
+ *
+ * Protobuf type {@code google.maps.places.v1.GetPlaceRequest}
+ */
+public final class GetPlaceRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.maps.places.v1.GetPlaceRequest)
+ GetPlaceRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GetPlaceRequest.newBuilder() to construct.
+ private GetPlaceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GetPlaceRequest() {
+ name_ = "";
+ languageCode_ = "";
+ regionCode_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GetPlaceRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.maps.places.v1.PlacesServiceProto
+ .internal_static_google_maps_places_v1_GetPlaceRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.maps.places.v1.PlacesServiceProto
+ .internal_static_google_maps_places_v1_GetPlaceRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.maps.places.v1.GetPlaceRequest.class,
+ com.google.maps.places.v1.GetPlaceRequest.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Required. A place_id returned in a Place (with "places/" prefix), or
+ * equivalently the name in the same Place. Format: places/<place_id>.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. A place_id returned in a Place (with "places/" prefix), or
+ * equivalently the name in the same Place. Format: places/<place_id>.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @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 LANGUAGE_CODE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object languageCode_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. Place details will be displayed with the preferred language if
+ * available.
+ *
+ * Current list of supported languages:
+ * https://developers.google.com/maps/faq#languagesupport.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The languageCode.
+ */
+ @java.lang.Override
+ public java.lang.String getLanguageCode() {
+ java.lang.Object ref = languageCode_;
+ 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();
+ languageCode_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Place details will be displayed with the preferred language if
+ * available.
+ *
+ * Current list of supported languages:
+ * https://developers.google.com/maps/faq#languagesupport.
+ *
+ *
+ * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for languageCode.
+ */
+ @java.lang.Override
+ 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);
+ languageCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REGION_CODE_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object regionCode_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The Unicode country/region code (CLDR) of the location where the
+ * request is coming from. This parameter is used to display the place
+ * details, like region-specific place name, if available. The parameter can
+ * affect results based on applicable law.
+ * For more information, see
+ * http://www.unicode.org/reports/tr35/#unicode_region_subtag.
+ *
+ *
+ * Note that 3-digit region codes are not currently supported.
+ *
+ *
+ * string region_code = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The regionCode.
+ */
+ @java.lang.Override
+ public java.lang.String getRegionCode() {
+ java.lang.Object ref = regionCode_;
+ 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();
+ regionCode_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The Unicode country/region code (CLDR) of the location where the
+ * request is coming from. This parameter is used to display the place
+ * details, like region-specific place name, if available. The parameter can
+ * affect results based on applicable law.
+ * For more information, see
+ * http://www.unicode.org/reports/tr35/#unicode_region_subtag.
+ *
+ *
+ * Note that 3-digit region codes are not currently supported.
+ *
+ *
+ * string region_code = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for regionCode.
+ */
+ @java.lang.Override
+ 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);
+ regionCode_ = 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(languageCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, regionCode_);
+ }
+ 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(languageCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, regionCode_);
+ }
+ 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.places.v1.GetPlaceRequest)) {
+ return super.equals(obj);
+ }
+ com.google.maps.places.v1.GetPlaceRequest other =
+ (com.google.maps.places.v1.GetPlaceRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getLanguageCode().equals(other.getLanguageCode())) return false;
+ if (!getRegionCode().equals(other.getRegionCode())) 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) + LANGUAGE_CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getLanguageCode().hashCode();
+ hash = (37 * hash) + REGION_CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getRegionCode().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.maps.places.v1.GetPlaceRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.GetPlaceRequest 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.places.v1.GetPlaceRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.GetPlaceRequest 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.places.v1.GetPlaceRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.maps.places.v1.GetPlaceRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.maps.places.v1.GetPlaceRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.GetPlaceRequest 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.places.v1.GetPlaceRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.GetPlaceRequest 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.places.v1.GetPlaceRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.maps.places.v1.GetPlaceRequest 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.places.v1.GetPlaceRequest 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;
+ }
+ /**
+ *
+ *
+ *
+ * Request for fetching a Place with a place id (in a name) string.
+ *
+ *
+ * Protobuf type {@code google.maps.places.v1.GetPlaceRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder