Skip to content

Commit

Permalink
feat: UpdateCssProduct is added to CssProductInput proto
Browse files Browse the repository at this point in the history
docs: Mark `freshness_time` as deprecated
docs : Mark `feed_id` as deprecated
docs: A comment for field `page_size` in message `.google.shopping.css.v1.ListChildAccountsRequest` is changed
docs: A comment for field `low_price` in message `.google.shopping.css.v1.Attributes` is changed
docs: A comment for field `high_price` in message `.google.shopping.css.v1.Attributes` is changed
docs: A comment for field `number_of_offers` in message `.google.shopping.css.v1.Attributes` is changed
docs: A comment for field `headline_offer_price` in message `.google.shopping.css.v1.Attributes` is changed
docs: A comment for field `headline_offer_shipping_price` in message `.google.shopping.css.v1.Attributes` is changed
docs: A comment for field `approved_countries` in message `.google.shopping.css.v1.CssProductStatus` is changed
docs: A comment for field `pending_countries` in message `.google.shopping.css.v1.CssProductStatus` is changed
docs: A comment for field `disapproved_countries` in message `.google.shopping.css.v1.CssProductStatus` is changed
docs: A comment for field `servability` in message `.google.shopping.css.v1.CssProductStatus` is changed
docs: A comment for field `applicable_countries` in message `.google.shopping.css.v1.CssProductStatus` is changed
docs: A comment for field `feed_id` in message`.google.shopping.css.v1.InsertCssProductInputRequest` is changed
docs: A comment for message `CssProduct` is changed

PiperOrigin-RevId: 708397816

Source-Link: googleapis/googleapis@892e72f

Source-Link: googleapis/googleapis-gen@09992f0
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuU2hvcHBpbmcuQ3NzLlYxLy5Pd2xCb3QueWFtbCIsImgiOiIwOTk5MmYwZDk0NWJlYjA5MjEyMmZhMWJkZjQ1M2Y1MzIxYmMwZjhjIn0=
  • Loading branch information
gcf-owl-bot[bot] authored and amanda-tarafa committed Dec 21, 2024
1 parent 3170840 commit 76bc3bd
Show file tree
Hide file tree
Showing 15 changed files with 1,086 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public async Task InsertCssProductInputRequestObjectAsync()
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
CssProductInput = new CssProductInput(),
FeedId = 0L,
};
// Make the request
CssProductInput response = await cssProductInputsServiceClient.InsertCssProductInputAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public void InsertCssProductInputRequestObject()
{
ParentAsAccountName = AccountName.FromAccount("[ACCOUNT]"),
CssProductInput = new CssProductInput(),
FeedId = 0L,
};
// Make the request
CssProductInput response = cssProductInputsServiceClient.InsertCssProductInput(request);
Expand Down
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 css_v1_generated_CssProductInputsService_UpdateCssProductInput_async_flattened]
using Google.Protobuf.WellKnownTypes;
using Google.Shopping.Css.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedCssProductInputsServiceClientSnippets
{
/// <summary>Snippet for UpdateCssProductInputAsync</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 UpdateCssProductInputAsync()
{
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = await CssProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
CssProductInput cssProductInput = new CssProductInput();
FieldMask updateMask = new FieldMask();
// Make the request
CssProductInput response = await cssProductInputsServiceClient.UpdateCssProductInputAsync(cssProductInput, updateMask);
}
}
// [END css_v1_generated_CssProductInputsService_UpdateCssProductInput_async_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 css_v1_generated_CssProductInputsService_UpdateCssProductInput_async]
using Google.Protobuf.WellKnownTypes;
using Google.Shopping.Css.V1;
using System.Threading.Tasks;

public sealed partial class GeneratedCssProductInputsServiceClientSnippets
{
/// <summary>Snippet for UpdateCssProductInputAsync</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 UpdateCssProductInputRequestObjectAsync()
{
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = await CssProductInputsServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateCssProductInputRequest request = new UpdateCssProductInputRequest
{
CssProductInput = new CssProductInput(),
UpdateMask = new FieldMask(),
};
// Make the request
CssProductInput response = await cssProductInputsServiceClient.UpdateCssProductInputAsync(request);
}
}
// [END css_v1_generated_CssProductInputsService_UpdateCssProductInput_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 css_v1_generated_CssProductInputsService_UpdateCssProductInput_sync]
using Google.Protobuf.WellKnownTypes;
using Google.Shopping.Css.V1;

public sealed partial class GeneratedCssProductInputsServiceClientSnippets
{
/// <summary>Snippet for UpdateCssProductInput</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 UpdateCssProductInputRequestObject()
{
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = CssProductInputsServiceClient.Create();
// Initialize request argument(s)
UpdateCssProductInputRequest request = new UpdateCssProductInputRequest
{
CssProductInput = new CssProductInput(),
UpdateMask = new FieldMask(),
};
// Make the request
CssProductInput response = cssProductInputsServiceClient.UpdateCssProductInput(request);
}
}
// [END css_v1_generated_CssProductInputsService_UpdateCssProductInput_sync]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// 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 css_v1_generated_CssProductInputsService_UpdateCssProductInput_sync_flattened]
using Google.Protobuf.WellKnownTypes;
using Google.Shopping.Css.V1;

public sealed partial class GeneratedCssProductInputsServiceClientSnippets
{
/// <summary>Snippet for UpdateCssProductInput</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 UpdateCssProductInput()
{
// Create client
CssProductInputsServiceClient cssProductInputsServiceClient = CssProductInputsServiceClient.Create();
// Initialize request argument(s)
CssProductInput cssProductInput = new CssProductInput();
FieldMask updateMask = new FieldMask();
// Make the request
CssProductInput response = cssProductInputsServiceClient.UpdateCssProductInput(cssProductInput, updateMask);
}
}
// [END css_v1_generated_CssProductInputsService_UpdateCssProductInput_sync_flattened]
}
Loading

0 comments on commit 76bc3bd

Please sign in to comment.