Skip to content

Commit

Permalink
chore: Configure clients for google-shopping-merchant-reviews
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 707702887

Source-Link: googleapis/googleapis@020c281

Source-Link: googleapis/googleapis-gen@3d1d96e
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuU2hvcHBpbmcuTWVyY2hhbnQuUmV2aWV3cy5WMUJldGEvLk93bEJvdC55YW1sIiwiaCI6IjNkMWQ5NmU5NWQ3NGRiN2YwZThkMTU3NzgwY2UxZTY2NjM5ZTUxOTIifQ==
  • Loading branch information
gcf-owl-bot[bot] committed Dec 19, 2024
1 parent 7dea52d commit c8777c6
Show file tree
Hide file tree
Showing 59 changed files with 17,432 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.Shopping.Merchant.Reviews.V1Beta/Google.Shopping.Merchant.Reviews.V1Beta.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,44 @@
// Copyright 2024 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 merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_async_flattened]
using Google.Shopping.Merchant.Reviews.V1Beta;
using System.Threading.Tasks;

public sealed partial class GeneratedMerchantReviewsServiceClientSnippets
{
/// <summary>Snippet for DeleteMerchantReviewAsync</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 DeleteMerchantReviewAsync()
{
// Create client
MerchantReviewsServiceClient merchantReviewsServiceClient = await MerchantReviewsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/merchantReviews/[NAME]";
// Make the request
await merchantReviewsServiceClient.DeleteMerchantReviewAsync(name);
}
}
// [END merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_async_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Copyright 2024 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 merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_async]
using Google.Shopping.Merchant.Reviews.V1Beta;
using System.Threading.Tasks;

public sealed partial class GeneratedMerchantReviewsServiceClientSnippets
{
/// <summary>Snippet for DeleteMerchantReviewAsync</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 DeleteMerchantReviewRequestObjectAsync()
{
// Create client
MerchantReviewsServiceClient merchantReviewsServiceClient = await MerchantReviewsServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteMerchantReviewRequest request = new DeleteMerchantReviewRequest
{
MerchantReviewName = MerchantReviewName.FromAccountName("[ACCOUNT]", "[NAME]"),
};
// Make the request
await merchantReviewsServiceClient.DeleteMerchantReviewAsync(request);
}
}
// [END merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2024 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 merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_sync]
using Google.Shopping.Merchant.Reviews.V1Beta;

public sealed partial class GeneratedMerchantReviewsServiceClientSnippets
{
/// <summary>Snippet for DeleteMerchantReview</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 DeleteMerchantReviewRequestObject()
{
// Create client
MerchantReviewsServiceClient merchantReviewsServiceClient = MerchantReviewsServiceClient.Create();
// Initialize request argument(s)
DeleteMerchantReviewRequest request = new DeleteMerchantReviewRequest
{
MerchantReviewName = MerchantReviewName.FromAccountName("[ACCOUNT]", "[NAME]"),
};
// Make the request
merchantReviewsServiceClient.DeleteMerchantReview(request);
}
}
// [END merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_sync]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright 2024 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 merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_async_flattened_resourceNames]
using Google.Shopping.Merchant.Reviews.V1Beta;
using System.Threading.Tasks;

public sealed partial class GeneratedMerchantReviewsServiceClientSnippets
{
/// <summary>Snippet for DeleteMerchantReviewAsync</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 DeleteMerchantReviewResourceNamesAsync()
{
// Create client
MerchantReviewsServiceClient merchantReviewsServiceClient = await MerchantReviewsServiceClient.CreateAsync();
// Initialize request argument(s)
MerchantReviewName name = MerchantReviewName.FromAccountName("[ACCOUNT]", "[NAME]");
// Make the request
await merchantReviewsServiceClient.DeleteMerchantReviewAsync(name);
}
}
// [END merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_async_flattened_resourceNames]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright 2024 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 merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_sync_flattened_resourceNames]
using Google.Shopping.Merchant.Reviews.V1Beta;

public sealed partial class GeneratedMerchantReviewsServiceClientSnippets
{
/// <summary>Snippet for DeleteMerchantReview</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 DeleteMerchantReviewResourceNames()
{
// Create client
MerchantReviewsServiceClient merchantReviewsServiceClient = MerchantReviewsServiceClient.Create();
// Initialize request argument(s)
MerchantReviewName name = MerchantReviewName.FromAccountName("[ACCOUNT]", "[NAME]");
// Make the request
merchantReviewsServiceClient.DeleteMerchantReview(name);
}
}
// [END merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_sync_flattened_resourceNames]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright 2024 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 merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_sync_flattened]
using Google.Shopping.Merchant.Reviews.V1Beta;

public sealed partial class GeneratedMerchantReviewsServiceClientSnippets
{
/// <summary>Snippet for DeleteMerchantReview</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 DeleteMerchantReview()
{
// Create client
MerchantReviewsServiceClient merchantReviewsServiceClient = MerchantReviewsServiceClient.Create();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/merchantReviews/[NAME]";
// Make the request
merchantReviewsServiceClient.DeleteMerchantReview(name);
}
}
// [END merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_sync_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright 2024 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 merchantapi_v1beta_generated_MerchantReviewsService_GetMerchantReview_async_flattened]
using Google.Shopping.Merchant.Reviews.V1Beta;
using System.Threading.Tasks;

public sealed partial class GeneratedMerchantReviewsServiceClientSnippets
{
/// <summary>Snippet for GetMerchantReviewAsync</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 GetMerchantReviewAsync()
{
// Create client
MerchantReviewsServiceClient merchantReviewsServiceClient = await MerchantReviewsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/merchantReviews/[NAME]";
// Make the request
MerchantReview response = await merchantReviewsServiceClient.GetMerchantReviewAsync(name);
}
}
// [END merchantapi_v1beta_generated_MerchantReviewsService_GetMerchantReview_async_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Copyright 2024 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 merchantapi_v1beta_generated_MerchantReviewsService_GetMerchantReview_async]
using Google.Shopping.Merchant.Reviews.V1Beta;
using System.Threading.Tasks;

public sealed partial class GeneratedMerchantReviewsServiceClientSnippets
{
/// <summary>Snippet for GetMerchantReviewAsync</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 GetMerchantReviewRequestObjectAsync()
{
// Create client
MerchantReviewsServiceClient merchantReviewsServiceClient = await MerchantReviewsServiceClient.CreateAsync();
// Initialize request argument(s)
GetMerchantReviewRequest request = new GetMerchantReviewRequest
{
MerchantReviewName = MerchantReviewName.FromAccountName("[ACCOUNT]", "[NAME]"),
};
// Make the request
MerchantReview response = await merchantReviewsServiceClient.GetMerchantReviewAsync(request);
}
}
// [END merchantapi_v1beta_generated_MerchantReviewsService_GetMerchantReview_async]
}
Loading

0 comments on commit c8777c6

Please sign in to comment.