115115 * </tr>
116116 * <tr>
117117 * <td><p> GetPlace</td>
118- * <td><p> Get place details with a place id (in a name) string.</td>
118+ * <td><p> Get the details of a place based on its resource name, which is a string in the `places/{place_id}` format .</td>
119119 * <td>
120120 * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
121121 * <ul>
132132 * </ul>
133133 * </td>
134134 * </tr>
135+ * <tr>
136+ * <td><p> AutocompletePlaces</td>
137+ * <td><p> Returns predictions for the given input.</td>
138+ * <td>
139+ * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
140+ * <ul>
141+ * <li><p> autocompletePlaces(AutocompletePlacesRequest request)
142+ * </ul>
143+ * <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
144+ * <ul>
145+ * <li><p> autocompletePlacesCallable()
146+ * </ul>
147+ * </td>
148+ * </tr>
135149 * </table>
136150 *
137151 * <p>See the individual methods for example code.
@@ -329,6 +343,7 @@ public final UnaryCallable<SearchNearbyRequest, SearchNearbyResponse> searchNear
329343 * .setStrictTypeFiltering(true)
330344 * .setLocationBias(SearchTextRequest.LocationBias.newBuilder().build())
331345 * .setLocationRestriction(SearchTextRequest.LocationRestriction.newBuilder().build())
346+ * .setEvOptions(SearchTextRequest.EVOptions.newBuilder().build())
332347 * .build();
333348 * SearchTextResponse response = placesClient.searchText(request);
334349 * }
@@ -367,6 +382,7 @@ public final SearchTextResponse searchText(SearchTextRequest request) {
367382 * .setStrictTypeFiltering(true)
368383 * .setLocationBias(SearchTextRequest.LocationBias.newBuilder().build())
369384 * .setLocationRestriction(SearchTextRequest.LocationRestriction.newBuilder().build())
385+ * .setEvOptions(SearchTextRequest.EVOptions.newBuilder().build())
370386 * .build();
371387 * ApiFuture<SearchTextResponse> future = placesClient.searchTextCallable().futureCall(request);
372388 * // Do something.
@@ -502,7 +518,8 @@ public final UnaryCallable<GetPhotoMediaRequest, PhotoMedia> getPhotoMediaCallab
502518
503519 // AUTO-GENERATED DOCUMENTATION AND METHOD.
504520 /**
505- * Get place details with a place id (in a name) string.
521+ * Get the details of a place based on its resource name, which is a string in the
522+ * `places/{place_id}` format.
506523 *
507524 * <p>Sample code:
508525 *
@@ -518,8 +535,7 @@ public final UnaryCallable<GetPhotoMediaRequest, PhotoMedia> getPhotoMediaCallab
518535 * }
519536 * }</pre>
520537 *
521- * @param name Required. A place ID returned in a Place (with "places/" prefix), or equivalently
522- * the name in the same Place. Format: `places/{place_id}`.
538+ * @param name Required. The resource name of a place, in the `places/{place_id}` format.
523539 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
524540 */
525541 public final Place getPlace (PlaceName name ) {
@@ -530,7 +546,8 @@ public final Place getPlace(PlaceName name) {
530546
531547 // AUTO-GENERATED DOCUMENTATION AND METHOD.
532548 /**
533- * Get place details with a place id (in a name) string.
549+ * Get the details of a place based on its resource name, which is a string in the
550+ * `places/{place_id}` format.
534551 *
535552 * <p>Sample code:
536553 *
@@ -546,8 +563,7 @@ public final Place getPlace(PlaceName name) {
546563 * }
547564 * }</pre>
548565 *
549- * @param name Required. A place ID returned in a Place (with "places/" prefix), or equivalently
550- * the name in the same Place. Format: `places/{place_id}`.
566+ * @param name Required. The resource name of a place, in the `places/{place_id}` format.
551567 * @throws com.google.api.gax.rpc.ApiException if the remote call fails
552568 */
553569 public final Place getPlace (String name ) {
@@ -557,7 +573,8 @@ public final Place getPlace(String name) {
557573
558574 // AUTO-GENERATED DOCUMENTATION AND METHOD.
559575 /**
560- * Get place details with a place id (in a name) string.
576+ * Get the details of a place based on its resource name, which is a string in the
577+ * `places/{place_id}` format.
561578 *
562579 * <p>Sample code:
563580 *
@@ -573,6 +590,7 @@ public final Place getPlace(String name) {
573590 * .setName(PlaceName.of("[PLACE_ID]").toString())
574591 * .setLanguageCode("languageCode-2092349083")
575592 * .setRegionCode("regionCode-1991004415")
593+ * .setSessionToken("sessionToken-696552189")
576594 * .build();
577595 * Place response = placesClient.getPlace(request);
578596 * }
@@ -587,7 +605,8 @@ public final Place getPlace(GetPlaceRequest request) {
587605
588606 // AUTO-GENERATED DOCUMENTATION AND METHOD.
589607 /**
590- * Get place details with a place id (in a name) string.
608+ * Get the details of a place based on its resource name, which is a string in the
609+ * `places/{place_id}` format.
591610 *
592611 * <p>Sample code:
593612 *
@@ -603,6 +622,7 @@ public final Place getPlace(GetPlaceRequest request) {
603622 * .setName(PlaceName.of("[PLACE_ID]").toString())
604623 * .setLanguageCode("languageCode-2092349083")
605624 * .setRegionCode("regionCode-1991004415")
625+ * .setSessionToken("sessionToken-696552189")
606626 * .build();
607627 * ApiFuture<Place> future = placesClient.getPlaceCallable().futureCall(request);
608628 * // Do something.
@@ -614,6 +634,85 @@ public final UnaryCallable<GetPlaceRequest, Place> getPlaceCallable() {
614634 return stub .getPlaceCallable ();
615635 }
616636
637+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
638+ /**
639+ * Returns predictions for the given input.
640+ *
641+ * <p>Sample code:
642+ *
643+ * <pre>{@code
644+ * // This snippet has been automatically generated and should be regarded as a code template only.
645+ * // It will require modifications to work:
646+ * // - It may require correct/in-range values for request initialization.
647+ * // - It may require specifying regional endpoints when creating the service client as shown in
648+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
649+ * try (PlacesClient placesClient = PlacesClient.create()) {
650+ * AutocompletePlacesRequest request =
651+ * AutocompletePlacesRequest.newBuilder()
652+ * .setInput("input100358090")
653+ * .setLocationBias(AutocompletePlacesRequest.LocationBias.newBuilder().build())
654+ * .setLocationRestriction(
655+ * AutocompletePlacesRequest.LocationRestriction.newBuilder().build())
656+ * .addAllIncludedPrimaryTypes(new ArrayList<String>())
657+ * .addAllIncludedRegionCodes(new ArrayList<String>())
658+ * .setLanguageCode("languageCode-2092349083")
659+ * .setRegionCode("regionCode-1991004415")
660+ * .setOrigin(LatLng.newBuilder().build())
661+ * .setInputOffset(1010406056)
662+ * .setIncludeQueryPredictions(true)
663+ * .setSessionToken("sessionToken-696552189")
664+ * .build();
665+ * AutocompletePlacesResponse response = placesClient.autocompletePlaces(request);
666+ * }
667+ * }</pre>
668+ *
669+ * @param request The request object containing all of the parameters for the API call.
670+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
671+ */
672+ public final AutocompletePlacesResponse autocompletePlaces (AutocompletePlacesRequest request ) {
673+ return autocompletePlacesCallable ().call (request );
674+ }
675+
676+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
677+ /**
678+ * Returns predictions for the given input.
679+ *
680+ * <p>Sample code:
681+ *
682+ * <pre>{@code
683+ * // This snippet has been automatically generated and should be regarded as a code template only.
684+ * // It will require modifications to work:
685+ * // - It may require correct/in-range values for request initialization.
686+ * // - It may require specifying regional endpoints when creating the service client as shown in
687+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
688+ * try (PlacesClient placesClient = PlacesClient.create()) {
689+ * AutocompletePlacesRequest request =
690+ * AutocompletePlacesRequest.newBuilder()
691+ * .setInput("input100358090")
692+ * .setLocationBias(AutocompletePlacesRequest.LocationBias.newBuilder().build())
693+ * .setLocationRestriction(
694+ * AutocompletePlacesRequest.LocationRestriction.newBuilder().build())
695+ * .addAllIncludedPrimaryTypes(new ArrayList<String>())
696+ * .addAllIncludedRegionCodes(new ArrayList<String>())
697+ * .setLanguageCode("languageCode-2092349083")
698+ * .setRegionCode("regionCode-1991004415")
699+ * .setOrigin(LatLng.newBuilder().build())
700+ * .setInputOffset(1010406056)
701+ * .setIncludeQueryPredictions(true)
702+ * .setSessionToken("sessionToken-696552189")
703+ * .build();
704+ * ApiFuture<AutocompletePlacesResponse> future =
705+ * placesClient.autocompletePlacesCallable().futureCall(request);
706+ * // Do something.
707+ * AutocompletePlacesResponse response = future.get();
708+ * }
709+ * }</pre>
710+ */
711+ public final UnaryCallable <AutocompletePlacesRequest , AutocompletePlacesResponse >
712+ autocompletePlacesCallable () {
713+ return stub .autocompletePlacesCallable ();
714+ }
715+
617716 @ Override
618717 public final void close () {
619718 stub .close ();
0 commit comments