Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.2.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.2.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -314,35 +314,6 @@ async def search_nearby(
) -> places_service.SearchNearbyResponse:
r"""Search for places near locations.

.. code-block:: python

# 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://googleapis.dev/python/google-api-core/latest/client_options.html
from google.maps import places_v1

async def sample_search_nearby():
# Create a client
client = places_v1.PlacesAsyncClient()

# Initialize request argument(s)
location_restriction = places_v1.LocationRestriction()
location_restriction.circle.radius = 0.648

request = places_v1.SearchNearbyRequest(
location_restriction=location_restriction,
)

# Make the request
response = await client.search_nearby(request=request)

# Handle the response
print(response)

Args:
request (Optional[Union[google.maps.places_v1.types.SearchNearbyRequest, dict]]):
The request object. Request proto for Search Nearby.
Expand Down Expand Up @@ -394,32 +365,6 @@ async def search_text(
) -> places_service.SearchTextResponse:
r"""Text query based place search.

.. code-block:: python

# 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://googleapis.dev/python/google-api-core/latest/client_options.html
from google.maps import places_v1

async def sample_search_text():
# Create a client
client = places_v1.PlacesAsyncClient()

# Initialize request argument(s)
request = places_v1.SearchTextRequest(
text_query="text_query_value",
)

# Make the request
response = await client.search_text(request=request)

# Handle the response
print(response)

Args:
request (Optional[Union[google.maps.places_v1.types.SearchTextRequest, dict]]):
The request object. Request proto for SearchText.
Expand Down Expand Up @@ -472,32 +417,6 @@ async def get_photo_media(
) -> places_service.PhotoMedia:
r"""Get a photo media with a photo reference string.

.. code-block:: python

# 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://googleapis.dev/python/google-api-core/latest/client_options.html
from google.maps import places_v1

async def sample_get_photo_media():
# Create a client
client = places_v1.PlacesAsyncClient()

# Initialize request argument(s)
request = places_v1.GetPhotoMediaRequest(
name="name_value",
)

# Make the request
response = await client.get_photo_media(request=request)

# Handle the response
print(response)

Args:
request (Optional[Union[google.maps.places_v1.types.GetPhotoMediaRequest, dict]]):
The request object. Request for fetching a photo of a
Expand Down Expand Up @@ -589,32 +508,6 @@ async def get_place(
r"""Get the details of a place based on its resource name, which is
a string in the ``places/{place_id}`` format.

.. code-block:: python

# 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://googleapis.dev/python/google-api-core/latest/client_options.html
from google.maps import places_v1

async def sample_get_place():
# Create a client
client = places_v1.PlacesAsyncClient()

# Initialize request argument(s)
request = places_v1.GetPlaceRequest(
name="name_value",
)

# Make the request
response = await client.get_place(request=request)

# Handle the response
print(response)

Args:
request (Optional[Union[google.maps.places_v1.types.GetPlaceRequest, dict]]):
The request object. Request for fetching a Place based on its resource name,
Expand Down Expand Up @@ -699,32 +592,6 @@ async def autocomplete_places(
) -> places_service.AutocompletePlacesResponse:
r"""Returns predictions for the given input.

.. code-block:: python

# 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://googleapis.dev/python/google-api-core/latest/client_options.html
from google.maps import places_v1

async def sample_autocomplete_places():
# Create a client
client = places_v1.PlacesAsyncClient()

# Initialize request argument(s)
request = places_v1.AutocompletePlacesRequest(
input="input_value",
)

# Make the request
response = await client.autocomplete_places(request=request)

# Handle the response
print(response)

Args:
request (Optional[Union[google.maps.places_v1.types.AutocompletePlacesRequest, dict]]):
The request object. Request proto for AutocompletePlaces.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -782,35 +782,6 @@ def search_nearby(
) -> places_service.SearchNearbyResponse:
r"""Search for places near locations.

.. code-block:: python

# 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://googleapis.dev/python/google-api-core/latest/client_options.html
from google.maps import places_v1

def sample_search_nearby():
# Create a client
client = places_v1.PlacesClient()

# Initialize request argument(s)
location_restriction = places_v1.LocationRestriction()
location_restriction.circle.radius = 0.648

request = places_v1.SearchNearbyRequest(
location_restriction=location_restriction,
)

# Make the request
response = client.search_nearby(request=request)

# Handle the response
print(response)

Args:
request (Union[google.maps.places_v1.types.SearchNearbyRequest, dict]):
The request object. Request proto for Search Nearby.
Expand Down Expand Up @@ -860,32 +831,6 @@ def search_text(
) -> places_service.SearchTextResponse:
r"""Text query based place search.

.. code-block:: python

# 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://googleapis.dev/python/google-api-core/latest/client_options.html
from google.maps import places_v1

def sample_search_text():
# Create a client
client = places_v1.PlacesClient()

# Initialize request argument(s)
request = places_v1.SearchTextRequest(
text_query="text_query_value",
)

# Make the request
response = client.search_text(request=request)

# Handle the response
print(response)

Args:
request (Union[google.maps.places_v1.types.SearchTextRequest, dict]):
The request object. Request proto for SearchText.
Expand Down Expand Up @@ -936,32 +881,6 @@ def get_photo_media(
) -> places_service.PhotoMedia:
r"""Get a photo media with a photo reference string.

.. code-block:: python

# 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://googleapis.dev/python/google-api-core/latest/client_options.html
from google.maps import places_v1

def sample_get_photo_media():
# Create a client
client = places_v1.PlacesClient()

# Initialize request argument(s)
request = places_v1.GetPhotoMediaRequest(
name="name_value",
)

# Make the request
response = client.get_photo_media(request=request)

# Handle the response
print(response)

Args:
request (Union[google.maps.places_v1.types.GetPhotoMediaRequest, dict]):
The request object. Request for fetching a photo of a
Expand Down Expand Up @@ -1050,32 +969,6 @@ def get_place(
r"""Get the details of a place based on its resource name, which is
a string in the ``places/{place_id}`` format.

.. code-block:: python

# 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://googleapis.dev/python/google-api-core/latest/client_options.html
from google.maps import places_v1

def sample_get_place():
# Create a client
client = places_v1.PlacesClient()

# Initialize request argument(s)
request = places_v1.GetPlaceRequest(
name="name_value",
)

# Make the request
response = client.get_place(request=request)

# Handle the response
print(response)

Args:
request (Union[google.maps.places_v1.types.GetPlaceRequest, dict]):
The request object. Request for fetching a Place based on its resource name,
Expand Down Expand Up @@ -1157,32 +1050,6 @@ def autocomplete_places(
) -> places_service.AutocompletePlacesResponse:
r"""Returns predictions for the given input.

.. code-block:: python

# 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://googleapis.dev/python/google-api-core/latest/client_options.html
from google.maps import places_v1

def sample_autocomplete_places():
# Create a client
client = places_v1.PlacesClient()

# Initialize request argument(s)
request = places_v1.AutocompletePlacesRequest(
input="input_value",
)

# Make the request
response = client.autocomplete_places(request=request)

# Handle the response
print(response)

Args:
request (Union[google.maps.places_v1.types.AutocompletePlacesRequest, dict]):
The request object. Request proto for AutocompletePlaces.
Expand Down
Loading
Loading