Skip to content

Commit

Permalink
fix!: Changed repeated flag of an existing field gtin in message `.…
Browse files Browse the repository at this point in the history
…google.shopping.merchant.products.v1beta.Attributes`

fix!: An existing field `gtin` is moved out of oneof in message `.google.shopping.merchant.products.v1beta.Attributes`
docs: A comment for message `ProductInput` is changed
docs: A comment for field `name` in message `.google.shopping.merchant.products.v1beta.ProductInput` is changed
docs: A comment for field `name` in message `.google.shopping.merchant.products.v1beta.DeleteProductInputRequest` is changed
docs: A comment for message `Product` is changed
docs: A comment for field `name` in message `.google.shopping.merchant.products.v1beta.Product` is changed
docs: A comment for field `name` in message `.google.shopping.merchant.products.v1beta.GetProductRequest` is changed
docs: A comment for field `page_size` in message `.google.shopping.merchant.products.v1beta.ListProductsRequest` is changed
docs: A comment for field `gtin` in message `.google.shopping.merchant.products.v1beta.Attributes` is changed
docs: A comment for field `tax_category` in message `.google.shopping.merchant.products.v1beta.Attributes` is changed
docs: A comment for field `min_handling_time` in message `.google.shopping.merchant.products.v1beta.Shipping` is changed
docs: A comment for field `max_handling_time` in message `.google.shopping.merchant.products.v1beta.Shipping` is changed
docs: A comment for field `min_transit_time` in message `.google.shopping.merchant.products.v1beta.Shipping` is changed
docs: A comment for field `max_transit_time` in message `.google.shopping.merchant.products.v1beta.Shipping` is changed
feat: A new field `member_price_effective_date` is added to message `.google.shopping.merchant.products.v1beta.LoyaltyProgram`
feat: A new field `shipping_label` is added to message `.google.shopping.merchant.products.v1beta.LoyaltyProgram`

PiperOrigin-RevId: 704281512

Source-Link: googleapis/googleapis@0f1beb9

Source-Link: googleapis/googleapis-gen@5429d7d
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuU2hvcHBpbmcuTWVyY2hhbnQuUHJvZHVjdHMuVjFCZXRhLy5Pd2xCb3QueWFtbCIsImgiOiI1NDI5ZDdkNDBiMjQ4YWQwMzQ3ZTkxNmRlZmVlMTdiYTUxMTY0MDExIn0=
  • Loading branch information
gcf-owl-bot[bot] committed Dec 9, 2024
1 parent ec46bf2 commit e2ca0c0
Show file tree
Hide file tree
Showing 38 changed files with 20,313 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.Products.V1Beta/Google.Shopping.Merchant.Products.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_ProductInputsService_DeleteProductInput_async_flattened]
using Google.Shopping.Merchant.Products.V1Beta;
using System.Threading.Tasks;

public sealed partial class GeneratedProductInputsServiceClientSnippets
{
/// <summary>Snippet for DeleteProductInputAsync</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 DeleteProductInputAsync()
{
// Create client
ProductInputsServiceClient productInputsServiceClient = await ProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/productInputs/[PRODUCTINPUT]";
// Make the request
await productInputsServiceClient.DeleteProductInputAsync(name);
}
}
// [END merchantapi_v1beta_generated_ProductInputsService_DeleteProductInput_async_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// 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_ProductInputsService_DeleteProductInput_async]
using Google.Shopping.Merchant.Products.V1Beta;
using System.Threading.Tasks;

public sealed partial class GeneratedProductInputsServiceClientSnippets
{
/// <summary>Snippet for DeleteProductInputAsync</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 DeleteProductInputRequestObjectAsync()
{
// Create client
ProductInputsServiceClient productInputsServiceClient = await ProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteProductInputRequest request = new DeleteProductInputRequest
{
ProductInputName = ProductInputName.FromAccountProductinput("[ACCOUNT]", "[PRODUCTINPUT]"),
DataSource = "",
};
// Make the request
await productInputsServiceClient.DeleteProductInputAsync(request);
}
}
// [END merchantapi_v1beta_generated_ProductInputsService_DeleteProductInput_async]
}
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_ProductInputsService_DeleteProductInput_sync]
using Google.Shopping.Merchant.Products.V1Beta;

