Skip to content

Commit b5adb03

Browse files
gcf-owl-bot[bot]amanda-tarafa
authored andcommitted
feat: Add AutomaticImprovements service
PiperOrigin-RevId: 736530762 Source-Link: googleapis/googleapis@fa21981 Source-Link: googleapis/googleapis-gen@13d6f21 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuU2hvcHBpbmcuTWVyY2hhbnQuQWNjb3VudHMuVjFCZXRhLy5Pd2xCb3QueWFtbCIsImgiOiIxM2Q2ZjIxM2I1MDgzNzczZTc1NjZiN2Q2YzBhYjFkNGRlZGZhN2JjIn0=
1 parent 3a3d81b commit b5adb03

19 files changed

+4730
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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_GetAutomaticImprovements_async_flattened]
20+
using Google.Shopping.Merchant.Accounts.V1Beta;
21+
using System.Threading.Tasks;
22+
23+
public sealed partial class GeneratedAutomaticImprovementsServiceClientSnippets
24+
{
25+
/// <summary>Snippet for GetAutomaticImprovementsAsync</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public async Task GetAutomaticImprovementsAsync()
34+
{
35+
// Create client
36+
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = await AutomaticImprovementsServiceClient.CreateAsync();
37+
// Initialize request argument(s)
38+
string name = "accounts/[ACCOUNT]/automaticImprovements";
39+
// Make the request
40+
AutomaticImprovements response = await automaticImprovementsServiceClient.GetAutomaticImprovementsAsync(name);
41+
}
42+
}
43+
// [END merchantapi_v1beta_generated_AutomaticImprovementsService_GetAutomaticImprovements_async_flattened]
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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_GetAutomaticImprovements_async]
20+
using Google.Shopping.Merchant.Accounts.V1Beta;
21+
using System.Threading.Tasks;
22+
23+
public sealed partial class GeneratedAutomaticImprovementsServiceClientSnippets
24+
{
25+
/// <summary>Snippet for GetAutomaticImprovementsAsync</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public async Task GetAutomaticImprovementsRequestObjectAsync()
34+
{
35+
// Create client
36+
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = await AutomaticImprovementsServiceClient.CreateAsync();
37+
// Initialize request argument(s)
38+
GetAutomaticImprovementsRequest request = new GetAutomaticImprovementsRequest
39+
{
40+
AutomaticImprovementsName = AutomaticImprovementsName.FromAccount("[ACCOUNT]"),
41+
};
42+
// Make the request
43+
AutomaticImprovements response = await automaticImprovementsServiceClient.GetAutomaticImprovementsAsync(request);
44+
}
45+
}
46+
// [END merchantapi_v1beta_generated_AutomaticImprovementsService_GetAutomaticImprovements_async]
47+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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_GetAutomaticImprovements_sync]
20+
using Google.Shopping.Merchant.Accounts.V1Beta;
21+
22+
public sealed partial class GeneratedAutomaticImprovementsServiceClientSnippets
23+
{
24+
/// <summary>Snippet for GetAutomaticImprovements</summary>
25+
/// <remarks>
26+
/// This snippet has been automatically generated and should be regarded as a code template only.
27+
/// It will require modifications to work:
28+
/// - It may require correct/in-range values for request initialization.
29+
/// - It may require specifying regional endpoints when creating the service client as shown in
30+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
31+
/// </remarks>
32+
public void GetAutomaticImprovementsRequestObject()
33+
{
34+
// Create client
35+
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = AutomaticImprovementsServiceClient.Create();
36+
// Initialize request argument(s)
37+
GetAutomaticImprovementsRequest request = new GetAutomaticImprovementsRequest
38+
{
39+
AutomaticImprovementsName = AutomaticImprovementsName.FromAccount("[ACCOUNT]"),
40+
};
41+
// Make the request
42+
AutomaticImprovements response = automaticImprovementsServiceClient.GetAutomaticImprovements(request);
43+
}
44+
}
45+
// [END merchantapi_v1beta_generated_AutomaticImprovementsService_GetAutomaticImprovements_sync]
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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_GetAutomaticImprovements_async_flattened_resourceNames]
20+
using Google.Shopping.Merchant.Accounts.V1Beta;
21+
using System.Threading.Tasks;
22+
23+
public sealed partial class GeneratedAutomaticImprovementsServiceClientSnippets
24+
{
25+
/// <summary>Snippet for GetAutomaticImprovementsAsync</summary>
26+
/// <remarks>
27+
/// This snippet has been automatically generated and should be regarded as a code template only.
28+
/// It will require modifications to work:
29+
/// - It may require correct/in-range values for request initialization.
30+
/// - It may require specifying regional endpoints when creating the service client as shown in
31+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
32+
/// </remarks>
33+
public async Task GetAutomaticImprovementsResourceNamesAsync()
34+
{
35+
// Create client
36+
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = await AutomaticImprovementsServiceClient.CreateAsync();
37+
// Initialize request argument(s)
38+
AutomaticImprovementsName name = AutomaticImprovementsName.FromAccount("[ACCOUNT]");
39+
// Make the request
40+
AutomaticImprovements response = await automaticImprovementsServiceClient.GetAutomaticImprovementsAsync(name);
41+
}
42+
}
43+
// [END merchantapi_v1beta_generated_AutomaticImprovementsService_GetAutomaticImprovements_async_flattened_resourceNames]
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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_GetAutomaticImprovements_sync_flattened_resourceNames]
20+
using Google.Shopping.Merchant.Accounts.V1Beta;
21+
22+
public sealed partial class GeneratedAutomaticImprovementsServiceClientSnippets
23+
{
24+
/// <summary>Snippet for GetAutomaticImprovements</summary>
25+
/// <remarks>
26+
/// This snippet has been automatically generated and should be regarded as a code template only.
27+
/// It will require modifications to work:
28+
/// - It may require correct/in-range values for request initialization.
29+
/// - It may require specifying regional endpoints when creating the service client as shown in
30+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
31+
/// </remarks>
32+
public void GetAutomaticImprovementsResourceNames()
33+
{
34+
// Create client
35+
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = AutomaticImprovementsServiceClient.Create();
36+
// Initialize request argument(s)
37+
AutomaticImprovementsName name = AutomaticImprovementsName.FromAccount("[ACCOUNT]");
38+
// Make the request
39+
AutomaticImprovements response = automaticImprovementsServiceClient.GetAutomaticImprovements(name);
40+
}
41+
}
42+
// [END merchantapi_v1beta_generated_AutomaticImprovementsService_GetAutomaticImprovements_sync_flattened_resourceNames]
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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_GetAutomaticImprovements_sync_flattened]
20+
using Google.Shopping.Merchant.Accounts.V1Beta;
21+
22+
public sealed partial class GeneratedAutomaticImprovementsServiceClientSnippets
23+
{
24+
/// <summary>Snippet for GetAutomaticImprovements</summary>
25+
/// <remarks>
26+
/// This snippet has been automatically generated and should be regarded as a code template only.
27+
/// It will require modifications to work:
28+
/// - It may require correct/in-range values for request initialization.
29+
/// - It may require specifying regional endpoints when creating the service client as shown in
30+
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
31+
/// </remarks>
32+
public void GetAutomaticImprovements()
33+
{
34+
// Create client
35+
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = AutomaticImprovementsServiceClient.Create();
36+
// Initialize request argument(s)
37+
string name = "accounts/[ACCOUNT]/automaticImprovements";
38+
// Make the request
39+
AutomaticImprovements response = automaticImprovementsServiceClient.GetAutomaticImprovements(name);
40+
}
41+
}
42+
// [END merchantapi_v1beta_generated_AutomaticImprovementsService_GetAutomaticImprovements_sync_flattened]
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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_flattened]
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 UpdateAutomaticImprovementsAsync()
35+
{
36+
// Create client
37+
AutomaticImprovementsServiceClient automaticImprovementsServiceClient = await AutomaticImprovementsServiceClient.CreateAsync();
38+
// Initialize request argument(s)
39+
AutomaticImprovements automaticImprovements = new AutomaticImprovements();
40+
FieldMask updateMask = new FieldMask();
41+
// Make the request
42+
AutomaticImprovements response = await automaticImprovementsServiceClient.UpdateAutomaticImprovementsAsync(automaticImprovements, updateMask);
43+
}
44+
}
45+
// [END merchantapi_v1beta_generated_AutomaticImprovementsService_UpdateAutomaticImprovements_async_flattened]
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

Comments
 (0)