|
| 1 | +// Copyright 2025 Google LLC |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +// Generated code. DO NOT EDIT! |
| 16 | + |
| 17 | +namespace GoogleCSharpSnippets |
| 18 | +{ |
| 19 | + // [START merchantapi_v1beta_generated_AutomaticImprovementsService_UpdateAutomaticImprovements_async] |
| 20 | + using Google.Protobuf.WellKnownTypes; |
| 21 | + using Google.Shopping.Merchant.Accounts.V1Beta; |
| 22 | + using System.Threading.Tasks; |
| 23 | + |
| 24 | + public sealed partial class GeneratedAutomaticImprovementsServiceClientSnippets |
| 25 | + { |
| 26 | + /// <summary>Snippet for UpdateAutomaticImprovementsAsync</summary> |
| 27 | + /// <remarks> |
| 28 | + /// This snippet has been automatically generated and should be regarded as a code template only. |
| 29 | + /// It will require modifications to work: |
| 30 | + /// - It may require correct/in-range values for request initialization. |
| 31 | + /// - It may require specifying regional endpoints when creating the service client as shown in |
| 32 | + /// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. |
| 33 | + /// </remarks> |
| 34 | + public async Task UpdateAutomaticImprovementsRequestObjectAsync() |
| 35 | + { |
| 36 | + // Create client |
| 37 | + AutomaticImprovementsServiceClient automaticImprovementsServiceClient = await AutomaticImprovementsServiceClient.CreateAsync(); |
| 38 | + // Initialize request argument(s) |
| 39 | + UpdateAutomaticImprovementsRequest request = new UpdateAutomaticImprovementsRequest |
| 40 | + { |
| 41 | + AutomaticImprovements = new AutomaticImprovements(), |
| 42 | + UpdateMask = new FieldMask(), |
| 43 | + }; |
| 44 | + // Make the request |
| 45 | + AutomaticImprovements response = await automaticImprovementsServiceClient.UpdateAutomaticImprovementsAsync(request); |
| 46 | + } |
| 47 | + } |
| 48 | + // [END merchantapi_v1beta_generated_AutomaticImprovementsService_UpdateAutomaticImprovements_async] |
| 49 | +} |
0 commit comments