public sealed partial class GeneratedProductInputsServiceClientSnippets
{
/// <summary>Snippet for DeleteProductInput</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 DeleteProductInputRequestObject()
{
// Create client
ProductInputsServiceClient productInputsServiceClient = ProductInputsServiceClient.Create();
// Initialize request argument(s)
DeleteProductInputRequest request = new DeleteProductInputRequest
{
ProductInputName = ProductInputName.FromAccountProductinput("[ACCOUNT]", "[PRODUCTINPUT]"),
DataSource = "",
};
// Make the request
productInputsServiceClient.DeleteProductInput(request);
}
}
// [END merchantapi_v1beta_generated_ProductInputsService_DeleteProductInput_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_ProductInputsService_DeleteProductInput_async_flattened_resourceNames]
using Google.Shopping.Merchant.Products.V1Beta;
using System.Threading.Tasks;

public sealed partial class GeneratedProductInputsServiceClientSnippets
{
/// <summary>Snippet for DeleteProductInputAsync</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 DeleteProductInputResourceNamesAsync()
{
// Create client
ProductInputsServiceClient productInputsServiceClient = await ProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
ProductInputName name = ProductInputName.FromAccountProductinput("[ACCOUNT]", "[PRODUCTINPUT]");
// Make the request
await productInputsServiceClient.DeleteProductInputAsync(name);
}
}
// [END merchantapi_v1beta_generated_ProductInputsService_DeleteProductInput_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_ProductInputsService_DeleteProductInput_sync_flattened_resourceNames]
using Google.Shopping.Merchant.Products.V1Beta;

public sealed partial class GeneratedProductInputsServiceClientSnippets
{
/// <summary>Snippet for DeleteProductInput</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 DeleteProductInputResourceNames()
{
// Create client
ProductInputsServiceClient productInputsServiceClient = ProductInputsServiceClient.Create();
// Initialize request argument(s)
ProductInputName name = ProductInputName.FromAccountProductinput("[ACCOUNT]", "[PRODUCTINPUT]");
// Make the request
productInputsServiceClient.DeleteProductInput(name);
}
}
// [END merchantapi_v1beta_generated_ProductInputsService_DeleteProductInput_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_ProductInputsService_DeleteProductInput_sync_flattened]
using Google.Shopping.Merchant.Products.V1Beta;

public sealed partial class GeneratedProductInputsServiceClientSnippets
{
/// <summary>Snippet for DeleteProductInput</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 DeleteProductInput()
{
// Create client
ProductInputsServiceClient productInputsServiceClient = ProductInputsServiceClient.Create();
// Initialize request argument(s)
string name = "accounts/[ACCOUNT]/productInputs/[PRODUCTINPUT]";
// Make the request
productInputsServiceClient.DeleteProductInput(name);
}
}
// [END merchantapi_v1beta_generated_ProductInputsService_DeleteProductInput_sync_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// 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_ProductInputsService_InsertProductInput_async]
using Google.Shopping.Merchant.Products.V1Beta;
using System.Threading.Tasks;

public sealed partial class GeneratedProductInputsServiceClientSnippets
{
/// <summary>Snippet for InsertProductInputAsync</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 InsertProductInputRequestObjectAsync()
{
// Create client
ProductInputsServiceClient productInputsServiceClient = await ProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
InsertProductInputRequest request = new InsertProductInputRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
ProductInput = new ProductInput(),
DataSource = "",
};
// Make the request
ProductInput response = await productInputsServiceClient.InsertProductInputAsync(request);
}
}
// [END merchantapi_v1beta_generated_ProductInputsService_InsertProductInput_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// 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_ProductInputsService_InsertProductInput_sync]
using Google.Shopping.Merchant.Products.V1Beta;

public sealed partial class GeneratedProductInputsServiceClientSnippets
{
/// <summary>Snippet for InsertProductInput</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 InsertProductInputRequestObject()
{
// Create client
ProductInputsServiceClient productInputsServiceClient = ProductInputsServiceClient.Create();
// Initialize request argument(s)
InsertProductInputRequest request = new InsertProductInputRequest
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
ProductInput = new ProductInput(),
DataSource = "",
};
// Make the request
ProductInput response = productInputsServiceClient.InsertProductInput(request);
}
}
// [END merchantapi_v1beta_generated_ProductInputsService_InsertProductInput_sync]
}
Loading

0 comments on commit e2ca0c0

Please sign in to comment.