-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: mark Places API client libraries as BETA
PiperOrigin-RevId: 716290485 Source-Link: googleapis/googleapis@3808680 Source-Link: googleapis/googleapis-gen@bb5e4fc Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuTWFwcy5QbGFjZXMuVjEvLk93bEJvdC55YW1sIiwiaCI6ImJiNWU0ZmMzZTJiMTdiODY2YTcyY2E4NjNiOThjOWYyMTBiYTBmYzgifQ==
- Loading branch information
1 parent
d98513f
commit cf623fe
Showing
50 changed files
with
27,755 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
...V1/Google.Maps.Places.V1.GeneratedSnippets/Google.Maps.Places.V1.GeneratedSnippets.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net6.0;net462</TargetFrameworks> | ||
<LangVersion>latest</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="../Google.Maps.Places.V1/Google.Maps.Places.V1.csproj" /> | ||
<PackageReference Include="System.Linq.Async" Version="6.0.1" /> | ||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
</Project> |
59 changes: 59 additions & 0 deletions
59
...Places.V1.GeneratedSnippets/PlacesClient.AutocompletePlacesRequestObjectAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// Copyright 2025 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 code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START places_v1_generated_Places_AutocompletePlaces_async] | ||
using Google.Maps.Places.V1; | ||
using Google.Type; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedPlacesClientSnippets | ||
{ | ||
/// <summary>Snippet for AutocompletePlacesAsync</summary> | ||
/// <remarks> | ||
/// 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/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task AutocompletePlacesRequestObjectAsync() | ||
{ | ||
// Create client | ||
PlacesClient placesClient = await PlacesClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
AutocompletePlacesRequest request = new AutocompletePlacesRequest | ||
{ | ||
Input = "", | ||
LocationBias = new AutocompletePlacesRequest.Types.LocationBias(), | ||
LocationRestriction = new AutocompletePlacesRequest.Types.LocationRestriction(), | ||
IncludedPrimaryTypes = { "", }, | ||
IncludedRegionCodes = { "", }, | ||
LanguageCode = "", | ||
RegionCode = "", | ||
Origin = new LatLng(), | ||
InputOffset = 0, | ||
IncludeQueryPredictions = false, | ||
SessionToken = "", | ||
IncludePureServiceAreaBusinesses = false, | ||
}; | ||
// Make the request | ||
AutocompletePlacesResponse response = await placesClient.AutocompletePlacesAsync(request); | ||
} | ||
} | ||
// [END places_v1_generated_Places_AutocompletePlaces_async] | ||
} |
58 changes: 58 additions & 0 deletions
58
...Maps.Places.V1.GeneratedSnippets/PlacesClient.AutocompletePlacesRequestObjectSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// Copyright 2025 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 code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START places_v1_generated_Places_AutocompletePlaces_sync] | ||
using Google.Maps.Places.V1; | ||
using Google.Type; | ||
|
||
public sealed partial class GeneratedPlacesClientSnippets | ||
{ | ||
/// <summary>Snippet for AutocompletePlaces</summary> | ||
/// <remarks> | ||
/// 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/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void AutocompletePlacesRequestObject() | ||
{ | ||
// Create client | ||
PlacesClient placesClient = PlacesClient.Create(); | ||
// Initialize request argument(s) | ||
AutocompletePlacesRequest request = new AutocompletePlacesRequest | ||
{ | ||
Input = "", | ||
LocationBias = new AutocompletePlacesRequest.Types.LocationBias(), | ||
LocationRestriction = new AutocompletePlacesRequest.Types.LocationRestriction(), | ||
IncludedPrimaryTypes = { "", }, | ||
IncludedRegionCodes = { "", }, | ||
LanguageCode = "", | ||
RegionCode = "", | ||
Origin = new LatLng(), | ||
InputOffset = 0, | ||
IncludeQueryPredictions = false, | ||
SessionToken = "", | ||
IncludePureServiceAreaBusinesses = false, | ||
}; | ||
// Make the request | ||
AutocompletePlacesResponse response = placesClient.AutocompletePlaces(request); | ||
} | ||
} | ||
// [END places_v1_generated_Places_AutocompletePlaces_sync] | ||
} |
44 changes: 44 additions & 0 deletions
44
...es.V1/Google.Maps.Places.V1.GeneratedSnippets/PlacesClient.GetPhotoMediaAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright 2025 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 code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START places_v1_generated_Places_GetPhotoMedia_async_flattened] | ||
using Google.Maps.Places.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedPlacesClientSnippets | ||
{ | ||
/// <summary>Snippet for GetPhotoMediaAsync</summary> | ||
/// <remarks> | ||
/// 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/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task GetPhotoMediaAsync() | ||
{ | ||
// Create client | ||
PlacesClient placesClient = await PlacesClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string name = "places/[PLACE_ID]/photos/[PHOTO_REFERENCE]/media"; | ||
// Make the request | ||
PhotoMedia response = await placesClient.GetPhotoMediaAsync(name); | ||
} | ||
} | ||
// [END places_v1_generated_Places_GetPhotoMedia_async_flattened] | ||
} |
50 changes: 50 additions & 0 deletions
50
...Maps.Places.V1.GeneratedSnippets/PlacesClient.GetPhotoMediaRequestObjectAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// Copyright 2025 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 code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START places_v1_generated_Places_GetPhotoMedia_async] | ||
using Google.Maps.Places.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedPlacesClientSnippets | ||
{ | ||
/// <summary>Snippet for GetPhotoMediaAsync</summary> | ||
/// <remarks> | ||
/// 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/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task GetPhotoMediaRequestObjectAsync() | ||
{ | ||
// Create client | ||
PlacesClient placesClient = await PlacesClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
GetPhotoMediaRequest request = new GetPhotoMediaRequest | ||
{ | ||
PhotoMediaName = PhotoMediaName.FromPlacePhotoReference("[PLACE_ID]", "[PHOTO_REFERENCE]"), | ||
MaxWidthPx = 0, | ||
MaxHeightPx = 0, | ||
SkipHttpRedirect = false, | ||
}; | ||
// Make the request | ||
PhotoMedia response = await placesClient.GetPhotoMediaAsync(request); | ||
} | ||
} | ||
// [END places_v1_generated_Places_GetPhotoMedia_async] | ||
} |
49 changes: 49 additions & 0 deletions
49
...ogle.Maps.Places.V1.GeneratedSnippets/PlacesClient.GetPhotoMediaRequestObjectSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Copyright 2025 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 code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START places_v1_generated_Places_GetPhotoMedia_sync] | ||
using Google.Maps.Places.V1; | ||
|
||
public sealed partial class GeneratedPlacesClientSnippets | ||
{ | ||
/// <summary>Snippet for GetPhotoMedia</summary> | ||
/// <remarks> | ||
/// 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/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void GetPhotoMediaRequestObject() | ||
{ | ||
// Create client | ||
PlacesClient placesClient = PlacesClient.Create(); | ||
// Initialize request argument(s) | ||
GetPhotoMediaRequest request = new GetPhotoMediaRequest | ||
{ | ||
PhotoMediaName = PhotoMediaName.FromPlacePhotoReference("[PLACE_ID]", "[PHOTO_REFERENCE]"), | ||
MaxWidthPx = 0, | ||
MaxHeightPx = 0, | ||
SkipHttpRedirect = false, | ||
}; | ||
// Make the request | ||
PhotoMedia response = placesClient.GetPhotoMedia(request); | ||
} | ||
} | ||
// [END places_v1_generated_Places_GetPhotoMedia_sync] | ||
} |
44 changes: 44 additions & 0 deletions
44
...Maps.Places.V1.GeneratedSnippets/PlacesClient.GetPhotoMediaResourceNamesAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright 2025 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 code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START places_v1_generated_Places_GetPhotoMedia_async_flattened_resourceNames] | ||
using Google.Maps.Places.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedPlacesClientSnippets | ||
{ | ||
/// <summary>Snippet for GetPhotoMediaAsync</summary> | ||
/// <remarks> | ||
/// 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/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task GetPhotoMediaResourceNamesAsync() | ||
{ | ||
// Create client | ||
PlacesClient placesClient = await PlacesClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
PhotoMediaName name = PhotoMediaName.FromPlacePhotoReference("[PLACE_ID]", "[PHOTO_REFERENCE]"); | ||
// Make the request | ||
PhotoMedia response = await placesClient.GetPhotoMediaAsync(name); | ||
} | ||
} | ||
// [END places_v1_generated_Places_GetPhotoMedia_async_flattened_resourceNames] | ||
} |
43 changes: 43 additions & 0 deletions
43
...ogle.Maps.Places.V1.GeneratedSnippets/PlacesClient.GetPhotoMediaResourceNamesSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright 2025 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 code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START places_v1_generated_Places_GetPhotoMedia_sync_flattened_resourceNames] | ||
using Google.Maps.Places.V1; | ||
|
||
public sealed partial class GeneratedPlacesClientSnippets | ||
{ | ||
/// <summary>Snippet for GetPhotoMedia</summary> | ||
/// <remarks> | ||
/// 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/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void GetPhotoMediaResourceNames() | ||
{ | ||
// Create client | ||
PlacesClient placesClient = PlacesClient.Create(); | ||
// Initialize request argument(s) | ||
PhotoMediaName name = PhotoMediaName.FromPlacePhotoReference("[PLACE_ID]", "[PHOTO_REFERENCE]"); | ||
// Make the request | ||
PhotoMedia response = placesClient.GetPhotoMedia(name); | ||
} | ||
} | ||
// [END places_v1_generated_Places_GetPhotoMedia_sync_flattened_resourceNames] | ||
} |
Oops, something went wrong.