Skip to content

Commit 2a9a069

Browse files
docs: [google-maps-places] remove auto-generated snippets for google/maps/places/v1 (#13955)
BEGIN_COMMIT_OVERRIDE docs: remove auto-generated snippets for google/maps/places/v1 END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. PiperOrigin-RevId: 764327453 Source-Link: googleapis/googleapis@7e94d69 Source-Link: googleapis/googleapis-gen@871e2fa Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtcGxhY2VzLy5Pd2xCb3QueWFtbCIsImgiOiI4NzFlMmZhN2E0YzQwMTg5NDhkY2UyYjBmOTZiMTUwNzM2OTJjMWUwIn0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 3eb9d24 commit 2a9a069

15 files changed

+2
-1590
lines changed

packages/google-maps-places/google/maps/places/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.2.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-maps-places/google/maps/places_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.2.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-maps-places/google/maps/places_v1/services/places/async_client.py

Lines changed: 0 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -314,35 +314,6 @@ async def search_nearby(
314314
) -> places_service.SearchNearbyResponse:
315315
r"""Search for places near locations.
316316
317-
.. code-block:: python
318-
319-
# This snippet has been automatically generated and should be regarded as a
320-
# code template only.
321-
# It will require modifications to work:
322-
# - It may require correct/in-range values for request initialization.
323-
# - It may require specifying regional endpoints when creating the service
324-
# client as shown in:
325-
# https://googleapis.dev/python/google-api-core/latest/client_options.html
326-
from google.maps import places_v1
327-
328-
async def sample_search_nearby():
329-
# Create a client
330-
client = places_v1.PlacesAsyncClient()
331-
332-
# Initialize request argument(s)
333-
location_restriction = places_v1.LocationRestriction()
334-
location_restriction.circle.radius = 0.648
335-
336-
request = places_v1.SearchNearbyRequest(
337-
location_restriction=location_restriction,
338-
)
339-
340-
# Make the request
341-
response = await client.search_nearby(request=request)
342-
343-
# Handle the response
344-
print(response)
345-
346317
Args:
347318
request (Optional[Union[google.maps.places_v1.types.SearchNearbyRequest, dict]]):
348319
The request object. Request proto for Search Nearby.
@@ -394,32 +365,6 @@ async def search_text(
394365
) -> places_service.SearchTextResponse:
395366
r"""Text query based place search.
396367
397-
.. code-block:: python
398-
399-
# This snippet has been automatically generated and should be regarded as a
400-
# code template only.
401-
# It will require modifications to work:
402-
# - It may require correct/in-range values for request initialization.
403-
# - It may require specifying regional endpoints when creating the service
404-
# client as shown in:
405-
# https://googleapis.dev/python/google-api-core/latest/client_options.html
406-
from google.maps import places_v1
407-
408-
async def sample_search_text():
409-
# Create a client
410-
client = places_v1.PlacesAsyncClient()
411-
412-
# Initialize request argument(s)
413-
request = places_v1.SearchTextRequest(
414-
text_query="text_query_value",
415-
)
416-
417-
# Make the request
418-
response = await client.search_text(request=request)
419-
420-
# Handle the response
421-
print(response)
422-
423368
Args:
424369
request (Optional[Union[google.maps.places_v1.types.SearchTextRequest, dict]]):
425370
The request object. Request proto for SearchText.
@@ -472,32 +417,6 @@ async def get_photo_media(
472417
) -> places_service.PhotoMedia:
473418
r"""Get a photo media with a photo reference string.
474419
475-
.. code-block:: python
476-
477-
# This snippet has been automatically generated and should be regarded as a
478-
# code template only.
479-
# It will require modifications to work:
480-
# - It may require correct/in-range values for request initialization.
481-
# - It may require specifying regional endpoints when creating the service
482-
# client as shown in:
483-
# https://googleapis.dev/python/google-api-core/latest/client_options.html
484-
from google.maps import places_v1
485-
486-
async def sample_get_photo_media():
487-
# Create a client
488-
client = places_v1.PlacesAsyncClient()
489-
490-
# Initialize request argument(s)
491-
request = places_v1.GetPhotoMediaRequest(
492-
name="name_value",
493-
)
494-
495-
# Make the request
496-
response = await client.get_photo_media(request=request)
497-
498-
# Handle the response
499-
print(response)
500-
501420
Args:
502421
request (Optional[Union[google.maps.places_v1.types.GetPhotoMediaRequest, dict]]):
503422
The request object. Request for fetching a photo of a
@@ -589,32 +508,6 @@ async def get_place(
589508
r"""Get the details of a place based on its resource name, which is
590509
a string in the ``places/{place_id}`` format.
591510
592-
.. code-block:: python
593-
594-
# This snippet has been automatically generated and should be regarded as a
595-
# code template only.
596-
# It will require modifications to work:
597-
# - It may require correct/in-range values for request initialization.
598-
# - It may require specifying regional endpoints when creating the service
599-
# client as shown in:
600-
# https://googleapis.dev/python/google-api-core/latest/client_options.html
601-
from google.maps import places_v1
602-
603-
async def sample_get_place():
604-
# Create a client
605-
client = places_v1.PlacesAsyncClient()
606-
607-
# Initialize request argument(s)
608-
request = places_v1.GetPlaceRequest(
609-
name="name_value",
610-
)
611-
612-
# Make the request
613-
response = await client.get_place(request=request)
614-
615-
# Handle the response
616-
print(response)
617-
618511
Args:
619512
request (Optional[Union[google.maps.places_v1.types.GetPlaceRequest, dict]]):
620513
The request object. Request for fetching a Place based on its resource name,
@@ -699,32 +592,6 @@ async def autocomplete_places(
699592
) -> places_service.AutocompletePlacesResponse:
700593
r"""Returns predictions for the given input.
701594
702-
.. code-block:: python
703-
704-
# This snippet has been automatically generated and should be regarded as a
705-
# code template only.
706-
# It will require modifications to work:
707-
# - It may require correct/in-range values for request initialization.
708-
# - It may require specifying regional endpoints when creating the service
709-
# client as shown in:
710-
# https://googleapis.dev/python/google-api-core/latest/client_options.html
711-
from google.maps import places_v1
712-
713-
async def sample_autocomplete_places():
714-
# Create a client
715-
client = places_v1.PlacesAsyncClient()
716-
717-
# Initialize request argument(s)
718-
request = places_v1.AutocompletePlacesRequest(
719-
input="input_value",
720-
)
721-
722-
# Make the request
723-
response = await client.autocomplete_places(request=request)
724-
725-
# Handle the response
726-
print(response)
727-
728595
Args:
729596
request (Optional[Union[google.maps.places_v1.types.AutocompletePlacesRequest, dict]]):
730597
The request object. Request proto for AutocompletePlaces.

packages/google-maps-places/google/maps/places_v1/services/places/client.py

Lines changed: 0 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -782,35 +782,6 @@ def search_nearby(
782782
) -> places_service.SearchNearbyResponse:
783783
r"""Search for places near locations.
784784
785-
.. code-block:: python
786-
787-
# This snippet has been automatically generated and should be regarded as a
788-
# code template only.
789-
# It will require modifications to work:
790-
# - It may require correct/in-range values for request initialization.
791-
# - It may require specifying regional endpoints when creating the service
792-
# client as shown in:
793-
# https://googleapis.dev/python/google-api-core/latest/client_options.html
794-
from google.maps import places_v1
795-
796-
def sample_search_nearby():
797-
# Create a client
798-
client = places_v1.PlacesClient()
799-
800-
# Initialize request argument(s)
801-
location_restriction = places_v1.LocationRestriction()
802-
location_restriction.circle.radius = 0.648
803-
804-
request = places_v1.SearchNearbyRequest(
805-
location_restriction=location_restriction,
806-
)
807-
808-
# Make the request
809-
response = client.search_nearby(request=request)
810-
811-
# Handle the response
812-
print(response)
813-
814785
Args:
815786
request (Union[google.maps.places_v1.types.SearchNearbyRequest, dict]):
816787
The request object. Request proto for Search Nearby.
@@ -860,32 +831,6 @@ def search_text(
860831
) -> places_service.SearchTextResponse:
861832
r"""Text query based place search.
862833
863-
.. code-block:: python
864-
865-
# This snippet has been automatically generated and should be regarded as a
866-
# code template only.
867-
# It will require modifications to work:
868-
# - It may require correct/in-range values for request initialization.
869-
# - It may require specifying regional endpoints when creating the service
870-
# client as shown in:
871-
# https://googleapis.dev/python/google-api-core/latest/client_options.html
872-
from google.maps import places_v1
873-
874-
def sample_search_text():
875-
# Create a client
876-
client = places_v1.PlacesClient()
877-
878-
# Initialize request argument(s)
879-
request = places_v1.SearchTextRequest(
880-
text_query="text_query_value",
881-
)
882-
883-
# Make the request
884-
response = client.search_text(request=request)
885-
886-
# Handle the response
887-
print(response)
888-
889834
Args:
890835
request (Union[google.maps.places_v1.types.SearchTextRequest, dict]):
891836
The request object. Request proto for SearchText.
@@ -936,32 +881,6 @@ def get_photo_media(
936881
) -> places_service.PhotoMedia:
937882
r"""Get a photo media with a photo reference string.
938883
939-
.. code-block:: python
940-
941-
# This snippet has been automatically generated and should be regarded as a
942-
# code template only.
943-
# It will require modifications to work:
944-
# - It may require correct/in-range values for request initialization.
945-
# - It may require specifying regional endpoints when creating the service
946-
# client as shown in:
947-
# https://googleapis.dev/python/google-api-core/latest/client_options.html
948-
from google.maps import places_v1
949-
950-
def sample_get_photo_media():
951-
# Create a client
952-
client = places_v1.PlacesClient()
953-
954-
# Initialize request argument(s)
955-
request = places_v1.GetPhotoMediaRequest(
956-
name="name_value",
957-
)
958-
959-
# Make the request
960-
response = client.get_photo_media(request=request)
961-
962-
# Handle the response
963-
print(response)
964-
965884
Args:
966885
request (Union[google.maps.places_v1.types.GetPhotoMediaRequest, dict]):
967886
The request object. Request for fetching a photo of a
@@ -1050,32 +969,6 @@ def get_place(
1050969
r"""Get the details of a place based on its resource name, which is
1051970
a string in the ``places/{place_id}`` format.
1052971
1053-
.. code-block:: python
1054-
1055-
# This snippet has been automatically generated and should be regarded as a
1056-
# code template only.
1057-
# It will require modifications to work:
1058-
# - It may require correct/in-range values for request initialization.
1059-
# - It may require specifying regional endpoints when creating the service
1060-
# client as shown in:
1061-
# https://googleapis.dev/python/google-api-core/latest/client_options.html
1062-
from google.maps import places_v1
1063-
1064-
def sample_get_place():
1065-
# Create a client
1066-
client = places_v1.PlacesClient()
1067-
1068-
# Initialize request argument(s)
1069-
request = places_v1.GetPlaceRequest(
1070-
name="name_value",
1071-
)
1072-
1073-
# Make the request
1074-
response = client.get_place(request=request)
1075-
1076-
# Handle the response
1077-
print(response)
1078-
1079972
Args:
1080973
request (Union[google.maps.places_v1.types.GetPlaceRequest, dict]):
1081974
The request object. Request for fetching a Place based on its resource name,
@@ -1157,32 +1050,6 @@ def autocomplete_places(
11571050
) -> places_service.AutocompletePlacesResponse:
11581051
r"""Returns predictions for the given input.
11591052
1160-
.. code-block:: python
1161-
1162-
# This snippet has been automatically generated and should be regarded as a
1163-
# code template only.
1164-
# It will require modifications to work:
1165-
# - It may require correct/in-range values for request initialization.
1166-
# - It may require specifying regional endpoints when creating the service
1167-
# client as shown in:
1168-
# https://googleapis.dev/python/google-api-core/latest/client_options.html
1169-
from google.maps import places_v1
1170-
1171-
def sample_autocomplete_places():
1172-
# Create a client
1173-
client = places_v1.PlacesClient()
1174-
1175-
# Initialize request argument(s)
1176-
request = places_v1.AutocompletePlacesRequest(
1177-
input="input_value",
1178-
)
1179-
1180-
# Make the request
1181-
response = client.autocomplete_places(request=request)
1182-
1183-
# Handle the response
1184-
print(response)
1185-
11861053
Args:
11871054
request (Union[google.maps.places_v1.types.AutocompletePlacesRequest, dict]):
11881055
The request object. Request proto for AutocompletePlaces.

0 commit comments

Comments
 (0)