Skip to content

Commit

Permalink
docs: mark Places API client libraries as BETA
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 716290485

Source-Link: googleapis/googleapis@3808680

Source-Link: googleapis/googleapis-gen@bb5e4fc
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuTWFwcy5QbGFjZXMuVjEvLk93bEJvdC55YW1sIiwiaCI6ImJiNWU0ZmMzZTJiMTdiODY2YTcyY2E4NjNiOThjOWYyMTBiYTBmYzgifQ==
  • Loading branch information
gcf-owl-bot[bot] committed Jan 16, 2025
1 parent d98513f commit cf623fe
Show file tree
Hide file tree
Showing 50 changed files with 27,755 additions and 0 deletions.
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>
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]
}
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]
}
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]
}
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]
}
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]
}
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]
}
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]
}
Loading

0 comments on commit cf623fe

Please sign in to comment.